Struct gfx::device::shade::UniformVar [] [src]

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

Uniform, a type of shader parameter representing data passed to the program.

Fields

name

Name of this uniform.

location

Location of this uniform in the program.

count

Number of elements this uniform represents.

base_type

Type that this uniform is composed of

container

"Scalarness" of this uniform.

Methods

impl UniformVar

fn is_compatible(&self, value: &UniformValue) -> Result<(), CompatibilityError>

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

Trait Implementations

Derived Implementations

impl Debug for UniformVar

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for UniformVar

fn eq(&self, __arg_0: &UniformVar) -> bool

fn ne(&self, __arg_0: &UniformVar) -> bool

impl Clone for UniformVar

fn clone(&self) -> UniformVar

fn clone_from(&mut self, source: &Self)