summaryrefslogtreecommitdiffstats
path: root/src/video_core/vulkan_common
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
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')
-rw-r--r--src/video_core/vulkan_common/vulkan_wrapper.cpp1
-rw-r--r--src/video_core/vulkan_common/vulkan_wrapper.h6
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 {