pub struct ViewSampler {
pub filter: ViewFilter,
pub address: [Address; 3],
pub border: Option<[f32; 4]>,
}Expand description
A sampler slot’s state: its filter, the addressing along u, v and w, and the colour a border reads.
Fields§
§filter: ViewFilterHow the sampler filters.
address: [Address; 3]The addressing along u, v and w.
border: Option<[f32; 4]>The colour a coordinate outside the texture reads along an Address::Border axis, where the slot states one;
a sample across a border axis with none is refused.
Trait Implementations§
Source§impl Clone for ViewSampler
impl Clone for ViewSampler
impl Copy for ViewSampler
Source§impl Debug for ViewSampler
impl Debug for ViewSampler
Source§impl PartialEq for ViewSampler
impl PartialEq for ViewSampler
impl StructuralPartialEq for ViewSampler
Auto Trait Implementations§
impl Freeze for ViewSampler
impl RefUnwindSafe for ViewSampler
impl Send for ViewSampler
impl Sync for ViewSampler
impl Unpin for ViewSampler
impl UnsafeUnpin for ViewSampler
impl UnwindSafe for ViewSampler
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