summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_decompiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/renderer_opengl/gl_shader_decompiler.h')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.h b/src/video_core/renderer_opengl/gl_shader_decompiler.h
index 628f02c93..061dd6102 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.h
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.h
@@ -7,18 +7,14 @@
#include <string>
#include <boost/optional.hpp>
#include "common/common_types.h"
+#include "video_core/renderer_opengl/gl_shader_gen.h"
-namespace Tegra {
-namespace Shader {
+namespace GLShader {
namespace Decompiler {
-constexpr size_t MAX_PROGRAM_CODE_LENGTH{0x100};
-constexpr size_t MAX_SWIZZLE_DATA_LENGTH{0x100};
-
-using ProgramCode = std::array<u64, MAX_PROGRAM_CODE_LENGTH>;
+std::string GetCommonDeclarations();
boost::optional<std::string> DecompileProgram(const ProgramCode& program_code, u32 main_offset);
} // namespace Decompiler
-} // namespace Shader
-} // namespace Tegra
+} // namespace GLShader