summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index e38889f..225f87c 100644
--- a/README.md
+++ b/README.md
@@ -1170,6 +1170,17 @@ released by the host on session reset; call `model.release(host)` to release the
earlier. Vertex storage layout and shader uniform layout are checked at comptime;
GLSL uniform declarations are generated from the Zig types.
+A separate fullscreen pass can sample a completed render with
+`f.postProcess(source, target, .{ .vertex = vertex_shader, .fragment = fragment_shader,
+.sample_depth = true, .fragment_uniforms = uniforms })`. Allocate distinct source
+and target images in setup, then draw the target image after this command.
+Native fragment bindings are color at 0 and depth at 1 (set 2). Web GLSL uses
+separate texture/sampler pairs at 0/1 and 2/3 (set 2). Fragment uniforms use set 3,
+binding 0. Depth sampling requires the source's latest pass to have `.depth = true`
+and `.samples = 1`; missing depth, multisampled depth and feedback loops are
+rejected. Omit `sample_depth` for a color-only pass. Native profiling reports this
+work separately as `postprocess`.
+
`profile` also includes `p95_ms` and `p99_ms`: nearest-rank percentiles of the
latest 2048 measured commands per label. Mean and worst cover every command since
reset. `profile-trace` exposes those retained samples as CSV (`label,sample,ns`),