Skip to content

cf_apply_fs_storage_buffers

Category: graphics
GitHub: cute_graphics.h


Binds storage buffers to the fragment stage of the current graphics pipeline.

void cf_apply_fs_storage_buffers(CF_StorageBuffer* buffers, int count);
Parameters Description
buffers The storage buffers to bind, in shader binding order.
count Number of buffers.

Remarks

Call after cf_apply_shader and before cf_draw_elements. Declare fragment-stage storage buffers at set = 2 with bindings following any fragment-stage samplers. See cf_apply_vs_storage_buffers for the rest of the contract.

CF_StorageBuffer
cf_make_storage_buffer
cf_apply_vs_storage_buffers
cf_apply_shader