Lines Matching refs:sources
309 ShaderProgram::ShaderProgram (const RenderContext& renderCtx, const ProgramSources& sources)
312 init(renderCtx.getFunctions(), sources);
315 ShaderProgram::ShaderProgram (const glw::Functions& gl, const ProgramSources& sources)
318 init(gl, sources);
321 void ShaderProgram::init (const glw::Functions& gl, const ProgramSources& sources)
329 for (int shaderNdx = 0; shaderNdx < (int)sources.sources[shaderType].size(); ++shaderNdx)
331 const char* source = sources.sources[shaderType][shaderNdx].c_str();
332 const int length = (int)sources.sources[shaderType][shaderNdx].size();
350 for (std::vector<AttribLocationBinding>::const_iterator binding = sources.attribLocationBindings.begin(); binding != sources.attribLocationBindings.end(); ++binding)
353 DE_ASSERT((sources.transformFeedbackBufferMode == GL_NONE) == sources.transformFeedbackVaryings.empty());
354 if (sources.transformFeedbackBufferMode != GL_NONE)
356 std::vector<const char*> tfVaryings(sources.transformFeedbackVaryings.size());
358 tfVaryings[ndx] = sources.transformFeedbackVaryings[ndx].c_str();
360 m_program.transformFeedbackVaryings((int)tfVaryings.size(), &tfVaryings[0], sources.transformFeedbackBufferMode);
363 if (sources.separable)
522 tcu::TestLog& operator<< (tcu::TestLog& log, const ProgramSources& sources)
530 for (size_t shaderNdx = 0; shaderNdx < sources.sources[shaderType].size(); shaderNdx++)
533 sources.sources[shaderType][shaderNdx],