Files
metal2vulkan/docs
Anees Iqbal e2491fe2b7 Read a rasterizing state's void-vertex answer from its compile, not a question
2f44dda930's render creations asked whether the vertex function returns a
value on every creation, so each plain creation counted one more linked-use
question, one more specialized stage entry and one more shared one than its
cost record (159 cases over bounds in the whole-set replay, all those counts).

The question now runs only where the state turns on it before its compile:
with rasterization disabled, and in OpenGL mode. A rasterizing state outside
OpenGL mode takes the answer from the vertex entry its compile specializes
anyway: the link refuses a rasterizing render pipeline whose vertex stage
writes no position (new DescriptorError::RasterizedVoidVertex), and the
runtime answers that refusal as Metal's error for a rasterizing void vertex
function, as before. The linked-use answers cache treats the vertex answer as
owed only where the creation asks it.

Tests: a link test refuses a rasterizing void vertex function with and
without a fragment, and makes it with rasterization disabled; a runtime test
counts one plain render creation at two specialized stage entries and two
linked-use questions. api_signatures and REFUSALS.md regenerated.

Not yet verified: suites, clippy and the M3 cost records follow.

(cherry picked from commit 7f8536158d856886ebedac8c0b6130ff32d22a31)
2026-11-07 14:02:58 -08:00
..