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 void updateDescriptorSets (VkDevice device, deUint32 descriptorWriteCount, const VkWriteDescriptorSet* pDescriptorWrites, deUint32 descriptorCopyCount, const VkCopyDescriptorSet* pDescriptorCopies)
512 DE_UNREF(descriptorWriteCount);
513 DE_UNREF(pDescriptorWrites);
514 DE_UNREF(descriptorCopyCount);
515 DE_UNREF(pDescriptorCopies);
518 void getRenderAreaGranularity (VkDevice device, VkRenderPass renderPass, VkExtent2D* pGranularity)
521 DE_UNREF(renderPass);
522 DE_UNREF(pGranularity);
525 VkResult resetCommandPool (VkDevice device, VkCommandPool commandPool, VkCommandPoolResetFlags flags)
528 DE_UNREF(commandPool);
533 VkResult beginCommandBuffer (VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo* pBeginInfo)
535 DE_UNREF(commandBuffer);
536 DE_UNREF(pBeginInfo);
540 VkResult endCommandBuffer (VkCommandBuffer commandBuffer)
542 DE_UNREF(commandBuffer);
546 VkResult resetCommandBuffer (VkCommandBuffer commandBuffer, VkCommandBufferResetFlags flags)
548 DE_UNREF(commandBuffer);
553 void cmdBindPipeline (VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipeline pipeline)
555 DE_UNREF(commandBuffer);
556 DE_UNREF(pipelineBindPoint);
560 void cmdSetViewport (VkCommandBuffer commandBuffer, deUint32 viewportCount, const VkViewport* pViewports)
562 DE_UNREF(commandBuffer);
563 DE_UNREF(viewportCount);
564 DE_UNREF(pViewports);
567 void cmdSetScissor (VkCommandBuffer commandBuffer, deUint32 scissorCount, const VkRect2D* pScissors)
569 DE_UNREF(commandBuffer);
570 DE_UNREF(scissorCount);
574 void cmdSetLineWidth (VkCommandBuffer commandBuffer, float lineWidth)
576 DE_UNREF(commandBuffer);
580 void cmdSetDepthBias (VkCommandBuffer commandBuffer, float depthBiasConstantFactor, float depthBiasClamp, float depthBiasSlopeFactor)
582 DE_UNREF(commandBuffer);
583 DE_UNREF(depthBiasConstantFactor);
584 DE_UNREF(depthBiasClamp);
585 DE_UNREF(depthBiasSlopeFactor);
588 void cmdSetBlendConstants (VkCommandBuffer commandBuffer, const float blendConstants[4])
590 DE_UNREF(commandBuffer);
591 DE_UNREF(blendConstants);
594 void cmdSetDepthBounds (VkCommandBuffer commandBuffer, float minDepthBounds, float maxDepthBounds)
596 DE_UNREF(commandBuffer);
597 DE_UNREF(minDepthBounds);
598 DE_UNREF(maxDepthBounds);
601 void cmdSetStencilCompareMask (VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, deUint32 compareMask)
603 DE_UNREF(commandBuffer);
605 DE_UNREF(compareMask);
608 void cmdSetStencilWriteMask (VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, deUint32 writeMask)
610 DE_UNREF(commandBuffer);
615 void cmdSetStencilReference (VkCommandBuffer commandBuffer, VkStencilFaceFlags faceMask, deUint32 reference)
617 DE_UNREF(commandBuffer);
622 void cmdBindDescriptorSets (VkCommandBuffer commandBuffer, VkPipelineBindPoint pipelineBindPoint, VkPipelineLayout layout, deUint32 firstSet, deUint32 descriptorSetCount, const VkDescriptorSet* pDescriptorSets, deUint32 dynamicOffsetCount, const deUint32* pDynamicOffsets)
624 DE_UNREF(commandBuffer);
625 DE_UNREF(pipelineBindPoint);
628 DE_UNREF(descriptorSetCount);
629 DE_UNREF(pDescriptorSets);
630 DE_UNREF(dynamicOffsetCount);
631 DE_UNREF(pDynamicOffsets);
634 void cmdBindIndexBuffer (VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, VkIndexType indexType)
636 DE_UNREF(commandBuffer);
642 void cmdBindVertexBuffers (VkCommandBuffer commandBuffer, deUint32 startBinding, deUint32 bindingCount, const VkBuffer* pBuffers, const VkDeviceSize* pOffsets)
644 DE_UNREF(commandBuffer);
645 DE_UNREF(startBinding);
646 DE_UNREF(bindingCount);
651 void cmdDraw (VkCommandBuffer commandBuffer, deUint32 vertexCount, deUint32 instanceCount, deUint32 firstVertex, deUint32 firstInstance)
653 DE_UNREF(commandBuffer);
654 DE_UNREF(vertexCount);
655 DE_UNREF(instanceCount);
656 DE_UNREF(firstVertex);
657 DE_UNREF(firstInstance);
660 void cmdDrawIndexed (VkCommandBuffer commandBuffer, deUint32 indexCount, deUint32 instanceCount, deUint32 firstIndex, deInt32 vertexOffset, deUint32 firstInstance)
662 DE_UNREF(commandBuffer);
663 DE_UNREF(indexCount);
664 DE_UNREF(instanceCount);
665 DE_UNREF(firstIndex);
666 DE_UNREF(vertexOffset);
667 DE_UNREF(firstInstance);
670 void cmdDrawIndirect (VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, deUint32 drawCount, deUint32 stride)
672 DE_UNREF(commandBuffer);
679 void cmdDrawIndexedIndirect (VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset, deUint32 drawCount, deUint32 stride)
681 DE_UNREF(commandBuffer);
688 void cmdDispatch (VkCommandBuffer commandBuffer, deUint32 x, deUint32 y, deUint32 z)
690 DE_UNREF(commandBuffer);
696 void cmdDispatchIndirect (VkCommandBuffer commandBuffer, VkBuffer buffer, VkDeviceSize offset)
698 DE_UNREF(commandBuffer);
703 void cmdCopyBuffer (VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkBuffer dstBuffer, deUint32 regionCount, const VkBufferCopy* pRegions)
705 DE_UNREF(commandBuffer);
708 DE_UNREF(regionCount);
712 void cmdCopyImage (VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, deUint32 regionCount, const VkImageCopy* pRegions)
714 DE_UNREF(commandBuffer);
716 DE_UNREF(srcImageLayout);
718 DE_UNREF(dstImageLayout);
719 DE_UNREF(regionCount);
723 void cmdBlitImage (VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, deUint32 regionCount, const VkImageBlit* pRegions, VkFilter filter)
725 DE_UNREF(commandBuffer);
727 DE_UNREF(srcImageLayout);
729 DE_UNREF(dstImageLayout);
730 DE_UNREF(regionCount);
735 void cmdCopyBufferToImage (VkCommandBuffer commandBuffer, VkBuffer srcBuffer, VkImage dstImage, VkImageLayout dstImageLayout, deUint32 regionCount, const VkBufferImageCopy* pRegions)
737 DE_UNREF(commandBuffer);
740 DE_UNREF(dstImageLayout);
741 DE_UNREF(regionCount);
745 void cmdCopyImageToBuffer (VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkBuffer dstBuffer, deUint32 regionCount, const VkBufferImageCopy* pRegions)
747 DE_UNREF(commandBuffer);
749 DE_UNREF(srcImageLayout);
751 DE_UNREF(regionCount);
755 void cmdUpdateBuffer (VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize dataSize, const deUint32* pData)
757 DE_UNREF(commandBuffer);
764 void cmdFillBuffer (VkCommandBuffer commandBuffer, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize size, deUint32 data)
766 DE_UNREF(commandBuffer);
773 void cmdClearColorImage (VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearColorValue* pColor, deUint32 rangeCount, const VkImageSubresourceRange* pRanges)
775 DE_UNREF(commandBuffer);
777 DE_UNREF(imageLayout);
779 DE_UNREF(rangeCount);
783 void cmdClearDepthStencilImage (VkCommandBuffer commandBuffer, VkImage image, VkImageLayout imageLayout, const VkClearDepthStencilValue* pDepthStencil, deUint32 rangeCount, const VkImageSubresourceRange* pRanges)
785 DE_UNREF(commandBuffer);
787 DE_UNREF(imageLayout);
788 DE_UNREF(pDepthStencil);
789 DE_UNREF(rangeCount);
793 void cmdClearAttachments (VkCommandBuffer commandBuffer, deUint32 attachmentCount, const VkClearAttachment* pAttachments, deUint32 rectCount, const VkClearRect* pRects)
795 DE_UNREF(commandBuffer);
796 DE_UNREF(attachmentCount);
797 DE_UNREF(pAttachments);
802 void cmdResolveImage (VkCommandBuffer commandBuffer, VkImage srcImage, VkImageLayout srcImageLayout, VkImage dstImage, VkImageLayout dstImageLayout, deUint32 regionCount, const VkImageResolve* pRegions)
804 DE_UNREF(commandBuffer);
806 DE_UNREF(srcImageLayout);
808 DE_UNREF(dstImageLayout);
809 DE_UNREF(regionCount);
813 void cmdSetEvent (VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask)
815 DE_UNREF(commandBuffer);
820 void cmdResetEvent (VkCommandBuffer commandBuffer, VkEvent event, VkPipelineStageFlags stageMask)
822 DE_UNREF(commandBuffer);
827 void cmdWaitEvents (VkCommandBuffer commandBuffer, deUint32 eventCount, const VkEvent* pEvents, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, deUint32 memoryBarrierCount, const void* const* ppMemoryBarriers)
829 DE_UNREF(commandBuffer);
830 DE_UNREF(eventCount);
832 DE_UNREF(srcStageMask);
833 DE_UNREF(dstStageMask);
834 DE_UNREF(memoryBarrierCount);
835 DE_UNREF(ppMemoryBarriers);
838 void cmdPipelineBarrier (VkCommandBuffer commandBuffer, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkDependencyFlags dependencyFlags, deUint32 memoryBarrierCount, const void* const* ppMemoryBarriers)
840 DE_UNREF(commandBuffer);
841 DE_UNREF(srcStageMask);
842 DE_UNREF(dstStageMask);
843 DE_UNREF(dependencyFlags);
844 DE_UNREF(memoryBarrierCount);
845 DE_UNREF(ppMemoryBarriers);
848 void cmdBeginQuery (VkCommandBuffer commandBuffer, VkQueryPool queryPool, deUint32 entry, VkQueryControlFlags flags)
850 DE_UNREF(commandBuffer);
856 void cmdEndQuery (VkCommandBuffer commandBuffer, VkQueryPool queryPool, deUint32 entry)
858 DE_UNREF(commandBuffer);
863 void cmdResetQueryPool (VkCommandBuffer commandBuffer, VkQueryPool queryPool, deUint32 startQuery, deUint32 queryCount)
865 DE_UNREF(commandBuffer);
867 DE_UNREF(startQuery);
868 DE_UNREF(queryCount);
871 void cmdWriteTimestamp (VkCommandBuffer commandBuffer, VkPipelineStageFlagBits pipelineStage, VkQueryPool queryPool, deUint32 entry)
873 DE_UNREF(commandBuffer);
874 DE_UNREF(pipelineStage);
879 void cmdCopyQueryPoolResults (VkCommandBuffer commandBuffer, VkQueryPool queryPool, deUint32 startQuery, deUint32 queryCount, VkBuffer dstBuffer, VkDeviceSize dstOffset, VkDeviceSize stride, VkQueryResultFlags flags)
881 DE_UNREF(commandBuffer);
883 DE_UNREF(startQuery);
884 DE_UNREF(queryCount);
891 void cmdPushConstants (VkCommandBuffer commandBuffer, VkPipelineLayout layout, VkShaderStageFlags stageFlags, deUint32 offset, deUint32 size, const void* pValues)
893 DE_UNREF(commandBuffer);
895 DE_UNREF(stageFlags);
901 void cmdBeginRenderPass (VkCommandBuffer commandBuffer, const VkRenderPassBeginInfo* pRenderPassBegin, VkSubpassContents contents)
903 DE_UNREF(commandBuffer);
904 DE_UNREF(pRenderPassBegin);
908 void cmdNextSubpass (VkCommandBuffer commandBuffer, VkSubpassContents contents)
910 DE_UNREF(commandBuffer);
914 void cmdEndRenderPass (VkCommandBuffer commandBuffer)
916 DE_UNREF(commandBuffer);
919 void cmdExecuteCommands (VkCommandBuffer commandBuffer, deUint32 commandBuffersCount, const VkCommandBuffer* pCommandBuffers)
921 DE_UNREF(commandBuffer);
922 DE_UNREF(commandBuffersCount);
923 DE_UNREF(pCommandBuffers);
926 static const tcu::StaticFunctionLibrary::Entry s_platformFunctions[] =
928 VK_NULL_FUNC_ENTRY(vkCreateInstance, createInstance),
929 VK_NULL_FUNC_ENTRY(vkGetInstanceProcAddr, getInstanceProcAddr),
930 VK_NULL_FUNC_ENTRY(vkEnumerateInstanceExtensionProperties, enumerateInstanceExtensionProperties),
931 VK_NULL_FUNC_ENTRY(vkEnumerateInstanceLayerProperties, enumerateInstanceLayerProperties),
934 static const tcu::StaticFunctionLibrary::Entry s_instanceFunctions[] =
936 VK_NULL_FUNC_ENTRY(vkDestroyInstance, destroyInstance),
937 VK_NULL_FUNC_ENTRY(vkEnumeratePhysicalDevices, enumeratePhysicalDevices),
938 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceFeatures, getPhysicalDeviceFeatures),
939 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceFormatProperties, getPhysicalDeviceFormatProperties),
940 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceImageFormatProperties, getPhysicalDeviceImageFormatProperties),
941 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceProperties, getPhysicalDeviceProperties),
942 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceQueueFamilyProperties, getPhysicalDeviceQueueFamilyProperties),
943 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceMemoryProperties, getPhysicalDeviceMemoryProperties),
944 VK_NULL_FUNC_ENTRY(vkGetDeviceProcAddr, getDeviceProcAddr),
945 VK_NULL_FUNC_ENTRY(vkCreateDevice, createDevice),
946 VK_NULL_FUNC_ENTRY(vkEnumerateDeviceExtensionProperties, enumerateDeviceExtensionProperties),
947 VK_NULL_FUNC_ENTRY(vkEnumerateDeviceLayerProperties, enumerateDeviceLayerProperties),
950 static const tcu::StaticFunctionLibrary::Entry s_deviceFunctions[] =
952 VK_NULL_FUNC_ENTRY(vkDestroyDevice, destroyDevice),
953 VK_NULL_FUNC_ENTRY(vkGetDeviceQueue, getDeviceQueue),
954 VK_NULL_FUNC_ENTRY(vkQueueSubmit, queueSubmit),
955 VK_NULL_FUNC_ENTRY(vkQueueWaitIdle, queueWaitIdle),
956 VK_NULL_FUNC_ENTRY(vkDeviceWaitIdle, deviceWaitIdle),
957 VK_NULL_FUNC_ENTRY(vkAllocateMemory, allocateMemory),
958 VK_NULL_FUNC_ENTRY(vkFreeMemory, freeMemory),
959 VK_NULL_FUNC_ENTRY(vkMapMemory, mapMemory),
960 VK_NULL_FUNC_ENTRY(vkUnmapMemory, unmapMemory),
961 VK_NULL_FUNC_ENTRY(vkFlushMappedMemoryRanges, flushMappedMemoryRanges),
962 VK_NULL_FUNC_ENTRY(vkInvalidateMappedMemoryRanges, invalidateMappedMemoryRanges),
963 VK_NULL_FUNC_ENTRY(vkGetDeviceMemoryCommitment, getDeviceMemoryCommitment),
964 VK_NULL_FUNC_ENTRY(vkBindBufferMemory, bindBufferMemory),
965 VK_NULL_FUNC_ENTRY(vkBindImageMemory, bindImageMemory),
966 VK_NULL_FUNC_ENTRY(vkGetBufferMemoryRequirements, getBufferMemoryRequirements),
967 VK_NULL_FUNC_ENTRY(vkGetImageMemoryRequirements, getImageMemoryRequirements),
968 VK_NULL_FUNC_ENTRY(vkGetImageSparseMemoryRequirements, getImageSparseMemoryRequirements),
969 VK_NULL_FUNC_ENTRY(vkGetPhysicalDeviceSparseImageFormatProperties, getPhysicalDeviceSparseImageFormatProperties),
970 VK_NULL_FUNC_ENTRY(vkQueueBindSparse, queueBindSparse),
971 VK_NULL_FUNC_ENTRY(vkCreateFence, createFence),
972 VK_NULL_FUNC_ENTRY(vkDestroyFence, destroyFence),
973 VK_NULL_FUNC_ENTRY(vkResetFences, resetFences),
974 VK_NULL_FUNC_ENTRY(vkGetFenceStatus, getFenceStatus),
975 VK_NULL_FUNC_ENTRY(vkWaitForFences, waitForFences),
976 VK_NULL_FUNC_ENTRY(vkCreateSemaphore, createSemaphore),
977 VK_NULL_FUNC_ENTRY(vkDestroySemaphore, destroySemaphore),
978 VK_NULL_FUNC_ENTRY(vkCreateEvent, createEvent),
979 VK_NULL_FUNC_ENTRY(vkDestroyEvent, destroyEvent),
980 VK_NULL_FUNC_ENTRY(vkGetEventStatus, getEventStatus),
981 VK_NULL_FUNC_ENTRY(vkSetEvent, setEvent),
982 VK_NULL_FUNC_ENTRY(vkResetEvent, resetEvent),
983 VK_NULL_FUNC_ENTRY(vkCreateQueryPool, createQueryPool),
984 VK_NULL_FUNC_ENTRY(vkDestroyQueryPool, destroyQueryPool),
985 VK_NULL_FUNC_ENTRY(vkGetQueryPoolResults, getQueryPoolResults),
986 VK_NULL_FUNC_ENTRY(vkCreateBuffer, createBuffer),
987 VK_NULL_FUNC_ENTRY(vkDestroyBuffer, destroyBuffer),
988 VK_NULL_FUNC_ENTRY(vkCreateBufferView, createBufferView),
989 VK_NULL_FUNC_ENTRY(vkDestroyBufferView, destroyBufferView),
990 VK_NULL_FUNC_ENTRY(vkCreateImage, createImage),
991 VK_NULL_FUNC_ENTRY(vkDestroyImage, destroyImage),
992 VK_NULL_FUNC_ENTRY(vkGetImageSubresourceLayout, getImageSubresourceLayout),
993 VK_NULL_FUNC_ENTRY(vkCreateImageView, createImageView),
994 VK_NULL_FUNC_ENTRY(vkDestroyImageView, destroyImageView),
995 VK_NULL_FUNC_ENTRY(vkCreateShaderModule, createShaderModule),
996 VK_NULL_FUNC_ENTRY(vkDestroyShaderModule, destroyShaderModule),
997 VK_NULL_FUNC_ENTRY(vkCreatePipelineCache, createPipelineCache),
998 VK_NULL_FUNC_ENTRY(vkDestroyPipelineCache, destroyPipelineCache),
999 VK_NULL_FUNC_ENTRY(vkGetPipelineCacheData, getPipelineCacheData),
1000 VK_NULL_FUNC_ENTRY(vkMergePipelineCaches, mergePipelineCaches),
1001 VK_NULL_FUNC_ENTRY(vkCreateGraphicsPipelines, createGraphicsPipelines),
1002 VK_NULL_FUNC_ENTRY(vkCreateComputePipelines, createComputePipelines),
1003 VK_NULL_FUNC_ENTRY(vkDestroyPipeline, destroyPipeline),
1004 VK_NULL_FUNC_ENTRY(vkCreatePipelineLayout, createPipelineLayout),
1005 VK_NULL_FUNC_ENTRY(vkDestroyPipelineLayout, destroyPipelineLayout),
1006 VK_NULL_FUNC_ENTRY(vkCreateSampler, createSampler),
1007 VK_NULL_FUNC_ENTRY(vkDestroySampler, destroySampler),
1008 VK_NULL_FUNC_ENTRY(vkCreateDescriptorSetLayout, createDescriptorSetLayout),
1009 VK_NULL_FUNC_ENTRY(vkDestroyDescriptorSetLayout, destroyDescriptorSetLayout),
1010 VK_NULL_FUNC_ENTRY(vkCreateDescriptorPool, createDescriptorPool),
1011 VK_NULL_FUNC_ENTRY(vkDestroyDescriptorPool, destroyDescriptorPool),
1012 VK_NULL_FUNC_ENTRY(vkResetDescriptorPool, resetDescriptorPool),
1013 VK_NULL_FUNC_ENTRY(vkAllocateDescriptorSets, allocateDescriptorSets),
1014 VK_NULL_FUNC_ENTRY(vkFreeDescriptorSets, freeDescriptorSets),
1015 VK_NULL_FUNC_ENTRY(vkUpdateDescriptorSets, updateDescriptorSets),
1016 VK_NULL_FUNC_ENTRY(vkCreateFramebuffer, createFramebuffer),
1017 VK_NULL_FUNC_ENTRY(vkDestroyFramebuffer, destroyFramebuffer),
1018 VK_NULL_FUNC_ENTRY(vkCreateRenderPass, createRenderPass),
1019 VK_NULL_FUNC_ENTRY(vkDestroyRenderPass, destroyRenderPass),
1020 VK_NULL_FUNC_ENTRY(vkGetRenderAreaGranularity, getRenderAreaGranularity),
1021 VK_NULL_FUNC_ENTRY(vkCreateCommandPool, createCommandPool),
1022 VK_NULL_FUNC_ENTRY(vkDestroyCommandPool, destroyCommandPool),
1023 VK_NULL_FUNC_ENTRY(vkResetCommandPool, resetCommandPool),
1024 VK_NULL_FUNC_ENTRY(vkAllocateCommandBuffers, allocateCommandBuffers),
1025 VK_NULL_FUNC_ENTRY(vkFreeCommandBuffers, freeCommandBuffers),
1026 VK_NULL_FUNC_ENTRY(vkBeginCommandBuffer, beginCommandBuffer),
1027 VK_NULL_FUNC_ENTRY(vkEndCommandBuffer, endCommandBuffer),
1028 VK_NULL_FUNC_ENTRY(vkResetCommandBuffer, resetCommandBuffer),
1029 VK_NULL_FUNC_ENTRY(vkCmdBindPipeline, cmdBindPipeline),
1030 VK_NULL_FUNC_ENTRY(vkCmdSetViewport, cmdSetViewport),
1031 VK_NULL_FUNC_ENTRY(vkCmdSetScissor, cmdSetScissor),
1032 VK_NULL_FUNC_ENTRY(vkCmdSetLineWidth, cmdSetLineWidth),
1033 VK_NULL_FUNC_ENTRY(vkCmdSetDepthBias, cmdSetDepthBias),
1034 VK_NULL_FUNC_ENTRY(vkCmdSetBlendConstants, cmdSetBlendConstants),
1035 VK_NULL_FUNC_ENTRY(vkCmdSetDepthBounds, cmdSetDepthBounds),
1036 VK_NULL_FUNC_ENTRY(vkCmdSetStencilCompareMask, cmdSetStencilCompareMask),
1037 VK_NULL_FUNC_ENTRY(vkCmdSetStencilWriteMask, cmdSetStencilWriteMask),
1038 VK_NULL_FUNC_ENTRY(vkCmdSetStencilReference, cmdSetStencilReference),
1039 VK_NULL_FUNC_ENTRY(vkCmdBindDescriptorSets, cmdBindDescriptorSets),
1040 VK_NULL_FUNC_ENTRY(vkCmdBindIndexBuffer, cmdBindIndexBuffer),
1041 VK_NULL_FUNC_ENTRY(vkCmdBindVertexBuffers, cmdBindVertexBuffers),
1042 VK_NULL_FUNC_ENTRY(vkCmdDraw, cmdDraw),
1043 VK_NULL_FUNC_ENTRY(vkCmdDrawIndexed, cmdDrawIndexed),
1044 VK_NULL_FUNC_ENTRY(vkCmdDrawIndirect, cmdDrawIndirect),
1045 VK_NULL_FUNC_ENTRY(vkCmdDrawIndexedIndirect, cmdDrawIndexedIndirect),
1046 VK_NULL_FUNC_ENTRY(vkCmdDispatch, cmdDispatch),
1047 VK_NULL_FUNC_ENTRY(vkCmdDispatchIndirect, cmdDispatchIndirect),
1048 VK_NULL_FUNC_ENTRY(vkCmdCopyBuffer, cmdCopyBuffer),
1049 VK_NULL_FUNC_ENTRY(vkCmdCopyImage, cmdCopyImage),
1050 VK_NULL_FUNC_ENTRY(vkCmdBlitImage, cmdBlitImage),
1051 VK_NULL_FUNC_ENTRY(vkCmdCopyBufferToImage, cmdCopyBufferToImage),
1052 VK_NULL_FUNC_ENTRY(vkCmdCopyImageToBuffer, cmdCopyImageToBuffer),
1053 VK_NULL_FUNC_ENTRY(vkCmdUpdateBuffer, cmdUpdateBuffer),
1054 VK_NULL_FUNC_ENTRY(vkCmdFillBuffer, cmdFillBuffer),
1055 VK_NULL_FUNC_ENTRY(vkCmdClearColorImage, cmdClearColorImage),
1056 VK_NULL_FUNC_ENTRY(vkCmdClearDepthStencilImage, cmdClearDepthStencilImage),
1057 VK_NULL_FUNC_ENTRY(vkCmdClearAttachments, cmdClearAttachments),
1058 VK_NULL_FUNC_ENTRY(vkCmdResolveImage, cmdResolveImage),
1059 VK_NULL_FUNC_ENTRY(vkCmdSetEvent, cmdSetEvent),
1060 VK_NULL_FUNC_ENTRY(vkCmdResetEvent, cmdResetEvent),
1061 VK_NULL_FUNC_ENTRY(vkCmdWaitEvents, cmdWaitEvents),
1062 VK_NULL_FUNC_ENTRY(vkCmdPipelineBarrier, cmdPipelineBarrier),
1063 VK_NULL_FUNC_ENTRY(vkCmdBeginQuery, cmdBeginQuery),
1064 VK_NULL_FUNC_ENTRY(vkCmdEndQuery, cmdEndQuery),
1065 VK_NULL_FUNC_ENTRY(vkCmdResetQueryPool, cmdResetQueryPool),
1066 VK_NULL_FUNC_ENTRY(vkCmdWriteTimestamp, cmdWriteTimestamp),
1067 VK_NULL_FUNC_ENTRY(vkCmdCopyQueryPoolResults, cmdCopyQueryPoolResults),
1068 VK_NULL_FUNC_ENTRY(vkCmdPushConstants, cmdPushConstants),
1069 VK_NULL_FUNC_ENTRY(vkCmdBeginRenderPass, cmdBeginRenderPass),
1070 VK_NULL_FUNC_ENTRY(vkCmdNextSubpass, cmdNextSubpass),
1071 VK_NULL_FUNC_ENTRY(vkCmdEndRenderPass, cmdEndRenderPass),
1072 VK_NULL_FUNC_ENTRY(vkCmdExecuteCommands, cmdExecuteCommands),