mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 19:20:05 +00:00
Fix MSVC build for boolean opeartions on enums.
This commit is contained in:
parent
cde47431bd
commit
815cb95247
@ -77,7 +77,8 @@ INSTANTIATE_TEST_CASE_P(
|
||||
{"ConstOffsets %15", {MASK(ConstOffsets), 15}},
|
||||
{"Sample %16", {MASK(Sample), 16}},
|
||||
}));
|
||||
|
||||
#undef MASK
|
||||
#define MASK(NAME) static_cast<uint32_t>(spv::ImageOperands##NAME##Mask)
|
||||
INSTANTIATE_TEST_CASE_P(
|
||||
TextToBinaryImageOperandsCombination, ImageOperandsTest,
|
||||
::testing::ValuesIn(std::vector<ImageOperandsCase>{
|
||||
@ -105,8 +106,7 @@ INSTANTIATE_TEST_CASE_P(
|
||||
" %5 %10 %11 %12 %13 %14 %15 %16",
|
||||
{MASK(Bias) | MASK(Lod) | MASK(Grad) | MASK(ConstOffset) |
|
||||
MASK(Offset) | MASK(ConstOffsets) | MASK(Sample),
|
||||
5, 10, 11, 12, 13, 14, 15, 16}},
|
||||
}));
|
||||
5, 10, 11, 12, 13, 14, 15, 16}}}));
|
||||
#undef MASK
|
||||
|
||||
} // anonymous namespace
|
||||
|
Loading…
Reference in New Issue
Block a user