Home
last modified time | relevance | path

Searched refs:m_indices (Results 1 – 18 of 18) sorted by relevance

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineUniqueRandomIterator.hpp51 std::vector<deUint32> m_indices; member in vkt::pipeline::UniqueRandomIterator
65 m_indices = std::vector<deUint32>(numItems); in UniqueRandomIterator()
68 m_indices[itemNdx] = itemNdx; in UniqueRandomIterator()
79 m_indices = std::vector<deUint32>(uniqueIndices.begin(), uniqueIndices.end()); in UniqueRandomIterator()
83 rnd.shuffle(m_indices.begin(), m_indices.end()); in UniqueRandomIterator()
91 return m_currentIndex < m_indices.size(); in hasNext()
97 DE_ASSERT(m_currentIndex < m_indices.size()); in next()
99 return getIndexedValue(m_indices[m_currentIndex++]); in next()
DvktPipelineInputAssemblyTests.cpp177 std::vector<deUint32> m_indices; member in vkt::pipeline::__anon93002a720111::InputAssemblyInstance
1134 , m_indices (indexBufferData) in InputAssemblyInstance()
1475 m_indices.size() * sizeof(deUint32), // VkDeviceSize size; in InputAssemblyInstance()
1507 … deMemcpy(m_indexBufferAlloc->getHostPtr(), m_indices.data(), m_indices.size() * sizeof(deUint32)); in InputAssemblyInstance()
1511 uploadIndexBufferData8((deUint8*)m_indexBufferAlloc->getHostPtr(), m_indices); in InputAssemblyInstance()
1515 uploadIndexBufferData16((deUint16*)m_indexBufferAlloc->getHostPtr(), m_indices); in InputAssemblyInstance()
1560 vk.cmdDrawIndexed(*m_cmdBuffer, (deUint32)m_indices.size(), 1, 0, 0, 0); in InputAssemblyInstance()
1605 for (size_t indexNdx = 0; indexNdx < m_indices.size(); indexNdx++) in verifyImage()
1607 const bool isRestart = InputAssemblyTest::isRestartIndex(m_indexType, m_indices[indexNdx]); in verifyImage()
1610 indicesRange.push_back(m_indices[indexNdx]); in verifyImage()
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsRandomShaderCase.cpp207 m_indices.resize(numIndices); in init()
213 m_indices[quadNdx*6+0] = (deUint16)(quadX + quadY*(m_gridWidth+1)); in init()
214 m_indices[quadNdx*6+1] = (deUint16)(quadX + (quadY+1)*(m_gridWidth+1)); in init()
215 m_indices[quadNdx*6+2] = (deUint16)(quadX + quadY*(m_gridWidth+1) + 1); in init()
216 m_indices[quadNdx*6+3] = (deUint16)(m_indices[quadNdx*6+2]); in init()
217 m_indices[quadNdx*6+4] = (deUint16)(m_indices[quadNdx*6+1]); in init()
218 m_indices[quadNdx*6+5] = (deUint16)(quadX + (quadY+1)*(m_gridWidth+1) + 1); in init()
365 m_indices.clear(); in deinit()
546 glDrawElements(GL_TRIANGLES, (GLsizei)m_indices.size(), GL_UNSIGNED_SHORT, &m_indices[0]); in iterate()
DglsShaderRenderCase.cpp152 const deUint16* getIndices (void) const { return &m_indices[0]; } in getIndices()
174 vector<deUint16> m_indices; member in deqp::gls::QuadGrid
218 m_indices.resize(3 * m_numTriangles); in QuadGrid()
229 m_indices[baseNdx + 0] = (deUint16)v10; in QuadGrid()
230 m_indices[baseNdx + 1] = (deUint16)v00; in QuadGrid()
231 m_indices[baseNdx + 2] = (deUint16)v01; in QuadGrid()
233 m_indices[baseNdx + 3] = (deUint16)v10; in QuadGrid()
234 m_indices[baseNdx + 4] = (deUint16)v01; in QuadGrid()
235 m_indices[baseNdx + 5] = (deUint16)v11; in QuadGrid()
DglsRandomShaderCase.hpp108 std::vector<deUint16> m_indices; member in deqp::gls::RandomShaderCase
DglsStateChangePerfTestCases.hpp102 std::vector<deUint16> m_indices; member in deqp::gls::StateChangePerformanceCase
DglsStateChangePerfTestCases.cpp229 genIndices(m_indices, m_triangleCount); in init()
481 m_indices.clear(); in deinit()
633 …R_PTR: gl.drawElements(GL_TRIANGLES, m_triangleCount * 3, GL_UNSIGNED_SHORT, &m_indices[0]); break; in callDraw()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/geometry/
DvktGeometryBasicGeometryShaderTests.cpp475 std::vector<deUint16> m_indices; member in vkt::geometry::__anon62039bf30111::BuiltinVariableRenderTestInstance
508 m_indices.resize(m_numDrawVertices); in genVertexAttribData()
509 m_indices[0] = 1; in genVertexAttribData()
510 m_indices[1] = 4; in genVertexAttribData()
511 m_indices[2] = 0xFFFF; // restart in genVertexAttribData()
512 m_indices[3] = 2; in genVertexAttribData()
513 m_indices[4] = 1; in genVertexAttribData()
524 const VkDeviceSize indexBufferSize = m_indices.size() * sizeof(deUint16); in createIndicesBuffer()
541 deMemcpy(m_allocation->getHostPtr(), &m_indices[0], (size_t)indexBufferSize); in createIndicesBuffer()
551 vk.cmdDrawIndexed(cmdBuffer, static_cast<deUint32>(m_indices.size()), 1, 0, 0, 0); in drawCommand()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcShaderRenderCase.cpp204 return &m_indices[0]; in getIndices()
230 vector<deUint16> m_indices; member in deqp::QuadGrid
275 m_indices.resize(3 * m_numTriangles); in QuadGrid()
286 m_indices[baseNdx + 0] = static_cast<deUint16>(v10); in QuadGrid()
287 m_indices[baseNdx + 1] = static_cast<deUint16>(v00); in QuadGrid()
288 m_indices[baseNdx + 2] = static_cast<deUint16>(v01); in QuadGrid()
290 m_indices[baseNdx + 3] = static_cast<deUint16>(v10); in QuadGrid()
291 m_indices[baseNdx + 4] = static_cast<deUint16>(v01); in QuadGrid()
292 m_indices[baseNdx + 5] = static_cast<deUint16>(v11); in QuadGrid()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fVertexTextureTests.cpp199 const deUint16* getIndexPtr (void) const { return &m_indices[0]; } in getIndexPtr()
207 vector<deUint16> m_indices; member in deqp::gles2::Functional::__anon2eb928630111::PosTexCoordQuadGrid
237 m_indices.reserve(m_gridSize*m_gridSize*3*2); in PosTexCoordQuadGrid()
254 m_indices.push_back(deUint16(firstNdx + 0)); in PosTexCoordQuadGrid()
255 m_indices.push_back(deUint16(firstNdx + 1)); in PosTexCoordQuadGrid()
256 m_indices.push_back(deUint16(firstNdx + 2)); in PosTexCoordQuadGrid()
258 m_indices.push_back(deUint16(firstNdx + 1)); in PosTexCoordQuadGrid()
259 m_indices.push_back(deUint16(firstNdx + 3)); in PosTexCoordQuadGrid()
260 m_indices.push_back(deUint16(firstNdx + 2)); in PosTexCoordQuadGrid()
267 DE_ASSERT((int)m_indices.size() == m_gridSize*m_gridSize*3*2); in PosTexCoordQuadGrid()
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fVertexArrayObjectTests.cpp162 deUint8* m_indices; member in deqp::gles3::Functional::VertexArrayObjectTest
184 , m_indices (NULL) in VertexArrayObjectTest()
255 m_indices = generateIndices(); in init()
264 delete[] m_indices; in deinit()
585 GLU_CHECK_CALL(glDrawElements(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices)); in makeDrawCall()
587 …GLU_CHECK_CALL(glDrawElementsInstanced(GL_TRIANGLES, m_spec.count, m_spec.indexType, m_indices, m_… in makeDrawCall()
689 deUint8* m_indices; member in deqp::gles3::Functional::MultiVertexArrayObjectTest
710 , m_indices (NULL) in MultiVertexArrayObjectTest()
839 m_indices = generateIndices(); in init()
848 delete[] m_indices; in deinit()
[all …]
Des3fVertexTextureTests.cpp248 const deUint16* getIndexPtr (void) const { return &m_indices[0]; } in getIndexPtr()
256 vector<deUint16> m_indices; member in deqp::gles3::Functional::__anonbf97a0050111::PosTexCoordQuadGrid
286 m_indices.reserve(m_gridSize*m_gridSize*3*2); in PosTexCoordQuadGrid()
303 m_indices.push_back(deUint16(firstNdx + 0)); in PosTexCoordQuadGrid()
304 m_indices.push_back(deUint16(firstNdx + 1)); in PosTexCoordQuadGrid()
305 m_indices.push_back(deUint16(firstNdx + 2)); in PosTexCoordQuadGrid()
307 m_indices.push_back(deUint16(firstNdx + 1)); in PosTexCoordQuadGrid()
308 m_indices.push_back(deUint16(firstNdx + 3)); in PosTexCoordQuadGrid()
309 m_indices.push_back(deUint16(firstNdx + 2)); in PosTexCoordQuadGrid()
316 DE_ASSERT((int)m_indices.size() == m_gridSize*m_gridSize*3*2); in PosTexCoordQuadGrid()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/robustness/
DvktRobustnessVertexAccessTests.cpp227 const std::vector<deUint32> m_indices; member in vkt::robustness::DrawIndexedAccessInstance
1087 , m_indices (indices) in DrawIndexedAccessInstance()
1095 for (deUint32 i = 0; i < m_indices.size(); i++) in initVertexIds()
1097 DE_ASSERT(m_indices[i] < indexCount); in initVertexIds()
1099 indicesPtr[m_indices[i]] = i; in initVertexIds()
1105 DE_ASSERT(vertexNum < (deUint32)m_indices.size()); in getIndex()
1107 return m_indices[vertexNum]; in getIndex()
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkRayTracingUtil.hpp277 std::vector<I> m_indices; // Indices are stored natively. member in vk::RaytracedGeometry
301 , m_indices(indices) in RaytracedGeometry()
342 return static_cast<deUint32>(isTrianglesType() ? m_indices.size() : 0); in getIndexCount()
352 return reinterpret_cast<const deUint8*>(m_indices.data()); in getIndexPointer()
373 …return static_cast<deUint32>(isTrianglesType() ? (usesIndices() ? m_indices.size() / 3 : m_vertexC… in getPrimitiveCount()
426 m_indices.push_back(convertIndexTo<I>(index)); in addIndex()
/third_party/vk-gl-cts/framework/referencerenderer/
DrrRenderer.hpp104 …const void* const m_indices; // !< if indices is NULL, indices is interpreted as [first (== bas… member in rr::PrimitiveList
DrrRenderer.cpp1701 , m_indices (DE_NULL) in PrimitiveList()
1712 , m_indices (indices.indices) in PrimitiveList()
1722 if (m_indices) in getIndex()
1724 int index = m_baseVertex + (int)readIndexArray(m_indexType, m_indices, elementNdx); in getIndex()
1736 if (m_indices) in isRestartIndex()
1737 return readIndexArray(m_indexType, m_indices, elementNdx) == restartIndex; in isRestartIndex()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRender.cpp180 const deUint16* getIndices (void) const { return &m_indices[0]; } in getIndices()
203 std::vector<deUint16> m_indices; member in vkt::sr::QuadGrid
253 m_indices.resize(3 * m_numTriangles); in QuadGrid()
264 m_indices[baseNdx + 0] = (deUint16)v10; in QuadGrid()
265 m_indices[baseNdx + 1] = (deUint16)v00; in QuadGrid()
266 m_indices[baseNdx + 2] = (deUint16)v01; in QuadGrid()
268 m_indices[baseNdx + 3] = (deUint16)v10; in QuadGrid()
269 m_indices[baseNdx + 4] = (deUint16)v01; in QuadGrid()
270 m_indices[baseNdx + 5] = (deUint16)v11; in QuadGrid()
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fGeometryShaderTests.cpp1852 std::vector<deUint16> m_indices; member in deqp::gles31::Functional::__anon02b82a9b0111::GeometryShaderRenderTest
2100 …ctx.bufferData(GL_ELEMENT_ARRAY_BUFFER, m_indices.size() * sizeof(deUint16), &m_indices[0], GL_STA… in renderWithContext()
2671 m_indices.resize(4); in genVertexAttribData()
2672 m_indices[0] = 3; in genVertexAttribData()
2673 m_indices[1] = 2; in genVertexAttribData()
2674 m_indices[2] = 0xFFFF; // restart in genVertexAttribData()
2675 m_indices[3] = 1; in genVertexAttribData()