Enum vulkano::sampler::UnnormalizedSamplerAddressMode [−][src]
#[repr(u32)]
pub enum UnnormalizedSamplerAddressMode {
ClampToEdge,
ClampToBorder(BorderColor),
}
Expand description
How the sampler should behave when it needs to access a pixel that is out of range of the texture.
Variants
ClampToEdge
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.
ClampToBorder(BorderColor)
Tuple Fields
0: BorderColor
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
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for UnnormalizedSamplerAddressMode
impl Sync for UnnormalizedSamplerAddressMode
impl Unpin for UnnormalizedSamplerAddressMode
impl UnwindSafe for UnnormalizedSamplerAddressMode
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.