summaryrefslogblamecommitdiffstats
path: root/src/video_core/macro/macro_hle.h
blob: 625332c9d962a9b6962b295f755770187fc8f8a2 (plain) (tree)
1
2
3
4
5
6
7

                                                               



                 
                                






                   

                
                                                      
                
 


                                                                                 




                                  
                    
// 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