menu

DeviceLimits

import { DeviceLimits } from "destack:compute";

Portable compute limits for one device.

language/library/src/compute/capability.ds:35:65
1export struct DeviceLimits {2    maxBufferBytes: usize;3    minBufferAlignment: usize;4    maxWorkgroupsX: uint32;5    maxWorkgroupsY: uint32;6    maxWorkgroupsZ: uint32;7    maxWorkgroupSizeX: uint32;8    maxWorkgroupSizeY: uint32;9    maxWorkgroupSizeZ: uint32;10    maxWorkgroupInvocations: uint32;11    maxWorkgroupMemoryBytes: usize;12}

Members

maxBufferBytes: usize

Maximum bytes in one buffer.

minBufferAlignment: usize

Minimum byte alignment for buffer offsets.

maxWorkgroupsX: uint32

Maximum workgroups in x.

maxWorkgroupsY: uint32

Maximum workgroups in y.

maxWorkgroupsZ: uint32

Maximum workgroups in z.

maxWorkgroupSizeX: uint32

Maximum workgroup size in x.

maxWorkgroupSizeY: uint32

Maximum workgroup size in y.

maxWorkgroupSizeZ: uint32

Maximum workgroup size in z.

maxWorkgroupInvocations: uint32

Maximum invocations in one workgroup.

maxWorkgroupMemoryBytes: usize

Maximum bytes of workgroup memory.