Files
metal2vulkan/docs
Anees Iqbal 42f9e9137f rt: a pass keeps its visibility result buffer; Disabled is the visibility mode built
The two tessellation streams' render passes set a visibility result buffer and
enable no mode; rt skipped every such encoder (Unheld(visibilityResultBuffer)).
On an Apple M3 Max (macOS 27.0.1, job m3-max-51220) a pass with the buffer and
no mode leaves the buffer's bytes as they were under Reset and under Accumulate,
so the planner's minimal form is exact and carries no note.

- RenderPassDescriptor.visibility_result_buffer: checked for its device
  (Refusal::OtherDevice) and kept by the command buffer until it retires, as
  Metal's pass holds it. It declares no access and joins no hazard set: no
  command of the pass reaches it.
- RenderCommandEncoder::set_visibility_result_mode: Disabled at any offset is a
  no-op; Boolean and Counting are Gap::Draw of the new DrawKind::VisibilityResults.
- visibilityResultType is not a field: it decides only what an enabled mode
  writes.
- Device test: the pass draws, the buffer's gauge holds after the test's handle
  is gone and falls once the command buffer retires, its bytes are unchanged,
  and the pass takes the submissions, barriers and passes of one without it.
- Conformance: the rt side passes the buffer and the mode; new cases
  visibility-disabled-reset and visibility-disabled-accumulate (no mode in one
  pass, Disabled at both words in the next); recordings follow from the M3.
- Player: setPass's visibilityResultBuffer goes into the new field (a skipped
  buffer still marks the pass unheld).
- rt README, api_signatures and docs/REFUSALS.md regenerated.

Verified: cargo fmt only so far; builds, clippy and device legs follow as
potluck jobs.
2026-11-19 03:30:37 -08:00
..