pub struct SamplerDescriptor {Show 17 fields
pub min_filter: usize,
pub mag_filter: usize,
pub mip_filter: usize,
pub max_anisotropy: usize,
pub s_address_mode: usize,
pub t_address_mode: usize,
pub r_address_mode: usize,
pub border_color: usize,
pub reduction_mode: usize,
pub normalized_coordinates: bool,
pub lod_min_clamp: f32,
pub lod_max_clamp: f32,
pub lod_average: bool,
pub lod_bias: f32,
pub compare_function: usize,
pub support_argument_buffers: bool,
pub label: Option<String>,
}Expand description
Re-exports the Metal framework surface for this item.
Rust description of MTLSamplerDescriptor.
Fields§
§min_filter: usizeMirrors the Metal framework property for min_filter.
mag_filter: usizeMirrors the Metal framework property for mag_filter.
mip_filter: usizeMirrors the Metal framework property for mip_filter.
max_anisotropy: usizeMirrors the Metal framework property for max_anisotropy.
s_address_mode: usizeMirrors the Metal framework property for s_address_mode.
t_address_mode: usizeMirrors the Metal framework property for t_address_mode.
r_address_mode: usizeMirrors the Metal framework property for r_address_mode.
border_color: usizeMirrors the Metal framework property for border_color.
reduction_mode: usizeMirrors the Metal framework property for reduction_mode.
normalized_coordinates: boolMirrors the Metal framework property for normalized_coordinates.
lod_min_clamp: f32Mirrors the Metal framework property for lod_min_clamp.
lod_max_clamp: f32Mirrors the Metal framework property for lod_max_clamp.
lod_average: boolMirrors the Metal framework property for lod_average.
lod_bias: f32Mirrors the Metal framework property for lod_bias.
compare_function: usizeMirrors the Metal framework property for compare_function.
support_argument_buffers: boolMirrors the Metal framework property for support_argument_buffers.
label: Option<String>Mirrors the Metal framework property for label.
Implementations§
Trait Implementations§
Source§impl Clone for SamplerDescriptor
impl Clone for SamplerDescriptor
Source§fn clone(&self) -> SamplerDescriptor
fn clone(&self) -> SamplerDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more