Home
last modified time | relevance | path

Searched refs:vertexNdx (Results 1 – 25 of 60) sorted by relevance

123

/external/deqp/framework/referencerenderer/
DrrVertexAttrib.hpp151 …dst, const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx, const int baseI…
152 …dst, const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx, const int baseI…
153 …dst, const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx, const int baseI…
157 …oat (const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx, const int baseI… in readVertexAttribFloat() argument
160 readVertexAttrib(v, vertexAttrib, instanceNdx, vertexNdx, baseInstanceNdx); in readVertexAttribFloat()
164 …Int (const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx, const int baseI… in readVertexAttribInt() argument
167 readVertexAttrib(v, vertexAttrib, instanceNdx, vertexNdx, baseInstanceNdx); in readVertexAttribInt()
171 …int (const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx, const int baseI… in readVertexAttribUint() argument
174 readVertexAttrib(v, vertexAttrib, instanceNdx, vertexNdx, baseInstanceNdx); in readVertexAttribUint()
DrrVertexAttrib.cpp491 …dst, const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx, const int baseI… in readVertexAttrib() argument
497 …instanceDivisor != 0) ? baseInstanceNdx + (instanceNdx / vertexAttrib.instanceDivisor) : vertexNdx; in readVertexAttrib()
511 …dst, const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx, const int baseI… in readVertexAttrib() argument
517 …instanceDivisor != 0) ? baseInstanceNdx + (instanceNdx / vertexAttrib.instanceDivisor) : vertexNdx; in readVertexAttrib()
531 …dst, const VertexAttrib& vertexAttrib, const int instanceNdx, const int vertexNdx, const int baseI… in readVertexAttrib() argument
537 …instanceDivisor != 0) ? baseInstanceNdx + (instanceNdx / vertexAttrib.instanceDivisor) : vertexNdx; in readVertexAttrib()
DrrVertexPacket.hpp57 int vertexNdx; //!< Vertex index. member
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineInputAssemblyTests.cpp400 for (int vertexNdx = 0; vertexNdx < 2; vertexNdx++) in createBufferData() local
404 …tcu::Vec4(originX + float((primitiveNdx * 2 + vertexNdx) / 2) * primitiveSizeX, originY + float(ve… in createBufferData()
409 indices.push_back((primitiveNdx * 2 + vertexNdx)); in createBufferData()
449 for (int vertexNdx = 0; vertexNdx < 3; vertexNdx++) in createBufferData() local
453 …(originX + float((primitiveNdx * 3 + vertexNdx) / 2) * primitiveSizeX, originY + float((primitiveN… in createBufferData()
458 indices.push_back(primitiveNdx * 3 + vertexNdx); in createBufferData()
468 for (int vertexNdx = 0; vertexNdx < 3; vertexNdx++) in createBufferData() local
472 …tcu::Vec4(originX + float(vertexNdx / 2) * primitiveSizeX, originY + float(vertexNdx % 2) * primit… in createBufferData()
477 indices.push_back(vertexNdx); in createBufferData()
541 for (int vertexNdx = 0; vertexNdx < 2; vertexNdx++) in createBufferData() local
[all …]
DvktPipelineVertexUtil.cpp1151 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) in createQuadMosaicCube() local
1153 vertexItr->texCoord.xyz() = texCoordsCube[texCoordCubeIndices[quadNdx][vertexNdx]]; in createQuadMosaicCube()
1168 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) in createQuadMosaicCubeArray() local
1194 for (size_t vertexNdx = 0; vertexNdx < 6; vertexNdx++) in createTestQuadMosaic() local
1195 vertices[quadNdx * 6 + vertexNdx].texCoord.y() = (float)quadNdx; in createTestQuadMosaic()
1207 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createTestQuadMosaic() local
1209 vertices[vertexNdx].texCoord.z() /= 5.0f; in createTestQuadMosaic()
1210 …vertices[vertexNdx].texCoord.z() -= 0.001f; // Substract small value to correct floating-point err… in createTestQuadMosaic()
DvktPipelineReferenceRenderer.cpp272 for (size_t vertexNdx = 0; vertexNdx < vertexBuffer.size(); vertexNdx++) in draw() local
274 const Vertex4RGBA& v = vertexBuffer[vertexNdx]; in draw()
304 for (size_t vertexNdx = 0; vertexNdx < vertexBuffer.size(); vertexNdx++) in draw() local
306 const Vertex4RGBARGBA& v = vertexBuffer[vertexNdx]; in draw()
341 for (size_t vertexNdx = 0; vertexNdx < vertexBuffer.size(); vertexNdx++) in draw() local
343 const Vertex4Tex4& v = vertexBuffer[vertexNdx]; in draw()
DvktPipelineReferenceRenderer.hpp70 readVertexAttrib(position, inputs[0], packet->instanceNdx, packet->vertexNdx); in shadeVertices()
71 readVertexAttrib(color, inputs[1], packet->instanceNdx, packet->vertexNdx); in shadeVertices()
108 readVertexAttrib(position, inputs[0], packet->instanceNdx, packet->vertexNdx); in shadeVertices()
109 readVertexAttrib(color0, inputs[1], packet->instanceNdx, packet->vertexNdx); in shadeVertices()
110 readVertexAttrib(color1, inputs[2], packet->instanceNdx, packet->vertexNdx); in shadeVertices()
145 readVertexAttrib(position, inputs[0], packet->instanceNdx, packet->vertexNdx); in shadeVertices()
146 readVertexAttrib(texCoord, inputs[1], packet->instanceNdx, packet->vertexNdx); in shadeVertices()
DvktPipelineStencilTests.cpp646 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) in StencilTestInstance() local
647 m_vertices[quadNdx * 6 + vertexNdx].position.z() = StencilTest::s_quadDepths[quadNdx]; in StencilTestInstance()
782 for (size_t vertexNdx = 0; vertexNdx < cwVertices.size() - 2; vertexNdx += 3) in verifyImage() local
784 const Vertex4RGBA cwVertex1 = cwVertices[vertexNdx + 1]; in verifyImage()
786 cwVertices[vertexNdx + 1] = cwVertices[vertexNdx + 2]; in verifyImage()
787 cwVertices[vertexNdx + 2] = cwVertex1; in verifyImage()
DvktPipelineSamplerTests.cpp783 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createVertices() local
784 vertices[vertexNdx].texCoord.x() = (vertices[vertexNdx].texCoord.x() - 0.5f) * 4.0f; in createVertices()
790 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createVertices() local
791 …vertices[vertexNdx].texCoord.xy() = (vertices[vertexNdx].texCoord.swizzle(0, 1) - tcu::Vec2(0.5f))… in createVertices()
796 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createVertices() local
797 …vertices[vertexNdx].texCoord.xyz() = (vertices[vertexNdx].texCoord.swizzle(0, 1, 2) - tcu::Vec3(0.… in createVertices()
DvktPipelinePushConstantTests.cpp626 for (size_t vertexNdx = 0; vertexNdx < 3; vertexNdx++) in verifyImage() local
628 m_vertices[vertexNdx].color.xyz() = tcu::Vec3(0.0f, 1.0f, 0.0f); in verifyImage()
630 for (size_t vertexNdx = 3; vertexNdx < m_vertices.size(); vertexNdx++) in verifyImage() local
632 m_vertices[vertexNdx].color.xyz() = tcu::Vec3(0.0f, 0.0f, 1.0f); in verifyImage()
788 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) in setReferenceColor() local
790 m_vertices[vertexNdx].color.xyzw() = color; in setReferenceColor()
1004 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) in setReferenceColor() local
1006 m_vertices[vertexNdx].color.xyzw() = expectedColor; in setReferenceColor()
DvktPipelineBlendTests.cpp795 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) in BlendTestInstance() local
796 …m_vertices[vertexNdx].color = (m_vertices[vertexNdx].color - formatInfo.lookupBias) / formatInfo.l… in BlendTestInstance()
1385 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) in DualSourceBlendTestInstance() local
1387 …m_vertices[vertexNdx].color0 = (m_vertices[vertexNdx].color0 - formatInfo.lookupBias) / formatInfo… in DualSourceBlendTestInstance()
1388 …m_vertices[vertexNdx].color1 = (m_vertices[vertexNdx].color1 - formatInfo.lookupBias) / formatInfo… in DualSourceBlendTestInstance()
DvktPipelineDepthTests.cpp608 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) in DepthTestInstance() local
609 m_vertices[quadNdx * 6 + vertexNdx].position.z() = DepthTest::quadDepths[quadNdx]; in DepthTestInstance()
/external/deqp/modules/gles3/functional/
Des3fFboTestUtil.cpp117 packet.position = rr::readVertexAttribFloat(inputs[0], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
202 packet.position = rr::readVertexAttribFloat(inputs[0], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
203 packet.outputs[0] = rr::readVertexAttribFloat(inputs[1], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
366 packet.position = rr::readVertexAttribFloat(inputs[0], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
367 packet.outputs[0] = rr::readVertexAttribFloat(inputs[1], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
517 …tcu::Vec2 a_coord = rr::readVertexAttribFloat(inputs[1], packet.instanceNdx, packet.vertexNdx).x… in shadeVertices()
520 packet.position = rr::readVertexAttribFloat(inputs[0], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
627 packet.position = rr::readVertexAttribFloat(inputs[0], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
628 packet.outputs[0] = rr::readVertexAttribFloat(inputs[1], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
735 packet.position = rr::readVertexAttribFloat(inputs[0], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
[all …]
Des3fPolygonOffsetTests.cpp236 …osition = rr::readVertexAttribFloat(inputs[positionAttrLoc], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
239 …LOC_COLOR] = rr::readVertexAttribFloat(inputs[colorAttrLoc], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
534 for (int vertexNdx = 0; vertexNdx < DE_LENGTH_OF_ARRAY(triangle); ++vertexNdx) in testPolygonOffset() local
535 triangle[vertexNdx] = genRandomVec4(rnd); in testPolygonOffset()
/external/deqp/external/vulkancts/modules/vulkan/ray_query/
DvktRayQueryTraversalControlTests.cpp638 for (deUint32 vertexNdx = 0; vertexNdx < 4; ++vertexNdx) in verifyImage() local
640 if (vertexNdx == 0) in verifyImage()
642 referenceAccess.setPixel(hitValue0, vertexNdx, 0, 0); in verifyImage()
643 referenceAccess.setPixel(hitValue1, vertexNdx, 0, 1); in verifyImage()
647 referenceAccess.setPixel(missValue, vertexNdx, 0, 0); in verifyImage()
648 referenceAccess.setPixel(missValue, vertexNdx, 0, 1); in verifyImage()
657 for (deUint32 vertexNdx = 0; vertexNdx < 3; ++vertexNdx) in verifyImage() local
659 deUint32 vNdx = primitives[primitiveNdx][vertexNdx]; in verifyImage()
662 referenceAccess.setPixel(hitValue0, primitiveNdx, vertexNdx, 0); in verifyImage()
663 referenceAccess.setPixel(hitValue1, primitiveNdx, vertexNdx, 1); in verifyImage()
[all …]
DvktRayQueryAccelerationStructuresTests.cpp694 for (deUint32 vertexNdx = 0; vertexNdx < 4; ++vertexNdx) in verifyImage() local
696 if (!allMiss && (vertexNdx == 1 || vertexNdx == 2)) in verifyImage()
698 referenceAccess.setPixel(hitValue0, vertexNdx, 0, 0); in verifyImage()
699 referenceAccess.setPixel(hitValue1, vertexNdx, 0, 1); in verifyImage()
703 referenceAccess.setPixel(missValue, vertexNdx, 0, 0); in verifyImage()
704 referenceAccess.setPixel(missValue, vertexNdx, 0, 1); in verifyImage()
713 for (deUint32 vertexNdx = 0; vertexNdx < 3; ++vertexNdx) in verifyImage() local
715 deUint32 vNdx = primitives[primitiveNdx][vertexNdx]; in verifyImage()
718 referenceAccess.setPixel(hitValue0, primitiveNdx, vertexNdx, 0); in verifyImage()
719 referenceAccess.setPixel(hitValue1, primitiveNdx, vertexNdx, 1); in verifyImage()
[all …]
DvktRayQueryCullRayFlagsTests.cpp704 for (deUint32 vertexNdx = 0; vertexNdx < 3; ++vertexNdx) in verifyImage() local
706 deUint32 vNdx = primitives[primitiveNdx][vertexNdx]; in verifyImage()
708 referenceAccess.setPixel(hitValue, primitiveNdx, vertexNdx, 0); in verifyImage()
709 referenceAccess.setPixel(hitValue, primitiveNdx, vertexNdx, 1); in verifyImage()
/external/deqp/external/vulkancts/modules/vulkan/tessellation/
DvktTessellationUserDefinedIO.cpp939 for (int vertexNdx = 0; vertexNdx < numVertices; ++vertexNdx) in iterate() local
940 if (vertices[vertexNdx] > numTEInputs) in iterate()
943 << "Failure: out_te_firstFailedInputIndex has value " << vertices[vertexNdx] in iterate()
948 else if (vertices[vertexNdx] != numTEInputs) in iterate()
951 …<< basicSubobjectAtIndex(vertices[vertexNdx], m_tesInputs, topLevelArraySize) << " failed" << tcu:… in iterate()
/external/deqp/modules/gles31/functional/
Des31fShaderHelperInvocationTests.cpp127 for (int vertexNdx = 0; vertexNdx < numVerticesPerPrimitive; ++vertexNdx) in genVertices() local
129 const float p = (*dst)[primitiveNdx * numVerticesPerPrimitive + vertexNdx][component]; in genVertices()
Des31fFboTestUtil.cpp209 packet.position = rr::readVertexAttribFloat(inputs[0], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
210 packet.outputs[0] = rr::readVertexAttribFloat(inputs[1], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
377 …u::Vec2 a_coord = rr::readVertexAttribFloat(inputs[1], packet.instanceNdx, packet.vertexNdx).xy(); in shadeVertices()
380 packet.position = rr::readVertexAttribFloat(inputs[0], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
Des31fGeometryShaderTests.cpp229 …osition = rr::readVertexAttribFloat(inputs[0], packets[ndx]->instanceNdx, packets[ndx]->vertexNdx); in shadeVertices()
231 …puts[0] = rr::readVertexAttribFloat(inputs[1], packets[ndx]->instanceNdx, packets[ndx]->vertexNdx); in shadeVertices()
336 …osition = rr::readVertexAttribFloat(inputs[0], packets[ndx]->instanceNdx, packets[ndx]->vertexNdx); in shadeVertices()
338 …puts[0] = rr::readVertexAttribFloat(inputs[1], packets[ndx]->instanceNdx, packets[ndx]->vertexNdx); in shadeVertices()
462 …4 color = rr::readVertexAttribFloat(inputs[1], packets[ndx]->instanceNdx, packets[ndx]->vertexNdx); in shadeVertices()
464 …osition = rr::readVertexAttribFloat(inputs[0], packets[ndx]->instanceNdx, packets[ndx]->vertexNdx); in shadeVertices()
718 for (int vertexNdx = 0; vertexNdx < 3; ++vertexNdx) in genProgramDeclaration() local
724 …"\tgl_Position = vec4(" << ((vertexNdx==0) ? ("0.0, 0.0") : ((vertexNdx==1) ? ("1.0, 0.0") : ("1.0… in genProgramDeclaration()
736 geometrySource << "\tinputColor = v_geom_0[" << vertexNdx << "];\n"; in genProgramDeclaration()
740 …geometrySource << "\tinputColor = v_geom_0[" << vertexNdx << "] * 0.5 + v_geom_1[" << vertexNdx <<… in genProgramDeclaration()
[all …]
Des31fSeparateShaderTests.cpp464 for (int vertexNdx = 0; vertexNdx < DE_LENGTH_OF_ARRAY(s_quadrants); ++vertexNdx) in genVtxShaderSrc() local
470 printFloat(oss, s_quadrants[vertexNdx][componentNdx] * rnd.getInt(4,16) / 16.0); in genVtxShaderSrc()
474 oss << ")" << (vertexNdx < 2 ? "," : "") << "\n"; in genVtxShaderSrc()
/external/deqp/modules/gles2/functional/
Des2fPolygonOffsetTests.cpp233 …osition = rr::readVertexAttribFloat(inputs[positionAttrLoc], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
236 …LOC_COLOR] = rr::readVertexAttribFloat(inputs[colorAttrLoc], packet.instanceNdx, packet.vertexNdx); in shadeVertices()
531 for (int vertexNdx = 0; vertexNdx < DE_LENGTH_OF_ARRAY(triangle); ++vertexNdx) in testPolygonOffset() local
532 triangle[vertexNdx] = genRandomVec4(rnd); in testPolygonOffset()
/external/deqp/modules/glshared/
DglsFragOpInteractionCase.cpp143 static void setVertex (const glu::VertexArrayPointer& pointer, int vertexNdx, const tcu::Vector<flo… in setVertex() argument
148 DE_ASSERT(de::inBounds(vertexNdx, 0, pointer.numElements)); in setVertex()
150 float* dst = (float*)((deUint8*)pointer.data + pointer.stride*vertexNdx); in setVertex()
DglsVertexArrayTests.cpp844 …rr::readVertexAttribFloat(inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), attribNdx == 0… in shadeVertices()
845 … rr::readVertexAttribInt (inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), attribNdx == 0… in shadeVertices()
846 …rr::readVertexAttribUint (inputs[attribNdx], packet.instanceNdx, packet.vertexNdx), attribNdx == 0… in shadeVertices()
1405 for (int vertexNdx = 0; vertexNdx < count; vertexNdx++) in generateArray() local
1409 …setData(&(data[vertexNdx * stride + Array::inputTypeSize(type) * componentNdx]), type, rnd, min, m… in generateArray()

123