| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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`.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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`.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Moved from pardes's src/gui/ (step S2 of moving its renderer here):
vendor/font.c and font.h, its FreeType and HarfBuzz shim, byte for byte,
and src/font/Atlas.zig, the glyph atlas from gui.zig: the faces (a
primary and fallbacks), the 2048x2048 R8 stage filled pen-style, the
slot of every glyph drawn, the dirty rows, the hand-drawn box rules,
underlines and strikethrough, and the centring of grip glyphs. The key's
bits are pardes's. What gui.zig read from its globals and its window
(the sizes, a centred glyph's cells, dp(1) for the line thickness) is
passed to each cachedGlyph; the frame probe stays in pardes. Atlas.zig
imports the embedder's translation of font.h as `c`, and the embedder
compiles font.c against its own FreeType and HarfBuzz and exports
ui_malloc and friends; the file's own tests (the raster, the rules, the
decorations, the dirty rows) export them over C's heap and run from
pardes's unit-test.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
| |
executor pardes shares
`f.postProcess(source, target, .{...})` records a fullscreen pass that samples a completed render into a distinct target image: colour at fragment binding 0 and, with `sample_depth`, depth at 1, which needs the source's latest pass to have depth and one sample (missing depth, multisampled depth and feedback loops are rejected). The scene format's version 4 carries it, the executor records it on the caller's command buffer and owns the sampler, the web host does the same with its texture and sampler pairs, and native profiling reports the work as `postprocess`. The README says how to use it.
docs/pardes-rendering.md describes the executor as pardes uses it for addon scenes: a borrowed SDL GPU device, `record` into the caller's command buffer, `run`, `output` and `postProcess`.
The working copy as it stood on 2026-11-16; message written by Claude from the diff, at the author's request.
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
Draw native GPU frames through the same bounded canvas used by headless capture. Backdrop commands reuse one snapshot and shader state, with an unchanged fallback on unsupported renderers. Verified through native debugger lenses, restart, and repeated font zoom checks.
|
| |
|
|
|
|
|
|
| |
canim keeps its table of places on the frame rather than in a process
global, so two players at once each have their own.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNCKgYCGiANnEwcEQxa
|
| |
|
|
| |
medium weight (.code_medium)
|
| |
|
|
| |
.code_italic), for programs
|
| |
|
|
| |
(f.textScaled), steady under a moving camera
|
| | |
|
| | |
|
| |
|
|
| |
host.textSizeIn, sk.Face)
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
with objects a scene draws itself
The player takes its canvas from the room it has and fits the scene's
frame into it, plays through and quits when exported, and draws vector
objects in runs around custom ones. The renderers' resvg comparison and
the timings come along as `zig build diff` and `zig build bench`; the
comparison's reference is padded to whole blocks rather than squeezed,
which had put Typst text over the limit.
Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
| |
|
|
|
|
| |
longer defragments (it lost a frame's first draws)
Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
| |
|
|
|
|
| |
a font from the environment
Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
| |
|
|
| |
Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
| | |
|
| |
|
|
| |
spectrum, spectrogram), audio codecs and fonts, web host
|
| |
|
|
|
|
| |
await FIELD VALUE plays frames until a state field holds the value, for up
to a minute: for waits whose length is the sketch's business, such as a line
of dialogue typing out.
|
| |
|
|
|
|
| |
The renderer's draw blend mode was left at SDL's default, none, so every
translucent fill (panels, labels, HUD bars) drew opaque natively while the
web honored alpha. It blends now.
|
| |
|
|
|
|
|
|
|
|
|
| |
- input.started: true on the first update of a run, never after a reload,
for a sketch to stop what should not resume from saved state.
- A console line that errors fails its script. Sketch commands answer
unknown, done or failed (abi.Outcome) instead of a bool that hid errors.
- addScript also takes the hot-reloadable library, run through the generic
host, so scripts can reload a real build.
- Sounds that do not load are .none, not an empty clip.
- sk_tag reads an enum field's tag name from the web build, for tests.
|
| |
|
|
|
|
|
|
| |
The offscreen hints lost to the environment: with SDL_VIDEO_DRIVER=wayland
set, every headless test and script opened a real window. They are
overrides now. The offscreen driver has no Vulkan surface on every driver,
so a headless host's GPU renderer gets no window and draws into a
canvas-sized texture, which screenshots read.
|
|
|
The root is the game. The platform library moves to lib/sketchbook (with
serve_web.py, which serves any sketch's web build, as a tool of it), and
vecanim to sketches/vecanim, still its own package on the same library.
|