sdlPushGpuComputeUniformData function
void
sdlPushGpuComputeUniformData(
- Pointer<
SdlGpuCommandBuffer> commandBuffer, - int slotIndex,
- Pointer<
NativeType> data, - int length,
Pushes data to a uniform slot on the command buffer.
Subsequent draw calls will use this uniform data.
\param command_buffer a command buffer. \param slot_index the uniform slot to push data to. \param data client data to write. \param length the length of the data to write.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC void SDLCALL SDL_PushGPUComputeUniformData( SDL_GPUCommandBuffer *command_buffer, Uint32 slot_index, const void *data, Uint32 length)
Implementation
void sdlPushGpuComputeUniformData(Pointer<SdlGpuCommandBuffer> commandBuffer,
int slotIndex, Pointer<NativeType> data, int length) {
final sdlPushGpuComputeUniformDataLookupFunction = libSdl3.lookupFunction<
Void Function(Pointer<SdlGpuCommandBuffer> commandBuffer,
Uint32 slotIndex, Pointer<NativeType> data, Uint32 length),
void Function(
Pointer<SdlGpuCommandBuffer> commandBuffer,
int slotIndex,
Pointer<NativeType> data,
int length)>('SDL_PushGPUComputeUniformData');
return sdlPushGpuComputeUniformDataLookupFunction(
commandBuffer, slotIndex, data, length);
}