![]() |
Vireo
0.0
Vireo 3D Rendering Hardware Interface
|
Resource state constants used in pipeline barriers to declare how a resource is accessed.
Lua full name: vireo.ResourceState
Constants | |
| integer | UNDEFINED |
| Unknown / initial state. A barrier from UNDEFINED discards previous content. | |
| integer | RENDER_TARGET_COLOR |
| Image is used as a read/write color render target attachment. | |
| integer | RENDER_TARGET_DEPTH |
| Image is used as a read/write depth attachment. | |
| integer | RENDER_TARGET_DEPTH_READ |
| Image is used as a read-only depth attachment (depth test without writes). | |
| integer | RENDER_TARGET_DEPTH_STENCIL |
| Image is used as a read/write depth+stencil attachment. | |
| integer | RENDER_TARGET_DEPTH_STENCIL_READ |
| Image is used as a read-only depth+stencil attachment. | |
| integer | PRESENT |
| Image is ready to be presented by the swap chain. | |
| integer | COPY_SRC |
| Resource is used as the source of a copy/transfer operation. | |
| integer | COPY_DST |
| Resource is used as the destination of a copy/transfer operation. | |
| integer | SHADER_READ |
| Image or buffer is read by a shader (SRV / sampled image). | |
| integer | COMPUTE_READ |
| Resource is read by a compute shader. | |
| integer | COMPUTE_WRITE |
| Resource is written by a compute shader (UAV / storage image or buffer). | |
| integer | INDIRECT_DRAW |
| Buffer is used as an indirect draw/dispatch argument source. | |
| integer | VERTEX_INPUT |
| Buffer is used as a vertex or index input source. | |
| integer | UNIFORM |
| Buffer is used as a uniform (constant) buffer. | |
| integer UNDEFINED |
Unknown / initial state. A barrier from UNDEFINED discards previous content.
| integer RENDER_TARGET_COLOR |
Image is used as a read/write color render target attachment.
| integer RENDER_TARGET_DEPTH |
Image is used as a read/write depth attachment.
| integer RENDER_TARGET_DEPTH_READ |
Image is used as a read-only depth attachment (depth test without writes).
| integer RENDER_TARGET_DEPTH_STENCIL |
Image is used as a read/write depth+stencil attachment.
| integer RENDER_TARGET_DEPTH_STENCIL_READ |
Image is used as a read-only depth+stencil attachment.
| integer PRESENT |
Image is ready to be presented by the swap chain.
| integer COPY_SRC |
Resource is used as the source of a copy/transfer operation.
| integer COPY_DST |
Resource is used as the destination of a copy/transfer operation.
| integer SHADER_READ |
Image or buffer is read by a shader (SRV / sampled image).
| integer COMPUTE_READ |
Resource is read by a compute shader.
| integer COMPUTE_WRITE |
Resource is written by a compute shader (UAV / storage image or buffer).
| integer INDIRECT_DRAW |
Buffer is used as an indirect draw/dispatch argument source.
| integer VERTEX_INPUT |
Buffer is used as a vertex or index input source.
| integer UNIFORM |
Buffer is used as a uniform (constant) buffer.