2022-04-23 10:59:50 +02:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-05-05 07:19:08 +02:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "shader_recompiler/backend/bindings.h"
|
|
|
|
#include "shader_recompiler/frontend/ir/program.h"
|
|
|
|
#include "shader_recompiler/profile.h"
|
2021-06-16 08:22:56 +02:00
|
|
|
#include "shader_recompiler/runtime_info.h"
|
2021-05-05 07:19:08 +02:00
|
|
|
|
|
|
|
namespace Shader::Backend::GLASM {
|
|
|
|
|
2021-08-01 23:57:45 +02:00
|
|
|
constexpr u32 PROGRAM_LOCAL_PARAMETER_STORAGE_BUFFER_BASE = 1;
|
|
|
|
|
2021-05-21 07:12:32 +02:00
|
|
|
[[nodiscard]] std::string EmitGLASM(const Profile& profile, const RuntimeInfo& runtime_info,
|
|
|
|
IR::Program& program, Bindings& bindings);
|
2021-05-05 07:19:08 +02:00
|
|
|
|
2021-05-26 23:32:59 +02:00
|
|
|
[[nodiscard]] inline std::string EmitGLASM(const Profile& profile, const RuntimeInfo& runtime_info,
|
|
|
|
IR::Program& program) {
|
2021-05-05 07:19:08 +02:00
|
|
|
Bindings binding;
|
2021-05-26 23:32:59 +02:00
|
|
|
return EmitGLASM(profile, runtime_info, program, binding);
|
2021-05-05 07:19:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace Shader::Backend::GLASM
|