What: the first cut of Metal indirect command buffers, the translator's half.
- pipeline::IndirectDrawLayout (public): the record contract the runtime and the lowering share.
A 24-byte header (capacity, vertex and fragment slot counts and stride as u32, then the reset
index address as u64 at 16), then command i at 24 + i * stride, stride = 8 (Nv + Nf) + 40:
the slot words (the buffer's address less 2^31, the word an execution pushes as the slot's
SlotGuestBase), the index token's data, the sequence index and VkDrawIndexedIndirectCommand.
- lower/access/icb.rs: under the identity domains, a function's render_command
set_vertex_buffer, set_fragment_buffer, draw_indexed_primitives of triangles and reset write
the records through the gpuResourceID an argument buffer's command_buffer member holds, each
only where the command's index is below the capacity (and a slot below its stage's count).
Every other indirect-command operation stays Unsupported{GpuEncodedIndirectCommands,
NotImplemented}; a vertex or fragment function without its stage's store feature and a device
without device addresses refuse by name.
- LoweringInputs::indirect_range with PushField::IndirectRange, PushField::IndirectSequence and
PushField::IndirectBase: a vertex function of a state made with supportIndirectCommandBuffers
reads the execution's range and its command (the sequence index plus its part's first command)
in its first block and draws nothing for a command outside the range, so an execution over a
range a buffer holds runs at full capacity (one SEQUENCE_INDEX token), in parts. Such a state's
vertex function pulls every attribute it reads.
- Fixture engine/icb_indexed_extras (MSL we wrote, regenerated by scripts/regen-air-fixtures):
a reset kernel, a vertex function that reads before its buffer's address, and one of fourteen
vertex buffers (a state of more tokens than lavapipe's 16). Inventory rows added by hand (the
fourteen-buffer vertex function's thirteen constant buffers pass the runtime floor's twelve);
the golden hash rows, the air_input printout and the old render descriptor key come with
development's bless.
- SEMANTICS_VERSION 2252 and ARTIFACT_FORMAT_VERSION 586 are placeholders one above
development's (2251 and 585); the lowering's emission and the encoded lowering inputs change.
- docs/API.md states the forms; docs/REFUSALS.md regenerated; api_surface and api_signatures
carry IndirectDrawLayout.
Why: the cutover's guests encode indexed draws into indirect command buffers from kernels, which
the identity domains refused.
Verified: see the lane's report (compile gate and test jobs, the states-only play).