summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorDan <dan@wadoku.de>2020-03-27 00:14:19 +0100
committerDan <dan@wadoku.de>2020-03-27 00:14:19 +0100
commit744b207d92a248d42c433ff048715bcbe31cc0b6 (patch)
treefb3b690d37afd166f840ae363356738821fa10ce /src/video_core
parentMerge pull request #3453 from FearlessTobi/remove-pause-lock (diff)
downloadyuzu-744b207d92a248d42c433ff048715bcbe31cc0b6.tar
yuzu-744b207d92a248d42c433ff048715bcbe31cc0b6.tar.gz
yuzu-744b207d92a248d42c433ff048715bcbe31cc0b6.tar.bz2
yuzu-744b207d92a248d42c433ff048715bcbe31cc0b6.tar.lz
yuzu-744b207d92a248d42c433ff048715bcbe31cc0b6.tar.xz
yuzu-744b207d92a248d42c433ff048715bcbe31cc0b6.tar.zst
yuzu-744b207d92a248d42c433ff048715bcbe31cc0b6.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_vulkan/maxwell_to_vk.cpp20
1 files changed, 20 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 f93447610..7480cb7c3 100644
--- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
+++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp
@@ -401,6 +401,26 @@ vk::Format VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttr
}
break;
case Maxwell::VertexAttribute::Type::SignedScaled:
+ switch (size) {
+ case Maxwell::VertexAttribute::Size::Size_8:
+ return vk::Format::eR8Sscaled;
+ case Maxwell::VertexAttribute::Size::Size_8_8:
+ return vk::Format::eR8G8Sscaled;
+ case Maxwell::VertexAttribute::Size::Size_8_8_8:
+ return vk::Format::eR8G8B8Sscaled;
+ case Maxwell::VertexAttribute::Size::Size_8_8_8_8:
+ return vk::Format::eR8G8B8A8Sscaled;
+ case Maxwell::VertexAttribute::Size::Size_16:
+ return vk::Format::eR16Sscaled;
+ case Maxwell::VertexAttribute::Size::Size_16_16:
+ return vk::Format::eR16G16Sscaled;
+ case Maxwell::VertexAttribute::Size::Size_16_16_16:
+ return vk::Format::eR16G16B16Sscaled;
+ case Maxwell::VertexAttribute::Size::Size_16_16_16_16:
+ return vk::Format::eR16G16B16A16Sscaled;
+ default:
+ break;
+ }
break;
case Maxwell::VertexAttribute::Type::Float:
switch (size) {