pub struct Addressing<const N: usize> {
pub axes: [Address; N],
pub border: Option<[f32; 4]>,
}Expand description
How a sample addresses a texture: each axis’s Address, and the colour an index outside the texture reads along
a Address::Border axis. An array of addresses is addressing with no border colour ([Address::Clamp; 2].into()),
so every filter takes either.
Fields§
§axes: [Address; N]The address mode of each axis (u, v, then w).
border: Option<[f32; 4]>The colour (red, green, blue, alpha) a border reads: a value of the filtered domain, taken as it is (the
Transfer decodes stored texels, not this). A sample with a border axis and no colour is refused.
Implementations§
Trait Implementations§
Source§impl<const N: usize> Clone for Addressing<N>
impl<const N: usize> Clone for Addressing<N>
impl<const N: usize> Copy for Addressing<N>
Source§impl<const N: usize> Debug for Addressing<N>
impl<const N: usize> Debug for Addressing<N>
Source§impl<const N: usize> PartialEq for Addressing<N>
impl<const N: usize> PartialEq for Addressing<N>
impl<const N: usize> StructuralPartialEq for Addressing<N>
Auto Trait Implementations§
impl<const N: usize> Forget for Addressing<N>
impl<const N: usize> Freeze for Addressing<N>
impl<const N: usize> RefUnwindSafe for Addressing<N>
impl<const N: usize> Send for Addressing<N>
impl<const N: usize> Sync for Addressing<N>
impl<const N: usize> Unpin for Addressing<N>
impl<const N: usize> UnsafeUnpin for Addressing<N>
impl<const N: usize> UnwindSafe for Addressing<N>
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