summaryrefslogtreecommitdiff
path: root/src/Stream.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 03:50:16 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commit2d0cb01f1e060c9cf182df491a077cd10d4bfb11 (patch)
tree7f5483809a0bca9e45d9bddc641b2a4dd37406b3 /src/Stream.zig
parent1d4015b1b9740a894bea288dadb11d212eceff73 (diff)
downloadpardes-2d0cb01f1e060c9cf182df491a077cd10d4bfb11.tar.gz
pardes-2d0cb01f1e060c9cf182df491a077cd10d4bfb11.zip
gui: presentation is sketchbook's (src/gpu/Present.zig), moved as it was, the third step of the GPU move: the device, the window's claim or the soft presenter (a transparent Wayland window, or a claim refused), the present mode, frames in flight and the swapchain's format (runNative), the window's release and claim again (closeWindow, reopenWindow: Present.detach and attach, the window passed in), the frame's target (acquireTarget), the soft present (its renderer, texture and formats, the read back into the capture transfer buffer, the flip), the capture texture and its read back leave gui.zig; Present.init logs what runNative logged, under the gui scope; the Gui holds a pointer to runNative's Present (`present`, its device still `device`), which releases the capture's texture and transfer buffer before the device at the end (they were released in the Gui's defer, beside the gamepad); gui.zig keeps what it writes: captureFrame takes the frame Present.readFrame maps (its submit and fence times for the latency trace, as measured before) and writes latest and the series as before, writeCapturePpm asks Present.bgr for the byte order, and PARDES_FRAMES_CAPTURE is the soft present's frame tap (captureSeries, which reads its directory itself); a soft present's wait, upload and flip come back as Present.Timings and go to the frame probe's zones; releaseWindowParts, which nothing calls, loses the capture's two lines; frame corpus unchanged (77 frames)
Diffstat (limited to 'src/Stream.zig')
0 files changed, 0 insertions, 0 deletions