diff options
author | bunnei <bunneidev@gmail.com> | 2020-05-09 06:36:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-09 06:36:09 +0200 |
commit | a9ee6e346bf6457484d874851fcb5182dfb4e0f3 (patch) | |
tree | 20164790b8ff9dec6f8ce5633f2b2d2090398277 /src/video_core/renderer_vulkan | |
parent | Replace externals with Conan (#3735) (diff) | |
parent | maxwell_to_vk: implement missing signed int formats (diff) | |
download | yuzu-a9ee6e346bf6457484d874851fcb5182dfb4e0f3.tar yuzu-a9ee6e346bf6457484d874851fcb5182dfb4e0f3.tar.gz yuzu-a9ee6e346bf6457484d874851fcb5182dfb4e0f3.tar.bz2 yuzu-a9ee6e346bf6457484d874851fcb5182dfb4e0f3.tar.lz yuzu-a9ee6e346bf6457484d874851fcb5182dfb4e0f3.tar.xz yuzu-a9ee6e346bf6457484d874851fcb5182dfb4e0f3.tar.zst yuzu-a9ee6e346bf6457484d874851fcb5182dfb4e0f3.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/maxwell_to_vk.cpp | 16 |
1 files changed, 14 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 850165606..1885f8010 100644 --- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp +++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp @@ -345,8 +345,6 @@ VkFormat VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttrib break; case Maxwell::VertexAttribute::Type::SignedInt: switch (size) { - case Maxwell::VertexAttribute::Size::Size_16_16_16_16: - return VK_FORMAT_R16G16B16A16_SINT; case Maxwell::VertexAttribute::Size::Size_8: return VK_FORMAT_R8_SINT; case Maxwell::VertexAttribute::Size::Size_8_8: @@ -355,8 +353,22 @@ VkFormat VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttrib return VK_FORMAT_R8G8B8_SINT; case Maxwell::VertexAttribute::Size::Size_8_8_8_8: return VK_FORMAT_R8G8B8A8_SINT; + case Maxwell::VertexAttribute::Size::Size_16: + return VK_FORMAT_R16_SINT; + case Maxwell::VertexAttribute::Size::Size_16_16: + return VK_FORMAT_R16G16_SINT; + case Maxwell::VertexAttribute::Size::Size_16_16_16: + return VK_FORMAT_R16G16B16_SINT; + case Maxwell::VertexAttribute::Size::Size_16_16_16_16: + return VK_FORMAT_R16G16B16A16_SINT; case Maxwell::VertexAttribute::Size::Size_32: return VK_FORMAT_R32_SINT; + case Maxwell::VertexAttribute::Size::Size_32_32: + return VK_FORMAT_R32G32_SINT; + case Maxwell::VertexAttribute::Size::Size_32_32_32: + return VK_FORMAT_R32G32B32_SINT; + case Maxwell::VertexAttribute::Size::Size_32_32_32_32: + return VK_FORMAT_R32G32B32A32_SINT; default: break; } |