summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMat M <mathew1800@gmail.com>2020-04-15 17:43:52 +0200
committerGitHub <noreply@github.com>2020-04-15 17:43:52 +0200
commit9208d555b79990d0fdcc2d727a32f09e33769193 (patch)
tree91ac3138f0e5b90f5dd964f01bef5e39e8d52ce6
parentMerge pull request #3656 from ReinUsesLisp/glsl-full-decompile (diff)
parentmaxwell_to_vk: Add uint16 vertex formats (diff)
downloadyuzu-9208d555b79990d0fdcc2d727a32f09e33769193.tar
yuzu-9208d555b79990d0fdcc2d727a32f09e33769193.tar.gz
yuzu-9208d555b79990d0fdcc2d727a32f09e33769193.tar.bz2
yuzu-9208d555b79990d0fdcc2d727a32f09e33769193.tar.lz
yuzu-9208d555b79990d0fdcc2d727a32f09e33769193.tar.xz
yuzu-9208d555b79990d0fdcc2d727a32f09e33769193.tar.zst
yuzu-9208d555b79990d0fdcc2d727a32f09e33769193.zip
-rw-r--r--src/video_core/renderer_vulkan/maxwell_to_vk.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
index 143478863..8681b821f 100644
--- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
+++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
@@ -360,6 +360,7 @@ VkFormat VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttrib
default:
break;
}
+ break;
case Maxwell::VertexAttribute::Type::UnsignedInt:
switch (size) {
case Maxwell::VertexAttribute::Size::Size_8:
@@ -370,6 +371,14 @@ VkFormat VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttrib
return VK_FORMAT_R8G8B8_UINT;
case Maxwell::VertexAttribute::Size::Size_8_8_8_8:
return VK_FORMAT_R8G8B8A8_UINT;
+ case Maxwell::VertexAttribute::Size::Size_16:
+ return VK_FORMAT_R16_UINT;
+ case Maxwell::VertexAttribute::Size::Size_16_16:
+ return VK_FORMAT_R16G16_UINT;
+ case Maxwell::VertexAttribute::Size::Size_16_16_16:
+ return VK_FORMAT_R16G16B16_UINT;
+ case Maxwell::VertexAttribute::Size::Size_16_16_16_16:
+ return VK_FORMAT_R16G16B16A16_UINT;
case Maxwell::VertexAttribute::Size::Size_32:
return VK_FORMAT_R32_UINT;
case Maxwell::VertexAttribute::Size::Size_32_32:
@@ -381,6 +390,7 @@ VkFormat VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttrib
default:
break;
}
+ break;
case Maxwell::VertexAttribute::Type::UnsignedScaled:
switch (size) {
case Maxwell::VertexAttribute::Size::Size_8: