From d253c74b197521ba36b6ac1065e0356175a465be Mon Sep 17 00:00:00 2001
From: Trevor Hollmann <thollmann@uni-koblenz.de>
Date: Sun, 6 Jun 2021 08:17:51 +0200
Subject: [PATCH] [#63] Add UNDEFINED to IndexType enum for error cases.

---
 modules/asset_loader/include/vkcv/asset/asset_loader.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/asset_loader/include/vkcv/asset/asset_loader.hpp b/modules/asset_loader/include/vkcv/asset/asset_loader.hpp
index 0dc6f440..a4ba81d7 100644
--- a/modules/asset_loader/include/vkcv/asset/asset_loader.hpp
+++ b/modules/asset_loader/include/vkcv/asset/asset_loader.hpp
@@ -53,7 +53,7 @@ enum PrimitiveMode {
 };
 
 /* The indices in the index buffer can be of different bit width. */
-enum IndexType { UINT32=0, UINT16=1, UINT8=2 };
+enum class IndexType : uint8_t { UNDEFINED=0, UINT8=1, UINT16=2, UINT32=3 };
 
 /* Flags for the bit-mask in the Material struct. Use the bitof() macro to
  * translate the enums value when checking a flag of the mask:
-- 
GitLab