pub struct SamplerVar {
pub name: String,
pub slot: u8,
pub ty: SamplerType,
pub usage: Usage,
}Expand description
Sampler shader parameter.
Fields§
§name: StringName of this sampler variable.
slot: u8Slot of this sampler variable.
ty: SamplerTypeType of this sampler.
usage: UsageWhat program stage this texture is used in.
Trait Implementations§
Source§impl Clone for SamplerVar
impl Clone for SamplerVar
Source§fn clone(&self) -> SamplerVar
fn clone(&self) -> SamplerVar
Returns a duplicate 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 SamplerVar
impl Debug for SamplerVar
Source§impl Hash for SamplerVar
impl Hash for SamplerVar
Source§impl PartialEq for SamplerVar
impl PartialEq for SamplerVar
impl Eq for SamplerVar
impl StructuralPartialEq for SamplerVar
Auto Trait Implementations§
impl Freeze for SamplerVar
impl RefUnwindSafe for SamplerVar
impl Send for SamplerVar
impl Sync for SamplerVar
impl Unpin for SamplerVar
impl UnwindSafe for SamplerVar
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