Lines Matching defs:context
42 inline void release (Context& context, VkBuffer buffer, const VkAllocationCallbacks* pAllocator)
44 context.getDeviceInterface().destroyBuffer(context.getDevice(), buffer, pAllocator);
47 inline void release (Context& context, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator)
49 context.getDeviceInterface().destroyBufferView(context.getDevice(), bufferView, pAllocator);
53 inline void release (Context& context, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator)
55 context.getDeviceInterface().destroyCommandPool(context.getDevice(), commandPool, pAllocator);
58 inline void release (Context& context, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator)
60 context.getDeviceInterface().destroyDescriptorPool(context.getDevice(), descriptorPool, pAllocator);
64 inline void release (Context& context, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator)
66 context.getDeviceInterface().destroyDescriptorSetLayout(context.getDevice(), descriptorSetLayout, pAllocator);
69 inline void release (Context& context, VkDevice device, const VkAllocationCallbacks* pAllocator)
71 context.getDeviceInterface().destroyDevice(device, pAllocator);
74 inline void release (Context& context, VkEvent event, const VkAllocationCallbacks* pAllocator)
76 context.getDeviceInterface().destroyEvent(context.getDevice(), event, pAllocator);
79 inline void release (Context& context, VkFence fence, const VkAllocationCallbacks* pAllocator)
81 context.getDeviceInterface().destroyFence(context.getDevice(), fence, pAllocator);
84 inline void release (Context& context, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator)
86 context.getDeviceInterface().destroyFramebuffer(context.getDevice(), framebuffer, pAllocator);
89 inline void release (Context& context, VkImage image, const VkAllocationCallbacks* pAllocator)
91 context.getDeviceInterface().destroyImage(context.getDevice(), image, pAllocator);
94 inline void release (Context& context, VkImageView imageView, const VkAllocationCallbacks* pAllocator)
96 context.getDeviceInterface().destroyImageView(context.getDevice(), imageView, pAllocator);
99 inline void release (Context& context, VkInstance instance, const VkAllocationCallbacks* pAllocator)
101 context.getInstanceInterface().destroyInstance(instance, pAllocator);
104 inline void release (Context& context, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator)
106 context.getDeviceInterface().destroyPipeline(context.getDevice(), pipeline, pAllocator);
109 inline void release (Context& context, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator)
111 context.getDeviceInterface().destroyPipelineCache(context.getDevice(), pipelineCache, pAllocator);
114 inline void release (Context& context, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator)
116 context.getDeviceInterface().destroyPipelineLayout(context.getDevice(), pipelineLayout, pAllocator);
120 inline void release (Context& context, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator)
122 context.getDeviceInterface().destroyQueryPool(context.getDevice(), queryPool, pAllocator);
126 inline void release (Context& context, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator)
128 context.getDeviceInterface().destroyRenderPass(context.getDevice(), renderPass, pAllocator);
131 inline void release (Context& context, VkSampler sampler, const VkAllocationCallbacks* pAllocator)
133 context.getDeviceInterface().destroySampler(context.getDevice(), sampler, pAllocator);
136 inline void release (Context& context, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator)
138 context.getDeviceInterface().destroySemaphore(context.getDevice(), semaphore, pAllocator);
141 inline void release (Context& context, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator)
144 context.getDeviceInterface().destroyShaderModule(context.getDevice(), shaderModule, pAllocator);
146 DE_UNREF(context);
152 inline void release (Context& context, VkDevice device, VkCommandPool cmdPool, deUint32 numCmdBuffers, const VkCommandBuffer* pCmdBuffers)
157 context.getDeviceInterface().freeCommandBuffers(device, cmdPool, numCmdBuffers, pCmdBuffers);
160 inline void release (Context& context, VkDevice device, VkDescriptorPool descriptorPool, deUint32 numDescriptorSets, const VkDescriptorSet* pDescriptorSets)
165 context.getDeviceInterface().freeDescriptorSets(device, descriptorPool, numDescriptorSets, pDescriptorSets);
169 inline void release (Context& context, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator)
171 context.getDeviceInterface().freeMemory(context.getDevice(), memory, pAllocator);
184 tcu::TestStatus test (Context& context)
195 release(context, nullHandle, pNullAllocator);
198 release(context, nullHandle, recordingAllocator.getCallbacks());
206 tcu::TestStatus test<VkCommandBuffer> (Context& context)
208 const DeviceInterface& vk = context.getDeviceInterface();
209 const VkDevice device = context.getDevice();
210 const deUint32 queueFamilyIndex = context.getUniversalQueueFamilyIndex();
227 release(context, device, *cmdPool, numHandles, pNullHandles);
237 release(context, device, *cmdPool, numHandles, pNullHandles);
246 void checkSupportFreeDescriptorSets (Context& context)
249 if(context.getDeviceVulkanSC10Properties().recycleDescriptorSetMemory == VK_FALSE )
252 DE_UNREF(context);
257 tcu::TestStatus test<VkDescriptorSet> (Context& context)
259 const DeviceInterface& vk = context.getDeviceInterface();
260 const VkDevice device = context.getDevice();
286 release(context, device, *descriptorPool, numHandles, pNullHandles);
296 release(context, device, *descriptorPool, numHandles, pNullHandles);
305 void checkEventSupport (Context& context)
308 if (context.isDeviceFunctionalitySupported("VK_KHR_portability_subset") && !context.getPortabilitySubsetFeatures().events)
311 DE_UNREF(context);