Lines Matching defs:desc
88 const VkSubpassDescription2 *desc = &pCreateInfo->pSubpasses[i];
91 desc->inputAttachmentCount + desc->colorAttachmentCount +
92 (desc->pResolveAttachments ? desc->colorAttachmentCount : 0) +
93 (desc->pDepthStencilAttachment != NULL);
110 const VkSubpassDescription2 *desc = &pCreateInfo->pSubpasses[i];
113 subpass->input_count = desc->inputAttachmentCount;
114 subpass->color_count = desc->colorAttachmentCount;
118 if (desc->inputAttachmentCount > 0) {
120 p += desc->inputAttachmentCount;
122 for (uint32_t j = 0; j < desc->inputAttachmentCount; j++) {
124 .idx = desc->pInputAttachments[j].attachment,
125 .layout = desc->pInputAttachments[j].layout,
127 if (desc->pInputAttachments[j].attachment != VK_ATTACHMENT_UNUSED)
128 pass->attachments[desc->pInputAttachments[j].attachment]
133 if (desc->colorAttachmentCount > 0) {
135 p += desc->colorAttachmentCount;
137 for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
138 uint32_t idx = desc->pColorAttachments[j].attachment;
142 .layout = desc->pColorAttachments[j].layout,
160 if (desc->pResolveAttachments) {
162 p += desc->colorAttachmentCount;
164 for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
165 uint32_t idx = desc->pResolveAttachments[j].attachment;
169 .layout = desc->pResolveAttachments[j].layout,
177 unsigned idx = desc->pDepthStencilAttachment ?
178 desc->pDepthStencilAttachment->attachment :
182 subpass->zs_attachment.layout = desc->pDepthStencilAttachment->layout;