diff options
author | Mat M <mathew1800@gmail.com> | 2020-03-27 02:05:52 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 02:05:52 +0100 |
commit | e84b76001654acda245d4f1c0a667fb00bb5ad8c (patch) | |
tree | fb3b690d37afd166f840ae363356738821fa10ce /src | |
parent | Merge pull request #3453 from FearlessTobi/remove-pause-lock (diff) | |
parent | maxwell_to_vk: implement signedscaled vertex formats (diff) | |
download | yuzu-e84b76001654acda245d4f1c0a667fb00bb5ad8c.tar yuzu-e84b76001654acda245d4f1c0a667fb00bb5ad8c.tar.gz yuzu-e84b76001654acda245d4f1c0a667fb00bb5ad8c.tar.bz2 yuzu-e84b76001654acda245d4f1c0a667fb00bb5ad8c.tar.lz yuzu-e84b76001654acda245d4f1c0a667fb00bb5ad8c.tar.xz yuzu-e84b76001654acda245d4f1c0a667fb00bb5ad8c.tar.zst yuzu-e84b76001654acda245d4f1c0a667fb00bb5ad8c.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) { |