Family G. A render case with a depth/stencil attachment stayed on the
executor's own context. A vertex or fragment case whose attachment has
one sample and one aspect now draws through the runtime
(engine::runs_render_through_runtime), observing a buffer, a texture, a
color target, the attachment's aspect or nothing; a fragment case with
the attachment and no color target renders, as the attachment is the
pass's.
The attachment is made as the oracle makes it (Metal's separate
Depth32Float and Stencil8, Shared, of RenderTarget usage):
- a Depth32Float is filled by a draw of its depths (runtime_depth), as a
32-bit float depth texture is, since the runtime takes no upload of one
(Gap::FloatDepthUpload); a depth outside [0, 1] stays
DepthOutsideUnitRange;
- a Stencil8 is written from its bytes with replace_region.
The pass loads and stores it; the draw's depth-stencil state, stencil
references and pipeline depth and stencil formats were already the
oracle's. The final aspect is read back with get_bytes into the run's
RenderFinals, from which the depth or stencil output is selected.
An attachment of both aspects is the oracle's two textures, which the
runtime renders into in no one pass (Gap::RenderPass of
DepthStencilViews; its pipeline Gap::RenderPipeline of
DepthStencilFormats): such a case, and one of more samples (family H),
stays on the executor's own context.
Rows: of the committed cases, 21 fragment cases are family G's (one
sample, the rest of E/F's structure): 16 stencil-only observing stencil,
2 depth-only (one observing depth, one, private, a color target), and 3
of both aspects observing stencil, which stay where they were. Expected:
the 18 one-aspect cases run through the runtime; the family G proof reads
them.
ENGINE_EXECUTOR_ABI to vulkan-engine-v195.
Tests: a_plain_draw_and_only_one_runs_through_the_runtime (a depth or a
stencil attachment, observed or not, routes; one of both aspects or of 4
samples does not); the device test
a_fragment_case_writes_its_depth_and_stencil_attachment draws each
aspect alone through the runtime on Linux (depth 0.5 over 1.0, stencil 7
over 0xab).
Verified: cargo fmt; the compile gate and the family G proof follow as
potluck jobs.