Struct luminance::shader::program::Sem
[−]
[src]
pub struct Sem { /* fields omitted */ }
A shader uniform semantic. It holds information on the variable it represents such as a name, its type and its dimension.
You can create them from Uniform
with the Uniform::sem
method.
Methods
impl Sem
[src]
fn name(&self) -> &str
Name of the uniform in the shader program.
fn index(&self) -> SemIndex
Index of the uniform in the shader program.
fn ty(&self) -> Type
Type of the uniform in the shader program.
fn dim(&self) -> Dim
Dimension of the uniform in the shader program.
Trait Implementations
impl Clone for Sem
[src]
fn clone(&self) -> Sem
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