# GpuVertexAttribute

`import { GpuVertexAttribute } from "destack:gpu/binding";`

Vertex attribute descriptor.

```ds title="GpuVertexAttribute"
export struct GpuVertexAttribute {
    format: GpuVertexFormat;
    offset: uint64;
    shaderLocation: uint32;
}
```

[language/library/src/gpu/binding/pipeline.ds:179:186](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/pipeline.ds#L179-L186)

## Members

### `format: GpuVertexFormat`

Vertex attribute format selector.

### `offset: uint64`

Byte offset for this attribute within one vertex element.

### `shaderLocation: uint32`

Shader location index.
