EditorMeshStats.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 <AzCore/Memory/SystemAllocator.h>
  10. #include <AzCore/RTTI/ReflectContext.h>
  11. #include <AzCore/std/containers/vector.h>
  12. #include <AzCore/std/string/string.h>
  13. namespace AZ
  14. {
  15. namespace Render
  16. {
  17. struct EditorMeshStatsForLod final
  18. {
  19. AZ_RTTI(EditorMeshStatsForLod, "{626E3AEB-0F7A-4777-BAF1-2BBA8C1857ED}");
  20. AZ_CLASS_ALLOCATOR(EditorMeshStatsForLod, SystemAllocator);
  21. static void Reflect(ReflectContext* context);
  22. AZ::u32 m_meshCount = 0;
  23. AZ::u32 m_vertCount = 0;
  24. AZ::u32 m_triCount = 0;
  25. };
  26. struct EditorMeshStats final
  27. {
  28. AZ_RTTI(EditorMeshStats, "{68D0D3EF-17BB-46EA-B98F-51355402CCD6}");
  29. AZ_CLASS_ALLOCATOR(EditorMeshStats, SystemAllocator);
  30. static void Reflect(ReflectContext* context);
  31. AZStd::string GetLodLabel(int index) const;
  32. AZStd::vector<EditorMeshStatsForLod> m_meshStatsForLod;
  33. };
  34. } // namespace Render
  35. } // namespace AZ