CF_ShaderWriteSite¶
Category: graphics
GitHub: cute_shader_bytecode.h
One write in a compute shader, as the GLES backend emulates it.
| Struct Members | Description |
|---|---|
CF_ShaderWriteKind kind |
Image or buffer. |
const char* name |
The destination's name as declared. |
int set |
The destination's descriptor set. |
int binding |
The destination's binding. |
int words |
32-bit words written: 1, 2 or 4 (always 4 for images). |
Remarks¶
GLES3 has no compute. Its backend runs a compute shader as a fragment pass that captures each write site's value and destination, then draws one point per invocation into the destination. Sites are numbered in source order; the transpiled shader selects the active one by uniform.