summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_decompiler.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-11-25 01:36:30 +0100
committerGitHub <noreply@github.com>2019-11-25 01:36:30 +0100
commitb03242067d9ba9e3ad9804d2ccfe596f45da6ba6 (patch)
tree386c8566d385869702b34ddb00ff58f7e8e275bf /src/video_core/renderer_opengl/gl_shader_decompiler.h
parentMerge pull request #3105 from ReinUsesLisp/fix-stencil-reg (diff)
parentgl_device: Reserve base bindings on limited devices (diff)
downloadyuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar.gz
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar.bz2
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar.lz
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar.xz
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.tar.zst
yuzu-b03242067d9ba9e3ad9804d2ccfe596f45da6ba6.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.h b/src/video_core/renderer_opengl/gl_shader_decompiler.h
index b1e75e6cc..7876f48d6 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.h
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.h
@@ -10,6 +10,7 @@
#include <vector>
#include "common/common_types.h"
#include "video_core/engines/maxwell_3d.h"
+#include "video_core/engines/shader_type.h"
#include "video_core/shader/shader_ir.h"
namespace VideoCommon::Shader {
@@ -17,20 +18,8 @@ class ShaderIR;
}
namespace OpenGL {
-
class Device;
-
-enum class ProgramType : u32 {
- VertexA = 0,
- VertexB = 1,
- TessellationControl = 2,
- TessellationEval = 3,
- Geometry = 4,
- Fragment = 5,
- Compute = 6
-};
-
-} // namespace OpenGL
+}
namespace OpenGL::GLShader {
@@ -94,6 +83,6 @@ ShaderEntries GetEntries(const VideoCommon::Shader::ShaderIR& ir);
std::string GetCommonDeclarations();
std::string Decompile(const Device& device, const VideoCommon::Shader::ShaderIR& ir,
- ProgramType stage, const std::string& suffix);
+ Tegra::Engines::ShaderType stage, const std::string& suffix);
} // namespace OpenGL::GLShader