VERY experimental Nintendo Switch 2 emulator
C++
OpenGL: Move Attributes enum to a more appropriate file
Yuri Kunde Schlesnerf510fe1b2e1a
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cppindex de1d5eba7e..1e7022fb9d 100644--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp@@ -20,7 +20,6 @@#include "video_core/regs_texturing.h"#include "video_core/renderer_opengl/gl_rasterizer.h"#include "video_core/renderer_opengl/gl_shader_gen.h"-#include "video_core/renderer_opengl/gl_shader_util.h"#include "video_core/renderer_opengl/pica_to_gl.h"#include "video_core/renderer_opengl/renderer_opengl.h"diff --git a/src/video_core/renderer_opengl/gl_shader_gen.h b/src/video_core/renderer_opengl/gl_shader_gen.hindex bef3249cf9..7ec3bb53f9 100644--- a/src/video_core/renderer_opengl/gl_shader_gen.h+++ b/src/video_core/renderer_opengl/gl_shader_gen.h@@ -10,6 +10,17 @@ union PicaShaderConfig;namespace GLShader {+enum Attributes {+ ATTRIBUTE_POSITION,+ ATTRIBUTE_COLOR,+ ATTRIBUTE_TEXCOORD0,+ ATTRIBUTE_TEXCOORD1,+ ATTRIBUTE_TEXCOORD2,+ ATTRIBUTE_TEXCOORD0_W,+ ATTRIBUTE_NORMQUAT,+ ATTRIBUTE_VIEW,+};+/*** Generates the GLSL vertex shader program source code for the current Pica state* @returns String of the shader source codediff --git a/src/video_core/renderer_opengl/gl_shader_util.h b/src/video_core/renderer_opengl/gl_shader_util.hindex f59912f794..c66e8acd33 100644--- a/src/video_core/renderer_opengl/gl_shader_util.h+++ b/src/video_core/renderer_opengl/gl_shader_util.h@@ -8,17 +8,6 @@namespace GLShader {-enum Attributes {- ATTRIBUTE_POSITION,- ATTRIBUTE_COLOR,- ATTRIBUTE_TEXCOORD0,- ATTRIBUTE_TEXCOORD1,- ATTRIBUTE_TEXCOORD2,- ATTRIBUTE_TEXCOORD0_W,- ATTRIBUTE_NORMQUAT,- ATTRIBUTE_VIEW,-};-/*** Utility function to create and compile an OpenGL GLSL shader program (vertex + fragment shader)* @param vertex_shader String of the GLSL vertex shader program