diff options
| author | skal <pascal.massimino@gmail.com> | 2026-03-08 10:13:01 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-03-08 10:13:01 +0100 |
| commit | 1438cfe727adc7b6a5d84c76b0878ed77ef254a8 (patch) | |
| tree | a0493499f5281413b57f677979365fc98e96bac0 /tools/asset_packer.cc | |
| parent | fa7d2d7f3aa40d581ca2ad97e39fe944769ee5a3 (diff) | |
feat: WGSL asset load-from-disk in dev mode
- 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 <noreply@anthropic.com>
Diffstat (limited to 'tools/asset_packer.cc')
| -rw-r--r-- | tools/asset_packer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/asset_packer.cc b/tools/asset_packer.cc index e28d71f..37d2a57 100644 --- a/tools/asset_packer.cc +++ b/tools/asset_packer.cc @@ -488,7 +488,8 @@ int main(int argc, char* argv[]) { std::string full_path = combined_path.lexically_normal().string(); if (disk_load_mode && - (info.asset_type == "SPEC" || info.asset_type == "MP3")) { + (info.asset_type == "SPEC" || info.asset_type == "MP3" || + info.asset_type == "WGSL")) { fprintf(assets_data_cc_file, "alignas(16) static const char %s[] = \"%s\";\n", info.data_array_name.c_str(), full_path.c_str()); |
