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

Function GenerateKernelCode

test/val/val_literals_test.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::string GenerateKernelCode() {
57 std::string str = R"(
58 OpCapability Kernel
59 OpCapability Addresses
60 OpCapability Linkage
61 OpCapability Int8
62 OpMemoryModel Physical64 OpenCL
63%uint8 = OpTypeInt 8 0
64 )";
65 return str;
66}
67
68TEST_F(ValidateLiterals, LiteralsShaderGood) {
69 std::string str = GenerateShaderCode() + R"(

Callers 2

TEST_FFunction · 0.70
TEST_PFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected