Struct asche::SamplerDescriptor [−][src]
pub struct SamplerDescriptor<'a> {}Show 16 fields
pub name: &'a str, pub mag_filter: Filter, pub min_filter: Filter, pub mipmap_mode: SamplerMipmapMode, pub address_mode_u: SamplerAddressMode, pub address_mode_v: SamplerAddressMode, pub address_mode_w: SamplerAddressMode, pub mip_lod_bias: SamplerMipmapMode, pub anisotropy_enable: bool, pub max_anisotropy: f32, pub compare_op: Option<CompareOp>, pub min_lod: f32, pub max_lod: f32, pub border_color: Option<BorderColor>, pub unnormalized_coordinates: bool, pub flags: Option<SamplerCreateFlags>,
Expand description
Describes how a sampler should be configured.
Fields
name: &'a str
Name used for debugging.
mag_filter: Filter
Filter used for magnification.
min_filter: Filter
Filter used for minification.
mipmap_mode: SamplerMipmapMode
Mipmap mode.
address_mode_u: SamplerAddressMode
Address mode U.
address_mode_v: SamplerAddressMode
Address mode V.
address_mode_w: SamplerAddressMode
Address mode W.
mip_lod_bias: SamplerMipmapMode
Mipmap load bias.
anisotropy_enable: bool
Anisotropy filtering enabled.
max_anisotropy: f32
The anisotropy filter rate.
compare_op: Option<CompareOp>
Optional Compare operation.
min_lod: f32
Minimal LOD.
max_lod: f32
Maximal LOD.
border_color: Option<BorderColor>
Border color.
unnormalized_coordinates: bool
Un-normalized coordinates.
flags: Option<SamplerCreateFlags>
Optional flags.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for SamplerDescriptor<'a>
impl<'a> Send for SamplerDescriptor<'a>
impl<'a> Sync for SamplerDescriptor<'a>
impl<'a> Unpin for SamplerDescriptor<'a>
impl<'a> UnwindSafe for SamplerDescriptor<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more