From 49493c01a281ab7fcf00331d1b0878393879c868 Mon Sep 17 00:00:00 2001 From: Nuno Silva Date: Fri, 12 Dec 2025 16:37:34 +0000 Subject: [PATCH 1/2] SDL3/SDL_PushGPUFragmentUniformData: Clarify that the reuse of uniform data applies only to the current command buffer Live page is here: https://wiki.libsdl.org/SDL3/SDL_PushGPUFragmentUniformData --- SDL3/SDL_PushGPUFragmentUniformData.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDL3/SDL_PushGPUFragmentUniformData.md b/SDL3/SDL_PushGPUFragmentUniformData.md index 3369580a2..a06c58606 100644 --- a/SDL3/SDL_PushGPUFragmentUniformData.md +++ b/SDL3/SDL_PushGPUFragmentUniformData.md @@ -27,7 +27,7 @@ void SDL_PushGPUFragmentUniformData( ## Remarks -Subsequent draw calls will use this uniform data. +Subsequent draw calls in the same command buffer will reuse 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 From eb7635ae488a246a2a06227d5eba85ffedf36427 Mon Sep 17 00:00:00 2001 From: Nuno Silva Date: Fri, 12 Dec 2025 23:00:03 +0000 Subject: [PATCH 2/2] SDL3/SDL_PushGPUFragmentUniformData: Updated with PR suggestions Live page is here: https://wiki.libsdl.org/SDL3/SDL_PushGPUFragmentUniformData --- SDL3/SDL_PushGPUFragmentUniformData.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SDL3/SDL_PushGPUFragmentUniformData.md b/SDL3/SDL_PushGPUFragmentUniformData.md index a06c58606..fd412feed 100644 --- a/SDL3/SDL_PushGPUFragmentUniformData.md +++ b/SDL3/SDL_PushGPUFragmentUniformData.md @@ -27,7 +27,7 @@ void SDL_PushGPUFragmentUniformData( ## Remarks -Subsequent draw calls in the same command buffer will reuse 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 @@ -39,4 +39,3 @@ This function is available since SDL 3.2.0. ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryGPU](CategoryGPU) -