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

# SDL\_GPUComputePipelineCreateInfo(3type)

A structure specifying the parameters of a compute pipeline state.

## NAME

SDL\_GPUComputePipelineCreateInfo - A structure specifying the parameters of a compute pipeline state.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**typedef struct SDL\_GPUComputePipelineCreateInfo** **{**     **size\_t code\_size;                       /\*\*\< The size in bytes of the compute shader code pointed to. \*/**     **const Uint8 \*code;                      /\*\*\< A pointer to compute shader code. \*/**     **const char \*entrypoint;                 /\*\*\< A pointer to a null-terminated UTF-8 string specifying the entry point function name for the shader. \*/**     **SDL\_GPUShaderFormat format;             /\*\*\< The format of the compute shader code. \*/**     **Uint32 num\_samplers;                    /\*\*\< The number of samplers defined in the shader. \*/**     **Uint32 num\_readonly\_storage\_textures;   /\*\*\< The number of readonly storage textures defined in the shader. \*/**     **Uint32 num\_readonly\_storage\_buffers;    /\*\*\< The number of readonly storage buffers defined in the shader. \*/**     **Uint32 num\_readwrite\_storage\_textures;  /\*\*\< The number of read-write storage textures defined in the shader. \*/**     **Uint32 num\_readwrite\_storage\_buffers;   /\*\*\< The number of read-write storage buffers defined in the shader. \*/**     **Uint32 num\_uniform\_buffers;             /\*\*\< The number of uniform buffers defined in the shader. \*/**     **Uint32 threadcount\_x;                   /\*\*\< The number of threads in the X dimension. This should match the value in the shader. \*/**     **Uint32 threadcount\_y;                   /\*\*\< The number of threads in the Y dimension. This should match the value in the shader. \*/**     **Uint32 threadcount\_z;                   /\*\*\< The number of threads in the Z dimension. This should match the value in the shader. \*/**     **SDL\_PropertiesID props;                 /\*\*\< A properties ID for extensions. Should be 0 if no extensions are needed. \*/** **} SDL\_GPUComputePipelineCreateInfo;**

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateGPUComputePipeline**(3)](/SDL_CreateGPUComputePipeline/3.md), **•**(3), [**SDL\_GPUShaderFormat**(3type)](/SDL_GPUShaderFormat/3type.md)
