Lines Matching defs:index
107 // Helper functions for handling the appropriate index vector (according to m_indexType).
108 void addIndex (deUint32 index);
113 // \note Only one of the following index vectors is used (according to m_indexType).
124 bool m_beginWithRestart; // Whether there will be restart indices at the beginning of the index array.
125 bool m_endWithRestart; // Whether there will be restart indices at the end of the index array.
154 void PrimitiveRestartCase::addIndex (deUint32 index)
158 DE_ASSERT(de::inRange(index, (deUint32)0, MAX_UNSIGNED_BYTE));
159 m_indicesUB.push_back((deUint8)index);
163 DE_ASSERT(de::inRange(index, (deUint32)0, MAX_UNSIGNED_SHORT));
164 m_indicesUS.push_back((deUint16)index);
168 DE_ASSERT(de::inRange(index, (deUint32)0, MAX_UNSIGNED_INT));
169 m_indicesUI.push_back((deUint32)index);
201 // Pointer to the index value at index indexNdx.
279 // \note At this point, restarts shall not be added to the start or the end of the index vector. Those are special cases, and are done above and after the following if-else chain, respectively.
567 // Find the largest non-restart index in the index array (for glDrawRangeElements() end parameter).
574 deUint32 index = getIndex(i);
575 if (index != restartIndex && index > max)
576 max = index;
621 int indexArrayStartNdx = 0; // Keep track of the draw start index - first index after a primitive restart, or initially the first index altogether.
625 if (indexArrayNdx >= numIndices || getIndex(indexArrayNdx) == restartIndex) // \note Handle end of array the same way as a restart index encounter.
629 // Draw from index indexArrayStartNdx to index indexArrayNdx-1 .
635 indexArrayStartNdx = indexArrayNdx + 1; // Next draw starts just after this restart index.