diff options
| author | Yong He <yonghe@outlook.com> | 2018-01-17 14:48:07 -0500 |
|---|---|---|
| committer | Yong He <yonghe@outlook.com> | 2018-01-17 20:54:56 -0500 |
| commit | caf6f7a03793be3fc74683994414776f3604ad8a (patch) | |
| tree | d9d3e3a4e4a45d5e09d613159be2faaf137e0e72 /source/slang/slang-stdlib.cpp | |
| parent | 68f529af8d0eb8ec45a2d73e82c4ee372015ce01 (diff) | |
All compiler fixes to get ir branch work with falcor feature demo.
- support overloaded generic function. this involves adding a new expression type, `OverloadedExpr2` to hold the candidate expressions for the generic function decl being referenced.
- make BitNot a normal IROp instead of an IRPseudoOp
- make sure we clone the decorations of parameters when cloning ir functions
- propagate geometry shader entry point attributes (`[maxvertexcount]` and `[instance]`) through HLSL emit
- IR emit: handle geometry shader entry-point parameter decorations, such as 'triangle'.
- IR emit: treat geometry shader stream output typed ir value as `should fold into use`.
Diffstat (limited to 'source/slang/slang-stdlib.cpp')
| -rw-r--r-- | source/slang/slang-stdlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-stdlib.cpp b/source/slang/slang-stdlib.cpp index 3e526e96c..bee823d69 100644 --- a/source/slang/slang-stdlib.cpp +++ b/source/slang/slang-stdlib.cpp @@ -199,7 +199,7 @@ namespace Slang { kIRPseudoOp_Pos, "+", ARITHMETIC_MASK }, { kIROp_Neg, "-", ARITHMETIC_MASK }, { kIROp_Not, "!", ANY_MASK }, - { kIRPseudoOp_BitNot, "~", INT_MASK }, + { kIROp_BitNot, "~", INT_MASK }, { kIRPseudoOp_PreInc, "++", ARITHMETIC_MASK | ASSIGNMENT }, { kIRPseudoOp_PreDec, "--", ARITHMETIC_MASK | ASSIGNMENT }, { kIRPseudoOp_PostInc, "++", ARITHMETIC_MASK | ASSIGNMENT | POSTFIX }, |
