Enum vulkano::sampler::UnnormalizedSamplerAddressMode
[−]
[src]
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 Copy for UnnormalizedSamplerAddressMode
[src]
impl Clone for UnnormalizedSamplerAddressMode
[src]
fn clone(&self) -> UnnormalizedSamplerAddressMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for UnnormalizedSamplerAddressMode
[src]
fn eq(&self, __arg_0: &UnnormalizedSamplerAddressMode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UnnormalizedSamplerAddressMode) -> bool
This method tests for !=
.
impl Eq for UnnormalizedSamplerAddressMode
[src]
impl Hash for UnnormalizedSamplerAddressMode
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.