diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-19 06:27:44 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2021-11-19 06:27:44 +0100 |
commit | b805c7bf058c6da04620cf75880509bdf6d5986c (patch) | |
tree | d065140ca6f9e6c7658367ce4f4f6923ae1f1a01 /src/video_core/renderer_vulkan/blit_image.h | |
parent | TextureCache: force same image format when resolving an image. (diff) | |
download | yuzu-b805c7bf058c6da04620cf75880509bdf6d5986c.tar yuzu-b805c7bf058c6da04620cf75880509bdf6d5986c.tar.gz yuzu-b805c7bf058c6da04620cf75880509bdf6d5986c.tar.bz2 yuzu-b805c7bf058c6da04620cf75880509bdf6d5986c.tar.lz yuzu-b805c7bf058c6da04620cf75880509bdf6d5986c.tar.xz yuzu-b805c7bf058c6da04620cf75880509bdf6d5986c.tar.zst yuzu-b805c7bf058c6da04620cf75880509bdf6d5986c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_vulkan/blit_image.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/blit_image.h b/src/video_core/renderer_vulkan/blit_image.h index f754a7294..10d24c4b7 100644 --- a/src/video_core/renderer_vulkan/blit_image.h +++ b/src/video_core/renderer_vulkan/blit_image.h @@ -62,6 +62,12 @@ public: void ConvertD24S8ToABGR8(const Framebuffer* dst_framebuffer, ImageView& src_image_view, u32 up_scale, u32 down_shift); + void ConvertD24S8ToB10G11R11(const Framebuffer* dst_framebuffer, ImageView& src_image_view, + u32 up_scale, u32 down_shift); + + void ConvertD24S8ToR16G16(const Framebuffer* dst_framebuffer, ImageView& src_image_view, + u32 up_scale, u32 down_shift); + private: void Convert(VkPipeline pipeline, const Framebuffer* dst_framebuffer, const ImageView& src_image_view, u32 up_scale, u32 down_shift); @@ -97,6 +103,8 @@ private: vk::ShaderModule convert_float_to_depth_frag; vk::ShaderModule convert_abgr8_to_d24s8_frag; vk::ShaderModule convert_d24s8_to_abgr8_frag; + vk::ShaderModule convert_d24s8_to_b10g11r11_frag; + vk::ShaderModule convert_d24s8_to_r16g16_frag; vk::Sampler linear_sampler; vk::Sampler nearest_sampler; @@ -110,6 +118,8 @@ private: vk::Pipeline convert_r16_to_d16_pipeline; vk::Pipeline convert_abgr8_to_d24s8_pipeline; vk::Pipeline convert_d24s8_to_abgr8_pipeline; + vk::Pipeline convert_d24s8_to_b10g11r11_pipeline; + vk::Pipeline convert_d24s8_to_r16g16_pipeline; }; } // namespace Vulkan |