diff options
author | Feng Chen <vonchenplus@gmail.com> | 2021-08-31 18:07:25 +0200 |
---|---|---|
committer | Feng Chen <vonchenplus@gmail.com> | 2021-08-31 18:07:25 +0200 |
commit | 73b11f390e3dabf42d22af78670c8aa6d8f52cee (patch) | |
tree | 3af775771173d1e827d2e1a05ada642a43fba9a9 /src/shader_recompiler/frontend/ir/attribute.h | |
parent | Merge pull request #6905 from Morph1984/nifm-misc (diff) | |
download | yuzu-73b11f390e3dabf42d22af78670c8aa6d8f52cee.tar yuzu-73b11f390e3dabf42d22af78670c8aa6d8f52cee.tar.gz yuzu-73b11f390e3dabf42d22af78670c8aa6d8f52cee.tar.bz2 yuzu-73b11f390e3dabf42d22af78670c8aa6d8f52cee.tar.lz yuzu-73b11f390e3dabf42d22af78670c8aa6d8f52cee.tar.xz yuzu-73b11f390e3dabf42d22af78670c8aa6d8f52cee.tar.zst yuzu-73b11f390e3dabf42d22af78670c8aa6d8f52cee.zip |
Diffstat (limited to '')
-rw-r--r-- | src/shader_recompiler/frontend/ir/attribute.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/attribute.h b/src/shader_recompiler/frontend/ir/attribute.h index ca1199494..6957fb43b 100644 --- a/src/shader_recompiler/frontend/ir/attribute.h +++ b/src/shader_recompiler/frontend/ir/attribute.h @@ -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); |