Skip to content

Commit

Permalink
add missing header lines in sokol-d generator
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed May 11, 2024
1 parent 29ec0ba commit f763158
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/shdc/generators/sokold.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ void SokolDGenerator::gen_prolog(const GenInput& gen) {
pystring::os::path::splitext(root, ext, gen.args.input);
l("module shaders.{};\n", pystring::os::path::basename(root));
l("import sg = sokol.gfx;\n");
for (const auto& header: gen.inp.headers) {
l("{};\n", header);
}
l("extern(C):\n\n");
}

Expand Down

0 comments on commit f763158

Please sign in to comment.