diff options
| author | Yong He <yonghe@outlook.com> | 2024-04-17 21:32:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-17 21:32:28 -0700 |
| commit | 2c66cc7ef03b4d38fc463f2c8609a81232fcb91a (patch) | |
| tree | 7e100ddd0df91e8d7ae90c3335bb416bc50ad6ac /source/slang/slang-ir-util.h | |
| parent | 4b3f554a58e4224806c31d66874fbe60f1f09332 (diff) | |
Add skeleton for metal backend. (#3971)
Diffstat (limited to 'source/slang/slang-ir-util.h')
| -rw-r--r-- | source/slang/slang-ir-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-ir-util.h b/source/slang/slang-ir-util.h index 40ba783b9..94ae4bc9f 100644 --- a/source/slang/slang-ir-util.h +++ b/source/slang/slang-ir-util.h @@ -75,6 +75,8 @@ Dictionary<IRInst*, IRInst*> buildInterfaceRequirementDict(IRInterfaceType* inte bool isComInterfaceType(IRType* type); +// If `type` is a vector, returns its element type. Otherwise, return `type`. +IRType* getVectorElementType(IRType* type); IROp getTypeStyle(IROp op); IROp getTypeStyle(BaseType op); |
