Struct gfx::shade::core::ConstVar [] [src]

pub struct ConstVar {
    pub name: String,
    pub location: usize,
    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. For constant buffer elements, it's the offset in bytes.

Number of elements this constant represents.

Type that this constant is composed of

"Scalarness" of this constant.

Methods

impl ConstVar
[src]

[src]

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

Trait Implementations

impl Clone for ConstVar
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for ConstVar
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq<ConstVar> for ConstVar
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for ConstVar
[src]

[src]

Formats the value using the given formatter.

impl Eq for ConstVar
[src]