Add colorfront and txtcoord support

This commit is contained in:
Feng Chen
2021-09-01 00:07:25 +08:00
parent 5f19b66189
commit 73b11f390e
5 changed files with 57 additions and 0 deletions

View File

@ -222,8 +222,13 @@ enum class Attribute : u64 {
FrontFace = 255,
};
constexpr size_t NUM_TXT_COORD = 10;
constexpr size_t NUM_GENERICS = 32;
[[nodiscard]] u32 TxtCoordAttributeIndex(Attribute attribute);
[[nodiscard]] u32 TxtCoordAttributeElement(Attribute attribute);
[[nodiscard]] bool IsGeneric(Attribute attribute) noexcept;
[[nodiscard]] u32 GenericAttributeIndex(Attribute attribute);