diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-27 22:44:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 22:44:22 +0200 |
commit | 630fc12d4efcdcc006573d4c3e54c7024cf8fdee (patch) | |
tree | 6f747a5da98c8795697371c30258d6b36fb79e33 /src/video_core | |
parent | Merge pull request #3981 from ReinUsesLisp/bar (diff) | |
parent | maxwell_to_vk: Add format B8G8R8A8_SRGB (diff) | |
download | yuzu-630fc12d4efcdcc006573d4c3e54c7024cf8fdee.tar yuzu-630fc12d4efcdcc006573d4c3e54c7024cf8fdee.tar.gz yuzu-630fc12d4efcdcc006573d4c3e54c7024cf8fdee.tar.bz2 yuzu-630fc12d4efcdcc006573d4c3e54c7024cf8fdee.tar.lz yuzu-630fc12d4efcdcc006573d4c3e54c7024cf8fdee.tar.xz yuzu-630fc12d4efcdcc006573d4c3e54c7024cf8fdee.tar.zst yuzu-630fc12d4efcdcc006573d4c3e54c7024cf8fdee.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/renderer_vulkan/maxwell_to_vk.cpp | 4 | ||||
-rw-r--r-- | src/video_core/renderer_vulkan/vk_device.cpp | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp index 12be691a5..2871035f5 100644 --- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp +++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp @@ -142,7 +142,7 @@ struct FormatTuple { {VK_FORMAT_BC6H_UFLOAT_BLOCK}, // BC6H_UF16 {VK_FORMAT_BC6H_SFLOAT_BLOCK}, // BC6H_SF16 {VK_FORMAT_ASTC_4x4_UNORM_BLOCK}, // ASTC_2D_4X4 - {VK_FORMAT_B8G8R8A8_UNORM}, // BGRA8 + {VK_FORMAT_B8G8R8A8_UNORM, Attachable}, // BGRA8 {VK_FORMAT_R32G32B32A32_SFLOAT, Attachable | Storage}, // RGBA32F {VK_FORMAT_R32G32_SFLOAT, Attachable | Storage}, // RG32F {VK_FORMAT_R32_SFLOAT, Attachable | Storage}, // R32F @@ -168,7 +168,7 @@ struct FormatTuple { {VK_FORMAT_ASTC_8x8_UNORM_BLOCK}, // ASTC_2D_8X8 {VK_FORMAT_UNDEFINED}, // ASTC_2D_8X5 {VK_FORMAT_UNDEFINED}, // ASTC_2D_5X4 - {VK_FORMAT_UNDEFINED}, // BGRA8_SRGB + {VK_FORMAT_B8G8R8A8_SRGB, Attachable}, // BGRA8_SRGB {VK_FORMAT_BC1_RGBA_SRGB_BLOCK}, // DXT1_SRGB {VK_FORMAT_BC2_SRGB_BLOCK}, // DXT23_SRGB {VK_FORMAT_BC3_SRGB_BLOCK}, // DXT45_SRGB diff --git a/src/video_core/renderer_vulkan/vk_device.cpp b/src/video_core/renderer_vulkan/vk_device.cpp index f0c491d00..750e5a0ca 100644 --- a/src/video_core/renderer_vulkan/vk_device.cpp +++ b/src/video_core/renderer_vulkan/vk_device.cpp @@ -104,6 +104,7 @@ std::unordered_map<VkFormat, VkFormatProperties> GetFormatProperties( VK_FORMAT_R16_SFLOAT, VK_FORMAT_R16G16B16A16_SFLOAT, VK_FORMAT_B8G8R8A8_UNORM, + VK_FORMAT_B8G8R8A8_SRGB, VK_FORMAT_R4G4B4A4_UNORM_PACK16, VK_FORMAT_D32_SFLOAT, VK_FORMAT_D16_UNORM, |