Files
metal2vulkan/docs
Anees Iqbal 5b653bc1d4 Validation: a kernel case's argument buffers of buffers, textures and samplers run through the runtime
What: runs_through_runtime now routes a kernel case whose argument buffers hold buffers, textures
the runtime makes (`runtime_texture`) or samplers, observing a buffer, a texture, an
argument-buffer buffer or texture, or nothing. A pipeline state, a command buffer or a
rasterization-rate map in an argument buffer still keeps the case on the executor's own context.

How, as the Metal oracle does (metal::platform::argument_buffers):
- Each argument-buffer buffer is a Shared buffer of its bytes.
- Each argument-buffer texture is made as a bound one, with the usage its AIR member declares
  (runtime_member_usages), at an index of the run's texture grant after the bound textures.
- Each argument-buffer sampler is its argument_sampler_descriptor at an index of the sampler
  grant below the bound samplers.
- The owner's bytes hold each member's gpu_address or gpu_resource_id().to_bits() at its field
  (engine::argument_buffers::owner_bytes), written before the owner is made, as a program writes
  them.
- The encoder uses each member buffer and texture for reading and writing (use_resource).
- An argument-buffer buffer output reads the member's final bytes; an argument-buffer texture
  output is read back as a bound texture's.

ENGINE_EXECUTOR_ABI is now vulkan-engine-v189. docs/VALIDATION.md's "Through the runtime" names
argument buffers.

Tests:
- The routing test routes a case of all three member kinds under both member outputs, and keeps
  a texture-buffer member off the runtime.
- Three device tests run on the executor's own context and, on Linux, through the runtime:
  - selected_member_texture: two argument-buffer textures chosen per thread;
  - argument_sampler_sample: an argument-buffer sampler sampling its member texture;
  - ob2_loaded_pointer, in bounds: an argument-buffer buffer loaded into `out` and stored
    through, observed in the member.

Verified: in the lane's report (the compile gate and the family's proof, its 20 committed cases
on lavapipe against committed Metal, before and after).
2026-11-20 17:44:53 -08:00
..