VideoBackend.h 666 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2022 Dolphin Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include <string>
  5. #include "VideoCommon/VideoBackendBase.h"
  6. namespace Metal
  7. {
  8. class VideoBackend : public VideoBackendBase
  9. {
  10. public:
  11. bool Initialize(const WindowSystemInfo& wsi) override;
  12. void Shutdown() override;
  13. std::string GetName() const override;
  14. std::string GetDisplayName() const override;
  15. std::optional<std::string> GetWarningMessage() const override;
  16. void InitBackendInfo(const WindowSystemInfo& wsi) override;
  17. void PrepareWindow(WindowSystemInfo& wsi) override;
  18. static constexpr const char* NAME = "Metal";
  19. };
  20. } // namespace Metal