aboutsummaryrefslogtreecommitdiff
path: root/vulkan.py
diff options
context:
space:
mode:
authorChris Forbes <chrisf@ijw.co.nz>2015-06-22 17:21:59 +1200
committerChris Forbes <chrisf@ijw.co.nz>2015-07-07 14:54:05 +1200
commitfaa91734d9f29abfd0f5dcbe9b5fc41f13b36046 (patch)
tree5288e6eb2c950c26826812f399173e4301291b56 /vulkan.py
parentc0ff6d2f78350922f81f9103496503662ca4df62 (diff)
downloadusermoji-faa91734d9f29abfd0f5dcbe9b5fc41f13b36046.tar.xz
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 <chrisf@ijw.co.nz>
Diffstat (limited to 'vulkan.py')
-rwxr-xr-xvulkan.py19
1 files changed, 18 insertions, 1 deletions
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"),