sdlCreateGpuGraphicsPipeline function
Pointer<SdlGpuGraphicsPipeline>
sdlCreateGpuGraphicsPipeline(
- Pointer<
SdlGpuDevice> device, - Pointer<
SdlGpuGraphicsPipelineCreateInfo> createinfo
Creates a pipeline object to be used in a graphics workflow.
\param device a GPU Context. \param createinfo a struct describing the state of the graphics pipeline to create. \returns a graphics pipeline object on success, or NULL on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
\sa SDL_CreateGPUShader \sa SDL_BindGPUGraphicsPipeline \sa SDL_ReleaseGPUGraphicsPipeline
extern SDL_DECLSPEC SDL_GPUGraphicsPipeline *SDLCALL SDL_CreateGPUGraphicsPipeline( SDL_GPUDevice *device, const SDL_GPUGraphicsPipelineCreateInfo *createinfo)
Implementation
Pointer<SdlGpuGraphicsPipeline> sdlCreateGpuGraphicsPipeline(
Pointer<SdlGpuDevice> device,
Pointer<SdlGpuGraphicsPipelineCreateInfo> createinfo) {
final sdlCreateGpuGraphicsPipelineLookupFunction = libSdl3.lookupFunction<
Pointer<SdlGpuGraphicsPipeline> Function(Pointer<SdlGpuDevice> device,
Pointer<SdlGpuGraphicsPipelineCreateInfo> createinfo),
Pointer<SdlGpuGraphicsPipeline> Function(Pointer<SdlGpuDevice> device,
Pointer<SdlGpuGraphicsPipelineCreateInfo> createinfo)>(
'SDL_CreateGPUGraphicsPipeline');
return sdlCreateGpuGraphicsPipelineLookupFunction(device, createinfo);
}