Repository navigation
feat(render): add bitty-render crate skeleton (wgpu + crossfont wrapper) - #21
Merged
Merged
Conversation
Implements CTX-0015 per ADR-0003 (render row) and ADR-0004 rows (ADOPT wgpu ~25.x, WRAP crossfont, REJECT skia-safe). - Owned public API only: no wgpu/crossfont type crosses the boundary; upstream failures flatten into RenderError. - frame::plan_frame consumes a generic pixel-domain DamageDescriptor (grid wiring from bitty-term-state lands in a later slice). - glyph::GlyphRasterizer trait + CrossFontRasterizer wrapper returning owned GlyphBitmap values with enforced length invariants. - Bounded GlyphCache (wholesale eviction, negative caching) and AtlasLayout shelf-pack math; all pure logic unit-tested. - gpu::GpuContext::initialize async device creation with owned AdapterSummary; window-surface attachment deferred to the bitty-platform slice by design. - sw-fallback feature: bounded premultiplied-alpha CPU blit seed. - Headless-friendly: GPU integration tests self-skip unless BITTY_RENDER_GPU_TESTS=1; crate docs state exactly what plain CI cannot verify. Closes #18 CarryCtx: CTX-0015 (team core-foundation)
bitty-render wraps crossfont (ADR-0004), which links FreeType + fontconfig through pkg-config on Linux. The ubuntu runner image lacks the -dev packages, so yeslogic-fontconfig-sys's build script cannot find fontconfig.pc. Install libfontconfig1-dev and libfreetype6-dev before the Rust gates. Validated with actionlint and an act -n dry run.
Xuepoo
force-pushed
the
ctx-0015/feat-bitty-render
branch
from
August 26, 2026 10:23
c9fd936 to
bcc288f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements CTX-0015 per ADR-0003 (render row) and ADR-0004 rows
(ADOPT wgpu ~25.x, WRAP crossfont, REJECT skia-safe).
upstream failures flatten into RenderError.
(grid wiring from bitty-term-state lands in a later slice).
owned GlyphBitmap values with enforced length invariants.
AtlasLayout shelf-pack math; all pure logic unit-tested.
AdapterSummary; window-surface attachment deferred to the
bitty-platform slice by design.
BITTY_RENDER_GPU_TESTS=1; crate docs state exactly what plain CI
cannot verify.
#![forbid(unsafe_code)] holds; no bytemuck introduced yet.
Closes #18
CarryCtx: CTX-0015 (team core-foundation)