MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / GetLocation

Method GetLocation

layers/sync/sync_render_pass.cpp:1105–1114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103}
1104
1105Location 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
1116bool DynamicRenderingInfo::Attachment::IsWriteable(const LastBound& last_bound_state) const {
1117 bool writeable = IsValid();

Calls 1

dotMethod · 0.80

Tested by

no test coverage detected