Lines Matching defs:code
10 // Redistributions of source code must retain the above copyright
183 // Compiles and the given source |code| of the given shader |stage| into
186 bool compile(glslang::TShader* shader, const std::string& code,
191 const char* shaderStrings = code.data();
192 const int shaderLengths = static_cast<int>(code.size());
207 // Compiles and links the given source |code| of the given shader
213 const std::string& shaderName, const std::string& code,
256 &shader, code, entryPointName, controls, nullptr, &shaderName);
306 // Compiles and links the given source |code| of the given shader
312 const std::string shaderName, const std::string& code,
336 bool success = compile(&shader, code, entryPointName, controls);
370 const std::string shaderName, const std::string& code,
380 bool success = compile(&shader, code, entryPointName, controls);
410 // remap the binary in 'code' with the options in remapOptions
412 const std::string shaderName, const std::vector<uint32_t>& code,
417 std::vector<uint32_t> spirv_binary(code); // scratch copy
646 // Preprocesses the given |source| code. On success, returns true, the