mirror of
https://github.com/KhronosGroup/SPIRV-Cross.git
synced 2024-11-09 22:00:05 +00:00
Merge pull request #2351 from js6i/entry_point_decls
Stale access permissions for overlapping descriptors
This commit is contained in:
commit
d17a2d6940
@ -18189,6 +18189,13 @@ 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();
|
||||
|
||||
// This will get wrapped in a separate temporary when a spvDescriptorArray wrapper is emitted.
|
||||
set_qualified_name(aliased_var.self, name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user