Lines Matching defs:desc

315 radv_num_subpass_attachments2(const VkSubpassDescription2 *desc)
318 vk_find_struct_const(desc->pNext, SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE);
320 vk_find_struct_const(desc->pNext, FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR);
322 return desc->inputAttachmentCount + desc->colorAttachmentCount +
323 (desc->pResolveAttachments ? desc->colorAttachmentCount : 0) +
324 (desc->pDepthStencilAttachment != NULL) +
391 const VkSubpassDescription2 *desc = &pCreateInfo->pSubpasses[i];
394 subpass->input_count = desc->inputAttachmentCount;
395 subpass->color_count = desc->colorAttachmentCount;
396 subpass->attachment_count = radv_num_subpass_attachments2(desc);
398 subpass->view_mask = desc->viewMask;
400 if (desc->inputAttachmentCount > 0) {
402 p += desc->inputAttachmentCount;
404 for (uint32_t j = 0; j < desc->inputAttachmentCount; j++) {
406 .attachment = desc->pInputAttachments[j].attachment,
407 .layout = desc->pInputAttachments[j].layout,
408 .stencil_layout = vk_att_ref_stencil_layout(&desc->pInputAttachments[j],
414 if (desc->colorAttachmentCount > 0) {
416 p += desc->colorAttachmentCount;
418 for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
420 .attachment = desc->pColorAttachments[j].attachment,
421 .layout = desc->pColorAttachments[j].layout,
426 if (desc->pResolveAttachments) {
428 p += desc->colorAttachmentCount;
430 for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
432 .attachment = desc->pResolveAttachments[j].attachment,
433 .layout = desc->pResolveAttachments[j].layout,
438 if (desc->pDepthStencilAttachment) {
442 .attachment = desc->pDepthStencilAttachment->attachment,
443 .layout = desc->pDepthStencilAttachment->layout,
444 .stencil_layout = vk_att_ref_stencil_layout(desc->pDepthStencilAttachment,
450 vk_find_struct_const(desc->pNext, SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE);
467 vk_find_struct_const(desc->pNext, FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR);