MeshBuilderInvalidIndex.h 506 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. #pragma once
  9. #include <AzCore/base.h>
  10. namespace AZ::MeshBuilder
  11. {
  12. template<class IndexType>
  13. inline static constexpr IndexType InvalidIndexT = static_cast<IndexType>(-1);
  14. inline static constexpr size_t InvalidIndex = InvalidIndexT<size_t>;
  15. } // namespace AZ::MeshBuilder