/third_party/vk-gl-cts/framework/referencerenderer/ |
D | rrVertexAttrib.hpp | 151 …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()
|
D | rrVertexAttrib.cpp | 491 …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()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineInputAssemblyTests.cpp | 478 for (int vertexNdx = 0; vertexNdx < 2; vertexNdx++) in createBufferData() local 482 …tcu::Vec4(originX + float((primitiveNdx * 2 + vertexNdx) / 2) * primitiveSizeX, originY + float(ve… in createBufferData() 487 indices.push_back((primitiveNdx * 2 + vertexNdx)); in createBufferData() 527 for (int vertexNdx = 0; vertexNdx < 3; vertexNdx++) in createBufferData() local 531 …(originX + float((primitiveNdx * 3 + vertexNdx) / 2) * primitiveSizeX, originY + float((primitiveN… in createBufferData() 536 indices.push_back(primitiveNdx * 3 + vertexNdx); in createBufferData() 546 for (int vertexNdx = 0; vertexNdx < 3; vertexNdx++) in createBufferData() local 550 …tcu::Vec4(originX + float(vertexNdx / 2) * primitiveSizeX, originY + float(vertexNdx % 2) * primit… in createBufferData() 555 indices.push_back(vertexNdx); in createBufferData() 619 for (int vertexNdx = 0; vertexNdx < 2; vertexNdx++) in createBufferData() local [all …]
|
D | vktPipelineVertexUtil.cpp | 1152 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) in createQuadMosaicCube() local 1154 vertexItr->texCoord.xyz() = texCoordsCube[texCoordCubeIndices[quadNdx][vertexNdx]]; in createQuadMosaicCube() 1169 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) in createQuadMosaicCubeArray() local 1195 for (size_t vertexNdx = 0; vertexNdx < 6; vertexNdx++) in createTestQuadMosaic() local 1196 vertices[quadNdx * 6 + vertexNdx].texCoord.y() = (float)quadNdx; in createTestQuadMosaic() 1208 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createTestQuadMosaic() local 1210 vertices[vertexNdx].texCoord.z() /= 5.0f; in createTestQuadMosaic() 1211 …vertices[vertexNdx].texCoord.z() -= 0.001f; // Substract small value to correct floating-point err… in createTestQuadMosaic()
|
D | vktPipelineReferenceRenderer.cpp | 272 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()
|
D | vktPipelineReferenceRenderer.hpp | 70 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()
|
D | vktPipelineStencilTests.cpp | 680 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) local 681 m_vertices[quadNdx * 6 + vertexNdx].position.z() = StencilTest::s_quadDepths[quadNdx]; 812 for (size_t vertexNdx = 0; vertexNdx < cwVertices.size() - 2; vertexNdx += 3) in verifyImage() local 814 const Vertex4RGBA cwVertex1 = cwVertices[vertexNdx + 1]; in verifyImage() 816 cwVertices[vertexNdx + 1] = cwVertices[vertexNdx + 2]; in verifyImage() 817 cwVertices[vertexNdx + 2] = cwVertex1; in verifyImage()
|
D | vktPipelineDepthTests.cpp | 835 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) local 837 …m_vertices[quadNdx * 6 + vertexNdx].position.z() = (hasDepthClipControl ? DepthTest::quadDepthsMin… 841 m_vertices[quadNdx * 6 + vertexNdx].position.x() *= w; 842 m_vertices[quadNdx * 6 + vertexNdx].position.y() *= w; 843 m_vertices[quadNdx * 6 + vertexNdx].position.z() *= w; 844 m_vertices[quadNdx * 6 + vertexNdx].position.w() = w; 848 m_altVertices[quadNdx * 6 + vertexNdx].position = m_vertices[quadNdx * 6 + vertexNdx].position; 849 float z = m_altVertices[quadNdx * 6 + vertexNdx].position.z(); 850 float w = m_altVertices[quadNdx * 6 + vertexNdx].position.w(); 862 m_altVertices[quadNdx * 6 + vertexNdx].position.z() = (z + w) * 0.5f;
|
D | vktPipelineSamplerTests.cpp | 824 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createVertices() local 825 vertices[vertexNdx].texCoord.x() = (vertices[vertexNdx].texCoord.x() - 0.5f) * 4.0f; in createVertices() 831 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createVertices() local 832 …vertices[vertexNdx].texCoord.xy() = (vertices[vertexNdx].texCoord.swizzle(0, 1) - tcu::Vec2(0.5f))… in createVertices() 837 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createVertices() local 838 …vertices[vertexNdx].texCoord.xyz() = (vertices[vertexNdx].texCoord.swizzle(0, 1, 2) - tcu::Vec3(0.… in createVertices()
|
D | vktPipelinePushConstantTests.cpp | 653 for (size_t vertexNdx = 0; vertexNdx < 3; vertexNdx++) in verifyImage() local 655 m_vertices[vertexNdx].color.xyz() = tcu::Vec3(0.0f, 1.0f, 0.0f); in verifyImage() 657 for (size_t vertexNdx = 3; vertexNdx < m_vertices.size(); vertexNdx++) in verifyImage() local 659 m_vertices[vertexNdx].color.xyz() = tcu::Vec3(0.0f, 0.0f, 1.0f); in verifyImage() 816 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) in setReferenceColor() local 818 m_vertices[vertexNdx].color.xyzw() = color; in setReferenceColor() 1034 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) in setReferenceColor() local 1036 m_vertices[vertexNdx].color.xyzw() = expectedColor; in setReferenceColor()
|
D | vktPipelineBlendTests.cpp | 813 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) local 814 …m_vertices[vertexNdx].color = (m_vertices[vertexNdx].color - formatInfo.lookupBias) / formatInfo.l… 1413 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) local 1415 …m_vertices[vertexNdx].color0 = (m_vertices[vertexNdx].color0 - formatInfo.lookupBias) / formatInfo… 1416 …m_vertices[vertexNdx].color1 = (m_vertices[vertexNdx].color1 - formatInfo.lookupBias) / formatInfo…
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
D | vktPipelineInputAssemblyTests.cpp | 478 for (int vertexNdx = 0; vertexNdx < 2; vertexNdx++) in createBufferData() local 482 …tcu::Vec4(originX + float((primitiveNdx * 2 + vertexNdx) / 2) * primitiveSizeX, originY + float(ve… in createBufferData() 487 indices.push_back((primitiveNdx * 2 + vertexNdx)); in createBufferData() 527 for (int vertexNdx = 0; vertexNdx < 3; vertexNdx++) in createBufferData() local 531 …(originX + float((primitiveNdx * 3 + vertexNdx) / 2) * primitiveSizeX, originY + float((primitiveN… in createBufferData() 536 indices.push_back(primitiveNdx * 3 + vertexNdx); in createBufferData() 546 for (int vertexNdx = 0; vertexNdx < 3; vertexNdx++) in createBufferData() local 550 …tcu::Vec4(originX + float(vertexNdx / 2) * primitiveSizeX, originY + float(vertexNdx % 2) * primit… in createBufferData() 555 indices.push_back(vertexNdx); in createBufferData() 619 for (int vertexNdx = 0; vertexNdx < 2; vertexNdx++) in createBufferData() local [all …]
|
D | vktPipelineVertexUtil.cpp | 1152 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) in createQuadMosaicCube() local 1154 vertexItr->texCoord.xyz() = texCoordsCube[texCoordCubeIndices[quadNdx][vertexNdx]]; in createQuadMosaicCube() 1169 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) in createQuadMosaicCubeArray() local 1195 for (size_t vertexNdx = 0; vertexNdx < 6; vertexNdx++) in createTestQuadMosaic() local 1196 vertices[quadNdx * 6 + vertexNdx].texCoord.y() = (float)quadNdx; in createTestQuadMosaic() 1208 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createTestQuadMosaic() local 1210 vertices[vertexNdx].texCoord.z() /= 5.0f; in createTestQuadMosaic() 1211 …vertices[vertexNdx].texCoord.z() -= 0.001f; // Substract small value to correct floating-point err… in createTestQuadMosaic()
|
D | vktPipelineReferenceRenderer.cpp | 272 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()
|
D | vktPipelineReferenceRenderer.hpp | 70 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()
|
D | vktPipelineStencilTests.cpp | 680 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) local 681 m_vertices[quadNdx * 6 + vertexNdx].position.z() = StencilTest::s_quadDepths[quadNdx]; 812 for (size_t vertexNdx = 0; vertexNdx < cwVertices.size() - 2; vertexNdx += 3) in verifyImage() local 814 const Vertex4RGBA cwVertex1 = cwVertices[vertexNdx + 1]; in verifyImage() 816 cwVertices[vertexNdx + 1] = cwVertices[vertexNdx + 2]; in verifyImage() 817 cwVertices[vertexNdx + 2] = cwVertex1; in verifyImage()
|
D | vktPipelineDepthTests.cpp | 835 for (int vertexNdx = 0; vertexNdx < 6; vertexNdx++) local 837 …m_vertices[quadNdx * 6 + vertexNdx].position.z() = (hasDepthClipControl ? DepthTest::quadDepthsMin… 841 m_vertices[quadNdx * 6 + vertexNdx].position.x() *= w; 842 m_vertices[quadNdx * 6 + vertexNdx].position.y() *= w; 843 m_vertices[quadNdx * 6 + vertexNdx].position.z() *= w; 844 m_vertices[quadNdx * 6 + vertexNdx].position.w() = w; 848 m_altVertices[quadNdx * 6 + vertexNdx].position = m_vertices[quadNdx * 6 + vertexNdx].position; 849 float z = m_altVertices[quadNdx * 6 + vertexNdx].position.z(); 850 float w = m_altVertices[quadNdx * 6 + vertexNdx].position.w(); 862 m_altVertices[quadNdx * 6 + vertexNdx].position.z() = (z + w) * 0.5f;
|
D | vktPipelineSamplerTests.cpp | 824 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createVertices() local 825 vertices[vertexNdx].texCoord.x() = (vertices[vertexNdx].texCoord.x() - 0.5f) * 4.0f; in createVertices() 831 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createVertices() local 832 …vertices[vertexNdx].texCoord.xy() = (vertices[vertexNdx].texCoord.swizzle(0, 1) - tcu::Vec2(0.5f))… in createVertices() 837 for (size_t vertexNdx = 0; vertexNdx < vertices.size(); vertexNdx++) in createVertices() local 838 …vertices[vertexNdx].texCoord.xyz() = (vertices[vertexNdx].texCoord.swizzle(0, 1, 2) - tcu::Vec3(0.… in createVertices()
|
D | vktPipelinePushConstantTests.cpp | 653 for (size_t vertexNdx = 0; vertexNdx < 3; vertexNdx++) in verifyImage() local 655 m_vertices[vertexNdx].color.xyz() = tcu::Vec3(0.0f, 1.0f, 0.0f); in verifyImage() 657 for (size_t vertexNdx = 3; vertexNdx < m_vertices.size(); vertexNdx++) in verifyImage() local 659 m_vertices[vertexNdx].color.xyz() = tcu::Vec3(0.0f, 0.0f, 1.0f); in verifyImage() 816 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) in setReferenceColor() local 818 m_vertices[vertexNdx].color.xyzw() = color; in setReferenceColor() 1034 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) in setReferenceColor() local 1036 m_vertices[vertexNdx].color.xyzw() = expectedColor; in setReferenceColor()
|
D | vktPipelineBlendTests.cpp | 813 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) local 814 …m_vertices[vertexNdx].color = (m_vertices[vertexNdx].color - formatInfo.lookupBias) / formatInfo.l… 1413 for (size_t vertexNdx = 0; vertexNdx < m_vertices.size(); vertexNdx++) local 1415 …m_vertices[vertexNdx].color0 = (m_vertices[vertexNdx].color0 - formatInfo.lookupBias) / formatInfo… 1416 …m_vertices[vertexNdx].color1 = (m_vertices[vertexNdx].color1 - formatInfo.lookupBias) / formatInfo…
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fFboTestUtil.cpp | 117 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 …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/ |
D | vktRayQueryTraversalControlTests.cpp | 638 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 …]
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_query/ |
D | vktRayQueryTraversalControlTests.cpp | 638 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 …]
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/ |
D | vktTessellationUserDefinedIO.cpp | 941 for (int vertexNdx = 0; vertexNdx < numVertices; ++vertexNdx) in iterate() local 942 if (vertices[vertexNdx] > numTEInputs) in iterate() 945 << "Failure: out_te_firstFailedInputIndex has value " << vertices[vertexNdx] in iterate() 950 else if (vertices[vertexNdx] != numTEInputs) in iterate() 953 …<< basicSubobjectAtIndex(vertices[vertexNdx], m_tesInputs, topLevelArraySize) << " failed" << tcu:… in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/ |
D | vktTessellationUserDefinedIO.cpp | 941 for (int vertexNdx = 0; vertexNdx < numVertices; ++vertexNdx) in iterate() local 942 if (vertices[vertexNdx] > numTEInputs) in iterate() 945 << "Failure: out_te_firstFailedInputIndex has value " << vertices[vertexNdx] in iterate() 950 else if (vertices[vertexNdx] != numTEInputs) in iterate() 953 …<< basicSubobjectAtIndex(vertices[vertexNdx], m_tesInputs, topLevelArraySize) << " failed" << tcu:… in iterate()
|