1 /* WARNING: This is auto-generated file. Do not modify, since changes will
2 * be lost! Modify the generating script instead.
4 VkResult createInstance (const VkInstanceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkInstance* pInstance)
7 VK_NULL_RETURN(*pInstance = reinterpret_cast<VkInstance>(new Instance(pCreateInfo)));
10 VkResult createDevice (VkPhysicalDevice physicalDevice, const VkDeviceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDevice* pDevice)
13 VK_NULL_RETURN(*pDevice = reinterpret_cast<VkDevice>(new Device(physicalDevice, pCreateInfo)));
16 VkResult allocateMemory (VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory)
19 VK_NULL_RETURN(*pMemory = VkDeviceMemory((deUint64)(deUintptr)new DeviceMemory(device, pAllocateInfo)));
22 VkResult createFence (VkDevice device, const VkFenceCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFence* pFence)
25 VK_NULL_RETURN(*pFence = VkFence((deUint64)(deUintptr)new Fence(device, pCreateInfo)));
28 VkResult createSemaphore (VkDevice device, const VkSemaphoreCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSemaphore* pSemaphore)
31 VK_NULL_RETURN(*pSemaphore = VkSemaphore((deUint64)(deUintptr)new Semaphore(device, pCreateInfo)));
34 VkResult createEvent (VkDevice device, const VkEventCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkEvent* pEvent)
37 VK_NULL_RETURN(*pEvent = VkEvent((deUint64)(deUintptr)new Event(device, pCreateInfo)));
40 VkResult createQueryPool (VkDevice device, const VkQueryPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkQueryPool* pQueryPool)
43 VK_NULL_RETURN(*pQueryPool = VkQueryPool((deUint64)(deUintptr)new QueryPool(device, pCreateInfo)));
46 VkResult createBuffer (VkDevice device, const VkBufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBuffer* pBuffer)
49 VK_NULL_RETURN(*pBuffer = VkBuffer((deUint64)(deUintptr)new Buffer(device, pCreateInfo)));
52 VkResult createBufferView (VkDevice device, const VkBufferViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkBufferView* pView)
55 VK_NULL_RETURN(*pView = VkBufferView((deUint64)(deUintptr)new BufferView(device, pCreateInfo)));
58 VkResult createImage (VkDevice device, const VkImageCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImage* pImage)
61 VK_NULL_RETURN(*pImage = VkImage((deUint64)(deUintptr)new Image(device, pCreateInfo)));
64 VkResult createImageView (VkDevice device, const VkImageViewCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkImageView* pView)
67 VK_NULL_RETURN(*pView = VkImageView((deUint64)(deUintptr)new ImageView(device, pCreateInfo)));
70 VkResult createShaderModule (VkDevice device, const VkShaderModuleCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkShaderModule* pShaderModule)
73 VK_NULL_RETURN(*pShaderModule = VkShaderModule((deUint64)(deUintptr)new ShaderModule(device, pCreateInfo)));
76 VkResult createPipelineCache (VkDevice device, const VkPipelineCacheCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineCache* pPipelineCache)
79 VK_NULL_RETURN(*pPipelineCache = VkPipelineCache((deUint64)(deUintptr)new PipelineCache(device, pCreateInfo)));
82 VkResult createPipelineLayout (VkDevice device, const VkPipelineLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkPipelineLayout* pPipelineLayout)
85 VK_NULL_RETURN(*pPipelineLayout = VkPipelineLayout((deUint64)(deUintptr)new PipelineLayout(device, pCreateInfo)));
88 VkResult createSampler (VkDevice device, const VkSamplerCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkSampler* pSampler)
91 VK_NULL_RETURN(*pSampler = VkSampler((deUint64)(deUintptr)new Sampler(device, pCreateInfo)));
94 VkResult createDescriptorSetLayout (VkDevice device, const VkDescriptorSetLayoutCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorSetLayout* pSetLayout)
97 VK_NULL_RETURN(*pSetLayout = VkDescriptorSetLayout((deUint64)(deUintptr)new DescriptorSetLayout(device, pCreateInfo)));
100 VkResult createDescriptorPool (VkDevice device, const VkDescriptorPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkDescriptorPool* pDescriptorPool)
102 DE_UNREF(pAllocator);
103 VK_NULL_RETURN(*pDescriptorPool = VkDescriptorPool((deUint64)(deUintptr)new DescriptorPool(device, pCreateInfo)));
106 VkResult createFramebuffer (VkDevice device, const VkFramebufferCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkFramebuffer* pFramebuffer)
108 DE_UNREF(pAllocator);
109 VK_NULL_RETURN(*pFramebuffer = VkFramebuffer((deUint64)(deUintptr)new Framebuffer(device, pCreateInfo)));
112 VkResult createRenderPass (VkDevice device, const VkRenderPassCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkRenderPass* pRenderPass)
114 DE_UNREF(pAllocator);
115 VK_NULL_RETURN(*pRenderPass = VkRenderPass((deUint64)(deUintptr)new RenderPass(device, pCreateInfo)));
118 VkResult createCommandPool (VkDevice device, const VkCommandPoolCreateInfo* pCreateInfo, const VkAllocationCallbacks* pAllocator, VkCommandPool* pCommandPool)
120 DE_UNREF(pAllocator);
121 VK_NULL_RETURN(*pCommandPool = VkCommandPool((deUint64)(deUintptr)new CommandPool(device, pCreateInfo)));
124 void destroyInstance (VkInstance instance, const VkAllocationCallbacks* pAllocator)
126 DE_UNREF(pAllocator);
127 delete reinterpret_cast<Instance*>(instance);
130 void destroyDevice (VkDevice device, const VkAllocationCallbacks* pAllocator)
132 DE_UNREF(pAllocator);
133 delete reinterpret_cast<Device*>(device);
136 void freeMemory (VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator)
139 DE_UNREF(pAllocator);
140 delete reinterpret_cast<DeviceMemory*>((deUintptr)memory.getInternal());
143 void destroyFence (VkDevice device, VkFence fence, const VkAllocationCallbacks* pAllocator)
146 DE_UNREF(pAllocator);
147 delete reinterpret_cast<Fence*>((deUintptr)fence.getInternal());
150 void destroySemaphore (VkDevice device, VkSemaphore semaphore, const VkAllocationCallbacks* pAllocator)
153 DE_UNREF(pAllocator);
154 delete reinterpret_cast<Semaphore*>((deUintptr)semaphore.getInternal());
157 void destroyEvent (VkDevice device, VkEvent event, const VkAllocationCallbacks* pAllocator)
160 DE_UNREF(pAllocator);
161 delete reinterpret_cast<Event*>((deUintptr)event.getInternal());
164 void destroyQueryPool (VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator)
167 DE_UNREF(pAllocator);
168 delete reinterpret_cast<QueryPool*>((deUintptr)queryPool.getInternal());
171 void destroyBuffer (VkDevice device, VkBuffer buffer, const VkAllocationCallbacks* pAllocator)
174 DE_UNREF(pAllocator);
175 delete reinterpret_cast<Buffer*>((deUintptr)buffer.getInternal());
178 void destroyBufferView (VkDevice device, VkBufferView bufferView, const VkAllocationCallbacks* pAllocator)
181 DE_UNREF(pAllocator);
182 delete reinterpret_cast<BufferView*>((deUintptr)bufferView.getInternal());
185 void destroyImage (VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator)
188 DE_UNREF(pAllocator);
189 delete reinterpret_cast<Image*>((deUintptr)image.getInternal());
192 void destroyImageView (VkDevice device, VkImageView imageView, const VkAllocationCallbacks* pAllocator)
195 DE_UNREF(pAllocator);
196 delete reinterpret_cast<ImageView*>((deUintptr)imageView.getInternal());
199 void destroyShaderModule (VkDevice device, VkShaderModule shaderModule, const VkAllocationCallbacks* pAllocator)
202 DE_UNREF(pAllocator);
203 delete reinterpret_cast<ShaderModule*>((deUintptr)shaderModule.getInternal());
206 void destroyPipelineCache (VkDevice device, VkPipelineCache pipelineCache, const VkAllocationCallbacks* pAllocator)
209 DE_UNREF(pAllocator);
210 delete reinterpret_cast<PipelineCache*>((deUintptr)pipelineCache.getInternal());
213 void destroyPipeline (VkDevice device, VkPipeline pipeline, const VkAllocationCallbacks* pAllocator)
216 DE_UNREF(pAllocator);
217 delete reinterpret_cast<Pipeline*>((deUintptr)pipeline.getInternal());
220 void destroyPipelineLayout (VkDevice device, VkPipelineLayout pipelineLayout, const VkAllocationCallbacks* pAllocator)
223 DE_UNREF(pAllocator);
224 delete reinterpret_cast<PipelineLayout*>((deUintptr)pipelineLayout.getInternal());
227 void destroySampler (VkDevice device, VkSampler sampler, const VkAllocationCallbacks* pAllocator)
230 DE_UNREF(pAllocator);
231 delete reinterpret_cast<Sampler*>((deUintptr)sampler.getInternal());
234 void destroyDescriptorSetLayout (VkDevice device, VkDescriptorSetLayout descriptorSetLayout, const VkAllocationCallbacks* pAllocator)
237 DE_UNREF(pAllocator);
238 delete reinterpret_cast<DescriptorSetLayout*>((deUintptr)descriptorSetLayout.getInternal());
241 void destroyDescriptorPool (VkDevice device, VkDescriptorPool descriptorPool, const VkAllocationCallbacks* pAllocator)
244 DE_UNREF(pAllocator);
245 delete reinterpret_cast<DescriptorPool*>((deUintptr)descriptorPool.getInternal());
248 void destroyFramebuffer (VkDevice device, VkFramebuffer framebuffer, const VkAllocationCallbacks* pAllocator)
251 DE_UNREF(pAllocator);
252 delete reinterpret_cast<Framebuffer*>((deUintptr)framebuffer.getInternal());
255 void destroyRenderPass (VkDevice device, VkRenderPass renderPass, const VkAllocationCallbacks* pAllocator)
258 DE_UNREF(pAllocator);
259 delete reinterpret_cast<RenderPass*>((deUintptr)renderPass.getInternal());
262 void destroyCommandPool (VkDevice device, VkCommandPool commandPool, const VkAllocationCallbacks* pAllocator)
265 DE_UNREF(pAllocator);
266 delete reinterpret_cast<CommandPool*>((deUintptr)commandPool.getInternal());
269 void getPhysicalDeviceFeatures (VkPhysicalDevice physicalDevice, VkPhysicalDeviceFeatures* pFeatures)
271 DE_UNREF(physicalDevice);
275 VkResult getPhysicalDeviceImageFormatProperties (VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkImageTiling tiling, VkImageUsageFlags usage, VkImageCreateFlags flags, VkImageFormatProperties* pImageFormatProperties)
277 DE_UNREF(physicalDevice);
283 DE_UNREF(pImageFormatProperties);
287 VkResult enumerateInstanceExtensionProperties (const char* pLayerName, deUint32* pPropertyCount, VkExtensionProperties* pProperties)
289 DE_UNREF(pLayerName);
290 DE_UNREF(pPropertyCount);
291 DE_UNREF(pProperties);
295 VkResult enumerateDeviceExtensionProperties (VkPhysicalDevice physicalDevice, const char* pLayerName, deUint32* pPropertyCount, VkExtensionProperties* pProperties)
297 DE_UNREF(physicalDevice);
298 DE_UNREF(pLayerName);
299 DE_UNREF(pPropertyCount);
300 DE_UNREF(pProperties);
304 VkResult enumerateInstanceLayerProperties (deUint32* pPropertyCount, VkLayerProperties* pProperties)
306 DE_UNREF(pPropertyCount);
307 DE_UNREF(pProperties);
311 VkResult enumerateDeviceLayerProperties (VkPhysicalDevice physicalDevice, deUint32* pPropertyCount, VkLayerProperties* pProperties)
313 DE_UNREF(physicalDevice);
314 DE_UNREF(pPropertyCount);
315 DE_UNREF(pProperties);
319 void getDeviceQueue (VkDevice device, deUint32 queueFamilyIndex, deUint32 queueIndex, VkQueue* pQueue)
322 DE_UNREF(queueFamilyIndex);
323 DE_UNREF(queueIndex);
327 VkResult queueSubmit (VkQueue queue, deUint32 submitCount, const VkSubmitInfo* pSubmits, VkFence fence)
330 DE_UNREF(submitCount);
336 VkResult queueWaitIdle (VkQueue queue)
342 VkResult deviceWaitIdle (VkDevice device)
348 void unmapMemory (VkDevice device, VkDeviceMemory memory)
354 VkResult flushMappedMemoryRanges (VkDevice device, deUint32 memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges)
357 DE_UNREF(memoryRangeCount);
358 DE_UNREF(pMemoryRanges);
362 VkResult invalidateMappedMemoryRanges (VkDevice device, deUint32 memoryRangeCount, const VkMappedMemoryRange* pMemoryRanges)
365 DE_UNREF(memoryRangeCount);
366 DE_UNREF(pMemoryRanges);
370 void getDeviceMemoryCommitment (VkDevice device, VkDeviceMemory memory, VkDeviceSize* pCommittedMemoryInBytes)
374 DE_UNREF(pCommittedMemoryInBytes);
377 VkResult bindBufferMemory (VkDevice device, VkBuffer buffer, VkDeviceMemory memory, VkDeviceSize memoryOffset)
382 DE_UNREF(memoryOffset);
386 VkResult bindImageMemory (VkDevice device, VkImage image, VkDeviceMemory memory, VkDeviceSize memoryOffset)
391 DE_UNREF(memoryOffset);
395 void getImageSparseMemoryRequirements (VkDevice device, VkImage image, deUint32* pSparseMemoryRequirementCount, VkSparseImageMemoryRequirements* pSparseMemoryRequirements)
399 DE_UNREF(pSparseMemoryRequirementCount);
400 DE_UNREF(pSparseMemoryRequirements);
403 void getPhysicalDeviceSparseImageFormatProperties (VkPhysicalDevice physicalDevice, VkFormat format, VkImageType type, VkSampleCountFlagBits samples, VkImageUsageFlags usage, VkImageTiling tiling, deUint32* pPropertyCount, VkSparseImageFormatProperties* pProperties)
405 DE_UNREF(physicalDevice);
411 DE_UNREF(pPropertyCount);
412 DE_UNREF(pProperties);
415 VkResult queueBindSparse (VkQueue queue, deUint32 bindInfoCount, const VkBindSparseInfo* pBindInfo, VkFence fence)
418 DE_UNREF(bindInfoCount);
424 VkResult resetFences (VkDevice device, deUint32 fenceCount, const VkFence* pFences)
427 DE_UNREF(fenceCount);
432 VkResult getFenceStatus (VkDevice device, VkFence fence)
439 VkResult waitForFences (VkDevice device, deUint32 fenceCount, const VkFence* pFences, VkBool32 waitAll, deUint64 timeout)
442 DE_UNREF(fenceCount);
449 VkResult getEventStatus (VkDevice device, VkEvent event)
456 VkResult setEvent (VkDevice device, VkEvent event)
463 VkResult resetEvent (VkDevice device, VkEvent event)
470 VkResult getQueryPoolResults (VkDevice device, VkQueryPool queryPool, deUint32 startQuery, deUint32 queryCount, deUintptr dataSize, void* pData, VkDeviceSize stride, VkQueryResultFlags flags)
474 DE_UNREF(startQuery);
475 DE_UNREF(queryCount);
483 void getImageSubresourceLayout (VkDevice device, VkImage image, const VkImageSubresource* pSubresource, VkSubresourceLayout* pLayout)
487 DE_UNREF(pSubresource);
491 VkResult getPipelineCacheData (VkDevice device, VkPipelineCache pipelineCache, deUintptr* pDataSize, void* pData)
494 DE_UNREF(pipelineCache);
500 VkResult mergePipelineCaches (VkDevice device, VkPipelineCache dstCache, deUint32 srcCacheCount, const VkPipelineCache* pSrcCaches)
504 DE_UNREF(srcCacheCount);
505 DE_UNREF(pSrcCaches);
509 VkResult resetDescriptorPool (VkDevice device, VkDescriptorPool descriptorPool, VkDescriptorPoolResetFlags flags)
512 DE_UNREF(descriptorPool);
517 void updateDescriptorSets (VkDevice device, deUint32 descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, deUint32 descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies)
520 DE_UNREF(descriptorWriteCount);
521 DE_UNREF(pDescriptorWrites);
522 DE_UNREF(descriptorCopyCount);
523 DE_UNREF(pDescriptorCopies);
526 void getRenderAreaGranularity (VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity)
529 DE_UNREF(renderPass);
530 DE_UNREF(pGranularity);
533 VkResult resetCommandPool (VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags)
536 DE_UNREF(commandPool);
541 VkResult beginCommandBuffer (VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo)
543 DE_UNREF(commandBuffer);
544 DE_UNREF(pBeginInfo);
548 VkResult endCommandBuffer (VkCommandBuffer commandBuffer)
550 DE_UNREF(commandBuffer);
554 VkResult resetCommandBuffer (VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags)
556 DE_UNREF(commandBuffer);
561 void cmdBindPipeline (VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline)
563 DE_UNREF(commandBuffer);
564 DE_UNREF(pipelineBindPoint);
568 void cmdSetViewport (VkCommandBuffer commandBuffer, deUint32 viewportCount, const VkViewport* pViewports)
570 DE_UNREF(commandBuffer);
571 DE_UNREF(viewportCount);
572 DE_UNREF(pViewports);
575 void cmdSetScissor (VkCommandBuffer commandBuffer, deUint32 scissorCount, const VkRect2D* pScissors)
577 DE_UNREF(commandBuffer);
578 DE_UNREF(scissorCount);
582 void cmdSetLineWidth (VkCommandBuffer commandBuffer, float lineWidth)
584 DE_UNREF(commandBuffer);
588 void cmdSetDepthBias (VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor)
590 DE_UNREF(commandBuffer);
591 DE_UNREF(depthBiasConstantFactor);
592 DE_UNREF(depthBiasClamp);
593 DE_UNREF(depthBiasSlopeFactor);
596 void cmdSetBlendConstants (VkCommandBuffer commandBuffer, const float blendConstants[4])
598 DE_UNREF(commandBuffer);
599 DE_UNREF(blendConstants);
602 void cmdSetDepthBounds (VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds)
604 DE_UNREF(commandBuffer);
605 DE_UNREF(minDepthBounds);
606 DE_UNREF(maxDepthBounds);
609 void cmdSetStencilCompareMask (VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, deUint32 compareMask)
611 DE_UNREF(commandBuffer);
613 DE_UNREF(compareMask);
616 void cmdSetStencilWriteMask (VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, deUint32 writeMask)
618 DE_UNREF(commandBuffer);
623 void cmdSetStencilReference (VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, deUint32 reference)
625 DE_UNREF(commandBuffer);
630 void cmdBindDescriptorSets (VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, deUint32 firstSet, deUint32 descriptorSetCount, const VkDescriptorSet* pDescriptorSets, deUint32 dynamicOffsetCount, const deUint32* pDynamicOffsets)
632 DE_UNREF(commandBuffer);
633 DE_UNREF(pipelineBindPoint);
636 DE_UNREF(descriptorSetCount);
637 DE_UNREF(pDescriptorSets);
638 DE_UNREF(dynamicOffsetCount);
639 DE_UNREF(pDynamicOffsets);
642 void cmdBindIndexBuffer (VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType)
644 DE_UNREF(commandBuffer);
650 void cmdBindVertexBuffers (VkCommandBuffer commandBuffer, deUint32 startBinding, deUint32 bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets)
652 DE_UNREF(commandBuffer);
653 DE_UNREF(startBinding);
654 DE_UNREF(bindingCount);
659 void cmdDraw (VkCommandBuffer commandBuffer, deUint32 vertexCount, deUint32 instanceCount, deUint32 firstVertex, deUint32 firstInstance)
661 DE_UNREF(commandBuffer);
662 DE_UNREF(vertexCount);
663 DE_UNREF(instanceCount);
664 DE_UNREF(firstVertex);
665 DE_UNREF(firstInstance);
668 void cmdDrawIndexed (VkCommandBuffer commandBuffer, deUint32 indexCount, deUint32 instanceCount, deUint32 firstIndex, deInt32 vertexOffset, deUint32 firstInstance)
670 DE_UNREF(commandBuffer);
671 DE_UNREF(indexCount);
672 DE_UNREF(instanceCount);
673 DE_UNREF(firstIndex);
674 DE_UNREF(vertexOffset);
675 DE_UNREF(firstInstance);
678 void cmdDrawIndirect (VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, deUint32 drawCount, deUint32 stride)
680 DE_UNREF(commandBuffer);
687 void cmdDrawIndexedIndirect (VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, deUint32 drawCount, deUint32 stride)
689 DE_UNREF(commandBuffer);
696 void cmdDispatch (VkCommandBuffer commandBuffer, deUint32 x, deUint32 y, deUint32 z)
698 DE_UNREF(commandBuffer);
704 void cmdDispatchIndirect (VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset)
706 DE_UNREF(commandBuffer);
711 void cmdCopyBuffer (VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, deUint32 regionCount, const VkBufferCopy* pRegions)
713 DE_UNREF(commandBuffer);
716 DE_UNREF(regionCount);
720 void cmdCopyImage (VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, deUint32 regionCount, const VkImageCopy* pRegions)
722 DE_UNREF(commandBuffer);
724 DE_UNREF(srcImageLayout);
726 DE_UNREF(dstImageLayout);
727 DE_UNREF(regionCount);
731 void cmdBlitImage (VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, deUint32 regionCount, const VkImageBlit* pRegions, VkFilter filter)
733 DE_UNREF(commandBuffer);
735 DE_UNREF(srcImageLayout);
737 DE_UNREF(dstImageLayout);
738 DE_UNREF(regionCount);
743 void cmdCopyBufferToImage (VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, deUint32 regionCount, const VkBufferImageCopy* pRegions)
745 DE_UNREF(commandBuffer);
748 DE_UNREF(dstImageLayout);
749 DE_UNREF(regionCount);
753 void cmdCopyImageToBuffer (VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, deUint32 regionCount, const VkBufferImageCopy* pRegions)
755 DE_UNREF(commandBuffer);
757 DE_UNREF(srcImageLayout);
759 DE_UNREF(regionCount);
763 void cmdUpdateBuffer (VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const deUint32* pData)
765 DE_UNREF(commandBuffer);
772 void cmdFillBuffer (VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, deUint32 data)
774 DE_UNREF(commandBuffer);
781 void cmdClearColorImage (VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, deUint32 rangeCount, const VkImageSubresourceRange* pRanges)
783 DE_UNREF(commandBuffer);
785 DE_UNREF(imageLayout);
787 DE_UNREF(rangeCount);
791 void cmdClearDepthStencilImage (VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, deUint32 rangeCount, const VkImageSubresourceRange* pRanges)
793 DE_UNREF(commandBuffer);
795 DE_UNREF(imageLayout);
796 DE_UNREF(pDepthStencil);
797 DE_UNREF(rangeCount);
801 void cmdClearAttachments (VkCommandBuffer commandBuffer, deUint32 attachmentCount, const VkClearAttachment* pAttachments, deUint32 rectCount, const VkClearRect* pRects)
803 DE_UNREF(commandBuffer);
804 DE_UNREF(attachmentCount);
805 DE_UNREF(pAttachments);
810 void cmdResolveImage (VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, deUint32 regionCount, const VkImageResolve* pRegions)
812 DE_UNREF(commandBuffer);
814 DE_UNREF(srcImageLayout);
816 DE_UNREF(dstImageLayout);
817 DE_UNREF(regionCount);
821 void cmdSetEvent (VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask)
823 DE_UNREF(commandBuffer);
828 void cmdResetEvent (VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask)
830 DE_UNREF(commandBuffer);
835 void cmdWaitEvents (VkCommandBuffer commandBuffer, deUint32 eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, deUint32 memoryBarrierCount, const void* const* ppMemoryBarriers)
837 DE_UNREF(commandBuffer);
838 DE_UNREF(eventCount);
840 DE_UNREF(srcStageMask);
841 DE_UNREF(dstStageMask);
842 DE_UNREF(memoryBarrierCount);
843 DE_UNREF(ppMemoryBarriers);
846 void cmdPipelineBarrier (VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, deUint32 memoryBarrierCount, const void* const* ppMemoryBarriers)
848 DE_UNREF(commandBuffer);
849 DE_UNREF(srcStageMask);
850 DE_UNREF(dstStageMask);
851 DE_UNREF(dependencyFlags);
852 DE_UNREF(memoryBarrierCount);
853 DE_UNREF(ppMemoryBarriers);
856 void cmdBeginQuery (VkCommandBuffer commandBuffer, VkQueryPool queryPool, deUint32 entry, VkQueryControlFlags flags)
858 DE_UNREF(commandBuffer);
864 void cmdEndQuery (VkCommandBuffer commandBuffer, VkQueryPool queryPool, deUint32 entry)
866 DE_UNREF(commandBuffer);
871 void cmdResetQueryPool (VkCommandBuffer commandBuffer, VkQueryPool queryPool, deUint32 startQuery, deUint32 queryCount)
873 DE_UNREF(commandBuffer);
875 DE_UNREF(startQuery);
876 DE_UNREF(queryCount);
879 void cmdWriteTimestamp (VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, deUint32 entry)
881 DE_UNREF(commandBuffer);
882 DE_UNREF(pipelineStage);
887 void cmdCopyQueryPoolResults (VkCommandBuffer commandBuffer, VkQueryPool queryPool, deUint32 startQuery, deUint32 queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags)
889 DE_UNREF(commandBuffer);
891 DE_UNREF(startQuery);
892 DE_UNREF(queryCount);
899 void cmdPushConstants (VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, deUint32 offset, deUint32 size, const void* pValues)
901 DE_UNREF(commandBuffer);
903 DE_UNREF(stageFlags);
909 void cmdBeginRenderPass (VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents)
911 DE_UNREF(commandBuffer);
912 DE_UNREF(pRenderPassBegin);
916 void cmdNextSubpass (VkCommandBuffer commandBuffer, VkSubpassContents contents)
918 DE_UNREF(commandBuffer);
922 void cmdEndRenderPass (VkCommandBuffer commandBuffer)
924 DE_UNREF(commandBuffer);
927 void cmdExecuteCommands (VkCommandBuffer commandBuffer, deUint32 commandBuffersCount, const VkCommandBuffer* pCommandBuffers)
929 DE_UNREF(commandBuffer);
930 DE_UNREF(commandBuffersCount);
931 DE_UNREF(pCommandBuffers);
934 static const tcu::StaticFunctionLibrary::Entry s_platformFunctions[] =
936 VK_NULL_FUNC_ENTRY(vkCreateInstance, createInstance),
937 VK_NULL_FUNC_ENTRY(vkGetInstanceProcAddr, getInstanceProcAddr),
938 VK_NULL_FUNC_ENTRY(vkEnumerateInstanceExtensionProperties, enumerateInstanceExtensionProperties),
939 VK_NULL_FUNC_ENTRY(vkEnumerateInstanceLayerProperties, enumerateInstanceLayerProperties),
942 static const tcu::StaticFunctionLibrary::Entry s_instanceFunctions[] =
944 VK_NULL_FUNC_ENTRY(vkDestroyInstance, destroyInstance),
945 VK_NULL_FUNC_ENTRY(vkEnumeratePhysicalDevices, enumeratePhysicalDevices),
946 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceFeatures, getPhysicalDeviceFeatures),
947 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceFormatProperties, getPhysicalDeviceFormatProperties),
948 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceImageFormatProperties, getPhysicalDeviceImageFormatProperties),
949 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceProperties, getPhysicalDeviceProperties),
950 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceQueueFamilyProperties, getPhysicalDeviceQueueFamilyProperties),
951 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceMemoryProperties, getPhysicalDeviceMemoryProperties),
952 VK_NULL_FUNC_ENTRY(vkGetDeviceProcAddr, getDeviceProcAddr),
953 VK_NULL_FUNC_ENTRY(vkCreateDevice, createDevice),
954 VK_NULL_FUNC_ENTRY(vkEnumerateDeviceExtensionProperties, enumerateDeviceExtensionProperties),
955 VK_NULL_FUNC_ENTRY(vkEnumerateDeviceLayerProperties, enumerateDeviceLayerProperties),
958 static const tcu::StaticFunctionLibrary::Entry s_deviceFunctions[] =
960 VK_NULL_FUNC_ENTRY(vkDestroyDevice, destroyDevice),
961 VK_NULL_FUNC_ENTRY(vkGetDeviceQueue, getDeviceQueue),
962 VK_NULL_FUNC_ENTRY(vkQueueSubmit, queueSubmit),
963 VK_NULL_FUNC_ENTRY(vkQueueWaitIdle, queueWaitIdle),
964 VK_NULL_FUNC_ENTRY(vkDeviceWaitIdle, deviceWaitIdle),
965 VK_NULL_FUNC_ENTRY(vkAllocateMemory, allocateMemory),
966 VK_NULL_FUNC_ENTRY(vkFreeMemory, freeMemory),
967 VK_NULL_FUNC_ENTRY(vkMapMemory, mapMemory),
968 VK_NULL_FUNC_ENTRY(vkUnmapMemory, unmapMemory),
969 VK_NULL_FUNC_ENTRY(vkFlushMappedMemoryRanges, flushMappedMemoryRanges),
970 VK_NULL_FUNC_ENTRY(vkInvalidateMappedMemoryRanges, invalidateMappedMemoryRanges),
971 VK_NULL_FUNC_ENTRY(vkGetDeviceMemoryCommitment, getDeviceMemoryCommitment),
972 VK_NULL_FUNC_ENTRY(vkBindBufferMemory, bindBufferMemory),
973 VK_NULL_FUNC_ENTRY(vkBindImageMemory, bindImageMemory),
974 VK_NULL_FUNC_ENTRY(vkGetBufferMemoryRequirements, getBufferMemoryRequirements),
975 VK_NULL_FUNC_ENTRY(vkGetImageMemoryRequirements, getImageMemoryRequirements),
976 VK_NULL_FUNC_ENTRY(vkGetImageSparseMemoryRequirements, getImageSparseMemoryRequirements),
977 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceSparseImageFormatProperties, getPhysicalDeviceSparseImageFormatProperties),
978 VK_NULL_FUNC_ENTRY(vkQueueBindSparse, queueBindSparse),
979 VK_NULL_FUNC_ENTRY(vkCreateFence, createFence),
980 VK_NULL_FUNC_ENTRY(vkDestroyFence, destroyFence),
981 VK_NULL_FUNC_ENTRY(vkResetFences, resetFences),
982 VK_NULL_FUNC_ENTRY(vkGetFenceStatus, getFenceStatus),
983 VK_NULL_FUNC_ENTRY(vkWaitForFences, waitForFences),
984 VK_NULL_FUNC_ENTRY(vkCreateSemaphore, createSemaphore),
985 VK_NULL_FUNC_ENTRY(vkDestroySemaphore, destroySemaphore),
986 VK_NULL_FUNC_ENTRY(vkCreateEvent, createEvent),
987 VK_NULL_FUNC_ENTRY(vkDestroyEvent, destroyEvent),
988 VK_NULL_FUNC_ENTRY(vkGetEventStatus, getEventStatus),
989 VK_NULL_FUNC_ENTRY(vkSetEvent, setEvent),
990 VK_NULL_FUNC_ENTRY(vkResetEvent, resetEvent),
991 VK_NULL_FUNC_ENTRY(vkCreateQueryPool, createQueryPool),
992 VK_NULL_FUNC_ENTRY(vkDestroyQueryPool, destroyQueryPool),
993 VK_NULL_FUNC_ENTRY(vkGetQueryPoolResults, getQueryPoolResults),
994 VK_NULL_FUNC_ENTRY(vkCreateBuffer, createBuffer),
995 VK_NULL_FUNC_ENTRY(vkDestroyBuffer, destroyBuffer),
996 VK_NULL_FUNC_ENTRY(vkCreateBufferView, createBufferView),
997 VK_NULL_FUNC_ENTRY(vkDestroyBufferView, destroyBufferView),
998 VK_NULL_FUNC_ENTRY(vkCreateImage, createImage),
999 VK_NULL_FUNC_ENTRY(vkDestroyImage, destroyImage),
1000 VK_NULL_FUNC_ENTRY(vkGetImageSubresourceLayout, getImageSubresourceLayout),
1001 VK_NULL_FUNC_ENTRY(vkCreateImageView, createImageView),
1002 VK_NULL_FUNC_ENTRY(vkDestroyImageView, destroyImageView),
1003 VK_NULL_FUNC_ENTRY(vkCreateShaderModule, createShaderModule),
1004 VK_NULL_FUNC_ENTRY(vkDestroyShaderModule, destroyShaderModule),
1005 VK_NULL_FUNC_ENTRY(vkCreatePipelineCache, createPipelineCache),
1006 VK_NULL_FUNC_ENTRY(vkDestroyPipelineCache, destroyPipelineCache),
1007 VK_NULL_FUNC_ENTRY(vkGetPipelineCacheData, getPipelineCacheData),
1008 VK_NULL_FUNC_ENTRY(vkMergePipelineCaches, mergePipelineCaches),
1009 VK_NULL_FUNC_ENTRY(vkCreateGraphicsPipelines, createGraphicsPipelines),
1010 VK_NULL_FUNC_ENTRY(vkCreateComputePipelines, createComputePipelines),
1011 VK_NULL_FUNC_ENTRY(vkDestroyPipeline, destroyPipeline),
1012 VK_NULL_FUNC_ENTRY(vkCreatePipelineLayout, createPipelineLayout),
1013 VK_NULL_FUNC_ENTRY(vkDestroyPipelineLayout, destroyPipelineLayout),
1014 VK_NULL_FUNC_ENTRY(vkCreateSampler, createSampler),
1015 VK_NULL_FUNC_ENTRY(vkDestroySampler, destroySampler),
1016 VK_NULL_FUNC_ENTRY(vkCreateDescriptorSetLayout, createDescriptorSetLayout),
1017 VK_NULL_FUNC_ENTRY(vkDestroyDescriptorSetLayout, destroyDescriptorSetLayout),
1018 VK_NULL_FUNC_ENTRY(vkCreateDescriptorPool, createDescriptorPool),
1019 VK_NULL_FUNC_ENTRY(vkDestroyDescriptorPool, destroyDescriptorPool),
1020 VK_NULL_FUNC_ENTRY(vkResetDescriptorPool, resetDescriptorPool),
1021 VK_NULL_FUNC_ENTRY(vkAllocateDescriptorSets, allocateDescriptorSets),
1022 VK_NULL_FUNC_ENTRY(vkFreeDescriptorSets, freeDescriptorSets),
1023 VK_NULL_FUNC_ENTRY(vkUpdateDescriptorSets, updateDescriptorSets),
1024 VK_NULL_FUNC_ENTRY(vkCreateFramebuffer, createFramebuffer),
1025 VK_NULL_FUNC_ENTRY(vkDestroyFramebuffer, destroyFramebuffer),
1026 VK_NULL_FUNC_ENTRY(vkCreateRenderPass, createRenderPass),
1027 VK_NULL_FUNC_ENTRY(vkDestroyRenderPass, destroyRenderPass),
1028 VK_NULL_FUNC_ENTRY(vkGetRenderAreaGranularity, getRenderAreaGranularity),
1029 VK_NULL_FUNC_ENTRY(vkCreateCommandPool, createCommandPool),
1030 VK_NULL_FUNC_ENTRY(vkDestroyCommandPool, destroyCommandPool),
1031 VK_NULL_FUNC_ENTRY(vkResetCommandPool, resetCommandPool),
1032 VK_NULL_FUNC_ENTRY(vkAllocateCommandBuffers, allocateCommandBuffers),
1033 VK_NULL_FUNC_ENTRY(vkFreeCommandBuffers, freeCommandBuffers),
1034 VK_NULL_FUNC_ENTRY(vkBeginCommandBuffer, beginCommandBuffer),
1035 VK_NULL_FUNC_ENTRY(vkEndCommandBuffer, endCommandBuffer),
1036 VK_NULL_FUNC_ENTRY(vkResetCommandBuffer, resetCommandBuffer),
1037 VK_NULL_FUNC_ENTRY(vkCmdBindPipeline, cmdBindPipeline),
1038 VK_NULL_FUNC_ENTRY(vkCmdSetViewport, cmdSetViewport),
1039 VK_NULL_FUNC_ENTRY(vkCmdSetScissor, cmdSetScissor),
1040 VK_NULL_FUNC_ENTRY(vkCmdSetLineWidth, cmdSetLineWidth),
1041 VK_NULL_FUNC_ENTRY(vkCmdSetDepthBias, cmdSetDepthBias),
1042 VK_NULL_FUNC_ENTRY(vkCmdSetBlendConstants, cmdSetBlendConstants),
1043 VK_NULL_FUNC_ENTRY(vkCmdSetDepthBounds, cmdSetDepthBounds),
1044 VK_NULL_FUNC_ENTRY(vkCmdSetStencilCompareMask, cmdSetStencilCompareMask),
1045 VK_NULL_FUNC_ENTRY(vkCmdSetStencilWriteMask, cmdSetStencilWriteMask),
1046 VK_NULL_FUNC_ENTRY(vkCmdSetStencilReference, cmdSetStencilReference),
1047 VK_NULL_FUNC_ENTRY(vkCmdBindDescriptorSets, cmdBindDescriptorSets),
1048 VK_NULL_FUNC_ENTRY(vkCmdBindIndexBuffer, cmdBindIndexBuffer),
1049 VK_NULL_FUNC_ENTRY(vkCmdBindVertexBuffers, cmdBindVertexBuffers),
1050 VK_NULL_FUNC_ENTRY(vkCmdDraw, cmdDraw),
1051 VK_NULL_FUNC_ENTRY(vkCmdDrawIndexed, cmdDrawIndexed),
1052 VK_NULL_FUNC_ENTRY(vkCmdDrawIndirect, cmdDrawIndirect),
1053 VK_NULL_FUNC_ENTRY(vkCmdDrawIndexedIndirect, cmdDrawIndexedIndirect),
1054 VK_NULL_FUNC_ENTRY(vkCmdDispatch, cmdDispatch),
1055 VK_NULL_FUNC_ENTRY(vkCmdDispatchIndirect, cmdDispatchIndirect),
1056 VK_NULL_FUNC_ENTRY(vkCmdCopyBuffer, cmdCopyBuffer),
1057 VK_NULL_FUNC_ENTRY(vkCmdCopyImage, cmdCopyImage),
1058 VK_NULL_FUNC_ENTRY(vkCmdBlitImage, cmdBlitImage),
1059 VK_NULL_FUNC_ENTRY(vkCmdCopyBufferToImage, cmdCopyBufferToImage),
1060 VK_NULL_FUNC_ENTRY(vkCmdCopyImageToBuffer, cmdCopyImageToBuffer),
1061 VK_NULL_FUNC_ENTRY(vkCmdUpdateBuffer, cmdUpdateBuffer),
1062 VK_NULL_FUNC_ENTRY(vkCmdFillBuffer, cmdFillBuffer),
1063 VK_NULL_FUNC_ENTRY(vkCmdClearColorImage, cmdClearColorImage),
1064 VK_NULL_FUNC_ENTRY(vkCmdClearDepthStencilImage, cmdClearDepthStencilImage),
1065 VK_NULL_FUNC_ENTRY(vkCmdClearAttachments, cmdClearAttachments),
1066 VK_NULL_FUNC_ENTRY(vkCmdResolveImage, cmdResolveImage),
1067 VK_NULL_FUNC_ENTRY(vkCmdSetEvent, cmdSetEvent),
1068 VK_NULL_FUNC_ENTRY(vkCmdResetEvent, cmdResetEvent),
1069 VK_NULL_FUNC_ENTRY(vkCmdWaitEvents, cmdWaitEvents),
1070 VK_NULL_FUNC_ENTRY(vkCmdPipelineBarrier, cmdPipelineBarrier),
1071 VK_NULL_FUNC_ENTRY(vkCmdBeginQuery, cmdBeginQuery),
1072 VK_NULL_FUNC_ENTRY(vkCmdEndQuery, cmdEndQuery),
1073 VK_NULL_FUNC_ENTRY(vkCmdResetQueryPool, cmdResetQueryPool),
1074 VK_NULL_FUNC_ENTRY(vkCmdWriteTimestamp, cmdWriteTimestamp),
1075 VK_NULL_FUNC_ENTRY(vkCmdCopyQueryPoolResults, cmdCopyQueryPoolResults),
1076 VK_NULL_FUNC_ENTRY(vkCmdPushConstants, cmdPushConstants),
1077 VK_NULL_FUNC_ENTRY(vkCmdBeginRenderPass, cmdBeginRenderPass),
1078 VK_NULL_FUNC_ENTRY(vkCmdNextSubpass, cmdNextSubpass),
1079 VK_NULL_FUNC_ENTRY(vkCmdEndRenderPass, cmdEndRenderPass),
1080 VK_NULL_FUNC_ENTRY(vkCmdExecuteCommands, cmdExecuteCommands),