summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-util.cpp')
-rw-r--r--source/slang/slang-ir-util.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/slang/slang-ir-util.cpp b/source/slang/slang-ir-util.cpp
index 687841d5e..69bd2c6c2 100644
--- a/source/slang/slang-ir-util.cpp
+++ b/source/slang/slang-ir-util.cpp
@@ -2408,4 +2408,17 @@ bool isSignedType(IRType* type)
}
}
+bool isIROpaqueType(IRType* type)
+{
+ switch (type->getOp())
+ {
+ case kIROp_TextureType:
+ case kIROp_SamplerStateType:
+ case kIROp_SamplerComparisonStateType:
+ return true;
+ default:
+ return false;
+ }
+}
+
} // namespace Slang