|
Flint Engine
Modular C++20 2D game engine powered by SDL3
|
|
inline |
Compile and upload a shader stage from bytecode already present in memory.
The supplied data must remain valid for the duration of the call. Reloading a stage replaces any existing SDL shader of the same type after releasing it.
| stage | Which stage to load (Vertex or Fragment). |
| data | Pointer to shader bytecode. |
| size | Size of data in bytes. |
| numSamplers | Number of texture samplers declared in the shader. |
| numStorageTextures | Number of storage textures declared in the shader. |
| numStorageBuffers | Number of storage buffers declared in the shader. |
| numUniformBuffers | Number of uniform buffers declared in the shader. |