BufferUsage
extern (C)
struct BufferUsage {
}
- _immutable
bool _immutable;
Undocumented in source.
- dynamic_update
bool dynamic_update;
Undocumented in source.
- index_buffer
bool index_buffer;
Undocumented in source.
- storage_buffer
bool storage_buffer;
Undocumented in source.
- stream_update
bool stream_update;
Undocumented in source.
- vertex_buffer
bool vertex_buffer;
Undocumented in source.
sokol gfx
enumsfunctionsmanifest constantsstructs
sg_buffer_usage
Describes how a buffer object is going to be used:
.vertex_buffer (default: true) the buffer will bound as vertex buffer via sg_bindings.vertex_buffers[] .index_buffer (default: false) the buffer will bound as index buffer via sg_bindings.index_buffer .storage_buffer (default: false) the buffer will bound as storage buffer via sg_bindings.storage_buffers[] .immutable (default: true) the buffer content will never be updated from the CPU side (but may be written to by a compute shader) .dynamic_update (default: false) the buffer content will be infrequently updated from the CPU side .stream_upate (default: false) the buffer content will be updated each frame from the CPU side