Home | History | Annotate | Download | only in functional

Lines Matching refs:sources

90 void setShaderSources (glu::Shader& shader, const ShaderSources& sources)
92 std::vector<const char*> cStrings (sources.strings.size(), 0);
94 for (size_t ndx = 0; ndx < sources.strings.size(); ndx++)
95 cStrings[ndx] = sources.strings[ndx].c_str();
97 if (sources.lengths.size() > 0)
98 shader.setSources((int)cStrings.size(), &cStrings[0], &sources.lengths[0]);
664 void insertRandomNullTermStrings (ShaderSources& sources)
667 std::vector<int> indices (sources.strings.size(), 0);
669 DE_ASSERT(sources.lengths.size() > 0);
670 DE_ASSERT(sources.lengths.size() == sources.strings.size());
672 for (int i = 0; i < (int)sources.strings.size(); i++)
680 const int unpaddedLength = sources.lengths[ndx];
681 const std::string unpaddedString = sources.strings[ndx].substr(0, unpaddedLength);
683 sources.strings[ndx] = unpaddedString;
684 sources.lengths[ndx] = m_rnd.getInt(-10, -1);
688 void generateSources (ShaderSources& sources)
693 sliceSourceString(str, sources, m_numSlices, paddingLength);
696 insertRandomNullTermStrings(sources);
729 ShaderSources sources;
732 generateSources(sources);
733 setShaderSources(shader, sources);