pub struct SamplerAddress {
pub u: SamplerAddressMode,
pub v: SamplerAddressMode,
pub w: SamplerAddressMode,
}Expand description
How to address coordinates outside the image bounds.
Fields§
§u: SamplerAddressModeU coordinates address mode.
v: SamplerAddressModeV coordinates address mode.
w: SamplerAddressModeW coordinates address mode.
Implementations§
Source§impl SamplerAddress
impl SamplerAddress
Sourcepub const MIRRORED_REPEAT: Self
pub const MIRRORED_REPEAT: Self
Repeat and mirror the image in all coordinates.
Sourcepub const CLAMP_TO_EDGE: Self
pub const CLAMP_TO_EDGE: Self
Repeat the edge color in all coordinates.
Sourcepub const CLAMP_TO_BORDER: Self
pub const CLAMP_TO_BORDER: Self
Repeat the border color (black) in all coordinates.
Sourcepub const MIRROR_CLAMP_TO_EDGE: Self
pub const MIRROR_CLAMP_TO_EDGE: Self
Repeat the oposite edge color in all coordinates.
Auto Trait Implementations§
impl Freeze for SamplerAddress
impl RefUnwindSafe for SamplerAddress
impl Send for SamplerAddress
impl Sync for SamplerAddress
impl Unpin for SamplerAddress
impl UnsafeUnpin 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