---
name: "SDL_GPUVertexAttribute"
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_GPUVertexAttribute"
---

# SDL\_GPUVertexAttribute(3type)

A structure specifying a vertex attribute.

## NAME

SDL\_GPUVertexAttribute - A structure specifying a vertex attribute.

## HEADER FILE

Defined in SDL3/SDL\_gpu.h

## SYNOPSIS

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

**typedef struct SDL\_GPUVertexAttribute** **{**     **Uint32 location;                    /\*\*\< The shader input location index. \*/**     **Uint32 buffer\_slot;                 /\*\*\< The binding slot of the associated vertex buffer. \*/**     **SDL\_GPUVertexElementFormat format;  /\*\*\< The size and type of the attribute data. \*/**     **Uint32 offset;                      /\*\*\< The byte offset of this attribute relative to the start of the vertex element. \*/** **} SDL\_GPUVertexAttribute;**

## DESCRIPTION

All vertex attribute locations provided to an

**SDL\_GPUVertexInputState**\
  must be unique.

## AVAILABILITY

This struct is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_GPUVertexBufferDescription**(3type)](/SDL_GPUVertexBufferDescription/3type.md), **•**(3), [**SDL\_GPUVertexInputState**(3type)](/SDL_GPUVertexInputState/3type.md), **•**(3), [**SDL\_GPUVertexElementFormat**(3type)](/SDL_GPUVertexElementFormat/3type.md)
