Skip to content

Commit 6ff1879

Browse files
committed
Updated spirv.hpp and spirv.hpp11
1 parent 7d2c02b commit 6ff1879

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/spirv/unified1/spirv.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2825,6 +2825,7 @@ inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
28252825
}
28262826
#endif /* SPV_ENABLE_UTILITY_CODE */
28272827

2828+
#ifndef __HLSL_VERSION
28282829
// Overload bitwise operators for mask bit combining
28292830

28302831
inline ImageOperandsMask operator|(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) | unsigned(b)); }
@@ -2871,6 +2872,7 @@ inline CooperativeMatrixOperandsMask operator|(CooperativeMatrixOperandsMask a,
28712872
inline CooperativeMatrixOperandsMask operator&(CooperativeMatrixOperandsMask a, CooperativeMatrixOperandsMask b) { return CooperativeMatrixOperandsMask(unsigned(a) & unsigned(b)); }
28722873
inline CooperativeMatrixOperandsMask operator^(CooperativeMatrixOperandsMask a, CooperativeMatrixOperandsMask b) { return CooperativeMatrixOperandsMask(unsigned(a) ^ unsigned(b)); }
28732874
inline CooperativeMatrixOperandsMask operator~(CooperativeMatrixOperandsMask a) { return CooperativeMatrixOperandsMask(~unsigned(a)); }
2875+
#endif
28742876

28752877
} // end namespace spv
28762878

include/spirv/unified1/spirv.hpp11

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2825,6 +2825,7 @@ inline void HasResultAndType(Op opcode, bool *hasResult, bool *hasResultType) {
28252825
}
28262826
#endif /* SPV_ENABLE_UTILITY_CODE */
28272827

2828+
#ifndef __HLSL_VERSION
28282829
// Overload bitwise operators for mask bit combining
28292830

28302831
constexpr ImageOperandsMask operator|(ImageOperandsMask a, ImageOperandsMask b) { return ImageOperandsMask(unsigned(a) | unsigned(b)); }
@@ -2871,6 +2872,7 @@ constexpr CooperativeMatrixOperandsMask operator|(CooperativeMatrixOperandsMask
28712872
constexpr CooperativeMatrixOperandsMask operator&(CooperativeMatrixOperandsMask a, CooperativeMatrixOperandsMask b) { return CooperativeMatrixOperandsMask(unsigned(a) & unsigned(b)); }
28722873
constexpr CooperativeMatrixOperandsMask operator^(CooperativeMatrixOperandsMask a, CooperativeMatrixOperandsMask b) { return CooperativeMatrixOperandsMask(unsigned(a) ^ unsigned(b)); }
28732874
constexpr CooperativeMatrixOperandsMask operator~(CooperativeMatrixOperandsMask a) { return CooperativeMatrixOperandsMask(~unsigned(a)); }
2875+
#endif
28742876

28752877
} // end namespace spv
28762878

0 commit comments

Comments
 (0)