Lines Matching defs:testSpec
125 IndirectDraw (Context &context, TestSpec testSpec);
186 IndirectDrawInstanced (Context &context, TestSpec testSpec);
346 IndirectDraw::IndirectDraw (Context &context, TestSpec testSpec)
347 : DrawTestsBaseClass (context, testSpec.shaders[glu::SHADERTYPE_VERTEX], testSpec.shaders[glu::SHADERTYPE_FRAGMENT], testSpec.groupParams, testSpec.topology, testSpec.layerCount)
348 , m_testIndirectCountExt (testSpec.testIndirectCountExt)
350 , m_drawType (testSpec.drawType)
351 , m_testFirstInstanceNdx (testSpec.testFirstInstanceNdx)
352 , m_dataFromComputeShader (testSpec.dataFromCompute)
353 , m_useMemoryAccess (testSpec.useMemoryAccess)
354 , m_bindIndexBufferOffset (testSpec.bindIndexBufferOffset)
355 , m_indexBufferAllocOffset (testSpec.indexBufferAllocOffset)
369 if (testSpec.drawType == DRAW_TYPE_INDEXED)
870 IndirectDrawInstanced<FirstInstanceSupport>::IndirectDrawInstanced (Context &context, TestSpec testSpec)
871 : IndirectDraw(context, testSpec)
1229 void checkSupport(Context& context, IndirectDraw::TestSpec testSpec)
1231 if (testSpec.testIndirectCountExt != IndirectCountType::NONE)
1234 if (testSpec.groupParams->useDynamicRendering)
1237 if (testSpec.layerCount > 1u)
1307 IndirectDraw::TestSpec testSpec(m_groupParams);
1308 testSpec.drawType = static_cast<DrawType>(drawTypeIdx);
1309 testSpec.dataFromCompute = dataFromCompute;
1310 testSpec.bindIndexBufferOffset = bindIndexBufferOffset;
1311 testSpec.indexBufferAllocOffset = indexBufferAllocOffset;
1312 testSpec.shaders[glu::SHADERTYPE_VERTEX] = "vulkan/draw/VertexFetch.vert";
1313 testSpec.shaders[glu::SHADERTYPE_FRAGMENT] = "vulkan/draw/VertexFetch.frag";
1315 testSpec.shaders[glu::SHADERTYPE_COMPUTE] = "vulkan/draw/NegateData.comp";
1317 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1319 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1320 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1322 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1327 testSpec.useMemoryAccess = true;
1329 (m_testCtx, "triangle_strip_memory_access", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1330 testSpec.useMemoryAccess = false;
1333 testSpec.testIndirectCountExt = IndirectCountType::BUFFER_LIMIT;
1334 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1336 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1337 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1339 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1344 testSpec.useMemoryAccess = true;
1346 (m_testCtx, "triangle_strip_memory_access", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1347 testSpec.useMemoryAccess = false;
1350 testSpec.testIndirectCountExt = IndirectCountType::PARAM_LIMIT;
1351 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1353 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1354 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1356 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1358 testSpec.testIndirectCountExt = IndirectCountType::BUFFER_LIMIT;
1359 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1360 testSpec.layerCount = 2u;
1362 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1374 IndirectDraw::TestSpec testSpec(m_groupParams);
1375 testSpec.testFirstInstanceNdx = true;
1376 testSpec.drawType = static_cast<DrawType>(drawTypeIdx);
1377 testSpec.dataFromCompute = dataFromCompute;
1378 testSpec.bindIndexBufferOffset = bindIndexBufferOffset;
1379 testSpec.indexBufferAllocOffset = indexBufferAllocOffset;
1380 testSpec.shaders[glu::SHADERTYPE_VERTEX] = "vulkan/draw/VertexFetchInstanceIndex.vert";
1381 testSpec.shaders[glu::SHADERTYPE_FRAGMENT] = "vulkan/draw/VertexFetch.frag";
1383 testSpec.shaders[glu::SHADERTYPE_COMPUTE] = "vulkan/draw/NegateData.comp";
1385 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1387 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1388 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1390 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1392 testSpec.testIndirectCountExt = IndirectCountType::BUFFER_LIMIT;
1393 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1395 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1396 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1398 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1400 testSpec.testIndirectCountExt = IndirectCountType::PARAM_LIMIT;
1401 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1403 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1404 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1406 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IndirectDraw::TestSpec>::Args(checkSupport, testSpec)));
1423 IDFirstInstanceNotSupported::TestSpec testSpec(m_groupParams);
1424 testSpec.drawType = static_cast<DrawType>(drawTypeIdx);
1425 testSpec.dataFromCompute = dataFromCompute;
1426 testSpec.bindIndexBufferOffset = bindIndexBufferOffset;
1427 testSpec.indexBufferAllocOffset = indexBufferAllocOffset;
1429 testSpec.shaders[glu::SHADERTYPE_VERTEX] = "vulkan/draw/VertexFetchInstanced.vert";
1430 testSpec.shaders[glu::SHADERTYPE_FRAGMENT] = "vulkan/draw/VertexFetch.frag";
1432 testSpec.shaders[glu::SHADERTYPE_COMPUTE] = "vulkan/draw/NegateData.comp";
1434 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1436 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IDFirstInstanceNotSupported::TestSpec>::Args(checkSupport, testSpec)));
1437 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1439 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IDFirstInstanceNotSupported::TestSpec>::Args(checkSupport, testSpec)));
1441 testSpec.testIndirectCountExt = IndirectCountType::BUFFER_LIMIT;
1442 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1444 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IDFirstInstanceNotSupported::TestSpec>::Args(checkSupport, testSpec)));
1445 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1447 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IDFirstInstanceNotSupported::TestSpec>::Args(checkSupport, testSpec)));
1449 testSpec.testIndirectCountExt = IndirectCountType::PARAM_LIMIT;
1450 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1452 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IDFirstInstanceNotSupported::TestSpec>::Args(checkSupport, testSpec)));
1453 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1455 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IDFirstInstanceNotSupported::TestSpec>::Args(checkSupport, testSpec)));
1467 IDFirstInstanceSupported::TestSpec testSpec(m_groupParams);
1468 testSpec.drawType = static_cast<DrawType>(drawTypeIdx);
1469 testSpec.dataFromCompute = dataFromCompute;
1470 testSpec.bindIndexBufferOffset = bindIndexBufferOffset;
1471 testSpec.indexBufferAllocOffset = indexBufferAllocOffset;
1473 testSpec.shaders[glu::SHADERTYPE_VERTEX] = "vulkan/draw/VertexFetchInstancedFirstInstance.vert";
1474 testSpec.shaders[glu::SHADERTYPE_FRAGMENT] = "vulkan/draw/VertexFetch.frag";
1476 testSpec.shaders[glu::SHADERTYPE_COMPUTE] = "vulkan/draw/NegateData.comp";
1478 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1480 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IDFirstInstanceSupported::TestSpec>::Args(checkSupport, testSpec)));
1481 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1483 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IDFirstInstanceSupported::TestSpec>::Args(checkSupport, testSpec)));
1485 testSpec.testIndirectCountExt = IndirectCountType::BUFFER_LIMIT;
1486 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1488 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IDFirstInstanceSupported::TestSpec>::Args(checkSupport, testSpec)));
1489 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1491 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IDFirstInstanceSupported::TestSpec>::Args(checkSupport, testSpec)));
1493 testSpec.testIndirectCountExt = IndirectCountType::PARAM_LIMIT;
1494 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
1496 (m_testCtx, "triangle_list", testSpec, FunctionSupport1<IDFirstInstanceSupported::TestSpec>::Args(checkSupport, testSpec)));
1497 testSpec.topology = vk::VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
1499 (m_testCtx, "triangle_strip", testSpec, FunctionSupport1<IDFirstInstanceSupported::TestSpec>::Args(checkSupport, testSpec)));