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
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)
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]
impl Debug for UnnormalizedSamplerAddressMode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for UnnormalizedSamplerAddressMode
[src]
impl Copy for UnnormalizedSamplerAddressMode
impl Clone for UnnormalizedSamplerAddressMode
[src]
impl Clone for UnnormalizedSamplerAddressMode
fn clone(&self) -> UnnormalizedSamplerAddressMode
[src]
fn clone(&self) -> UnnormalizedSamplerAddressMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for UnnormalizedSamplerAddressMode
[src]
impl PartialEq for UnnormalizedSamplerAddressMode
fn eq(&self, other: &UnnormalizedSamplerAddressMode) -> bool
[src]
fn eq(&self, other: &UnnormalizedSamplerAddressMode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &UnnormalizedSamplerAddressMode) -> bool
[src]
fn ne(&self, other: &UnnormalizedSamplerAddressMode) -> bool
This method tests for !=
.
impl Eq for UnnormalizedSamplerAddressMode
[src]
impl Eq for UnnormalizedSamplerAddressMode
impl Hash for UnnormalizedSamplerAddressMode
[src]
impl Hash for UnnormalizedSamplerAddressMode
Auto Trait Implementations
impl Send for UnnormalizedSamplerAddressMode
impl Send for UnnormalizedSamplerAddressMode
impl Sync for UnnormalizedSamplerAddressMode
impl Sync for UnnormalizedSamplerAddressMode