mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-02 23:34:16 +01:00
99ceb03a1c
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
29 lines
597 B
C++
29 lines
597 B
C++
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include "common/common_types.h"
|
|
|
|
namespace Tegra {
|
|
|
|
namespace Engines {
|
|
class Maxwell3D;
|
|
}
|
|
|
|
class HLEMacro {
|
|
public:
|
|
explicit HLEMacro(Engines::Maxwell3D& maxwell3d_);
|
|
~HLEMacro();
|
|
|
|
// Allocates and returns a cached macro if the hash matches a known function.
|
|
// Returns nullptr otherwise.
|
|
[[nodiscard]] std::unique_ptr<CachedMacro> GetHLEProgram(u64 hash) const;
|
|
|
|
private:
|
|
Engines::Maxwell3D& maxwell3d;
|
|
};
|
|
|
|
} // namespace Tegra
|