2018-03-19 23:51:43 +01:00
|
|
|
// 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>
|
2018-04-05 03:44:35 +02:00
|
|
|
#include <boost/optional.hpp>
|
2018-03-19 23:51:43 +01:00
|
|
|
#include "common/common_types.h"
|
|
|
|
|
2018-04-05 03:44:35 +02:00
|
|
|
namespace Tegra {
|
2018-03-19 23:51:43 +01:00
|
|
|
namespace Shader {
|
|
|
|
namespace Decompiler {
|
|
|
|
|
2018-04-05 03:44:35 +02:00
|
|
|
constexpr size_t MAX_PROGRAM_CODE_LENGTH{0x100};
|
|
|
|
constexpr size_t MAX_SWIZZLE_DATA_LENGTH{0x100};
|
2018-03-19 23:51:43 +01:00
|
|
|
|
2018-04-05 03:44:35 +02:00
|
|
|
using ProgramCode = std::array<u64, MAX_PROGRAM_CODE_LENGTH>;
|
|
|
|
|
|
|
|
boost::optional<std::string> DecompileProgram(const ProgramCode& program_code, u32 main_offset);
|
2018-03-19 23:51:43 +01:00
|
|
|
|
|
|
|
} // namespace Decompiler
|
|
|
|
} // namespace Shader
|
2018-04-05 03:44:35 +02:00
|
|
|
} // namespace Tegra
|