<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sketchbook.git/src/gpu/Cells.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 frame recording to Cells</title>
<updated>2026-11-17T15:15:01Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T08:05:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/sketchbook.git/commit/?id=83527d21ac42adc16d59ad8bfffebd132a5ef98b'/>
<id>urn:sha1:83527d21ac42adc16d59ad8bfffebd132a5ef98b</id>
<content type='text'>
Moved from pardes's src/gui/gui.zig (step S4b, the last of moving its
renderer here): begin and submit acquire a frame's command buffer and
give a frame up; mapCells grows and maps the cell instance buffer for
the embedder to write in place; uploadCells sends it after the atlas's
dirty rows; record makes the frame's render pass, cleared to the
embedder's colour, and draws its groups (Group: cells, then pictures,
then decor, each a run of instances), a scroll's shifted rows clipped to
the rectangle given, then the overlay. uploadAtlas, drawImages,
pushLayerOpacity and drawOverlay are Cells' own now.
</content>
</entry>
<entry>
<title>Add pardes's cell resources, pictures, overlay and atlas upload</title>
<updated>2026-11-17T15:15:01Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T07:36:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/sketchbook.git/commit/?id=ada7e4137d66aa7c7c463bb8521c0db4e7fac18a'/>
<id>urn:sha1:ada7e4137d66aa7c7c463bb8521c0db4e7fac18a</id>
<content type='text'>
Moved from pardes's src/gui/gui.zig (step S4a of moving its renderer
here): Cells is now a struct over the embedder's device and swapchain
format holding the four pipelines (and the addon one, made on first
use), the glyph atlas's texture, nearest sampler and upload buffer, the
pictures' linear sampler, the cells', pictures' and overlay's buffers,
and the pictures' textures by key. init and deinit make and release
them; image uploads a picture's RGBA, or only its dirty rows into the
texture of the picture it replaces; mapImages, uploadImages and
drawImages carry the frame's picture instances and draws, an
ImageDraw's texture either one of Cells' own or the caller's, borrowed
(an addon's premultiplied output); uploadAtlas sends the Atlas's dirty
rows; uploadOverlay, pushLayerOpacity and drawOverlay the overlay's
triangles. The SPIR-V is the embedder's `&lt;name&gt;.spv` imports; Cells.zig
imports the Atlas as `font_atlas`.
</content>
</entry>
<entry>
<title>Add pardes's cell shaders, instance ABI and GPU resource helpers</title>
<updated>2026-11-17T15:15:01Z</updated>
<author>
<name>Gabriel Schneider</name>
<email>gbrls@0x4200.cafe</email>
</author>
<published>2026-11-17T04:48:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0x4200.cafe/sketchbook.git/commit/?id=43151809dac7041bd04bb5181abf7f1182ffea7f'/>
<id>urn:sha1:43151809dac7041bd04bb5181abf7f1182ffea7f</id>
<content type='text'>
Moved verbatim from pardes's src/gui/gui.zig (step S1 of moving its
renderer here): the seven GLSL shaders and their committed SPIR-V under
src/gpu/shaders/, and src/gpu/Cells.zig with the instance structs the
shaders read, the vertex inputs, makePipeline, the layer blend, texture2d
and growInstances (which takes the device instead of pardes's Gui).
Cells.zig imports the embedder's own SDL translation as `c`; pardes
compiles it from this checkout. `zig build shaders` refreshes the
prebuilt SPIR-V.
</content>
</entry>
</feed>
