sdlPushGpuVertexUniformData function
void
sdlPushGpuVertexUniformData(
- Pointer<
SdlGpuCommandBuffer> commandBuffer, - int slotIndex,
- Pointer<
NativeType> data, - int length,
Pushes data to a vertex uniform slot on the command buffer.
Subsequent draw calls will use this uniform data.
\param command_buffer a command buffer. \param slot_index the vertex 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_PushGPUVertexUniformData( SDL_GPUCommandBuffer *command_buffer, Uint32 slot_index, const void *data, Uint32 length)
Implementation
void sdlPushGpuVertexUniformData(Pointer<SdlGpuCommandBuffer> commandBuffer,
int slotIndex, Pointer<NativeType> data, int length) {
final sdlPushGpuVertexUniformDataLookupFunction = 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_PushGPUVertexUniformData');
return sdlPushGpuVertexUniformDataLookupFunction(
commandBuffer, slotIndex, data, length);
}