aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/attribute.cpp
diff options
context:
space:
mode:
authorFeng Chen <vonchenplus@gmail.com>2021-09-07 12:34:35 +0800
committerFeng Chen <vonchenplus@gmail.com>2021-09-07 12:34:35 +0800
commit9cdf2383e99fac2110d788da070f16b2b5c678e7 (patch)
treea4857abbacebf3659e6b5c647eceb5a64146a26b /src/shader_recompiler/frontend/ir/attribute.cpp
parent1de9e4e121a6648521debc21a46ef145156697c0 (diff)
Move attribute related definitions to spirv anonymous namespace
Diffstat (limited to 'src/shader_recompiler/frontend/ir/attribute.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/attribute.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/shader_recompiler/frontend/ir/attribute.cpp b/src/shader_recompiler/frontend/ir/attribute.cpp
index 5b3694f652..4d0b8b8e5c 100644
--- a/src/shader_recompiler/frontend/ir/attribute.cpp
+++ b/src/shader_recompiler/frontend/ir/attribute.cpp
@@ -9,24 +9,6 @@
namespace Shader::IR {
-bool IsFixedFncTexture(Attribute attribute) {
- return attribute >= Attribute::FixedFncTexture0S && attribute <= Attribute::FixedFncTexture9Q;
-}
-
-u32 FixedFncTextureAttributeIndex(Attribute attribute) {
- if (!IsFixedFncTexture(attribute)) {
- throw InvalidArgument("Attribute is not fixedfnctexture {}", attribute);
- }
- return (static_cast<u32>(attribute) - static_cast<u32>(Attribute::FixedFncTexture0S)) / 4u;
-}
-
-u32 FixedFncTextureAttributeElement(Attribute attribute) {
- if (!IsFixedFncTexture(attribute)) {
- throw InvalidArgument("Attribute is not fixedfnctexture {}", attribute);
- }
- return static_cast<u32>(attribute) % 4;
-}
-
bool IsGeneric(Attribute attribute) noexcept {
return attribute >= Attribute::Generic0X && attribute <= Attribute::Generic31X;
}