| 1103 | } |
| 1104 | |
| 1105 | Location DynamicRenderingInfo::Attachment::GetLocation(const Location& loc, uint32_t attachment_index) const { |
| 1106 | if (type == AttachmentType::kColor) { |
| 1107 | return loc.dot(vvl::Struct::VkRenderingAttachmentInfo, vvl::Field::pColorAttachments, attachment_index); |
| 1108 | } else if (type == AttachmentType::kDepth) { |
| 1109 | return loc.dot(vvl::Struct::VkRenderingAttachmentInfo, vvl::Field::pDepthAttachment); |
| 1110 | } else { |
| 1111 | assert(type == AttachmentType::kStencil); |
| 1112 | return loc.dot(vvl::Struct::VkRenderingAttachmentInfo, vvl::Field::pStencilAttachment); |
| 1113 | } |
| 1114 | } |
| 1115 | |
| 1116 | bool DynamicRenderingInfo::Attachment::IsWriteable(const LastBound& last_bound_state) const { |
| 1117 | bool writeable = IsValid(); |
no test coverage detected