From fb2aa8b608cb423b8b9f140b359b5a0dddbcb43c Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 7 Feb 2026 17:22:03 +0100 Subject: fix: Auto-regenerate assets after clean build - Added GENERATED property to all generated files - Added explicit dependencies: audio/3d/gpu libraries depend on generate_demo_assets - Updated seq_compiler to use GpuContext instead of device/queue/format - Removed stale test asset files from src/generated (now in build/src/generated_test) Fixes 'fatal error: generated/assets.h file not found' after make clean. All 28 tests pass. --- tools/seq_compiler.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools') diff --git a/tools/seq_compiler.cc b/tools/seq_compiler.cc index 062acce..784bb80 100644 --- a/tools/seq_compiler.cc +++ b/tools/seq_compiler.cc @@ -700,8 +700,7 @@ int main(int argc, char* argv[]) { out_file << "}\n\n"; } - out_file << "void LoadTimeline(MainSequence& main_seq, WGPUDevice device, " - "WGPUQueue queue, WGPUTextureFormat format) {\n"; + out_file << "void LoadTimeline(MainSequence& main_seq, const GpuContext& ctx) {\n"; for (const SequenceEntry& seq : sequences) { out_file << " {\n"; @@ -712,7 +711,7 @@ int main(int argc, char* argv[]) { } for (const EffectEntry& eff : seq.effects) { out_file << " seq->add_effect(std::make_shared<" << eff.class_name - << ">(device, queue, format" << eff.extra_args << "), " + << ">(ctx" << eff.extra_args << "), " << eff.start << "f, " << eff.end << "f, " << eff.priority << ");\n"; } -- cgit v1.2.3