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>> for UniformBinding
impl From<Semantic<TextureSemantics>> 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 for UniformBinding
impl PartialEq 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 ==
.impl Eq for UniformBinding
impl StructuralPartialEq for UniformBinding
Auto Trait Implementations§
impl RefUnwindSafe for UniformBinding
impl Send for UniformBinding
impl Sync for UniformBinding
impl Unpin for UniformBinding
impl UnwindSafe for UniformBinding
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more