Rename parameters

This commit is contained in:
Feng Chen
2021-09-03 23:52:20 +08:00
parent cf26f375ff
commit a7bbaa4897
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;