summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-05 17:30:01 +0200
committerGitHub <noreply@github.com>2018-07-05 17:30:01 +0200
commit956b5db52e74758ebe8f971f73b0c8fcc3c8256b (patch)
treed65cf6c9266733d6e3a38135ef9c469c57667ca6 /src/video_core
parentMerge pull request #622 from Subv/unused_tex (diff)
parentGPU: Implement the Size_16_16 and Size_10_10_10_2 vertex attribute types. (diff)
downloadyuzu-956b5db52e74758ebe8f971f73b0c8fcc3c8256b.tar
yuzu-956b5db52e74758ebe8f971f73b0c8fcc3c8256b.tar.gz
yuzu-956b5db52e74758ebe8f971f73b0c8fcc3c8256b.tar.bz2
yuzu-956b5db52e74758ebe8f971f73b0c8fcc3c8256b.tar.lz
yuzu-956b5db52e74758ebe8f971f73b0c8fcc3c8256b.tar.xz
yuzu-956b5db52e74758ebe8f971f73b0c8fcc3c8256b.tar.zst
yuzu-956b5db52e74758ebe8f971f73b0c8fcc3c8256b.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/maxwell_to_gl.h8
1 files changed, 8 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 6b9bb3df1..6ce53bbd9 100644
--- a/src/video_core/renderer_opengl/maxwell_to_gl.h
+++ b/src/video_core/renderer_opengl/maxwell_to_gl.h
@@ -29,6 +29,10 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) {
switch (attrib.size) {
case Maxwell::VertexAttribute::Size::Size_8_8_8_8:
return GL_UNSIGNED_BYTE;
+ case Maxwell::VertexAttribute::Size::Size_16_16:
+ return GL_UNSIGNED_SHORT;
+ case Maxwell::VertexAttribute::Size::Size_10_10_10_2:
+ return GL_UNSIGNED_INT_2_10_10_10_REV;
}
LOG_CRITICAL(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString());
@@ -41,6 +45,10 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) {
switch (attrib.size) {
case Maxwell::VertexAttribute::Size::Size_8_8_8_8:
return GL_BYTE;
+ case Maxwell::VertexAttribute::Size::Size_16_16:
+ return GL_SHORT;
+ case Maxwell::VertexAttribute::Size::Size_10_10_10_2:
+ return GL_INT_2_10_10_10_REV;
}
LOG_CRITICAL(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString());