diff options
| author | skal <pascal.massimino@gmail.com> | 2026-01-31 17:23:13 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-01-31 17:23:13 +0100 |
| commit | 32d26371627638570b74d678ab73deb7b87af8e4 (patch) | |
| tree | 3097b3678086ddaed7930a02e5c88464f1c7d03e /tools/seq_compiler.cc | |
| parent | 7ec28a3f1d417cd5b5adead895a25e42035ef037 (diff) | |
fix: Cross-compilation and style compliance
Fixes seq_compiler build for Windows cross-compilation. Moves common WebGPU compatibility shims to gpu.h. Applies project-wide coding style via clang-format. Verified on both macOS (native) and Windows (cross-compile).
Diffstat (limited to 'tools/seq_compiler.cc')
| -rw-r--r-- | tools/seq_compiler.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tools/seq_compiler.cc b/tools/seq_compiler.cc index 8da4e4e..fabb43f 100644 --- a/tools/seq_compiler.cc +++ b/tools/seq_compiler.cc @@ -78,14 +78,15 @@ int main(int argc, char *argv[]) { << ": EFFECT requires <Class> <start> <end> <priority>\n"; return 1; } - + // Capture remaining args std::string extra_args; std::getline(ss, extra_args); // Read rest of line - // Remove leading whitespace from getline if any (getline reads the space after priority) + // Remove leading whitespace from getline if any (getline reads the space + // after priority) extra_args = trim(extra_args); if (!extra_args.empty()) { - extra_args = ", " + extra_args; + extra_args = ", " + extra_args; } current_seq->effects.push_back( @@ -114,8 +115,9 @@ int main(int argc, char *argv[]) { out_file << " auto seq = std::make_shared<Sequence>();\n"; for (const auto &eff : seq.effects) { out_file << " seq->add_effect(std::make_shared<" << eff.class_name - << ">(device, queue, format" << eff.extra_args << "), " - << eff.start << "f, " << eff.end << "f, " << eff.priority << ");\n"; + << ">(device, queue, format" << eff.extra_args << "), " + << eff.start << "f, " << eff.end << "f, " << eff.priority + << ");\n"; } out_file << " main_seq.add_sequence(seq, " << seq.start_time << "f, " << seq.priority << ");\n"; @@ -123,8 +125,9 @@ int main(int argc, char *argv[]) { } out_file << "}\n"; - - std::cout << "Successfully generated timeline with " << sequences.size() << " sequences.\n"; + + std::cout << "Successfully generated timeline with " << sequences.size() + << " sequences.\n"; return 0; } |
