#[repr(u32)]pub enum SamplerAddress {
Repeat = 10_497,
MirrorRepeat = 33_648,
ClampEdge = 33_071,
ClampBorder = 33_069,
MirrorClampEdge = 34_627,
}
Expand description
Sampler addressing mode.
Specifies how coordinates outide of the texture coordinate system ([0, 1]
) are treated during
sampling operations.
Variants§
Repeat = 10_497
Strip off the integer part of the coordinate, effectively repeating the texture across the entire space.
MirrorRepeat = 33_648
Strip of the integer part of the coordinate, but mirror the coordinate when the interger is odd. This will create repeated images that are alternately flipped.
ClampEdge = 33_071
Clamp the coordinate to [0.0, 1.0].
ClampBorder = 33_069
Use the border color for coordinates outside [0.0, 1.0].
MirrorClampEdge = 34_627
Coordinates in the range [-1.0, 0.0] will be mirrored onto
[0.0, 1.0]. Outside of [-1.0, 1.0], behavior is the same as ClampEdge
.
Trait Implementations§
Source§impl Clone for SamplerAddress
impl Clone for SamplerAddress
Source§fn clone(&self) -> SamplerAddress
fn clone(&self) -> SamplerAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SamplerAddress
impl Debug for SamplerAddress
Source§impl Hash for SamplerAddress
impl Hash for SamplerAddress
Source§impl PartialEq for SamplerAddress
impl PartialEq for SamplerAddress
impl Copy for SamplerAddress
impl Eq for SamplerAddress
impl StructuralPartialEq for SamplerAddress
Auto Trait Implementations§
impl Freeze for SamplerAddress
impl RefUnwindSafe for SamplerAddress
impl Send for SamplerAddress
impl Sync for SamplerAddress
impl Unpin for SamplerAddress
impl UnwindSafe for SamplerAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more