---
name: "SDL_GPUShaderCreateInfo"
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_GPUShaderCreateInfo"
---

# SDL\_GPUShaderCreateInfo(3type)

A structure specifying code and metadata for creating a shader object.

## NAME

SDL\_GPUShaderCreateInfo - A structure specifying code and metadata for creating a shader object.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**typedef struct SDL\_GPUShaderCreateInfo** **{**     **size\_t code\_size;             /\*\*\< The size in bytes of the code pointed to. \*/**     **const Uint8 \*code;            /\*\*\< A pointer to 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 shader code. \*/**     **SDL\_GPUShaderStage stage;     /\*\*\< The stage the shader program corresponds to. \*/**     **Uint32 num\_samplers;          /\*\*\< The number of samplers defined in the shader. \*/**     **Uint32 num\_storage\_textures;  /\*\*\< The number of storage textures defined in the shader. \*/**     **Uint32 num\_storage\_buffers;   /\*\*\< The number of storage buffers defined in the shader. \*/**     **Uint32 num\_uniform\_buffers;   /\*\*\< The number of uniform buffers defined in the shader. \*/**     **SDL\_PropertiesID props;       /\*\*\< A properties ID for extensions. Should be 0 if no extensions are needed. \*/** **} SDL\_GPUShaderCreateInfo;**

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateGPUShader**(3)](/SDL_CreateGPUShader/3.md)
