Rename parameters

This commit is contained in:
Feng Chen 2021-09-03 23:52:20 +08:00
parent b3e5a2f75d
commit 49c66fa4e9
5 changed files with 24 additions and 14 deletions

View file

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