| 1098 | } |
| 1099 | |
| 1100 | void ReadState::Set(VkPipelineStageFlagBits2 stage, SyncAccessIndex access_index, const AttachmentAccess& attachment_access, |
| 1101 | ResourceUsageTagEx tag_ex) { |
| 1102 | assert(access_index != SYNC_ACCESS_INDEX_NONE); |
| 1103 | this->stage = stage; |
| 1104 | this->access_index = access_index; |
| 1105 | this->attachment_access = attachment_access; |
| 1106 | barriers = VK_PIPELINE_STAGE_2_NONE; |
| 1107 | sync_stages = VK_PIPELINE_STAGE_2_NONE; |
| 1108 | tag = tag_ex.tag; |
| 1109 | handle_index = tag_ex.handle_index; |
| 1110 | queue = kQueueIdInvalid; |
| 1111 | } |
| 1112 | |
| 1113 | // Scope test including "queue submission order" effects. Specifically, accesses from a different queue are not |
| 1114 | // considered to be in "queue submission order" with barriers, events, or semaphore signalling, but any barriers |