Struct bedrock::resources::SamplerBuilder [] [src]

pub struct SamplerBuilder(_);

Builder object for constructing the sampler object

Methods

impl SamplerBuilder
[src]

[src]

[src]

The magnification and the minification filters to apply to lookups.
Default: Magnification=FilterMode::Linear, Minification=FilterMode::Linear

[src]

The mipmap filter to apply to lookups.
Default: MipmapFilterMode::Linear

[src]

The addressing mode for outside [0..1] range for U, V and W coordinates.
Default: U=AddressingMode::Repeat, V=AddressinMode::Repeat, W=AddressingMode::Repeat

[src]

The bias to be added to mipmap LOD calculation and bias provided by image sampling functions in SPIR-V, as described in the Level-of-Detail Operation section in Vulkan Specification.
Default: 0.0

[src]

The anisotropy value clamp. Specifying None switches off the anisotropic filtering
Default: None

[src]

The comparison function to apply to fetched data before filtering as described in the Depth Compare Operation section in Vulkan Specification. Specifying None switches off the comparison against a reference value during lookups.
Default: None

[src]

The values used to clamp the computed level-of-detail value, as described in the Level-of-Detail Operation section in Vulkan Specification.
Default: min_lod=0.0, max_lod=0.0

Panics

max_lod must be greater than or equal to min_lod

[src]

Whether to use unnormalized or normalized texel coordinates to address texels of the image.
Default: false

Safety

User must meet the constraints as described in the "Valid Usage" section in the VkSamplerCreateInfo manual page

Trait Implementations

Auto Trait Implementations

impl !Send for SamplerBuilder

impl !Sync for SamplerBuilder