mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Note that uniforms are local to command buffers (thanks @LittleCodingFox!)
This commit is contained in:
parent
ec19f1e12f
commit
a2d19ec7f3
1 changed files with 3 additions and 3 deletions
|
|
@ -3139,7 +3139,7 @@ extern SDL_DECLSPEC SDL_GPUCommandBuffer * SDLCALL SDL_AcquireGPUCommandBuffer(
|
|||
/**
|
||||
* Pushes data to a vertex uniform slot on the command buffer.
|
||||
*
|
||||
* Subsequent draw calls will use this uniform data.
|
||||
* Subsequent draw calls in this command buffer will use this uniform data.
|
||||
*
|
||||
* The data being pushed must respect std140 layout conventions. In practical
|
||||
* terms this means you must ensure that vec3 and vec4 fields are 16-byte
|
||||
|
|
@ -3164,7 +3164,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_PushGPUVertexUniformData(
|
|||
/**
|
||||
* Pushes data to a fragment uniform slot on the command buffer.
|
||||
*
|
||||
* Subsequent draw calls will use this uniform data.
|
||||
* Subsequent draw calls in this command buffer will use this uniform data.
|
||||
*
|
||||
* The data being pushed must respect std140 layout conventions. In practical
|
||||
* terms this means you must ensure that vec3 and vec4 fields are 16-byte
|
||||
|
|
@ -3186,7 +3186,7 @@ extern SDL_DECLSPEC void SDLCALL SDL_PushGPUFragmentUniformData(
|
|||
/**
|
||||
* Pushes data to a uniform slot on the command buffer.
|
||||
*
|
||||
* Subsequent draw calls will use this uniform data.
|
||||
* Subsequent draw calls in this command buffer will use this uniform data.
|
||||
*
|
||||
* The data being pushed must respect std140 layout conventions. In practical
|
||||
* terms this means you must ensure that vec3 and vec4 fields are 16-byte
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue