summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-glsl-legalize.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-02-16 13:55:32 -0800
committerGitHub <noreply@github.com>2023-02-16 13:55:32 -0800
commit4c4826d47eeef4675daae4ae53ff76f4d5ebd84a (patch)
treeed4af0ded878e4f06e9641ce61d26ffd7c89ccbc /source/slang/slang-ir-glsl-legalize.cpp
parenteda88e513e8b1e2abc05e9dc8555f237d96472df (diff)
Overhaul global inst deduplication and cpp/cuda backend. (#2654)
* Overhaul global inst deduplication and cpp/cuda backend. * Update IR documentation. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-glsl-legalize.cpp')
-rw-r--r--source/slang/slang-ir-glsl-legalize.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-ir-glsl-legalize.cpp b/source/slang/slang-ir-glsl-legalize.cpp
index 0dcd437fe..55d120228 100644
--- a/source/slang/slang-ir-glsl-legalize.cpp
+++ b/source/slang/slang-ir-glsl-legalize.cpp
@@ -1791,7 +1791,7 @@ void legalizeMeshOutputParam(
// the writes may only be writing to parts of the output struct, or may not
// be writes at all (i.e. being passed as an out paramter).
//
- traverseUses(g, [&](IRInst* u)
+ traverseUsers(g, [&](IRInst* u)
{
auto l = as<IRLoad>(u);
SLANG_EXPECT(l, "Mesh Output sentinel parameter wasn't used in a load");
@@ -1811,7 +1811,7 @@ void legalizeMeshOutputParam(
return;
}
// Otherwise, go through the uses one by one and see what we can do
- traverseUses(a, [&](IRInst* s)
+ traverseUsers(a, [&](IRInst* s)
{
IRBuilderInsertLocScope locScope{builder};
builder->setInsertBefore(s);
@@ -2022,7 +2022,7 @@ void legalizeMeshOutputParam(
for(auto builtin : builtins)
{
- traverseUses(builtin.param, [&](IRInst* u)
+ traverseUsers(builtin.param, [&](IRInst* u)
{
auto p = as<IRGetElementPtr>(u);
SLANG_EXPECT(p, "Mesh Output sentinel parameter wasn't used as an array");