Skip to content

Commit

Permalink
Emit default constructor as well.
Browse files Browse the repository at this point in the history
  • Loading branch information
Themaister committed Oct 15, 2023
1 parent ebc2f59 commit 876e7c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/slangmosh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ static std::string generate_header(const std::vector<Shader> &shaders,
str << "[" << var.count << "]";
str << " = {};\n";
}
str << "\tShaders() = default;\n";
str << "\n\ttemplate <typename Device, typename Layout, typename Resolver>\n";
str << "\tShaders(Device &device, Layout &layout, const Resolver &resolver);\n";
str << "};\n";
Expand Down

0 comments on commit 876e7c1

Please sign in to comment.