Home | History | Annotate | Download | only in functional

Lines Matching refs:sources

107 void setShaderSources (glu::Shader& shader, const ShaderSources& sources)
109 std::vector<const char*> cStrings (sources.strings.size(), 0);
111 for (size_t ndx = 0; ndx < sources.strings.size(); ndx++)
112 cStrings[ndx] = sources.strings[ndx].c_str();
114 if (sources.lengths.size() > 0)
115 shader.setSources((int)cStrings.size(), &cStrings[0], &sources.lengths[0]);
724 void insertRandomNullTermStrings (ShaderSources& sources)
727 std::vector<int> indices (sources.strings.size(), 0);
729 DE_ASSERT(sources.lengths.size() > 0);
730 DE_ASSERT(sources.lengths.size() == sources.strings.size());
732 for (int i = 0; i < (int)sources.strings.size(); i++)
740 const int unpaddedLength = sources.lengths[ndx];
741 const std::string unpaddedString = sources.strings[ndx].substr(0, unpaddedLength);
743 sources.strings[ndx] = unpaddedString;
744 sources.lengths[ndx] = m_rnd.getInt(-10, -1);
748 void generateSources (ShaderSources& sources)
753 sliceSourceString(str, sources, m_numSlices, paddingLength);
756 insertRandomNullTermStrings(sources);
789 ShaderSources sources;
792 generateSources(sources);
793 setShaderSources(shader, sources);
1236 const glu::ProgramSources sources = glu::makeVtxFragSources(vertSrc, fragSrc);
1238 glu::ShaderProgram program (m_context.getRenderContext(), sources);
1361 const glu::ProgramSources sources = glu::makeVtxFragSources(vertSrc, fragSrc);
1363 glu::ShaderProgram program (m_context.getRenderContext(), sources);