3
0

Stubs.cpp 817 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #include <Common/RHI/Stubs.h>
  9. namespace UnitTest
  10. {
  11. namespace StubRHI
  12. {
  13. using namespace AZ;
  14. PhysicalDevice::PhysicalDevice()
  15. {
  16. m_descriptor.m_type = RHI::PhysicalDeviceType::Fake;
  17. m_descriptor.m_description = "UnitTest Fake Device";
  18. }
  19. Device::Device()
  20. {
  21. m_descriptor.m_platformLimitsDescriptor = aznew RHI::PlatformLimitsDescriptor;
  22. }
  23. RHI::PhysicalDeviceList PhysicalDevice::Enumerate()
  24. {
  25. return RHI::PhysicalDeviceList{ aznew PhysicalDevice };
  26. }
  27. }
  28. }