summaryrefslogtreecommitdiff
path: root/src/vector/Cpu.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 04:36:56 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commitada7e4137d66aa7c7c463bb8521c0db4e7fac18a (patch)
tree8ac9367dbb1a0a6c97c88f0acbfb938702aa46f7 /src/vector/Cpu.zig
parentdf1d47d4fddd4165bdf511f4056d8075562a663e (diff)
downloadsketchbook-ada7e4137d66aa7c7c463bb8521c0db4e7fac18a.tar.gz
sketchbook-ada7e4137d66aa7c7c463bb8521c0db4e7fac18a.zip
Add pardes's cell resources, pictures, overlay and atlas upload
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 `<name>.spv` imports; Cells.zig imports the Atlas as `font_atlas`.
Diffstat (limited to 'src/vector/Cpu.zig')
0 files changed, 0 insertions, 0 deletions