Enum sierra::Layout [−][src]
pub enum Layout { General, ColorAttachmentOptimal, DepthStencilAttachmentOptimal, DepthStencilReadOnlyOptimal, ShaderReadOnlyOptimal, TransferSrcOptimal, TransferDstOptimal, Present, }
Expand description
Image layout defines how texel are placed in memory. Operations can be used in one or more layouts. User is responsible to insert layout transition commands to ensure that the image is in valid layout for each operation. Pipeline barriers can be used to change layouts. Additionally render pass can change layout of its attachments.
Variants
Can be used with all device operations. Only presentation is not possible in this layout. Operations may perform slower in this layout.
Can be used for color attachments.
Can be used for depth-stencil attachments.
Can be used for depth-stencil attachments without writes.
Can be used for images accessed from shaders without writes.
Can be used for copy, blit and other transferring operations on source image.
Can be used for copy, blit and other transferring operations on destination image.
Layout for swapchain images presentation. Should not be used if presentation feature is not enabled.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Layout
impl UnwindSafe for Layout
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more