Lines Matching refs:sources
368 ShaderProgram::ShaderProgram (const RenderContext& renderCtx, const ProgramSources& sources)
371 init(renderCtx.getFunctions(), sources);
380 ShaderProgram::ShaderProgram (const glw::Functions& gl, const ProgramSources& sources)
383 init(gl, sources);
392 void ShaderProgram::init (const glw::Functions& gl, const ProgramSources& sources)
400 for (int shaderNdx = 0; shaderNdx < (int)sources.sources[shaderType].size(); ++shaderNdx)
402 const char* source = sources.sources[shaderType][shaderNdx].c_str();
403 const int length = (int)sources.sources[shaderType][shaderNdx].size();
421 for (std::vector<AttribLocationBinding>::const_iterator binding = sources.attribLocationBindings.begin(); binding != sources.attribLocationBindings.end(); ++binding)
424 DE_ASSERT((sources.transformFeedbackBufferMode == GL_NONE) == sources.transformFeedbackVaryings.empty());
425 if (sources.transformFeedbackBufferMode != GL_NONE)
427 std::vector<const char*> tfVaryings(sources.transformFeedbackVaryings.size());
429 tfVaryings[ndx] = sources.transformFeedbackVaryings[ndx].c_str();
431 m_program.transformFeedbackVaryings((int)tfVaryings.size(), &tfVaryings[0], sources.transformFeedbackBufferMode);
434 if (sources.separable)
704 tcu::TestLog& operator<< (tcu::TestLog& log, const ProgramSources& sources)
712 for (size_t shaderNdx = 0; shaderNdx < sources.sources[shaderType].size(); shaderNdx++)
715 sources.sources[shaderType][shaderNdx],