From cec97650af3227c51ec9862df35f22ae06d1321b Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 13:33:30 -0300 Subject: build: sketchbook's GPU devices are under dev/draw/ now (src/gpu/ before): Executor, Cells, Present and the cell shaders found there, the option's help, gui.zig's comments and the book's two mentions following; nothing else; gui frame corpus 77/77 byte-identical against mbase, gui unit-test 1587/1595 (the four addon ABI tests the base fails), tui core-test 811/950 (139 skipped) --- src/gui/gui.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/gui.zig b/src/gui/gui.zig index aa6fc92b..1b536308 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -1,7 +1,7 @@ const SketchGpu = @import("sketch_gpu"); -const Cells = @import("gpu_cells"); // sketchbook's src/gpu/Cells.zig +const Cells = @import("gpu_cells"); // sketchbook's dev/draw/Cells.zig const Atlas = @import("font_atlas"); // sketchbook's src/font/Atlas.zig -const Present = @import("gpu_present"); // sketchbook's src/gpu/Present.zig +const Present = @import("gpu_present"); // sketchbook's dev/draw/Present.zig const GpuScene = @import("gpu_scene"); const filesystem = @import("../fs.zig"); const std = @import("std"); -- cgit v1.3 From 5467df693e6aba8fd17d6acd035ac28cc1b620ef Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 17 Nov 2026 13:38:41 -0300 Subject: build: sketchbook's glyph atlas is dev/text/Atlas.zig now (src/font/Atlas.zig before): the gui's atlas module and the atlas's own tests find it there, gui.zig's comment follows; nothing else; gui frame corpus 77/77 byte-identical against mbase, gui unit-test 1587/1595 (the four addon ABI tests the base fails), tui core-test 811/950 (139 skipped) --- build.zig | 6 +++--- src/gui/gui.zig | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/build.zig b/build.zig index bad4e466..a2877a63 100644 --- a/build.zig +++ b/build.zig @@ -865,10 +865,10 @@ pub fn build(b: *std.Build) void { if (b.lazyDependency("sketchbook", .{ .@"gpu-only" = true })) |sb| { const gpu = b.createModule(.{ .root_source_file = sb.path("dev/draw/Executor.zig"), .imports = &.{ .{ .name = "abi", .module = sb.module("abi") }, .{ .name = "c", .module = gui_c_mod } } }); gm.addImport("sketch_gpu", gpu); - // The glyph atlas (src/font/Atlas.zig) over the font shim + // The glyph atlas (dev/text/Atlas.zig) over the font shim // (vendor/font.{c,h}), compiled below against pardes's // FreeType and HarfBuzz. - const atlas_mod = b.createModule(.{ .root_source_file = sb.path("src/font/Atlas.zig"), .imports = &.{.{ .name = "c", .module = gui_c_mod }} }); + const atlas_mod = b.createModule(.{ .root_source_file = sb.path("dev/text/Atlas.zig"), .imports = &.{.{ .name = "c", .module = gui_c_mod }} }); gm.addImport("font_atlas", atlas_mod); // pardes's renderer, moved to sketchbook (dev/draw/), compiled // against pardes's SDL; its tests run with unit-test. Its @@ -944,7 +944,7 @@ pub fn build(b: *std.Build) void { // The Atlas's own tests, over the same FreeType, HarfBuzz and // shim, the embedded face theirs to draw. if (atlas_test == null) if (font_c) |fc| if (b.lazyDependency("sketchbook", .{ .@"gpu-only" = true })) |sb| { - const atlas_mod = b.createModule(.{ .root_source_file = sb.path("src/font/Atlas.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{.{ .name = "c", .module = fc }} }); + const atlas_mod = b.createModule(.{ .root_source_file = sb.path("dev/text/Atlas.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{.{ .name = "c", .module = fc }} }); atlas_mod.linkLibrary(ft); atlas_mod.linkLibrary(harfbuzz); atlas_mod.addIncludePath(upstream.path("src")); diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 1b536308..5ffaa649 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -1,6 +1,6 @@ const SketchGpu = @import("sketch_gpu"); const Cells = @import("gpu_cells"); // sketchbook's dev/draw/Cells.zig -const Atlas = @import("font_atlas"); // sketchbook's src/font/Atlas.zig +const Atlas = @import("font_atlas"); // sketchbook's dev/text/Atlas.zig const Present = @import("gpu_present"); // sketchbook's dev/draw/Present.zig const GpuScene = @import("gpu_scene"); const filesystem = @import("../fs.zig"); -- cgit v1.3