summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-insts.lua
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-insts.lua')
-rw-r--r--source/slang/slang-ir-insts.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/slang/slang-ir-insts.lua b/source/slang/slang-ir-insts.lua
index 4093db8fa..a4bb4a6f2 100644
--- a/source/slang/slang-ir-insts.lua
+++ b/source/slang/slang-ir-insts.lua
@@ -1479,6 +1479,9 @@ local insts = {
struct_name = "RequireFullQuadsDecoration",
},
},
+ -- Marks a var as a temporary local variable to replace references to a `in` parameter from the function body
+ -- This is to support legacy code that modifies an `in` parameter as if it is copied to a local variable.
+ { InParamProxyVar = { struct_name = "InParamProxyVarDecoration", min_operands = 1 } },
{ TempCallArgImmutableVar = { struct_name = "TempCallArgImmutableVarDecoration" } },
{ TempCallArgVar = { struct_name = "TempCallArgVarDecoration" } },
{