| 106 | } |
| 107 | |
| 108 | std::string ShaderPreamble() { |
| 109 | return R"( |
| 110 | OpCapability Shader |
| 111 | OpMemoryModel Logical Simple |
| 112 | OpEntryPoint GLCompute %main "main" |
| 113 | OpExecutionMode %main LocalSize 16 1 1 |
| 114 | )"; |
| 115 | } |
| 116 | |
| 117 | std::string ShaderPreamble(const std::vector<std::string>& names) { |
| 118 | std::ostringstream os; |