Skip to content

Commit

Permalink
Add more detailed comment explaining the force recompile hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
HansKristian-Work committed Jul 15, 2024
1 parent b37f159 commit ae75fcc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spirv_msl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18167,6 +18167,10 @@ void CompilerMSL::emit_argument_buffer_aliased_descriptor(const SPIRVariable &al
}
else
{
// This alias may have already been used to emit an entry point declaration. If there is a mismatch, we need a recompile.
// Moving this code to be run earlier will also conflict,
// because we need the qualified alias for the base resource,
// so forcing recompile until things sync up is the least invasive method for now.
if (ir.meta[aliased_var.self].decoration.qualified_alias != name)
force_recompile();

Expand Down

0 comments on commit ae75fcc

Please sign in to comment.