diff options
author | Squall-Leonhart <danialhorton@hotmail.com> | 2023-10-15 18:17:53 +0200 |
---|---|---|
committer | Squall-Leonhart <danialhorton@hotmail.com> | 2023-10-15 18:17:53 +0200 |
commit | f40f65f5d2123c79ffa4c8587d20dada624b5047 (patch) | |
tree | ff28db65b491e718ef79b001426a5f8b53c49bdb /src/video_core/renderer_vulkan/blit_image.cpp | |
parent | missed this line when editing the copypasta (diff) | |
download | yuzu-f40f65f5d2123c79ffa4c8587d20dada624b5047.tar yuzu-f40f65f5d2123c79ffa4c8587d20dada624b5047.tar.gz yuzu-f40f65f5d2123c79ffa4c8587d20dada624b5047.tar.bz2 yuzu-f40f65f5d2123c79ffa4c8587d20dada624b5047.tar.lz yuzu-f40f65f5d2123c79ffa4c8587d20dada624b5047.tar.xz yuzu-f40f65f5d2123c79ffa4c8587d20dada624b5047.tar.zst yuzu-f40f65f5d2123c79ffa4c8587d20dada624b5047.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/blit_image.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/blit_image.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/blit_image.cpp b/src/video_core/renderer_vulkan/blit_image.cpp index 18f51a327..78a60fbe6 100644 --- a/src/video_core/renderer_vulkan/blit_image.cpp +++ b/src/video_core/renderer_vulkan/blit_image.cpp @@ -8,6 +8,7 @@ #include "common/settings.h" #include "video_core/host_shaders/blit_color_float_frag_spv.h" #include "video_core/host_shaders/convert_abgr8_to_d24s8_frag_spv.h" +#include "video_core/host_shaders/convert_abgr8_to_d32f_frag_spv.h" #include "video_core/host_shaders/convert_d24s8_to_abgr8_frag_spv.h" #include "video_core/host_shaders/convert_d32f_to_abgr8_frag_spv.h" #include "video_core/host_shaders/convert_d32f_to_bgra8_frag_spv.h" @@ -561,6 +562,13 @@ void BlitImageHelper::ConvertABGR8ToD24S8(const Framebuffer* dst_framebuffer, Convert(*convert_abgr8_to_d24s8_pipeline, dst_framebuffer, src_image_view); } +void BlitImageHelper::ConvertABGR8ToD32F(const Framebuffer* dst_framebuffer, + const ImageView& src_image_view) { + ConvertPipelineDepthTargetEx(convert_abgr8_to_d32f_pipeline, dst_framebuffer->RenderPass(), + convert_abgr8_to_d32f_frag); + Convert(*convert_abgr8_to_d32f_pipeline, dst_framebuffer, src_image_view); +} + void BlitImageHelper::ConvertD32FToABGR8(const Framebuffer* dst_framebuffer, ImageView& src_image_view) { ConvertPipelineColorTargetEx(convert_d32f_to_abgr8_pipeline, dst_framebuffer->RenderPass(), |