From 1129d016a1d1ae92f92fcd4aea76b953a21c0f48 Mon Sep 17 00:00:00 2001 From: Nuno Silva Date: Fri, 12 Dec 2025 16:34:09 +0000 Subject: [PATCH 1/2] SDL3/SDL_PushGPUVertexUniformData: Clarify that the reuse of uniform data applies only to the current command buffer Live page is here: https://wiki.libsdl.org/SDL3/SDL_PushGPUVertexUniformData --- SDL3/SDL_PushGPUVertexUniformData.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDL3/SDL_PushGPUVertexUniformData.md b/SDL3/SDL_PushGPUVertexUniformData.md index f721edbe1..c9d5700a7 100644 --- a/SDL3/SDL_PushGPUVertexUniformData.md +++ b/SDL3/SDL_PushGPUVertexUniformData.md @@ -27,7 +27,7 @@ void SDL_PushGPUVertexUniformData( ## 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 aa9c98aa8f682c1f5833f67c71139fe937cc8965 Mon Sep 17 00:00:00 2001 From: Nuno Silva Date: Fri, 12 Dec 2025 23:00:18 +0000 Subject: [PATCH 2/2] SDL3/SDL_PushGPUVertexUniformData: Updated with PR suggestions Live page is here: https://wiki.libsdl.org/SDL3/SDL_PushGPUVertexUniformData --- SDL3/SDL_PushGPUVertexUniformData.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SDL3/SDL_PushGPUVertexUniformData.md b/SDL3/SDL_PushGPUVertexUniformData.md index c9d5700a7..2ebfadbe8 100644 --- a/SDL3/SDL_PushGPUVertexUniformData.md +++ b/SDL3/SDL_PushGPUVertexUniformData.md @@ -27,7 +27,7 @@ void SDL_PushGPUVertexUniformData( ## 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 @@ -42,4 +42,3 @@ This function is available since SDL 3.2.0. ---- [CategoryAPI](CategoryAPI), [CategoryAPIFunction](CategoryAPIFunction), [CategoryGPU](CategoryGPU) -