pub struct SamplerDecl {
pub tag: SamplerTag,
pub name: String,
pub span: Span,
}Expand description
sampler <name>; — minimal sampler declaration. MD2 user shaders use
sampler sampler_<name> for disk-loaded textures and sampler_main /
sampler_blur1..3 for built-ins.
Fields§
§tag: SamplerTagTag at the start of the decl: sampler, sampler2D, or sampler3D.
name: String§span: SpanTrait Implementations§
Source§impl Clone for SamplerDecl
impl Clone for SamplerDecl
Source§fn clone(&self) -> SamplerDecl
fn clone(&self) -> SamplerDecl
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 SamplerDecl
impl Debug for SamplerDecl
Source§impl PartialEq for SamplerDecl
impl PartialEq for SamplerDecl
impl StructuralPartialEq for SamplerDecl
Auto Trait Implementations§
impl Freeze for SamplerDecl
impl RefUnwindSafe for SamplerDecl
impl Send for SamplerDecl
impl Sync for SamplerDecl
impl Unpin for SamplerDecl
impl UnwindSafe for SamplerDecl
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