2024-05-21 22:35:12 +00:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2024 shadPS4 Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2024-08-08 12:02:10 +00:00
|
|
|
#include "common/object_pool.h"
|
2024-05-25 12:33:15 +00:00
|
|
|
#include "shader_recompiler/ir/basic_block.h"
|
2024-05-21 22:35:12 +00:00
|
|
|
#include "shader_recompiler/ir/program.h"
|
|
|
|
|
|
|
|
namespace Shader {
|
|
|
|
|
2024-07-30 21:32:40 +00:00
|
|
|
struct Profile;
|
|
|
|
|
2024-08-08 12:02:10 +00:00
|
|
|
[[nodiscard]] IR::Program TranslateProgram(Common::ObjectPool<IR::Inst>& inst_pool,
|
|
|
|
Common::ObjectPool<IR::Block>& block_pool,
|
2024-07-30 21:32:40 +00:00
|
|
|
std::span<const u32> code, const Info&& info,
|
|
|
|
const Profile& profile);
|
2024-05-21 22:35:12 +00:00
|
|
|
|
|
|
|
} // namespace Shader
|