Files
metal2vulkan/crates
Anees Iqbal 88d69b65b8 rt: argumentBuffersSupport is tier 2 on the floor, and device tests hold the four pieces tier 2 adds
Capability item 2, the planner's rule: a capability answer that promises runtime behaviour is
rt's to give, and a device test holds each promise. Apple's "Improving CPU performance by using
argument buffers" sets tier 2 against tier 1's limits. Tier 1 argument buffers can't hold
writable textures, must be immutable and CPU-accessible, and can't be pointer-indexed or point
at other argument buffers. rt had one device test over an argument buffer
(translate.rs, a CPU-written texture ID), so none of those four pieces was tested.

- Device::argument_buffers_support answers Tier2. The floor holds what tier 2 stands on: buffer
  device addresses, runtime descriptor arrays, partial binding, and update-after-bind of sampled
  and storage images (the translator's own tier rule, device/metal.rs). rt re-exports the
  translator's ArgumentBuffersTier.
- tests/argument_tier.rs, one device test a piece:
  - a8r_buffers' a8r_held reads and writes the read_write and write textures an argument
    buffer holds;
  - ab_tier2's ab_copy copies a texture member device to device, and ab_read reads through the
    copy;
  - ab_read reads through a Private argument buffer that a blit filled;
  - ab_indexed's thread g reads through element g of an array of argument buffers that a
    pointer member reaches.
- The conformance rt side answers argument_buffers_tier from the getter. The rt README states
  the answer; api_signatures.tsv is blessed (+6).

Verified: signatures.py, coverage.py and refusal_surface.py regenerate; build and the device
tests on each GPU follow.
2026-11-19 06:37:12 -08:00
..