mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 22:42:52 +08:00
Note that uniforms are local to command buffers (thanks @LittleCodingFox!)
This commit is contained in:
@@ -3139,7 +3139,7 @@ extern SDL_DECLSPEC SDL_GPUCommandBuffer * SDLCALL SDL_AcquireGPUCommandBuffer(
|
|||||||
/**
|
/**
|
||||||
* Pushes data to a vertex uniform slot on the command buffer.
|
* 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
|
* 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
|
* 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.
|
* 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
|
* 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
|
* 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.
|
* 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
|
* 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
|
* terms this means you must ensure that vec3 and vec4 fields are 16-byte
|
||||||
|
|||||||
Reference in New Issue
Block a user