SampleComponentManager_Android.cpp 949 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project
  3. *
  4. * SPDX-License-Identifier: Apache-2.0 OR MIT
  5. *
  6. */
  7. #include <SampleComponentManager.h>
  8. namespace AtomSampleViewer
  9. {
  10. bool SampleComponentManager::IsMultiViewportSwapchainSampleSupported()
  11. {
  12. return false;
  13. }
  14. void SampleComponentManager::AdjustImGuiFontScale()
  15. {
  16. // Scale the text and the general size for mobile platforms because the screens are smaller.
  17. const float fontScale = 1.5f;
  18. const float sizeScale = 2.0f;
  19. AZ::Render::ImGuiSystemRequestBus::Broadcast(&AZ::Render::ImGuiSystemRequestBus::Events::SetGlobalSizeScale, sizeScale);
  20. AZ::Render::ImGuiSystemRequestBus::Broadcast(&AZ::Render::ImGuiSystemRequestBus::Events::SetGlobalFontScale, fontScale);
  21. }
  22. const char* SampleComponentManager::GetRootPassTemplateName()
  23. {
  24. return "MainPipeline_Mobile";
  25. }
  26. } // namespace AtomSampleViewer