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

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

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

Formats the value using the given formatter.

impl PartialEq<ConstVar> for ConstVar

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more