maxwell_compute.h 710 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2018 yuzu Emulator Project
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #pragma once
  5. #include <vector>
  6. #include "common/common_types.h"
  7. namespace Tegra {
  8. namespace Engines {
  9. class MaxwellCompute final {
  10. public:
  11. MaxwellCompute() = default;
  12. ~MaxwellCompute() = default;
  13. /// Write the value to the register identified by method.
  14. void WriteReg(u32 method, u32 value);
  15. /**
  16. * Handles a method call to this engine.
  17. * @param method Method to call
  18. * @param parameters Arguments to the method call
  19. */
  20. void CallMethod(u32 method, const std::vector<u32>& parameters);
  21. };
  22. } // namespace Engines
  23. } // namespace Tegra