summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common/vulkan_wrapper.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-12-08 22:52:29 +0100
committerLiam <byteslice@airmail.cc>2022-12-08 23:17:45 +0100
commit5b837157bde2115cf4781c5353f598eb6f0f7109 (patch)
treee69496d0ae0191642de95cd2c27585276cc3669e /src/video_core/vulkan_common/vulkan_wrapper.h
parentMerge pull request #9401 from vonchenplus/draw_manager (diff)
downloadyuzu-5b837157bde2115cf4781c5353f598eb6f0f7109.tar
yuzu-5b837157bde2115cf4781c5353f598eb6f0f7109.tar.gz
yuzu-5b837157bde2115cf4781c5353f598eb6f0f7109.tar.bz2
yuzu-5b837157bde2115cf4781c5353f598eb6f0f7109.tar.lz
yuzu-5b837157bde2115cf4781c5353f598eb6f0f7109.tar.xz
yuzu-5b837157bde2115cf4781c5353f598eb6f0f7109.tar.zst
yuzu-5b837157bde2115cf4781c5353f598eb6f0f7109.zip
Diffstat (limited to 'src/video_core/vulkan_common/vulkan_wrapper.h')
-rw-r--r--src/video_core/vulkan_common/vulkan_wrapper.h6
1 files changed, 6 insertions, 0 deletions
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 {