Files
metal2vulkan/docs
Anees Iqbal 2aabffabb0 rt draws: a buffer bound off its argument's alignment is refused before the draw records anything, by the dispatch's shared check
Identity's Refusal::BufferOffsetAlignment (89bf650d2e) checked dispatches alone; a draw rounded the
address down to the argument's alignment (`address & !mask`) and drew from another place. The
draw now applies the same check to each buffer its vertex and fragment functions reach
(FieldValue::BufferAddress's mask, from RuntimeFact::AddressAlignment), after its other checks and
before anything is recorded, and pushes the address unrounded. The check is one function,
encoder::check_alignment(slot, mask, buffer, offset), which the compute encoder's
check_alignments loops over and the draw calls too; the refusal's doc names draws.

Test: every_device_refuses_a_draw_whose_buffer_is_off_its_alignment binds colored_vertex's float2
positions at 20 (alignment 8) and its float4 colours at 24 (alignment 16): each draw is refused
with the slot, offset and alignment; the buffers bound at 16 then draw the top half green, and the
pass is one submission, three barriers and one pass. REFUSALS.md regenerated.
2026-11-18 03:13:48 -08:00
..