Lines Matching defs:sources
217 int getNumShaderStages (const std::vector<std::string>* sources)
223 if (!sources[shaderType].empty())
230 std::string getShaderStageSource (const std::vector<std::string>* sources, const ShaderBuildOptions buildOptions, glu::ShaderType shaderType)
232 if (sources[shaderType].size() != 1)
238 std::string src = sources[shaderType][0];
249 return sources[shaderType][0];
267 bool compileShaderToSpirV (const std::vector<std::string>* sources, const ShaderBuildOptions& buildOptions, const ShaderLanguage shaderLanguage, std::vector<deUint32>* dst, glu::ShaderProgramInfo* buildInfo)
275 if (getNumShaderStages(sources) > 1)
284 if (!sources[shaderType].empty())
286 const std::string& srcText = getShaderStageSource(sources, buildOptions, (glu::ShaderType)shaderType);
369 return compileShaderToSpirV(program.sources, program.buildOptions, program.shaderLanguage, dst, buildInfo);
374 return compileShaderToSpirV(program.sources, program.buildOptions, program.shaderLanguage, dst, buildInfo);