Lines Matching defs:desc

799       const VkSubpassDescription2 *desc = &pCreateInfo->pSubpasses[i];
801 vk_find_struct_const(desc->pNext, SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE);
804 desc->inputAttachmentCount + desc->colorAttachmentCount +
805 (desc->pResolveAttachments ? desc->colorAttachmentCount : 0) +
823 const VkSubpassDescription2 *desc = &pCreateInfo->pSubpasses[i];
825 vk_find_struct_const(desc->pNext, SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE);
828 subpass->input_count = desc->inputAttachmentCount;
829 subpass->color_count = desc->colorAttachmentCount;
840 subpass->raster_order_attachment_access = desc->flags & raster_order_access_bits;
842 subpass->multiview_mask = desc->viewMask;
844 if (desc->inputAttachmentCount > 0) {
846 p += desc->inputAttachmentCount;
848 for (uint32_t j = 0; j < desc->inputAttachmentCount; j++) {
849 uint32_t a = desc->pInputAttachments[j].attachment;
858 if (desc->colorAttachmentCount > 0) {
860 p += desc->colorAttachmentCount;
862 for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
863 uint32_t a = desc->pColorAttachments[j].attachment;
875 subpass->resolve_attachments = (desc->pResolveAttachments || subpass->resolve_depth_stencil) ? p : NULL;
876 if (desc->pResolveAttachments) {
877 p += desc->colorAttachmentCount;
878 subpass->resolve_count += desc->colorAttachmentCount;
879 for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
881 desc->pResolveAttachments[j].attachment;
883 uint32_t src_a = desc->pColorAttachments[j].attachment;
886 desc->pResolveAttachments[j].attachment != VK_ATTACHMENT_UNUSED;
897 uint32_t src_a = desc->pDepthStencilAttachment->attachment;
903 uint32_t a = desc->pDepthStencilAttachment ?
904 desc->pDepthStencilAttachment->attachment : VK_ATTACHMENT_UNUSED;