summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_arb_decompiler.h
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-06-03 23:07:35 +0200
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-06-12 03:12:07 +0200
commita63a0daa5e773574019ec521c0a07096efbdcd36 (patch)
treebbf61edb6185f0d5cd7c2bc79d91e39fa47cb45b /src/video_core/renderer_opengl/gl_arb_decompiler.h
parentyuzu/configuration: Show assembly shaders check box (diff)
downloadyuzu-a63a0daa5e773574019ec521c0a07096efbdcd36.tar
yuzu-a63a0daa5e773574019ec521c0a07096efbdcd36.tar.gz
yuzu-a63a0daa5e773574019ec521c0a07096efbdcd36.tar.bz2
yuzu-a63a0daa5e773574019ec521c0a07096efbdcd36.tar.lz
yuzu-a63a0daa5e773574019ec521c0a07096efbdcd36.tar.xz
yuzu-a63a0daa5e773574019ec521c0a07096efbdcd36.tar.zst
yuzu-a63a0daa5e773574019ec521c0a07096efbdcd36.zip
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_arb_decompiler.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_arb_decompiler.h b/src/video_core/renderer_opengl/gl_arb_decompiler.h
new file mode 100644
index 000000000..6afc87220
--- /dev/null
+++ b/src/video_core/renderer_opengl/gl_arb_decompiler.h
@@ -0,0 +1,29 @@
+// Copyright 2020 yuzu Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include <string>
+#include <string_view>
+
+#include "common/common_types.h"
+
+namespace Tegra::Engines {
+enum class ShaderType : u32;
+}
+
+namespace VideoCommon::Shader {
+class ShaderIR;
+class Registry;
+} // namespace VideoCommon::Shader
+
+namespace OpenGL {
+
+class Device;
+
+std::string DecompileAssemblyShader(const Device& device, const VideoCommon::Shader::ShaderIR& ir,
+ const VideoCommon::Shader::Registry& registry,
+ Tegra::Engines::ShaderType stage, std::string_view identifier);
+
+} // namespace OpenGL