2
0

SampleComponentManager_Android.cpp 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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 false;
  14. }
  15. void SampleComponentManager::AdjustImGuiFontScale()
  16. {
  17. // Scale the text and the general size for mobile platforms because the screens are smaller.
  18. const float fontScale = 1.5f;
  19. const float sizeScale = 2.0f;
  20. AZ::Render::ImGuiSystemRequestBus::Broadcast(&AZ::Render::ImGuiSystemRequestBus::Events::SetGlobalSizeScale, sizeScale);
  21. AZ::Render::ImGuiSystemRequestBus::Broadcast(&AZ::Render::ImGuiSystemRequestBus::Events::SetGlobalFontScale, fontScale);
  22. }
  23. const char* SampleComponentManager::GetRootPassTemplateName()
  24. {
  25. return "LowEndPipelineTemplate";
  26. }
  27. int SampleComponentManager::GetDefaultNumMSAASamples()
  28. {
  29. return 1;
  30. }
  31. } // namespace AtomSampleViewer