From ce39ae3e575339c28d80044d3202aaccd3827b6d Mon Sep 17 00:00:00 2001 From: Subv Date: Wed, 4 Jul 2018 15:22:34 -0500 Subject: [PATCH] GPU: Implement the Size_16_16 and Size_10_10_10_2 vertex attribute types. Both signed and unsigned variants. --- src/video_core/renderer_opengl/maxwell_to_gl.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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());