diff options
author | bunnei <bunneidev@gmail.com> | 2018-04-08 05:48:38 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-04-14 05:48:28 +0200 |
commit | 85d77a3d24f17040791fe66cc1278713cfb487ae (patch) | |
tree | a2237d550d391e4d313fe64f5209048d3b685f6d /src/video_core/renderer_opengl/gl_shader_decompiler.h | |
parent | gl_shader_manager: Cleanup and consolidate uniform handling. (diff) | |
download | yuzu-85d77a3d24f17040791fe66cc1278713cfb487ae.tar yuzu-85d77a3d24f17040791fe66cc1278713cfb487ae.tar.gz yuzu-85d77a3d24f17040791fe66cc1278713cfb487ae.tar.bz2 yuzu-85d77a3d24f17040791fe66cc1278713cfb487ae.tar.lz yuzu-85d77a3d24f17040791fe66cc1278713cfb487ae.tar.xz yuzu-85d77a3d24f17040791fe66cc1278713cfb487ae.tar.zst yuzu-85d77a3d24f17040791fe66cc1278713cfb487ae.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.h | 12 |
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 |