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