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.
|
|
|
|
|
2018-04-20 03:13:59 +02:00
|
|
|
#pragma once
|
|
|
|
|
2018-03-19 23:51:43 +01:00
|
|
|
#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-10 04:07:30 +02:00
|
|
|
#include "video_core/engines/maxwell_3d.h"
|
2018-04-08 05:48:38 +02:00
|
|
|
#include "video_core/renderer_opengl/gl_shader_gen.h"
|
2018-03-19 23:51:43 +01:00
|
|
|
|
2018-07-21 00:14:17 +02:00
|
|
|
namespace GLShader::Decompiler {
|
2018-03-19 23:51:43 +01:00
|
|
|
|
2018-04-10 04:07:30 +02:00
|
|
|
using Tegra::Engines::Maxwell3D;
|
|
|
|
|
2018-04-08 05:48:38 +02:00
|
|
|
std::string GetCommonDeclarations();
|
2018-04-05 03:44:35 +02:00
|
|
|
|
2018-04-15 09:32:12 +02:00
|
|
|
boost::optional<ProgramResult> DecompileProgram(const ProgramCode& program_code, u32 main_offset,
|
2018-07-13 04:25:03 +02:00
|
|
|
Maxwell3D::Regs::ShaderStage stage,
|
|
|
|
const std::string& suffix);
|
2018-03-19 23:51:43 +01:00
|
|
|
|
2018-07-21 00:14:17 +02:00
|
|
|
} // namespace GLShader::Decompiler
|