diff options
Diffstat (limited to 'src/video_core/vulkan_common')
-rw-r--r-- | src/video_core/vulkan_common/vulkan_wrapper.cpp | 1 | ||||
-rw-r--r-- | src/video_core/vulkan_common/vulkan_wrapper.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/video_core/vulkan_common/vulkan_wrapper.cpp b/src/video_core/vulkan_common/vulkan_wrapper.cpp index bda10ee2f..483b534a0 100644 --- a/src/video_core/vulkan_common/vulkan_wrapper.cpp +++ b/src/video_core/vulkan_common/vulkan_wrapper.cpp @@ -86,6 +86,7 @@ void Load(VkDevice device, DeviceDispatch& dld) noexcept { X(vkCmdBindVertexBuffers); X(vkCmdBlitImage); X(vkCmdClearAttachments); + X(vkCmdClearColorImage); X(vkCmdCopyBuffer); X(vkCmdCopyBufferToImage); X(vkCmdCopyImage); diff --git a/src/video_core/vulkan_common/vulkan_wrapper.h b/src/video_core/vulkan_common/vulkan_wrapper.h index 8395ff2cb..8bd4fd4d9 100644 --- a/src/video_core/vulkan_common/vulkan_wrapper.h +++ b/src/video_core/vulkan_common/vulkan_wrapper.h @@ -205,6 +205,7 @@ struct DeviceDispatch : InstanceDispatch { PFN_vkCmdBindVertexBuffers2EXT vkCmdBindVertexBuffers2EXT{}; PFN_vkCmdBlitImage vkCmdBlitImage{}; PFN_vkCmdClearAttachments vkCmdClearAttachments{}; + PFN_vkCmdClearColorImage vkCmdClearColorImage{}; PFN_vkCmdCopyBuffer vkCmdCopyBuffer{}; PFN_vkCmdCopyBufferToImage vkCmdCopyBufferToImage{}; PFN_vkCmdCopyImage vkCmdCopyImage{}; @@ -1024,6 +1025,11 @@ public: rects.data()); } + void ClearColorImage(VkImage image, VkImageLayout layout, VkClearColorValue color, + Span<VkImageSubresourceRange> ranges) { + dld->vkCmdClearColorImage(handle, image, layout, &color, ranges.size(), ranges.data()); + } + void BlitImage(VkImage src_image, VkImageLayout src_layout, VkImage dst_image, VkImageLayout dst_layout, Span<VkImageBlit> regions, VkFilter filter) const noexcept { |