diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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`), |
