| 76 | } |
| 77 | |
| 78 | void ProgramBuilder::emitAndInstallFragProcessors(std::string* color, std::string* coverage) { |
| 79 | size_t transformedCoordVarsIdx = 0; |
| 80 | std::string** inOut = &color; |
| 81 | for (size_t i = 0; i < programInfo->numFragmentProcessors(); ++i) { |
| 82 | if (i == programInfo->numColorFragmentProcessors()) { |
| 83 | inOut = &coverage; |
| 84 | } |
| 85 | const auto fp = programInfo->getFragmentProcessor(i); |
| 86 | auto output = emitAndInstallFragProc(fp, transformedCoordVarsIdx, **inOut); |
| 87 | FragmentProcessor::Iter iter(fp); |
| 88 | while (const FragmentProcessor* tempFP = iter.next()) { |
| 89 | transformedCoordVarsIdx += tempFP->numCoordTransforms(); |
| 90 | } |
| 91 | **inOut = output; |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | template <typename T> |
| 96 | static const T* GetPointer(const std::vector<T>& vector, size_t atIndex) { |
nothing calls this directly
no test coverage detected