pub enum UniformBinding {
Parameter(String),
SemanticVariable(UniqueSemantics),
TextureSize(Semantic<TextureSemantics>),
}Expand description
The binding of a uniform after the shader has been linked.
Used in combination with MemberOffset to keep track
of semantics at each frame pass.
Variants§
Parameter(String)
A user parameter (float) binding.
SemanticVariable(UniqueSemantics)
A known semantic binding.
TextureSize(Semantic<TextureSemantics>)
A texture size (float4) binding.
Trait Implementations§
source§impl Clone for UniformBinding
impl Clone for UniformBinding
source§fn clone(&self) -> UniformBinding
fn clone(&self) -> UniformBinding
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UniformBinding
impl Debug for UniformBinding
source§impl From<Semantic<TextureSemantics, usize>> for UniformBinding
impl From<Semantic<TextureSemantics, usize>> for UniformBinding
source§fn from(value: Semantic<TextureSemantics>) -> Self
fn from(value: Semantic<TextureSemantics>) -> Self
Converts to this type from the input type.
source§impl From<UniqueSemantics> for UniformBinding
impl From<UniqueSemantics> for UniformBinding
source§fn from(value: UniqueSemantics) -> Self
fn from(value: UniqueSemantics) -> Self
Converts to this type from the input type.
source§impl Hash for UniformBinding
impl Hash for UniformBinding
source§impl PartialEq<UniformBinding> for UniformBinding
impl PartialEq<UniformBinding> for UniformBinding
source§fn eq(&self, other: &UniformBinding) -> bool
fn eq(&self, other: &UniformBinding) -> bool
This method tests for
self and other values to be equal, and is used
by ==.