tessellation_states_tessellate_as_metals draws two triangle patches through a
post-tessellation vertex function of our own, tests/shaders/render_tess_bump.
The function pushes the edge between control points 0 and 1 down by a bump of
its position along that edge, so the target shows where the tessellator put
the edge's vertices. Its fragment function colours front faces blue and back
faces red.
The test draws Metal's defaults and one case for each field that changes
pixels: each other partition mode, a maximum factor of 2, counter-clockwise
winding, a per-patch step function, a factor scale of 2, and UInt16 control
point indices through the stage-in variant. Each 32x16 target must equal
Metal's bytes. The answers were measured on the M3 Max under macOS 27.0.1 by
the recorder beside them, which draws the same cases on Metal itself. They
match on RADV (780M and 7900 XTX) and on NVIDIA (RTX 2080).
The factor format and the call stack depths have no pixel case. Half is the
only factor format Metal has. A call stack depth bounds calls through function
pointers, and going past it is undefined, so no defined result shows it. The
decoder's and the recorder's tests hold that both reach the runtime.
compute_state_answers_are_metals_for_every_kernel_here reads every test
metallib. Its recorder, run on the 53 metallibs the test now reads, printed
the file's 201 answers and three more, None for each of the new library's
functions. Those three are added from its output.