/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/tessellation/ |
D | vktTessellationShaderInputOutputTests.cpp | 67 const int numPrimitives, in runTest() argument 166 vk.cmdDraw(*cmdBuffer, numPrimitives * inPatchSize, 1u, 0u, 0u); in runTest() 315 const int numPrimitives = 1; in test() local 317 return runTest(context, numPrimitives, caseDef.inPatchSize, caseDef.outPatchSize, in test() 469 const int numPrimitives = getNumPrimitives(caseDef.caseType); in test() local 470 std::vector<float> vertexData (INPUT_PATCH_SIZE * numPrimitives, 0.0f); in test() 473 for (int i = 0; i < numPrimitives; ++i) in test() 474 vertexData[INPUT_PATCH_SIZE * i] = static_cast<float>(i) / static_cast<float>(numPrimitives); in test() 482 return runTest(context, numPrimitives, INPUT_PATCH_SIZE, OUTPUT_PATCH_SIZE, in test() 609 const int numPrimitives = 1; in test() local [all …]
|
D | vktTessellationGeometryGridRenderTests.cpp | 224 const int numPrimitives = m_numGeometryPrimitivesPerInvocation; in initPrograms() local 231 …= " << ((m_flags & FLAG_GEOMETRY_SEPARATE_PRIMITIVES) ? (4 * numPrimitives) : (numPrimitives + 2))… in initPrograms() 264 << " for (int ndx = 0; ndx < " << numPrimitives << "; ++ndx)\n" in initPrograms() 266 …<< " ivec2 dstGridSize = ivec2(" << m_tessGenLevel << " * " << numPrimitives << ", 2 * " <<… in initPrograms() 303 << " for (int ndx = 0; ndx < " << numPrimitives << "; ++ndx)\n" in initPrograms() 305 …<< " ivec2 dstGridSize = ivec2(" << m_tessGenLevel << " * " << numPrimitives << ", " << m_t… in initPrograms() 306 …<< " ivec2 dstGridNdx = ivec2((gridPosition.x * " << numPrimitives << " * 7 + ndx)*13, (gri… in initPrograms() 373 << " for (int ndx = 0; ndx < " << ((numPrimitives+2)/2) << "; ++ndx)\n" in initPrograms() 378 …os = mix(outputSliceArea.x, outputSliceArea.z, float(ndx) / float(" << (numPrimitives/2) << "));\n" in initPrograms()
|
D | vktTessellationPrimitiveDiscardTests.cpp | 153 const int numPrimitives, in verifyResultImage() argument 166 for (int patchNdx = 0; patchNdx < numPrimitives; ++patchNdx) in verifyResultImage() 245 int expectedVertexCount (const int numPrimitives, in expectedVertexCount() argument 252 for (int patchNdx = 0; patchNdx < numPrimitives; ++patchNdx) in expectedVertexCount() 390 const int numPrimitives = static_cast<int>(attributes.size() / numAttribsPerPrimitive); in test() local 391 …const int numExpectedVertices = expectedVertexCount(numPrimitives, numAttribsPerPrimitive, ca… in test() 396 for (int patchNdx = 0; patchNdx < numPrimitives; ++patchNdx) in test() 412 DE_ASSERT(static_cast<int>(attributes.size()) == numPrimitives * numAttribsPerPrimitive); in test() 489 …<< "Note: rendering " << numPrimitives << " patches; first patches have valid relevant outer level… in test() 587 …return (verifyResultImage(log, numPrimitives, numAttribsPerPrimitive, caseDef.primitiveType, attri… in test()
|
D | vktTessellationInvarianceTests.cpp | 527 void logPrimitiveCountError (tcu::TestLog& log, const int numPatchesToDraw, int numPrimitives, cons… in logPrimitiveCountError() argument 530 …<< "Failure: the number of generated primitives is " << numPrimitives << ", expected at least " <<… in logPrimitiveCountError() 554 deInt32 numPrimitives; member 683 result.numPrimitives = *static_cast<deInt32*>(resultAlloc.getHostPtr()); in draw() 684 …result.primitives = sorted(readInterleavedData<PerPrimitive>(result.numPrimitives, resultAlloc.g… in draw() 688 DE_ASSERT(result.numPrimitives <= m_maxNumPrimitivesInDrawCall); in draw() 691 if (result.numPrimitives < result.refNumPrimitives) in draw() 693 …logPrimitiveCountError(log, m_numPatchesToDraw, result.numPrimitives, result.refNumPrimitives, pat… in draw() 766 …for (; primitiveNdx < result.numPrimitives && result.primitives[primitiveNdx].patchPrimitiveID == … in iterate() 799 DE_ASSERT(primitiveNdx == result.numPrimitives); in iterate() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fRasterizerDiscardTests.cpp | 80 …ase (Context& context, const char* name, const char* description, int numPrimitives, CaseType case… 107 …ase (Context& context, const char* name, const char* description, int numPrimitives, CaseType case… in RasterizerDiscardCase() argument 109 , m_numPrimitives (numPrimitives) in RasterizerDiscardCase() 127 static void generateVertices (std::vector<float>& dst, int numPrimitives, de::Random& rnd, deUint32… in generateVertices() argument 133 case GL_POINTS: numVertices = numPrimitives; break; in generateVertices() 134 case GL_LINES: numVertices = 2*numPrimitives; break; in generateVertices() 135 case GL_LINE_STRIP: numVertices = numPrimitives+1; break; in generateVertices() 136 case GL_LINE_LOOP: numVertices = numPrimitives+2; break; in generateVertices() 137 case GL_TRIANGLES: numVertices = 3*numPrimitives; break; in generateVertices() 138 case GL_TRIANGLE_STRIP: numVertices = numPrimitives+2; break; in generateVertices() [all …]
|
D | es3fSyncTests.cpp | 66 …se (Context& context, const char* name, const char* description, int numPrimitives, deUint32 wait… 89 …ase (Context& context, const char* name, const char* description, int numPrimitives, deUint32 wait… in FenceSyncCase() argument 92 , m_numPrimitives (numPrimitives) in FenceSyncCase() 109 static void generateVertices (std::vector<float>& dst, int numPrimitives, de::Random& rnd) in generateVertices() argument 111 int numVertices = 3*numPrimitives; in generateVertices()
|
D | es3fTransformFeedbackTests.cpp | 1253 deUint32 numPrimitives = 0; in runTest() local 1256 gl.getQueryObjectuiv(*primitiveQuery, GL_QUERY_RESULT, &numPrimitives); in runTest() 1265 …log << TestLog::Message << "GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN = " << numPrimitives << TestL… in runTest() 1267 if ((int)numPrimitives != expectedCount) in runTest()
|
/third_party/vk-gl-cts/modules/gles31/stress/ |
D | es31sTessellationGeometryInteractionTests.cpp | 85 std::string getGeometryShaderSource (int numPrimitives, int numInstances); 488 std::string GridRenderCase::getGeometryShaderSource (int numPrimitives, int numInstances) in getGeometryShaderSource() argument 495 "layout(triangle_strip, max_vertices=" << (numPrimitives + 2) << ") out;\n" in getGeometryShaderSource() 535 " for (int ndx = 0; ndx < " << ((numPrimitives+2)/2) << "; ++ndx)\n" in getGeometryShaderSource() 540 …" float xpos = mix(outputSliceArea.x, outputSliceArea.z, float(ndx) / float(" << (numPrimitives/2… in getGeometryShaderSource()
|
/third_party/vk-gl-cts/modules/gles3/stress/ |
D | es3sSyncTests.cpp | 60 …se (Context& context, const char* name, const char* description, int numPrimitives, deUint32 wait… 97 static void generateVertices (std::vector<float>& dst, int numPrimitives, de::Random& rnd) in generateVertices() argument 99 int numVertices = 3*numPrimitives; in generateVertices()
|
/third_party/vk-gl-cts/modules/gles31/functional/ |
D | es31fShaderHelperInvocationTests.cpp | 101 static void genVertices (PrimitiveType primType, int numPrimitives, de::Random* rnd, vector<Vec2>* … in genVertices() argument 107 const int numVert = numVerticesPerPrimitive*numPrimitives; in genVertices() 121 for (int primitiveNdx = 0; primitiveNdx < numPrimitives; ++primitiveNdx) in genVertices() 162 …nderContext& renderCtx, deUint32 program, PrimitiveType primType, int numPrimitives, de::Random* r… in drawRandomPrimitives() argument 172 genVertices(primType, numPrimitives, rnd, &vertices); in drawRandomPrimitives()
|
D | es31fTessellationGeometryInteractionTests.cpp | 2158 std::string getGeometryShaderSource (int numPrimitives, int numInstances, int tessLevel); 2657 std::string GridRenderCase::getGeometryShaderSource (int numPrimitives, int numInstances, int tessL… in getGeometryShaderSource() argument 2664 …s=" << ((m_flags & FLAG_GEOMETRY_SEPARATE_PRIMITIVES) ? (4 * numPrimitives) : (numPrimitives + 2))… in getGeometryShaderSource() 2697 " for (int ndx = 0; ndx < " << numPrimitives << "; ++ndx)\n" in getGeometryShaderSource() 2699 …" ivec2 dstGridSize = ivec2(" << tessLevel << " * " << numPrimitives << ", 2 * " << tessLevel << … in getGeometryShaderSource() 2736 " for (int ndx = 0; ndx < " << numPrimitives << "; ++ndx)\n" in getGeometryShaderSource() 2738 …" ivec2 dstGridSize = ivec2(" << tessLevel << " * " << numPrimitives << ", " << tessLevel << ");\… in getGeometryShaderSource() 2739 …" ivec2 dstGridNdx = ivec2((gridPosition.x * " << numPrimitives << " * 7 + ndx)*13, (gridPosition… in getGeometryShaderSource() 2806 " for (int ndx = 0; ndx < " << ((numPrimitives+2)/2) << "; ++ndx)\n" in getGeometryShaderSource() 2811 …os = mix(outputSliceArea.x, outputSliceArea.z, float(ndx) / float(" << (numPrimitives/2) << "));\n" in getGeometryShaderSource()
|
D | es31fTessellationTests.cpp | 302 int numPrimitives; member 305 Result (void) : numPrimitives(-1) {} in Result() 306 Result (int n, const vector<VaryingT>& v) : numPrimitives(n), varying(v) {} in Result() 2120 if (tfResult.numPrimitives != (int)tessCoordsRef.size()) in iterate() 2123 << tfResult.numPrimitives << ", reference value is " << tessCoordsRef.size() in iterate() 2128 …reported GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN to be " << tfResult.numPrimitives << TestLog::En… in iterate() 3341 …const int numPrimitives = m_caseType == CASETYPE_PRIMITIVE_ID_TCS || m_caseType == CASETYPE_PRIMIT… in iterate() local 3344 attributeData.reserve(numPrimitives*INPUT_PATCH_SIZE); in iterate() 3346 for (int i = 0; i < numPrimitives; i++) in iterate() 3348 attributeData.push_back((float)i / (float)numPrimitives); in iterate() [all …]
|
/third_party/skia/third_party/externals/swiftshader/src/Device/ |
D | Renderer.cpp | 260 draw->numPrimitives = count; in draw() 486 auto const numPrimitives = draw->numPrimitives; in run() local 502 …batch->numPrimitives = std::min(batch->firstPrimitive + numPrimitivesPerBatch, numPrimitives) - ba… in run() 543 batch->numPrimitives, in processVertices() 551 …vertexTask.vertexCount = batch->numPrimitives * ((draw->topology == VK_PRIMITIVE_TOPOLOGY_POINT_LI… in processVertices() 566 …tch->numVisible = draw->setupPrimitives(device, triangles, primitives, draw, batch->numPrimitives); in processPrimitives()
|
D | Renderer.hpp | 130 unsigned int numPrimitives; member 151 unsigned int numPrimitives; member
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/rasterization/ |
D | vktRasterizationOrderAttachmentAccessTests.cpp | 326 …tcu::TestStatus validateResults(deUint32 numDraws, deUint32 numPrimitives, deUint32 numInstanc… 1459 …deUint32 numPrimitives = m_testCase->m_overlapPrimitives ? 2 * AttachmentAccessOrderTestCase::ELEM… in iterate() local 1482 m_vk.cmdDraw(*m_cmdBuffer, numPrimitives * 3, numInstances, 0, 0); in iterate() 1503 return validateResults(numDraws, numPrimitives, numInstances); in iterate() 1506 …tAccessOrderTestInstance::validateResults(deUint32 numDraws, deUint32 numPrimitives, deUint32 numI… in validateResults() argument 1521 if (pixel[0] != 0 || pixel[1] != numDraws * numPrimitives/2 * numInstances) in validateResults() 1537 if (pixel[0] != 0 || pixel[1] != (float)(numDraws * numPrimitives/2 * numInstances)) in validateResults()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/ |
D | vktMeshShaderBuiltinTests.cpp | 675 const auto numPrimitives = (m_shareVertices ? kNumLayers : 1u); in initPrograms() local 687 << "layout (max_vertices=3, max_primitives=" << numPrimitives << ") out;\n" in initPrograms() 695 << " gl_PrimitiveCountNV = " << numPrimitives << ";\n" in initPrograms() 799 const auto numPrimitives = (m_shareVertices ? kQuadrants : 1u); in initPrograms() local 811 << "layout (max_vertices=3, max_primitives=" << numPrimitives << ") out;\n" in initPrograms() 819 << " gl_PrimitiveCountNV = " << numPrimitives << ";\n" in initPrograms()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/ |
D | vktTransformFeedbackSimpleTests.cpp | 956 const deUint32 numPrimitives = numPoints / vertexPerPrimitive; in verifyTransformFeedbackBuffer() local 959 for (deUint32 primitiveIndex = 0; primitiveIndex < numPrimitives; ++primitiveIndex) in verifyTransformFeedbackBuffer()
|