menu

GpuBackend

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

GPU backend selector.

language/library/src/gpu/binding/adapter.ds:8:23
1export enum GpuBackend {2    Auto = 0,3    Vulkan = 1,4    Metal = 2,5    Dx12 = 3,6    Gl = 4,7    BrowserWebGpu = 5,8    Noop = 255,9}

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.