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: String
Name of this uniform.
location: Location
Location of this uniform in the program.
count: usize
Number of elements this uniform represents.
base_type: BaseType
Type that this uniform is composed of
container: ContainerType
"Scalarness" of this uniform.
Methods
impl UniformVar
[src]
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
impl Debug for UniformVar
[src]
impl PartialEq for UniformVar
[src]
fn eq(&self, __arg_0: &UniformVar) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UniformVar) -> bool
This method tests for !=
.
impl Clone for UniformVar
[src]
fn clone(&self) -> UniformVar
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more