Lines Matching refs:string
44 #include <string>
71 std::vector<std::string> strings;
120 void sliceSourceString (const std::string& in, ShaderSources& out, const int numSlices, const size_t paddingLength = 0)
126 const std::string padding (paddingLength, 'E');
138 const std::string lastString = in.substr(numSlices * sliceSize);
174 info.source = std::string(&source[0], sourceLen);
181 info.infoLog = std::string(&infoLog[0], infoLogLen);
221 virtual std::string next (const glu::ShaderType shaderType) = 0;
233 std::string next (const glu::ShaderType shaderType);
239 std::string ConstantShaderGenerator::next (const glu::ShaderType shaderType)
244 const std::string valueString = de::toString(value);
245 const std::string outputName = (shaderType == glu::SHADERTYPE_VERTEX) ? "gl_Position" : "o_fragColor";
331 const std::string source = m_srcGen.next(shaderType);
590 std::string generateFirstSource (void)
595 std::string generateSecondSource (void)
626 std::string readSource (glu::Shader& shader)
633 return std::string(&sourceBuffer[0]);
636 void verifyShaderSourceReplaced (glu::Shader& shader, const std::string& firstSource, const std::string& secondSource)
639 const std::string result = readSource(shader);
659 const std::string firstSourceStr = generateFirstSource();
660 const std::string secondSourceStr = generateSecondSource();
702 std::string generateFullSource (void)
741 const std::string unpaddedString = sources.strings[ndx].substr(0, unpaddedLength);
751 std::string str = generateFullSource();
919 void addProgramStateCase (TestCaseGroup* group, Context& context, const std::string& name, const std::string& desc)
924 const std::string shaderTypeName = getShaderTypeName(shaderType);
926 const std::string caseName = name + "_" + shaderTypeName;
927 const std::string caseDesc = "Build program, " + desc + ", for " + shaderTypeName + " shader.";
954 log << TestLog::Message << "Detaching " + std::string(getShaderTypeName(m_shaderType)) + " shader" << TestLog::EndMessage;
976 log << TestLog::Message << "Reattaching " + std::string(getShaderTypeName(m_shaderType)) + " shader" << TestLog::EndMessage;
999 log << TestLog::Message << "Deleting " + std::string(getShaderTypeName(m_shaderType)) + " shader" << TestLog::EndMessage;
1022 log << TestLog::Message << "Deleting and replacing " + std::string(getShaderTypeName(m_shaderType)) + " shader" << TestLog::EndMessage;
1046 log << TestLog::Message << "Recompiling " + std::string(getShaderTypeName(m_shaderType)) + " shader" << TestLog::EndMessage;
1069 log << TestLog::Message << "Replacing " + std::string(getShaderTypeName(m_shaderType)) + " shader source and recompiling" << TestLog::EndMessage;
1233 const std::string vertSrc = getSimpleShaderSource(glu::SHADERTYPE_VERTEX);
1234 const std::string fragSrc = getSimpleShaderSource(glu::SHADERTYPE_FRAGMENT);
1265 std::string getShaderSource (const glu::ShaderType shaderType) const
1317 void verifyUniformInt (glu::ShaderProgram& program, const std::string& name)
1331 void verifyUniformFloat (glu::ShaderProgram& program, const std::string& name)
1358 const std::string vertSrc = getShaderSource(glu::SHADERTYPE_VERTEX);
1359 const std::string fragSrc = getShaderSource(glu::SHADERTYPE_FRAGMENT);
1484 void addProgramBinaryPersistenceCase (TestCaseGroup* group, Context& context, const std::string& name, const std::string& desc)
1489 const std::string shaderTypeName = getShaderTypeName(shaderType);
1491 const std::string caseName = name + "_" + shaderTypeName;
1492 const std::string caseDesc = "Build program, " + desc + ", for " + shaderTypeName + " shader.";
1519 log << TestLog::Message << "Detaching " + std::string(getShaderTypeName(m_shaderType)) + " shader" << TestLog::EndMessage;
1541 log << TestLog::Message << "Reattaching " + std::string(getShaderTypeName(m_shaderType)) + " shader" << TestLog::EndMessage;
1564 log << TestLog::Message << "Deleting " + std::string(getShaderTypeName(m_shaderType)) + " shader" << TestLog::EndMessage;
1587 log << TestLog::Message << "Deleting and replacing " + std::string(getShaderTypeName(m_shaderType)) + " shader" << TestLog::EndMessage;
1611 log << TestLog::Message << "Recompiling " + std::string(getShaderTypeName(m_shaderType)) + " shader" << TestLog::EndMessage;
1634 log << TestLog::Message << "Replacing " + std::string(getShaderTypeName(m_shaderType)) + " shader source and recompiling" << TestLog::EndMessage;
1684 const std::string shaderTypeName = getShaderTypeName(shaderType);
1686 const std::string caseName = std::string("replace_source_") + shaderTypeName;
1687 const std::string caseDesc = std::string("Replace source code of ") + shaderTypeName + " shader.";
1705 const std::string caseName = "split_source_"
1710 const std::string caseDesc = std::string((shaderType == glu::SHADERTYPE_FRAGMENT) ? "Fragment" : "Vertex")
1714 + (explicitLengths ? ", using explicitly specified string lengths" : "")