Lines Matching refs:attachment
50 .attachment = reference[i].attachment,
55 reference2[i].attachment != VK_ATTACHMENT_UNUSED) {
56 assert(reference2[i].attachment < pass_info->attachmentCount);
58 &pass_info->pAttachments[reference2[i].attachment];
303 desc->pDepthStencilAttachment->attachment != VK_ATTACHMENT_UNUSED;
311 ds_resolve->pDepthStencilResolveAttachment->attachment != VK_ATTACHMENT_UNUSED;
319 fsr_att_info->pFragmentShadingRateAttachment->attachment != VK_ATTACHMENT_UNUSED;
357 if (ref->attachment >= pass->attachment_count) {
358 assert(ref->attachment == VK_ATTACHMENT_UNUSED);
360 .attachment = VK_ATTACHMENT_UNUSED,
366 &pass->attachments[ref->attachment];
369 .attachment = ref->attachment,
384 * anything other than an input attachment reference."
401 unreachable("Invalid subpass attachment usage");
410 if (resolve->attachment == VK_ATTACHMENT_UNUSED)
413 assert(att->attachment != VK_ATTACHMENT_UNUSED);
544 desc->pDepthStencilAttachment->attachment != VK_ATTACHMENT_UNUSED) {
560 ds_resolve->pDepthStencilResolveAttachment->attachment != VK_ATTACHMENT_UNUSED) {
594 fsr_att_info->pFragmentShadingRateAttachment->attachment != VK_ATTACHMENT_UNUSED) {
611 if (desc->pInputAttachments[a].attachment == VK_ATTACHMENT_UNUSED)
615 if (desc->pColorAttachments[c].attachment ==
616 desc->pInputAttachments[a].attachment) {
626 desc->pDepthStencilAttachment->attachment ==
627 desc->pInputAttachments[a].attachment) {
655 if (ref->attachment >= pCreateInfo->attachmentCount) {
660 &pCreateInfo->pAttachments[ref->attachment];
677 if (ref->attachment < pCreateInfo->attachmentCount) {
679 &pCreateInfo->pAttachments[ref->attachment];
757 if (att->attachment == VK_ATTACHMENT_UNUSED)
760 assert(att->attachment < pass->attachment_count);
762 &pass->attachments[att->attachment];
768 * we end up with the right last_subpass even if the same attachment is
773 if (att->attachment == VK_ATTACHMENT_UNUSED)
776 assert(att->attachment < pass->attachment_count);
778 &pass->attachments[att->attachment];
942 if (sp_att->attachment == VK_ATTACHMENT_UNUSED) {
949 assert(sp_att->attachment < pass->attachment_count);
952 .imageView = fb->attachments[sp_att->attachment],
965 assert(sp_att->attachment < pass->attachment_count);
967 VK_FROM_HANDLE(vk_image_view, iview, fb->attachments[sp_att->attachment]);
994 assert(sp_att->attachment < pass->attachment_count);
998 .imageView = fb->attachments[sp_att->attachment],
1194 /* It might be a resolve attachment */
1206 /* It might be a resolve attachment */
1254 * attachment may have been used in the render pass or we can break
1412 * used as a framebuffer attachment that refers only to the specified
1414 * transitions performed on such an attachment view during a render
1421 * track one image layout for the entire attachment rather than one per
1446 * enabled and the attachment is a view of a 1D or 2D image, the
1449 * enabled and the attachment is a view of a 1D or 2D image, the
1452 * that subpass does not reference the given attachment. If the
1453 * attachment view is a 2D or 2D array view of a 3D image, even if
1454 * the attachment view only refers to a subset of the slices of the
1585 if (sp_att->attachment == VK_ATTACHMENT_UNUSED) {
1593 assert(sp_att->attachment < pass->attachment_count);
1595 &pass->attachments[sp_att->attachment];
1597 &cmd_buffer->attachments[sp_att->attachment];
1613 sp_att->attachment,
1627 set_attachment_layout(cmd_buffer, sp_att->attachment,
1632 /* We've seen at least one of the views of this attachment before so
1653 assert(sp_att->resolve->attachment < pass->attachment_count);
1655 &cmd_buffer->attachments[sp_att->resolve->attachment];
1698 assert(sp_att->attachment < pass->attachment_count);
1700 &pass->attachments[sp_att->attachment];
1702 &cmd_buffer->attachments[sp_att->attachment];
1727 sp_att->attachment,
1747 set_attachment_layout(cmd_buffer, sp_att->attachment,
1752 /* We've seen at least one of the views of this attachment before so
1777 * "If the current render pass does not use the attachment as a
1778 * depth/stencil attachment in any subpass that happens-before, the
1782 * array for which the attachmentIndex member equals the attachment
1783 * index of the attachment, if one is specified. Otherwise, the
1788 * subpass that last used the attachment as a depth/stencil
1789 * attachment, if one is specified."
1810 assert(res_sp_att->attachment < pass->attachment_count);
1812 &pass->attachments[res_sp_att->attachment];
1814 &cmd_buffer->attachments[res_sp_att->attachment];
1865 /* The resolve attachment is entirely overwritten by the
1934 * first subpass that uses an attachment, then an implicit subpass
1943 * .dstSubpass = firstSubpass; // First subpass attachment is used in
1974 if (sp_att->attachment == VK_ATTACHMENT_UNUSED)
1977 assert(sp_att->attachment < pass->attachment_count);
1979 &pass->attachments[sp_att->attachment];
1989 if (sp_att->attachment == VK_ATTACHMENT_UNUSED)
1992 /* If we're using an initial layout, the attachment will already be
1995 transition_attachment(cmd_buffer, sp_att->attachment,
2025 if (sp_att->attachment == VK_ATTACHMENT_UNUSED)
2028 load_attachment(cmd_buffer, sp_att->attachment, subpass->view_mask,
2056 assert(sp_att->attachment < pass->attachment_count);
2058 &cmd_buffer->attachments[sp_att->attachment];
2063 load_attachment(cmd_buffer, sp_att->attachment, subpass->view_mask,
2128 * subpass that uses an attachment to VK_SUBPASS_EXTERNAL, then an
2136 * .srcSubpass = lastSubpass; // Last subpass attachment is used in
2268 * If multiview is enabled and the shading rate attachment has
2269 * multiple layers, the shading rate attachment texel is selected
2271 * is disabled, and both the shading rate attachment and the
2272 * framebuffer have multiple layers, the shading rate attachment
2275 * layer of the attachment.