summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorMai M <mathew1800@gmail.com>2022-02-26 06:09:44 +0100
committerGitHub <noreply@github.com>2022-02-26 06:09:44 +0100
commit91d802f68d96fd38b86335d60a7a1c5a8aec6346 (patch)
treee7a4e1f37ac70aae894d1efba97eb810c79e8497 /src/video_core
parentMerge pull request #7939 from asLody/fb-format-gbra8 (diff)
parentmaxwell_to_(gl/vk): Add 11_11_10 float vertex format (diff)
downloadyuzu-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/video_core')
-rw-r--r--src/video_core/renderer_opengl/maxwell_to_gl.h2
-rw-r--r--src/video_core/renderer_vulkan/maxwell_to_vk.cpp2
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;
}