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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.