menu
GpuBackend
import { GpuBackend } from "destack:gpu/binding";
GPU backend selector.
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 = 0Select the best backend for the current host.
Vulkan = 1Vulkan backend.
Metal = 2Metal backend.
Dx12 = 3Direct3D 12 backend.
Gl = 4OpenGL or OpenGL ES backend.
BrowserWebGpu = 5Browser WebGPU backend.
Noop = 255No-op backend for tests and simulation.