| 15492 | )); |
| 15493 | |
| 15494 | std::string FloatControlsHeader(const std::string& capabilities) { |
| 15495 | std::string header = R"( |
| 15496 | OpCapability Shader |
| 15497 | )" + capabilities + R"( |
| 15498 | %void = OpTypeVoid |
| 15499 | %float = OpTypeFloat 32 |
| 15500 | %float_0 = OpConstant %float 0 |
| 15501 | %float_1 = OpConstant %float 1 |
| 15502 | %void_fn = OpTypeFunction %void |
| 15503 | %func = OpFunction %void None %void_fn |
| 15504 | %entry = OpLabel |
| 15505 | )"; |
| 15506 | |
| 15507 | return header; |
| 15508 | } |
| 15509 | |
| 15510 | using FloatControlsFoldingTest = |
| 15511 | ::testing::TestWithParam<InstructionFoldingCase<bool>>; |