diff options
| author | Jerran Schmidt <jerrans@nvidia.com> | 2025-07-02 14:22:42 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-02 04:22:42 +0000 |
| commit | 7ffb9f53e41c409a51c41318442067cc6c7e4f48 (patch) | |
| tree | 9934b27fd55e4720d0a2941fd0a339ffcb34c2e5 /source/slang/slang-ir-util.cpp | |
| parent | 415adcfd774d30d90e62d15bb7b814464f6930a6 (diff) | |
Fix for emitting ArrayStride decoration for arrays of opaque types (#7568)
* WIP opaque type decoration fix
* Clearer intent
* Formatting
* Added test for fix
Diffstat (limited to 'source/slang/slang-ir-util.cpp')
| -rw-r--r-- | source/slang/slang-ir-util.cpp | 13 |
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 |
