From 8aa21a03b30d5d1b2c29e10fd05d2f893e6bd014 Mon Sep 17 00:00:00 2001 From: bunnei Date: Sat, 7 Apr 2018 04:54:52 -0400 Subject: [PATCH] maxwell_to_gl: Add a few types, etc. --- src/video_core/renderer_opengl/maxwell_to_gl.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h index 48ee80125e..7909dcfc3b 100644 --- a/src/video_core/renderer_opengl/maxwell_to_gl.h +++ b/src/video_core/renderer_opengl/maxwell_to_gl.h @@ -10,6 +10,14 @@ #include "common/logging/log.h" #include "video_core/engines/maxwell_3d.h" +using GLvec2 = std::array; +using GLvec3 = std::array; +using GLvec4 = std::array; + +using GLuvec2 = std::array; +using GLuvec3 = std::array; +using GLuvec4 = std::array; + namespace MaxwellToGL { using Maxwell = Tegra::Engines::Maxwell3D::Regs; @@ -39,6 +47,8 @@ inline GLenum VertexType(Maxwell::VertexAttribute attrib) { inline GLenum PrimitiveTopology(Maxwell::PrimitiveTopology topology) { switch (topology) { + case Maxwell::PrimitiveTopology::Triangles: + return GL_TRIANGLES; case Maxwell::PrimitiveTopology::TriangleStrip: return GL_TRIANGLE_STRIP; }