SampleComponentManager_iOS.cpp 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. const char* SampleComponentManager::GetMaterialPipelineName()
  28. {
  29. return "LowEndPipeline";
  30. }
  31. int SampleComponentManager::GetDefaultNumMSAASamples()
  32. {
  33. return 1;
  34. }
  35. } // namespace AtomSampleViewer