#[non_exhaustive]pub enum Layout {
Undefined,
General,
CopySrc,
CopyDst,
Sampled,
ColorTarget,
DepthTarget,
DepthRead,
Present,
}Expand description
the state a texture is in (texture_barrier, render pass attachments, write_texture)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Undefined
contents discarded; waits for earlier colour, copy and compute work (and for the swapchain image’s acquisition)
General
storage textures and anything at once (slower on some GPUs)
CopySrc
CopyDst
Sampled
sampled in shaders (also depth textures)
ColorTarget
DepthTarget
DepthRead
depth test without writes while shaders sample it
Present
handed to the window (the last layout of a swapchain image)
Trait Implementations§
impl Copy for Layout
impl Eq for Layout
impl StructuralPartialEq for Layout
Auto Trait Implementations§
impl Forget for Layout
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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