summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl/gl_shader_decompiler.h
blob: 628f02c931798234e10e0368045606d3d90808e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright 2018 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#include <array>
#include <functional>
#include <string>
#include <boost/optional.hpp>
#include "common/common_types.h"

namespace Tegra {
namespace Shader {
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>;

boost::optional<std::string> DecompileProgram(const ProgramCode& program_code, u32 main_offset);

} // namespace Decompiler
} // namespace Shader
} // namespace Tegra