2018-02-12 02:34:20 +00:00
|
|
|
// Copyright 2018 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-03-17 01:32:44 +00:00
|
|
|
#include <vector>
|
2018-02-12 02:34:20 +00:00
|
|
|
#include "common/common_types.h"
|
|
|
|
|
|
|
|
namespace Tegra {
|
|
|
|
namespace Engines {
|
|
|
|
|
2018-02-12 04:44:12 +00:00
|
|
|
class Fermi2D final {
|
|
|
|
public:
|
|
|
|
Fermi2D() = default;
|
|
|
|
~Fermi2D() = default;
|
2018-02-12 02:34:20 +00:00
|
|
|
|
2018-02-12 04:44:12 +00:00
|
|
|
/// Write the value to the register identified by method.
|
|
|
|
void WriteReg(u32 method, u32 value);
|
2018-03-17 01:32:44 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handles a method call to this engine.
|
|
|
|
* @param method Method to call
|
|
|
|
* @param parameters Arguments to the method call
|
|
|
|
*/
|
|
|
|
void CallMethod(u32 method, const std::vector<u32>& parameters);
|
2018-02-12 04:44:12 +00:00
|
|
|
};
|
2018-02-12 02:34:20 +00:00
|
|
|
|
|
|
|
} // namespace Engines
|
|
|
|
} // namespace Tegra
|