pub struct UserSamplerRef {
pub full_name: String,
pub logical_name: String,
pub sampler_kind: &'static str,
}Expand description
One parsed sampler sampler_X; declaration. The renderer consumes
this to populate a TextureBindingPlan.
Fields§
§full_name: StringFull HLSL sampler name as written: sampler_clouds,
sampler_fw_clouds, sampler_rand02_smalltiled, …
logical_name: StringLogical texture name (filter prefix stripped):
sampler_fw_clouds → "clouds", sampler_rand02 → "rand02",
sampler_rand02_smalltiled → "rand02_smalltiled".
sampler_kind: &'static strWGSL sampler binding the translator should pair with this
texture. sampler_fw_* → "sampler_fw", plain sampler_* →
"sampler_fw" (MD2 default for user textures is linear+wrap).
Trait Implementations§
Source§impl Clone for UserSamplerRef
impl Clone for UserSamplerRef
Source§fn clone(&self) -> UserSamplerRef
fn clone(&self) -> UserSamplerRef
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 UserSamplerRef
impl Debug for UserSamplerRef
Source§impl PartialEq for UserSamplerRef
impl PartialEq for UserSamplerRef
impl StructuralPartialEq for UserSamplerRef
Auto Trait Implementations§
impl Freeze for UserSamplerRef
impl RefUnwindSafe for UserSamplerRef
impl Send for UserSamplerRef
impl Sync for UserSamplerRef
impl Unpin for UserSamplerRef
impl UnwindSafe for UserSamplerRef
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