| 54 | } |
| 55 | |
| 56 | std::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 | |
| 68 | TEST_F(ValidateLiterals, LiteralsShaderGood) { |
| 69 | std::string str = GenerateShaderCode() + R"( |