diff options
author | Mai M <mathew1800@gmail.com> | 2022-02-26 06:09:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-26 06:09:44 +0100 |
commit | 91d802f68d96fd38b86335d60a7a1c5a8aec6346 (patch) | |
tree | e7a4e1f37ac70aae894d1efba97eb810c79e8497 /src | |
parent | Merge pull request #7939 from asLody/fb-format-gbra8 (diff) | |
parent | maxwell_to_(gl/vk): Add 11_11_10 float vertex format (diff) | |
download | yuzu-91d802f68d96fd38b86335d60a7a1c5a8aec6346.tar yuzu-91d802f68d96fd38b86335d60a7a1c5a8aec6346.tar.gz yuzu-91d802f68d96fd38b86335d60a7a1c5a8aec6346.tar.bz2 yuzu-91d802f68d96fd38b86335d60a7a1c5a8aec6346.tar.lz yuzu-91d802f68d96fd38b86335d60a7a1c5a8aec6346.tar.xz yuzu-91d802f68d96fd38b86335d60a7a1c5a8aec6346.tar.zst yuzu-91d802f68d96fd38b86335d60a7a1c5a8aec6346.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 2 | ||||
-rw-r--r-- | src/video_core/renderer_vulkan/maxwell_to_vk.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h index daba42ed9..db5bf1d30 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h @@ -184,6 +184,8 @@ inline GLenum VertexFormat(Maxwell::VertexAttribute attrib) { case Maxwell::VertexAttribute::Size::Size_32_32_32: case Maxwell::VertexAttribute::Size::Size_32_32_32_32: return GL_FLOAT; + case Maxwell::VertexAttribute::Size::Size_11_11_10: + return GL_UNSIGNED_INT_10F_11F_11F_REV; default: break; } diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp index 751e4792b..1c136c410 100644 --- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp +++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp @@ -495,6 +495,8 @@ VkFormat VertexFormat(Maxwell::VertexAttribute::Type type, Maxwell::VertexAttrib return VK_FORMAT_R32G32B32_SFLOAT; case Maxwell::VertexAttribute::Size::Size_32_32_32_32: return VK_FORMAT_R32G32B32A32_SFLOAT; + case Maxwell::VertexAttribute::Size::Size_11_11_10: + return VK_FORMAT_B10G11R11_UFLOAT_PACK32; default: break; } |