pub struct Sample {
pub offset: usize,
pub unit: u8,
pub coordinates: Dependencies,
pub arguments: Dependencies,
}Expand description
One texture sample.
Fields§
§offset: usizeThe byte offset of the sampling instruction.
unit: u8The texture unit sampled.
coordinates: DependenciesWhat its first source (the coordinates) depends on.
arguments: DependenciesAll sampling arguments, including separate LOD, bias or gradients.
Trait Implementations§
impl Eq for Sample
impl StructuralPartialEq for Sample
Auto Trait Implementations§
impl Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnsafeUnpin for Sample
impl UnwindSafe for Sample
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