summaryrefslogtreecommitdiff
path: root/src/host/Timing.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-16 22:02:43 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit1cb36ee39a8bbc2cf61c28003670d760841d6d3e (patch)
treed7d01eb5b3a40920a8f71d091a106561ca56b282 /src/host/Timing.zig
parent6933f99ddb2d7103515d26838496309a807bba26 (diff)
downloadsketchbook-1cb36ee39a8bbc2cf61c28003670d760841d6d3e.tar.gz
sketchbook-1cb36ee39a8bbc2cf61c28003670d760841d6d3e.zip
gpu: add a post-process pass with optional depth sampling, and describe the executor pardes shares
`f.postProcess(source, target, .{...})` records a fullscreen pass that samples a completed render into a distinct target image: colour at fragment binding 0 and, with `sample_depth`, depth at 1, which needs the source's latest pass to have depth and one sample (missing depth, multisampled depth and feedback loops are rejected). The scene format's version 4 carries it, the executor records it on the caller's command buffer and owns the sampler, the web host does the same with its texture and sampler pairs, and native profiling reports the work as `postprocess`. The README says how to use it. docs/pardes-rendering.md describes the executor as pardes uses it for addon scenes: a borrowed SDL GPU device, `record` into the caller's command buffer, `run`, `output` and `postProcess`. The working copy as it stood on 2026-11-16; message written by Claude from the diff, at the author's request.
Diffstat (limited to 'src/host/Timing.zig')
0 files changed, 0 insertions, 0 deletions