Enum bedrock::resources::ImageLayout [] [src]

#[repr(u32)]
pub enum ImageLayout { Undefined, Preinitialized, General, ColorAttachmentOpt, DepthStencilAttachmentOpt, DepthStencilReadOnlyOpt, ShaderReadOnlyOpt, TransferSrcOpt, TransferDestOpt, }

Layouts of image and image subresources

Variants

does not support device access

does not support device access. host can be written to this memory immediately

supports all types of device access

must only be used as a color or resolve attachment in a Framebuffer

must only be used as a depth/stencil attachment in a Framebuffer

must only be used as a read-only depth/stencil attachment in a Framebuffer and/or as a read-only image in a shader (which can be read as a sampled image, combined image/sampler and/or input attachment).

must only be used as a read-only image in a shader (which can be read as a sampled image, combined image/sampler and/or input attachment).

must only be used as a source image of a transfer command

must only be used as a destination image of a transfer command

Methods

impl ImageLayout
[src]

[src]

Commonly used access types with the layout

Trait Implementations

impl Debug for ImageLayout
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for ImageLayout
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for ImageLayout
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Eq for ImageLayout
[src]

impl Copy for ImageLayout
[src]

Auto Trait Implementations

impl Send for ImageLayout

impl Sync for ImageLayout