logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_CreateGPUGraphicsPipeline - Creates a pipeline object to be used in a graphics workflow.

Availability

       This function is available since SDL 3.2.0.

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.

Header File

       Defined in SDL3/SDL_gpu.h

Name

       SDL_CreateGPUGraphicsPipeline - Creates a pipeline object to be used in a graphics workflow.

Return Value

       ( SDL_GPUGraphicsPipeline
        *) Returns a graphics pipeline object on success, or NULL on failure; call

       SDL_GetError () for more information.

See Also

(3),         SDL_CreateGPUShader(3),         (3),         SDL_BindGPUGraphicsPipeline(3),         (3),
       SDL_ReleaseGPUGraphicsPipeline(3)

Simple Directmedia Layer                           SDL 3.2.10                   SDL_CreateGPUGraphicsPipeline(3)

Synopsis

#include"SDL3/SDL.h"SDL_GPUGraphicsPipeline*SDL_CreateGPUGraphicsPipeline(SDL_GPUDevice*device,constSDL_GPUGraphicsPipelineCreateInfo*createinfo);

See Also