cheatah
Struct

gpu::dispatch::Dim3

cheatah-gpu v0.5.1-alpha — Biome Standard 0.6.3-alpha

Three-dimensional dispatch extents — the (x, y, z) triple every GPU dispatch interface takes, whether it is vkCmdDispatch(x, y, z) or Metal's MTLSize.

Also spells problem sizes and per-axis device limits (maxComputeWorkGroupCount[3]), so one type serves items, local sizes, workgroup counts, and clamps. Unused axes default to 1 — a 1-D dispatch is Dim3{items} — matching how the hardware treats a missing axis (one slice, not zero).

Unit testDispatch.Dim3Defaults
Compile-run testsystests/test_dispatch_cr_dim3.purr
System testsystests/test_dispatch.purr

Constants & variables

var std::uint32_t x #

extent on X — the only axis a 1-D dispatch sizes.

var std::uint32_t y #

extent on Y; 1 when unused.

var std::uint32_t z #

extent on Z; 1 when unused.