pub struct ImageLoad<R> {
pub texture: R,
pub dim: Dim,
pub storage: bool,
pub texel: [i32; 3],
pub layer: Option<i32>,
pub sample: Option<i32>,
pub mip: Option<i32>,
}Expand description
A texel load (ld, ld_ms, a typed unordered-access load).
Fields§
§texture: RThe texture read.
dim: DimThe texture’s shape.
storage: boolA view of an unordered-access resource rather than a shader resource.
texel: [i32; 3]The integer address of the texel (x, y, z; the rest 0).
layer: Option<i32>An array’s layer.
sample: Option<i32>The sample of a multisampled texture.
mip: Option<i32>The mip level; None where the load states none.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for ImageLoad<R>where
R: Freeze,
impl<R> RefUnwindSafe for ImageLoad<R>where
R: RefUnwindSafe,
impl<R> Send for ImageLoad<R>where
R: Send,
impl<R> Sync for ImageLoad<R>where
R: Sync,
impl<R> Unpin for ImageLoad<R>where
R: Unpin,
impl<R> UnsafeUnpin for ImageLoad<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ImageLoad<R>where
R: UnwindSafe,
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