The new runtime builds draws (its render encoder, render pipeline and
depth-stencil states), so the player's rt backend stops skipping render
encoders whole. It plays, on rt's API:
- newRenderPipelineStateWithDescriptor:error:, its constexpr samplers numbered
as a compute pipeline state's are (one helper, `numbered`, for both);
newDepthStencilStateWithDescriptor:; MTLRenderPassDescriptor.new and
.renderPassDescriptor with their m2v.setPass, m2v.setColorAttachment,
m2v.setDepthAttachment and m2v.setStencilAttachment setter records;
- renderCommandEncoderWithDescriptor: and the render encoder's calls the old
runtime's backend plays, with the vertex stage's textures and samplers, both
stages' bytes, cull mode, winding, blend color, and the draws' instance,
base-vertex and base-instance forms.
What rt does not build stays skipped and counted, honestly: a render pipeline
state rt answers with a typed gap or the translator refuses
(skipped_render_states); a parallel render encoder, or a render encoder of a
pass that holds what rt's descriptor does not (resolve textures, depth planes,
store action options, a visibility result buffer, layered or tile rendering, a
skipped texture) or that rt answers with a typed gap (skipped_encoders); and a
draw whose pipeline state, bound buffer or texture, or index buffer is a
skipped object (skipped_draws).
The render pipeline, depth-stencil and pass-key parsing moves from the old
backend's descriptors.rs to replay/translator.rs, shared by both backends, as
the sampler's is. docs/REPLAY-STREAM.md says what the rt backend plays and
counts.
Verified: lint of the validation crate (clippy in every cfg, the replay
tests, rustdoc); the device test that follows plays a draw on every device.