SDL_CreateGPUGraphicsPipeline - Man Page
Creates a pipeline object to be used in a graphics workflow.
Header File
Defined in SDL3/SDL_gpu.h
Synopsis
#include "SDL3/SDL.h" SDL_GPUGraphicsPipeline * SDL_CreateGPUGraphicsPipeline( SDL_GPUDevice *device, const SDL_GPUGraphicsPipelineCreateInfo *createinfo);
Description
There are optional properties that can be provided through props . These are the supported properties:
· SDL_PROP_GPU_GRAPHICSPIPELINE_CREATE_NAME_STRING :
a name that can be displayed in debugging tools.
Function Parameters
- device
a GPU Context.
- createinfo
a struct describing the state of the graphics pipeline to create.
Return Value
( SDL_GPUGraphicsPipeline
*) Returns a graphics pipeline object on success, or NULL on failure; call
SDL_GetError () for more information.
Availability
This function is available since SDL 3.2.0.
See Also
·(3), SDL_CreateGPUShader(3), ·(3), SDL_BindGPUGraphicsPipeline(3), ·(3), SDL_ReleaseGPUGraphicsPipeline(3)
Referenced By
SDL_CreateGPUShader(3), SDL_GPUBlendFactor.3type(3), SDL_GPUBlendOp.3type(3), SDL_GPUColorComponentFlags.3type(3), SDL_GPUCompareOp.3type(3), SDL_GPUCullMode.3type(3), SDL_GPUFillMode.3type(3), SDL_GPUFrontFace.3type(3), SDL_GPUGraphicsPipeline.3type(3), SDL_GPUGraphicsPipelineCreateInfo.3type(3), SDL_GPUIndexElementSize.3type(3), SDL_GPUPrimitiveType.3type(3), SDL_GPUShader.3type(3), SDL_GPUStencilOp.3type(3), SDL_GPUVertexElementFormat.3type(3), SDL_GPUVertexInputRate.3type(3).