Skip to content

Commit

Permalink
MSL: Recompile when an aliased descriptor's name is changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
js6i committed Jul 11, 2024
1 parent 6fd1f75 commit b37f159
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spirv_msl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18167,6 +18167,9 @@ void CompilerMSL::emit_argument_buffer_aliased_descriptor(const SPIRVariable &al
}
else
{
if (ir.meta[aliased_var.self].decoration.qualified_alias != name)
force_recompile();

// This will get wrapped in a separate temporary when a spvDescriptorArray wrapper is emitted.
set_qualified_name(aliased_var.self, name);
}
Expand Down

0 comments on commit b37f159

Please sign in to comment.