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

Function Header

test/cpp_interface_test.cpp:32–37  ·  view source on GitHub ↗

Return a string that contains the minimum instructions needed to form a valid module. Other instructions can be appended to this string.

Source from the content-addressed store, hash-verified

30// Return a string that contains the minimum instructions needed to form
31// a valid module. Other instructions can be appended to this string.
32std::string Header() {
33 return R"(OpCapability Shader
34OpCapability Linkage
35OpMemoryModel Logical GLSL450
36)";
37}
38
39// When we assemble with a target environment of SPIR-V 1.1, we expect
40// the following in the module header version word.

Callers 3

TEST_FFunction · 0.70
TESTFunction · 0.70
MakeModuleHavingStructFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected