100KDrawable_SingleView_ExampleComponent.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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. #pragma once
  9. #include <Performance/HighInstanceExampleComponent.h>
  10. namespace AtomSampleViewer
  11. {
  12. //! This test loads a 46x46x46 lattice of cubes with a white material. This test is used as a simple cpu performance stress test for Atom.
  13. class _100KDrawableExampleComponent
  14. : public HighInstanceTestComponent
  15. {
  16. using Base = HighInstanceTestComponent;
  17. public:
  18. AZ_COMPONENT(_100KDrawableExampleComponent, "{A373EDC7-399F-49BB-A3A9-D81FA7E05E60}", HighInstanceTestComponent);
  19. static void Reflect(AZ::ReflectContext* context);
  20. _100KDrawableExampleComponent();
  21. private:
  22. AZ_DISABLE_COPY_MOVE(_100KDrawableExampleComponent);
  23. static void InitDefaultValues(HighInstanceTestParameters& defaultParameters);
  24. };
  25. } // namespace AtomSampleViewer