Lines Matching defs:desc
75 pvr_num_subpass_attachments(const VkSubpassDescription2 *desc)
77 return desc->inputAttachmentCount + desc->colorAttachmentCount +
78 (desc->pResolveAttachments ? desc->colorAttachmentCount : 0) +
79 (desc->pDepthStencilAttachment != NULL);
367 const VkAttachmentDescription2 *desc = &pCreateInfo->pAttachments[i];
370 pvr_assert(!(desc->flags & ~VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT));
372 attachment->load_op = desc->loadOp;
373 attachment->store_op = desc->storeOp;
377 attachment->stencil_load_op = desc->stencilLoadOp;
378 attachment->stencil_store_op = desc->stencilStoreOp;
381 attachment->vk_format = desc->format;
382 attachment->sample_count = desc->samples;
383 attachment->initial_layout = desc->initialLayout;
408 const VkSubpassDescription2 *desc = &pCreateInfo->pSubpasses[i];
411 subpass->pipeline_bind_point = desc->pipelineBindPoint;
414 subpass->color_count = desc->colorAttachmentCount;
424 desc->pColorAttachments[j].attachment;
434 if (!has_used_color_attachment && desc->pDepthStencilAttachment &&
435 desc->pDepthStencilAttachment->attachment !=
437 index = desc->pDepthStencilAttachment->attachment;
442 if (desc->pResolveAttachments) {
448 desc->pResolveAttachments[j].attachment;
452 subpass->input_count = desc->inputAttachmentCount;
459 desc->pInputAttachments[j].attachment;
463 if (desc->pDepthStencilAttachment) {
466 desc->pDepthStencilAttachment->attachment;