enum render::ImageLayout

Image layout - determines how an image is accessed in GPU operations.

Values

NameValueDescription
Undefined 0 Undefined layout - initial state or don't care.
General 1 General purpose layout - supports all operations but may not be optimal.
ColorAttachment 2 Optimal for color attachment writes (render targets).
DepthStencilAttachment 3 Optimal for depth/stencil attachment writes.
DepthStencilReadOnly 4 Optimal for depth/stencil attachment reads (read-only depth).
ShaderReadOnly 5 Optimal for shader reads (sampling, texelFetch).
TransferSource 6 Optimal for transfer source operations (copies, blits).
TransferDestination 7 Optimal for transfer destination operations (copies, blits).
Present 8 Layout for presenting to swap chain.