---
name: "SDL_CreateGPUGraphicsPipeline"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_CreateGPUGraphicsPipeline"
---

# SDL\_CreateGPUGraphicsPipeline(3)

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

## NAME

SDL\_CreateGPUGraphicsPipeline - 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)](/SDL_CreateGPUShader/3.md), **•**(3), [**SDL\_BindGPUGraphicsPipeline**(3)](/SDL_BindGPUGraphicsPipeline/3.md), **•**(3), [**SDL\_ReleaseGPUGraphicsPipeline**(3)](/SDL_ReleaseGPUGraphicsPipeline/3.md)
