yuzu-android/src/shader_recompiler/frontend/maxwell/translate_program.h

29 lines
1.0 KiB
C++
Raw Normal View History

// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2021-01-08 22:30:07 -08:00
#pragma once
#include "shader_recompiler/environment.h"
#include "shader_recompiler/frontend/ir/basic_block.h"
2021-02-05 18:11:23 -08:00
#include "shader_recompiler/frontend/ir/program.h"
2021-01-08 22:30:07 -08:00
#include "shader_recompiler/frontend/maxwell/control_flow.h"
2021-02-05 18:11:23 -08:00
#include "shader_recompiler/object_pool.h"
2021-11-18 23:32:53 -08:00
#include "shader_recompiler/runtime_info.h"
2021-01-08 22:30:07 -08:00
namespace Shader {
struct HostTranslateInfo;
}
2021-01-08 22:30:07 -08:00
namespace Shader::Maxwell {
2021-02-05 18:11:23 -08:00
[[nodiscard]] IR::Program TranslateProgram(ObjectPool<IR::Inst>& inst_pool,
ObjectPool<IR::Block>& block_pool, Environment& env,
Flow::CFG& cfg, const HostTranslateInfo& host_info);
2021-01-08 22:30:07 -08:00
2021-04-18 16:03:38 -07:00
[[nodiscard]] IR::Program MergeDualVertexPrograms(IR::Program& vertex_a, IR::Program& vertex_b,
Environment& env_vertex_b);
2021-05-01 05:56:25 -07:00
void ConvertLegacyToGeneric(IR::Program& program, const RuntimeInfo& runtime_info);
2021-11-18 23:32:53 -08:00
2021-01-08 22:30:07 -08:00
} // namespace Shader::Maxwell