MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / FloatControlsHeader

Function FloatControlsHeader

test/opt/fold_test.cpp:15494–15508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15492));
15493
15494std::string FloatControlsHeader(const std::string& capabilities) {
15495 std::string header = R"(
15496OpCapability 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
15510using FloatControlsFoldingTest =
15511::testing::TestWithParam<InstructionFoldingCase<bool>>;

Callers 1

fold_test.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected