Draw Half of a Piece¶
The draw half runs in the viewer every frame as a render graph over the published resources, with its own targets, blending and depth, and the host removes a draw that goes over its time or memory budget.
| Field | Value |
|---|---|
| ID | REN-79 |
| Status | Shipped |
| Scope | Core |
| Pillar | Rendering and 3-D |
| Sprint | None |
| Depends On | Programmable Graphics (REN-77) |
| Unblocks | Piece Library (REN-80)Picking of Program Items ( REN-81)Browser Draw Runtime ( REN-82)Indexed Piece Draws ( REN-91) |
| Docs | Pieces, Draw Half |
| Branches | None |
| Design | None |
Coverage Ledger¶
- Pieces, Draw Half. The draw half has a camera, draw buffers, offscreen targets, passes, an item map, text and limits.
- Pieces, Draw Half. A pass is compute or render, with entries, instances, vertices, topology, blend, depth and pick.
- Pieces, Draw Prelude. One fixed WGSL prelude of group 0 for every draw pass in the app and the browser.
- Pieces, Draw Prelude. The prelude file that the app and the browser module embed.
- Pieces, Generated Header. The composer writes every binding of both halves from the manifest.
- Pieces, Generated Header. Params come from the manifest and follow controls, selections and state.
- Pieces, Draw Half. The declared passes of a draw half, which the host orders and allocates.
- Pieces, Draw Half. Passes run in order after the scene's draws, with full-screen triangles by default.
- Pieces, Draw Half. The host target and rgba8unorm offscreen targets, never read by the pass that writes them.
- Pieces, Draw Half. The allowed topology, blend and depth values and their defaults.
- Pieces, Draw Half. Draw buffers keep state between frames and reset by declared rules.
- Pieces, Draw Budget and Removal. A draw over its budget is removed and reported by name.
- Pieces, Program Text. Pieces publish label anchors and strings, and the host places and draws them.
- Pieces, Camera. The host owns the camera, and a piece selects orbit, pan-zoom or none.