Skip to content

Commit 7d2c02b

Browse files
committed
Disabled global operator generation for HLSL
1 parent 88bc5e3 commit 7d2c02b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/buildHeaders/header.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ namespace {
578578
void printMaskOperators(std::ostream& out, const std::string& specifiers) const {
579579
const Json::Value& enums = spvRoot["spv"]["enum"];
580580

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

583584
for (auto opClass = enums.begin(); opClass != enums.end(); ++opClass) {
@@ -601,6 +602,7 @@ namespace {
601602
typeName << "(~unsigned(a)); }\n";
602603
}
603604
}
605+
out << "#endif\n";
604606
}
605607
private:
606608
void printPrologue(std::ostream& out) const override {

0 commit comments

Comments
 (0)