# GpuBackend

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

GPU backend selector.

```ds title="GpuBackend"
export enum GpuBackend {
    Auto = 0,
    Vulkan = 1,
    Metal = 2,
    Dx12 = 3,
    Gl = 4,
    BrowserWebGpu = 5,
    Noop = 255,
}
```

[language/library/src/gpu/binding/adapter.ds:8:23](https://github.com/destack-sh/destack/blob/main/language/library/src/gpu/binding/adapter.ds#L8-L23)

## Variants

### `Auto = 0`

Select the best backend for the current host.

### `Vulkan = 1`

Vulkan backend.

### `Metal = 2`

Metal backend.

### `Dx12 = 3`

Direct3D 12 backend.

### `Gl = 4`

OpenGL or OpenGL ES backend.

### `BrowserWebGpu = 5`

Browser WebGPU backend.

### `Noop = 255`

No-op backend for tests and simulation.
