ImageUsage
extern (C)
struct ImageUsage {
}
- _immutable
bool _immutable;
Undocumented in source.
- dynamic_update
bool dynamic_update;
Undocumented in source.
- render_attachment
bool render_attachment;
Undocumented in source.
- storage_attachment
bool storage_attachment;
Undocumented in source.
- stream_update
bool stream_update;
Undocumented in source.
sokol gfx
enumsfunctionsmanifest constantsstructs
sg_image_usage
Describes how the image object is going to be used:
.render_attachment (default: false) the image object is used as color-, resolve- or depth-stencil- attachment in a render pass .storage_attachment (default: false) the image object is used as storage-attachment in a compute pass (to be written to by compute shaders) .immutable (default: true) the image content cannot be updated from the CPU side (but may be updated by the GPU in a render- or compute-pass) .dynamic_update (default: false) the image content is updated infrequently by the CPU .stream_update (default: false) the image content is updated each frame by the CPU via
Note that the usage as texture binding is implicit and always allowed.