Skip to content

Commit

Permalink
Disabled global operator generation for HLSL
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemog1 committed Oct 20, 2023
1 parent 88bc5e3 commit 7d2c02b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/buildHeaders/header.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ namespace {
void printMaskOperators(std::ostream& out, const std::string& specifiers) const {
const Json::Value& enums = spvRoot["spv"]["enum"];

out << "#ifndef __HLSL_VERSION\n";
out << "// Overload bitwise operators for mask bit combining\n\n";

for (auto opClass = enums.begin(); opClass != enums.end(); ++opClass) {
Expand All @@ -601,6 +602,7 @@ namespace {
typeName << "(~unsigned(a)); }\n";
}
}
out << "#endif\n";
}
private:
void printPrologue(std::ostream& out) const override {
Expand Down

0 comments on commit 7d2c02b

Please sign in to comment.