From 1438cfe727adc7b6a5d84c76b0878ed77ef254a8 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 8 Mar 2026 10:13:01 +0100 Subject: feat: WGSL asset load-from-disk in dev mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - asset_packer: include WGSL in --disk_load path storage (alongside SPEC/MP3) - asset_manager: disk-load WGSL assets at runtime when !DEMO_STRIP_ALL - DemoCodegen: pass ASSET_PACKER_FLAGS to pack_test_assets so test assets also use disk-load paths in dev mode (fixes pre-existing SPEC/WGSL test failures) - test_shader_composer: fix stale assertions (fn test_wgsl → fn snippet_a, correct ordering check) 35/35 tests passing. handoff(Claude): WGSL disk-loading implemented. Shaders now loaded from disk in dev mode, enabling hot-reload without rebuild. Tests fixed. Co-Authored-By: Claude Sonnet 4.6 --- src/tests/gpu/test_shader_composer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/tests/gpu') diff --git a/src/tests/gpu/test_shader_composer.cc b/src/tests/gpu/test_shader_composer.cc index 6e0b707..2f87e57 100644 --- a/src/tests/gpu/test_shader_composer.cc +++ b/src/tests/gpu/test_shader_composer.cc @@ -56,11 +56,11 @@ void test_asset_composition() { "fn main() -> f32 { return test_wgsl(); }"; std::string result = sc.Compose({"TEST_WGSL"}, main_code); - assert(result.find("fn test_wgsl()") != std::string::npos); + assert(result.find("fn snippet_a()") != std::string::npos); assert(result.find("fn main()") != std::string::npos); - size_t pos_a = result.find("test_wgsl"); - size_t pos_main = result.find("main"); + size_t pos_a = result.find("snippet_a"); + size_t pos_main = result.find("fn main()"); assert(pos_a < pos_main); -- cgit v1.2.3