CF_ComputeDispatch¶
Category: graphics
GitHub: cute_graphics.h
Parameters for dispatching a compute shader.
| Struct Members | Description |
|---|---|
CF_StorageBuffer* rw_buffers |
Read-write storage buffers (bound at pass creation). |
int rw_buffer_count |
Number of read-write storage buffers. |
CF_Texture* rw_textures |
Read-write storage textures (bound at pass creation). |
int rw_texture_count |
Number of read-write storage textures. |
CF_StorageBuffer* ro_buffers |
Read-only storage buffers (bound after pipeline bind). |
int ro_buffer_count |
Number of read-only storage buffers. |
CF_Texture* ro_textures |
Read-only storage textures (bound after pipeline bind). |
int ro_texture_count |
Number of read-only storage textures. |
int group_count_x |
Workgroup count X. |
int group_count_y |
Workgroup count Y. |
int group_count_z |
Workgroup count Z. |
Remarks¶
Read-write resources are bound at compute pass creation time (SDL_GPU requirement). Read-only storage resources are bound after the pipeline bind. Sampled textures and uniforms come from the material (name-matched).
Related Pages¶
CF_ComputeShader
cf_dispatch_compute
cf_compute_dispatch_defaults