IndexFormat.cpp 583 B

12345678910111213141516171819
  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 <Atom/RHI.Reflect/IndexFormat.h>
  9. namespace AZ::RHI
  10. {
  11. uint32_t GetIndexFormatSize(IndexFormat indexFormat)
  12. {
  13. uint32_t indexFormatSize{ Internal::GetIndexFormatSize(indexFormat) };
  14. AZ_Assert(indexFormatSize != 0, "Failed to get size of index format %d", indexFormat);
  15. return indexFormatSize;
  16. }
  17. } // namespace AZ::RHI