Move attribute related definitions to spirv anonymous namespace

This commit is contained in:
Feng Chen 2021-09-07 12:34:35 +08:00
parent dc8967ebcd
commit bd94ea2f5a
4 changed files with 26 additions and 30 deletions

View file

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