Struct voodoo::SamplerBuilder [] [src]

pub struct SamplerBuilder<'b> { /* fields omitted */ }

A builder for Sampler.

Methods

impl<'b> SamplerBuilder<'b>
[src]

[src]

Returns a new render pass builder.

[src]

Reserved for future use.

[src]

Specifies the magnification filter to apply to lookups.

[src]

Specifies the minification filter to apply to lookups.

[src]

Specifies the mipmap filter to apply to lookups.

[src]

Specifies the addressing mode for outside [0..1] range for U coordinate.

[src]

Specifies the addressing mode for outside [0..1] range for V coordinate.

[src]

Specifies the addressing mode for outside [0..1] range for W coordinate.

[src]

Specifies the 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 [TODO: INSERT LINK].

[src]

Specifies whether or not to enable anisotropic filtering, as described in the Texel Anisotropic Filtering section.

[src]

Specifies the anisotropy value clamp.

[src]

Specifies whether or not to enable comparison against a reference value during lookups.

Note: Some implementations will default to shader state if this member does not match.

[src]

Specifies the comparison function to apply to fetched data before filtering as described in the Depth Compare Operation section.

[src]

Specifies the minimum value used to clamp the computed level-of-detail value, as described in the Level-of-Detail Operation section. max_lod must be greater than or equal to min_lod.

[src]

Specifies the maximum value used to clamp the computed level-of-detail value, as described in the Level-of-Detail Operation section. max_lod must be greater than or equal to min_lod.

[src]

Specifies the predefined border color to use.

[src]

Specifies whether to use unnormalized or normalized texel coordinates to address texels of the image. When set to VK_TRUE, the range of the image coordinates used to lookup the texel is in the range of zero to the image dimensions for x, y and z. When set to VK_FALSE the range of image coordinates is zero to one. When unnormalizedCoordinates is VK_TRUE, samplers have the following requirements:

  • minFilter and magFilter must be equal.

  • mipmapMode must be VK_SAMPLER_MIPMAP_MODE_NEAREST.

  • minLod and maxLod must be zero.

  • addressModeU and addressModeV must each be either VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE or VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER.

  • anisotropyEnable must be VK_FALSE.

  • compareEnable must be VK_FALSE.

  • The sampler must not enable sampler Y’CBCR conversion.

  • When unnormalizedCoordinates is VK_TRUE, images the sampler is used with in the shader have the following requirements:

    • The viewType must be either VK_IMAGE_VIEW_TYPE_1D or VK_IMAGE_VIEW_TYPE_2D.
    • The image view must have a single layer and a single mip level.
  • When unnormalizedCoordinates is VK_TRUE, image built-in functions in the shader that use the sampler have the following requirements:

    • The functions must not use projection.
    • The functions must not use offsets.

[src]

Creates and returns a new Sampler

Trait Implementations

impl<'b> Debug for SamplerBuilder<'b>
[src]

[src]

Formats the value using the given formatter. Read more

impl<'b> Clone for SamplerBuilder<'b>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'b> !Send for SamplerBuilder<'b>

impl<'b> !Sync for SamplerBuilder<'b>