NullBoundingBox.h 514 B

1234567891011121314151617181920212223242526
  1. // Copyright 2021 Dolphin Emulator Project
  2. // SPDX-License-Identifier: GPL-2.0-or-later
  3. #pragma once
  4. #include "Common/CommonTypes.h"
  5. #include "VideoCommon/BoundingBox.h"
  6. namespace Null
  7. {
  8. class NullBoundingBox final : public BoundingBox
  9. {
  10. public:
  11. bool Initialize() override { return true; }
  12. protected:
  13. std::vector<BBoxType> Read(u32 index, u32 length) override
  14. {
  15. return std::vector<BBoxType>(length);
  16. }
  17. void Write(u32 index, std::span<const BBoxType> values) override {}
  18. };
  19. } // namespace Null