Skip to content

CF_StorageBufferParams

Category: graphics
GitHub: cute_graphics.h


Parameters for creating a storage buffer.

Struct Members Description
int size Size in bytes.
bool compute_readable GPU can read in compute stage (default true).
bool compute_writable GPU can write in compute stage (default false).
bool graphics_readable GPU can read in graphics vertex/fragment stage (default true -- the common
case is binding via cf_apply_vs_storage_buffers, which requires it).
bool indirect_drawable Buffer can source indirect draws via cf_draw_elements_indirect (default false).
Combine with compute_writable for GPU-driven rendering: a compute pass culls and writes
draw arguments, the draw call reads them, and the CPU never sees a count.

CF_StorageBuffer
cf_storage_buffer_defaults
cf_make_storage_buffer