Lines Matching defs:context
837 void checkSupport (Context& context, TestConfig config)
840 context.requireDeviceCoreFeature(config.requiredFeatures[featureNdx]);
2271 SubpassRenderer (Context& context,
2296 const InstanceInterface& vki = context.getInstanceInterface();
2297 const VkPhysicalDevice& physDevice = context.getPhysicalDevice();
2374 m_vertexShaderModule = createShaderModule(vk, device, context.getBinaryCollection().get(de::toString(subpassIndex) + "-vert"), 0u);
2375 m_fragmentShaderModule = createShaderModule(vk, device, context.getBinaryCollection().get(de::toString(subpassIndex) + "-frag"), 0u);
2380 const auto properties = vk::getPhysicalDeviceProperties(context.getInstanceInterface(), context.getPhysicalDevice());
4826 void initializeAttachmentImageUsage (Context &context, vector<VkImageUsageFlags>& attachmentImageUsage, const RenderPass& renderPassInfo, const vector<bool>& attachmentIsLazy, const vector<Maybe<VkClearValue> >& clearValues)
4843 const VkFormatProperties formatProperties = getPhysicalDeviceFormatProperties(context.getInstanceInterface(), context.getPhysicalDevice(), attachment.getFormat());
5103 tcu::TestStatus renderPassTest (Context& context, TestConfig config)
5110 TestLog& log = context.getTestContext().getLog();
5126 context.requireDeviceFunctionality("VK_KHR_maintenance5");
5133 context.requireDeviceFunctionality("VK_KHR_create_renderpass2");
5136 context.requireDeviceFunctionality("VK_KHR_dynamic_rendering");
5140 if (!context.isDeviceFunctionalitySupported("VK_KHR_dedicated_allocation"))
5146 if (!context.isDeviceFunctionalitySupported("VK_KHR_maintenance2"))
5207 if (requireDepthStencilLayout && !context.isDeviceFunctionalitySupported("VK_KHR_maintenance2"))
5213 initializeAttachmentImageUsage(context, attachmentImageUsage, renderPassInfo, attachmentIsLazy, imageClearValues);
5221 checkTextureFormatSupport(log, context.getInstanceInterface(), context.getPhysicalDevice(), config.renderPass.getAttachments());
5224 const vk::VkPhysicalDeviceProperties properties = vk::getPhysicalDeviceProperties(context.getInstanceInterface(), context.getPhysicalDevice());
5236 const InstanceInterface& vki = context.getInstanceInterface();
5237 const VkPhysicalDevice& physDevice = context.getPhysicalDevice();
5238 const VkDevice device = context.getDevice();
5239 const DeviceInterface& vk = context.getDeviceInterface();
5240 const VkQueue queue = context.getUniversalQueue();
5241 const deUint32 queueIndex = context.getUniversalQueueFamilyIndex();
5242 Allocator& allocator = context.getDefaultAllocator();
5290 subpassRenderers.push_back(de::SharedPtr<SubpassRenderer>(new SubpassRenderer(context, vk, device, allocator, renderPassInfo, attachmentResources,
5319 if (!context.getTestContext().getCommandLine().isSubProcess())
5332 RenderPassNoDrawLoadStoreTestCase(tcu::TestContext& context, const std::string& name, bool useRenderPass2);
5333 TestInstance* createInstance (Context& context) const override;
5341 RenderPassNoDrawLoadStoreTestInstance(Context& context, bool useRenderPass2);
5350 RenderPassNoDrawLoadStoreTestCase::RenderPassNoDrawLoadStoreTestCase(tcu::TestContext& context, const std::string& name, bool useRenderPass2)
5351 : vkt::TestCase(context, name), m_renderPass2(useRenderPass2) {}
5353 RenderPassNoDrawLoadStoreTestInstance::RenderPassNoDrawLoadStoreTestInstance(Context& context, bool useRenderPass2) : vkt::TestInstance(context), m_renderPass2(useRenderPass2) { }
5355 TestInstance* RenderPassNoDrawLoadStoreTestCase::createInstance(Context& context) const {
5356 return new RenderPassNoDrawLoadStoreTestInstance(context, m_renderPass2);