menu

GpuDevice

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

GPU device.

language/library/src/gpu/binding/device.ds:86:101
1export struct GpuDevice {2    backend: GpuBackend;3    enabledFeatures: [GpuFeatureId];4    effectiveLimits: GpuAdapterLimits;5    queueCount: uint32;6    hasTimelineSync: boolean;7    hasTimestampQueries: boolean;8    hasPushConstants: boolean;9}

Members

backend: GpuBackend

Chosen backend for this device.

enabledFeatures: [GpuFeatureId]

Feature identifiers enabled on this device.

effectiveLimits: GpuAdapterLimits

Effective device limits.

queueCount: uint32

Default queue count visible to the runtime.

hasTimelineSync: boolean

Whether timeline synchronization is available.

hasTimestampQueries: boolean

Whether timestamp queries are available.

hasPushConstants: boolean

Whether push constants are available.