diff options
| author | Chris Forbes <chrisf@ijw.co.nz> | 2015-06-22 17:21:59 +1200 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2015-07-07 14:54:05 +1200 |
| commit | faa91734d9f29abfd0f5dcbe9b5fc41f13b36046 (patch) | |
| tree | 5288e6eb2c950c26826812f399173e4301291b56 /layers/param_checker.cpp | |
| parent | c0ff6d2f78350922f81f9103496503662ca4df62 (diff) | |
| download | usermoji-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 'layers/param_checker.cpp')
| -rw-r--r-- | layers/param_checker.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/layers/param_checker.cpp b/layers/param_checker.cpp index 9b925266..643399a4 100644 --- a/layers/param_checker.cpp +++ b/layers/param_checker.cpp @@ -8491,7 +8491,7 @@ VK_LAYER_EXPORT void VKAPI vkCmdClearColorImage( PostCmdClearColorImage(cmdBuffer, image, imageLayout, rangeCount); } -void PreCmdClearDepthStencil( +void PreCmdClearDepthStencilImage( VkCmdBuffer cmdBuffer, const VkImageSubresourceRange* pRanges) { @@ -8517,7 +8517,7 @@ void PreCmdClearDepthStencil( } } -void PostCmdClearDepthStencil( +void PostCmdClearDepthStencilImage( VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, @@ -8551,7 +8551,7 @@ void PostCmdClearDepthStencil( } -VK_LAYER_EXPORT void VKAPI vkCmdClearDepthStencil( +VK_LAYER_EXPORT void VKAPI vkCmdClearDepthStencilImage( VkCmdBuffer cmdBuffer, VkImage image, VkImageLayout imageLayout, @@ -8560,10 +8560,10 @@ VK_LAYER_EXPORT void VKAPI vkCmdClearDepthStencil( uint32_t rangeCount, const VkImageSubresourceRange* pRanges) { - PreCmdClearDepthStencil(cmdBuffer, pRanges); - get_dispatch_table(pc_device_table_map, cmdBuffer)->CmdClearDepthStencil(cmdBuffer, image, imageLayout, depth, stencil, rangeCount, pRanges); + PreCmdClearDepthStencilImage(cmdBuffer, pRanges); + get_dispatch_table(pc_device_table_map, cmdBuffer)->CmdClearDepthStencilImage(cmdBuffer, image, imageLayout, depth, stencil, rangeCount, pRanges); - PostCmdClearDepthStencil(cmdBuffer, image, imageLayout, depth, stencil, rangeCount); + PostCmdClearDepthStencilImage(cmdBuffer, image, imageLayout, depth, stencil, rangeCount); } void PreCmdResolveImage( @@ -8991,8 +8991,6 @@ void PostCmdResetQueryPool( "vkCmdResetQueryPool parameter, VkQueryPool queryPool, is null pointer"); return; } - - } VK_LAYER_EXPORT void VKAPI vkCmdResetQueryPool( @@ -9688,8 +9686,8 @@ VK_LAYER_EXPORT void* VKAPI vkGetDeviceProcAddr(VkDevice device, const char* fun return (void*) vkCmdFillBuffer; if (!strcmp(funcName, "vkCmdClearColorImage")) return (void*) vkCmdClearColorImage; - if (!strcmp(funcName, "vkCmdClearDepthStencil")) - return (void*) vkCmdClearDepthStencil; + if (!strcmp(funcName, "vkCmdClearDepthStencilImage")) + return (void*) vkCmdClearDepthStencilImage; if (!strcmp(funcName, "vkCmdResolveImage")) return (void*) vkCmdResolveImage; if (!strcmp(funcName, "vkCmdSetEvent")) |
