SampleComponentManager_Windows.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 <SampleComponentManager.h>
  9. namespace AtomSampleViewer
  10. {
  11. bool SampleComponentManager::IsMultiViewportSwapchainSampleSupported()
  12. {
  13. return true;
  14. }
  15. void SampleComponentManager::AdjustImGuiFontScale()
  16. {
  17. }
  18. const char* SampleComponentManager::GetRootPassTemplateName()
  19. {
  20. // Use Low end pipeline template for VR
  21. AZ::RPI::XRRenderingInterface* xrSystem = AZ::RPI::RPISystemInterface::Get()->GetXRSystem();
  22. if(xrSystem)
  23. {
  24. return "LowEndPipelineTemplate";
  25. }
  26. return "MainPipeline";
  27. }
  28. int SampleComponentManager::GetDefaultNumMSAASamples()
  29. {
  30. // Use sample count of 1 for VR pipelines
  31. AZ::RPI::XRRenderingInterface* xrSystem = AZ::RPI::RPISystemInterface::Get()->GetXRSystem();
  32. if (xrSystem)
  33. {
  34. return 1;
  35. }
  36. return 4;
  37. }
  38. } // namespace AtomSampleViewer