message: Only mark resources as dirty if they are still alive
  * We can have dangling references to resources due to descriptor binding
  references, so ignore any IDs that are no longer valid.
diff: @@ -589,7 +589,10 @@ VkResult WrappedVulkan::vkQueueSubmit(VkQueue queue, uint32_t submitCount,
  {
  for(auto it = record->bakedCommands->cmdInfo->dirtied.begin();
  it != record->bakedCommands->cmdInfo->dirtied.end(); ++it)
  + {
  + if(GetResourceManager()->HasCurrentResource(*it))
  GetResourceManager()->MarkPendingDirty(*it);
  + }
  capframe = true;
  }
  @@ -597,9 +600,12 @@ VkResult WrappedVulkan::vkQueueSubmit(VkQueue queue, uint32_t submitCount,
  {
  for(auto it = record->bakedCommands->cmdInfo->dirtied.begin();
  it != record->bakedCommands->cmdInfo->dirtied.end(); ++it)
  + {
  + if(GetResourceManager()->HasCurrentResource(*it))
  GetResourceManager()->MarkDirtyResource(*it);
  }
  }
  + }
  if(capframe)
  {
  