diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-23 21:45:58 +0100 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-02-24 04:27:37 +0100 |
commit | e2dd59e3412d780b90268da936bc89b5572ef8b8 (patch) | |
tree | 39bf6d0782095a57b030c0279afa078df7a7b795 /src/video_core/renderer_opengl | |
parent | Merge pull request #3424 from ReinUsesLisp/spirv-layer (diff) | |
download | yuzu-e2dd59e3412d780b90268da936bc89b5572ef8b8.tar yuzu-e2dd59e3412d780b90268da936bc89b5572ef8b8.tar.gz yuzu-e2dd59e3412d780b90268da936bc89b5572ef8b8.tar.bz2 yuzu-e2dd59e3412d780b90268da936bc89b5572ef8b8.tar.lz yuzu-e2dd59e3412d780b90268da936bc89b5572ef8b8.tar.xz yuzu-e2dd59e3412d780b90268da936bc89b5572ef8b8.tar.zst yuzu-e2dd59e3412d780b90268da936bc89b5572ef8b8.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 24 |
1 files changed, 24 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 7ed505628..d3dea3659 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h @@ -92,8 +92,32 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) { } case Maxwell::VertexAttribute::Type::UnsignedScaled: switch (attrib.size) { + case Maxwell::VertexAttribute::Size::Size_8: case Maxwell::VertexAttribute::Size::Size_8_8: + case Maxwell::VertexAttribute::Size::Size_8_8_8: + case Maxwell::VertexAttribute::Size::Size_8_8_8_8: return GL_UNSIGNED_BYTE; + case Maxwell::VertexAttribute::Size::Size_16: + case Maxwell::VertexAttribute::Size::Size_16_16: + case Maxwell::VertexAttribute::Size::Size_16_16_16: + case Maxwell::VertexAttribute::Size::Size_16_16_16_16: + return GL_UNSIGNED_SHORT; + default: + LOG_ERROR(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString()); + return {}; + } + case Maxwell::VertexAttribute::Type::SignedScaled: + switch (attrib.size) { + case Maxwell::VertexAttribute::Size::Size_8: + case Maxwell::VertexAttribute::Size::Size_8_8: + case Maxwell::VertexAttribute::Size::Size_8_8_8: + case Maxwell::VertexAttribute::Size::Size_8_8_8_8: + return GL_BYTE; + case Maxwell::VertexAttribute::Size::Size_16: + case Maxwell::VertexAttribute::Size::Size_16_16: + case Maxwell::VertexAttribute::Size::Size_16_16_16: + case Maxwell::VertexAttribute::Size::Size_16_16_16_16: + return GL_SHORT; default: LOG_ERROR(Render_OpenGL, "Unimplemented vertex size={}", attrib.SizeString()); return {}; |