1234567891011121314151617181920212223242526272829303132333435 |
- /*
- * Copyright (c) Contributors to the Open 3D Engine Project.
- * For complete copyright and license terms please see the LICENSE at the root of this distribution.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #if !defined(IndexFormatEnumType)
- #define IndexFormatEnumType
- #endif
- enum class IndexFormat IndexFormatEnumType
- {
- Unknown = 0,
- Uint16,
- Uint32,
- };
- inline uint GetIndexFormatSize(IndexFormat format)
- {
- switch (format)
- {
- case IndexFormat::Uint16:
- return 2;
- case IndexFormat::Uint32:
- return 4;
- default:
- return 0;
- }
- }
|