Lines Matching defs:context

385 tcu::TestStatus test (Context& context, const CaseDef caseDef)
387 const InstanceInterface& vki = context.getInstanceInterface();
388 const DeviceInterface& vk = context.getDeviceInterface();
389 const VkPhysicalDevice physicalDevice = context.getPhysicalDevice();
390 const VkDevice device = context.getDevice();
391 const VkQueue queue = context.getUniversalQueue();
392 const deUint32 queueFamilyIndex = context.getUniversalQueueFamilyIndex();
393 Allocator& allocator = context.getDefaultAllocator();
422 const ShaderWrapper vertexModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("vert"), 0u));
423 const ShaderWrapper fragmentModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("frag"), 0u));
470 pipeline.emplace_back(vki, vk, physicalDevice, device, context.getDeviceExtensions(), caseDef.pipelineConstructionType);
661 if (!tcu::intThresholdCompare(context.getTestContext().getLog(), "Image Comparison", "", expectedImage, resultImage, tcu::UVec4(1), tcu::COMPARE_LOG_RESULT))
786 tcu::TestStatus testNoAtt (Context& context, const NoAttCaseDef caseDef)
788 const InstanceInterface& vki = context.getInstanceInterface();
789 const DeviceInterface& vk = context.getDeviceInterface();
790 const VkPhysicalDevice physicalDevice = context.getPhysicalDevice();
791 const VkDevice device = context.getDevice();
792 const VkQueue queue = context.getUniversalQueue();
793 const deUint32 queueFamilyIndex = context.getUniversalQueueFamilyIndex();
794 Allocator& allocator = context.getDefaultAllocator();
800 const ShaderWrapper vertexModule (ShaderWrapper (vk, device, context.getBinaryCollection().get("vert"), 0u));
801 const ShaderWrapper fragmentModule (ShaderWrapper (vk, device, context.getBinaryCollection().get("frag"), 0u));
838 GraphicsPipelineWrapper pipeline (vki, vk, physicalDevice, device, context.getDeviceExtensions(), caseDef.pipelineConstructionType);
952 if (!tcu::intThresholdCompare(context.getTestContext().getLog(), "Image Comparison", "", expectedImage, resultImage, tcu::UVec4(1), tcu::COMPARE_LOG_RESULT))
1025 tcu::TestStatus testMultiAttachments (Context& context, const CaseDef caseDef)
1027 const InstanceInterface& vki = context.getInstanceInterface();
1028 const DeviceInterface& vk = context.getDeviceInterface();
1029 const VkPhysicalDevice physicalDevice = context.getPhysicalDevice();
1030 const VkDevice device = context.getDevice();
1031 const VkQueue queue = context.getUniversalQueue();
1032 const deUint32 queueFamilyIndex = context.getUniversalQueueFamilyIndex();
1033 Allocator& allocator = context.getDefaultAllocator();
1073 GraphicsPipelineWrapper pipeline (vki, vk, physicalDevice, device, context.getDeviceExtensions(), caseDef.pipelineConstructionType);
1076 const ShaderWrapper vertexModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("vert"), 0u));
1077 const ShaderWrapper fragmentModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("frag"), 0u));
1349 if (!tcu::intThresholdCompare(context.getTestContext().getLog(), (std::string("Image Comparison of render target ") + de::toString(renderTargetIdx)).c_str(), "", expectedImage, resultImage, tcu::UVec4(1), tcu::COMPARE_LOG_RESULT))
1475 tcu::TestStatus testInputResolveSameAttachment(Context &context, const CaseDef caseDef)
1477 const InstanceInterface& vki = context.getInstanceInterface();
1478 const DeviceInterface& vk = context.getDeviceInterface();
1479 const VkPhysicalDevice physicalDevice = context.getPhysicalDevice();
1480 const VkDevice device = context.getDevice();
1481 const VkQueue queue = context.getUniversalQueue();
1482 const deUint32 queueFamilyIndex = context.getUniversalQueueFamilyIndex();
1483 Allocator& allocator = context.getDefaultAllocator();
1511 GraphicsPipelineWrapper pipeline (vki, vk, physicalDevice, device, context.getDeviceExtensions(), caseDef.pipelineConstructionType);
1514 const ShaderWrapper vertexModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("vert"), 0u));
1515 const ShaderWrapper fragmentModule (ShaderWrapper(vk, device, context.getBinaryCollection().get("frag"), 0u));
1730 if (!tcu::intThresholdCompare(context.getTestContext().getLog(), "Image Comparison", "", expectedImage, resultImage, tcu::UVec4(1), tcu::COMPARE_LOG_RESULT))
1736 tcu::TestStatus testUnusedAtt (Context& context, PipelineConstructionType pipelineConstructionType)
1738 const DeviceInterface& vk = context.getDeviceInterface();
1739 const VkDevice device = context.getDevice();
1740 const Move<VkCommandPool> cmdPool (createCommandPool(vk, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, context.getUniversalQueueFamilyIndex()));
1923 void checkConstructionTypeSupport (Context& context, PipelineConstructionType pipelineConstructionType)
1925 checkPipelineConstructionRequirements(context.getInstanceInterface(), context.getPhysicalDevice(), pipelineConstructionType);
1928 void checkSupport (Context& context, const CaseDef caseDef)
1930 checkConstructionTypeSupport(context, caseDef.pipelineConstructionType);
1933 void checkSupportNoAtt (Context& context, const NoAttCaseDef caseDef)
1935 const auto& features = context.getDeviceFeatures();
1937 context.requireDeviceCoreFeature(DEVICE_CORE_FEATURE_FRAGMENT_STORES_AND_ATOMICS);
1943 context.requireDeviceCoreFeature(DEVICE_CORE_FEATURE_SAMPLE_RATE_SHADING); // MS shader uses gl_SampleID
1945 checkConstructionTypeSupport(context, caseDef.pipelineConstructionType);