<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sketchbook.git/src/gpu/Present.zig, branch main</title>
<subtitle>A small Zig platform for sketching games and toys</subtitle>
<id>https://git.0x4200.cafe/sketchbook.git/atom?h=main</id>
<link rel='self' href='https://git.0x4200.cafe/sketchbook.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/sketchbook.git/'/>
<updated>2026-11-17T15:15:01Z</updated>
<entry>
<title>Add pardes's presentation on SDL_GPU</title>
<updated>2026-11-17T15:15:01Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T06:50:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/sketchbook.git/commit/?id=df1d47d4fddd4165bdf511f4056d8075562a663e'/>
<id>urn:sha1:df1d47d4fddd4165bdf511f4056d8075562a663e</id>
<content type='text'>
Moved from pardes's src/gui/gui.zig (step S3 of moving its renderer
here): src/gpu/Present.zig, the device, the window's claim or a software
presenter through SDL_Renderer (a transparent window, which the GPU API
will not claim, or a claim refused), the present mode and frames in
flight, detach and attach for a window closed and opened again, the
frame's target (the swapchain's image, or a capture texture in test mode
and for the soft presenter), the soft present (the frame read back, put
in a streaming texture and flipped) and a captured frame's read back.
The window stays the embedder's and is passed in where it is used. What
pardes did inside these with its own state comes back instead: a soft
present's phase times (Timings), each presented frame's pixels through a
frame tap, a captured frame's mapped bytes and times (readFrame, then
releaseFrame) and their byte order (bgr). Present.zig imports the
embedder's SDL translation as `c` and Cells.zig as `gpu_cells`.
</content>
</entry>
</feed>
