Struct gfx_core::shade::ConstVar [] [src]

pub struct ConstVar {
    pub name: String,
    pub location: Location,
    pub count: usize,
    pub base_type: BaseType,
    pub container: ContainerType,
}

A constant in the shader - a bit of data that doesn't vary

Fields

Name of this constant.

Location of this constant in the program.

Number of elements this constant represents.

Type that this constant is composed of

"Scalarness" of this constant.

Methods

impl ConstVar
[src]

Whether a value is compatible with this variable. That is, whether the value can be stored in this variable.

Trait Implementations

impl Debug for ConstVar
[src]

Formats the value using the given formatter.

impl PartialEq for ConstVar
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for ConstVar
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more