diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-07 10:54:52 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-14 05:48:24 +0200 |
commit | 8aa21a03b30d5d1b2c29e10fd05d2f893e6bd014 (patch) | |
tree | 7280bd0cae02873b06ddef460da838a4fa9ee23b | |
parent | gl_shader_gen: Add hashable setup/config structs. (diff) | |
download | yuzu-8aa21a03b30d5d1b2c29e10fd05d2f893e6bd014.tar yuzu-8aa21a03b30d5d1b2c29e10fd05d2f893e6bd014.tar.gz yuzu-8aa21a03b30d5d1b2c29e10fd05d2f893e6bd014.tar.bz2 yuzu-8aa21a03b30d5d1b2c29e10fd05d2f893e6bd014.tar.lz yuzu-8aa21a03b30d5d1b2c29e10fd05d2f893e6bd014.tar.xz yuzu-8aa21a03b30d5d1b2c29e10fd05d2f893e6bd014.tar.zst yuzu-8aa21a03b30d5d1b2c29e10fd05d2f893e6bd014.zip |
-rw-r--r-- | src/video_core/renderer_opengl/maxwell_to_gl.h | 10 |
1 files changed, 10 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 48ee80125..7909dcfc3 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<GLfloat, 2>; +using GLvec3 = std::array<GLfloat, 3>; +using GLvec4 = std::array<GLfloat, 4>; + +using GLuvec2 = std::array<GLuint, 2>; +using GLuvec3 = std::array<GLuint, 3>; +using GLuvec4 = std::array<GLuint, 4>; + 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; } |