From faa91734d9f29abfd0f5dcbe9b5fc41f13b36046 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 22 Jun 2015 17:21:59 +1200 Subject: vulkan.h: Split attachment and image clears (#13914, v126) - Add bit flags for image aspects. - Replace VkRect with VkRect2D and VkRect3D. - Rename vkCmdClearDepthStencil to vkCmdClearDepthStencilImage - Add vkCmdClearColorAttachment and vkCmdClearDepthStencilAttachment Remaining to be done: - Actually implement vkCmdClearColorAttachment, vkCmdClearDepthStencilAttachment in the Intel ICD - Enforce renderpass interactions: CmdClear*Attachment may only be called within a renderpass; CmdClear*Image may only be called outside a renderpass. Signed-off-by: Chris Forbes --- vulkan.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'vulkan.py') diff --git a/vulkan.py b/vulkan.py index 95ad639e..c8e9b8f4 100755 --- a/vulkan.py +++ b/vulkan.py @@ -738,7 +738,7 @@ core = Extension( Param("uint32_t", "rangeCount"), Param("const VkImageSubresourceRange*", "pRanges")]), - Proto("void", "CmdClearDepthStencil", + Proto("void", "CmdClearDepthStencilImage", [Param("VkCmdBuffer", "cmdBuffer"), Param("VkImage", "image"), Param("VkImageLayout", "imageLayout"), @@ -747,6 +747,23 @@ core = Extension( Param("uint32_t", "rangeCount"), Param("const VkImageSubresourceRange*", "pRanges")]), + Proto("void", "CmdClearColorAttachment", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("uint32_t", "colorAttachment"), + Param("VkImageLayout", "imageLayout"), + Param("const VkClearColor*", "pColor"), + Param("uint32_t", "rectCount"), + Param("const VkRect3D*", "pRects")]), + + Proto("void", "CmdClearDepthStencilAttachment", + [Param("VkCmdBuffer", "cmdBuffer"), + Param("VkImageAspectFlags", "imageAspectMask"), + Param("VkImageLayout", "imageLayout"), + Param("float", "depth"), + Param("uint32_t", "stencil"), + Param("uint32_t", "rectCount"), + Param("const VkRect3D*", "pRects")]), + Proto("void", "CmdResolveImage", [Param("VkCmdBuffer", "cmdBuffer"), Param("VkImage", "srcImage"), -- cgit v1.2.3