diff options
author | Dan <dan@wadoku.de> | 2020-03-27 00:14:19 +0100 |
---|---|---|
committer | Dan <dan@wadoku.de> | 2020-03-27 00:14:19 +0100 |
commit | 744b207d92a248d42c433ff048715bcbe31cc0b6 (patch) | |
tree | fb3b690d37afd166f840ae363356738821fa10ce /src/video_core | |
parent | Merge pull request #3453 from FearlessTobi/remove-pause-lock (diff) | |
download | yuzu-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 '')
-rw-r--r-- | src/video_core/renderer_vulkan/maxwell_to_vk.cpp | 20 |
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) { |