Skip to main content

Module kernels

Module kernels 

Source
Expand description

Per-kernel compute-pipeline cache.

Every kernel shares one descriptor-set layout (a single storage buffer = the arena, at binding 0) and one pipeline layout (that DSL + a 128-byte push-constant range, the Vulkan-guaranteed minimum). Per-op parameters (offsets, dims, selectors) travel entirely through push constants, so a single descriptor set bound to the arena serves every dispatch. Compute pipelines are compiled lazily from the embedded SPIR-V and cached.

Structs§

Kernels

Constants§

PUSH_CONSTANT_BYTES
Push-constant block size in bytes (Vulkan guarantees ≥ 128).

Functions§

kernels
The process-wide kernel cache, or None if no device.