SDL_PushGPUComputeUniformData

Pushes data to a uniform slot on the command buffer.

Subsequent draw calls 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 aligned.

extern (C) nothrow @nogc extern
void
SDL_PushGPUComputeUniformData

Parameters

command_buffer SDL_GPUCommandBuffer*

a command buffer.

slot_index Uint32

the uniform slot to push data to.

data const(void)*

client data to write.

length Uint32

the length of the data to write.

Meta