message: Ignore unused attachments being cleared
diff: @@ -2518,12 +2518,15 @@ bool WrappedVulkan::Serialise_vkCmdClearAttachments(SerialiserType &ser,
  if(att < (uint32_t)rp.subpasses[state.subpass].colorAttachments.size())
  {
  att = rp.subpasses[state.subpass].colorAttachments[att];
  + if(att < (uint32_t)state.GetFramebufferAttachments().size())
  + {
  actionNode.resourceUsage.push_back(make_rdcpair(
  m_CreationInfo.m_ImageView[state.GetFramebufferAttachments()[att]].image,
  EventUsage(actionNode.action.eventId, ResourceUsage::Clear,
  state.GetFramebufferAttachments()[att])));
  }
  }
  + }
  else if(pAttachments[a].aspectMask & VK_IMAGE_ASPECT_DEPTH_BIT)
  {
  if(rp.subpasses[state.subpass].depthstencilAttachment >= 0)
  