Enum vulkano::sampler::UnnormalizedSamplerAddressMode[][src]

#[repr(u32)]
pub enum UnnormalizedSamplerAddressMode { ClampToEdge, ClampToBorder(BorderColor), }

How the sampler should behave when it needs to access a pixel that is out of range of the texture.

Variants

The coordinates are clamped to the valid range. Coordinates below 0 have the same value as coordinate 0. Coordinates over size of texture have the same value as coordinate size of texture.

Any pixel out of range is considered to be part of the "border" of the image, which has a specific color of your choice.

Note that if you use ClampToBorder multiple times, they must all have the same border color.

Trait Implementations

impl Debug for UnnormalizedSamplerAddressMode
[src]

Formats the value using the given formatter. Read more

impl Copy for UnnormalizedSamplerAddressMode
[src]

impl Clone for UnnormalizedSamplerAddressMode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for UnnormalizedSamplerAddressMode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for UnnormalizedSamplerAddressMode
[src]

impl Hash for UnnormalizedSamplerAddressMode
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations