Lines Matching defs:desc
27 num_subpass_attachments(const VkSubpassDescription2 *desc)
29 return desc->inputAttachmentCount +
30 desc->colorAttachmentCount +
31 (desc->pResolveAttachments ? desc->colorAttachmentCount : 0) +
32 (desc->pDepthStencilAttachment != NULL);
39 const struct v3dv_format *format = v3dv_X(device, get_format)(att->desc.format);
164 pass->attachments[i].desc = pCreateInfo->pAttachments[i];
168 const VkSubpassDescription2 *desc = &pCreateInfo->pSubpasses[i];
169 subpass_attachment_count += num_subpass_attachments(desc);
188 const VkSubpassDescription2 *desc = &pCreateInfo->pSubpasses[i];
191 subpass->input_count = desc->inputAttachmentCount;
192 subpass->color_count = desc->colorAttachmentCount;
193 subpass->view_mask = desc->viewMask;
195 if (desc->inputAttachmentCount > 0) {
197 p += desc->inputAttachmentCount;
199 for (uint32_t j = 0; j < desc->inputAttachmentCount; j++) {
201 .attachment = desc->pInputAttachments[j].attachment,
202 .layout = desc->pInputAttachments[j].layout,
207 if (desc->colorAttachmentCount > 0) {
209 p += desc->colorAttachmentCount;
211 for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
213 .attachment = desc->pColorAttachments[j].attachment,
214 .layout = desc->pColorAttachments[j].layout,
219 if (desc->pResolveAttachments) {
221 p += desc->colorAttachmentCount;
223 for (uint32_t j = 0; j < desc->colorAttachmentCount; j++) {
225 .attachment = desc->pResolveAttachments[j].attachment,
226 .layout = desc->pResolveAttachments[j].layout,
231 if (desc->pDepthStencilAttachment) {
233 .attachment = desc->pDepthStencilAttachment->attachment,
234 .layout = desc->pDepthStencilAttachment->layout,
246 if (att->desc.format == VK_FORMAT_D24_UNORM_S8_UINT) {
247 if (att->desc.loadOp == VK_ATTACHMENT_LOAD_OP_CLEAR &&
248 att->desc.stencilLoadOp == VK_ATTACHMENT_LOAD_OP_LOAD) {
250 } else if (att->desc.loadOp == VK_ATTACHMENT_LOAD_OP_LOAD &&
251 att->desc.stencilLoadOp == VK_ATTACHMENT_LOAD_OP_CLEAR) {
259 vk_find_struct_const(desc->pNext, SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE);
331 const VkAttachmentDescription2 *desc =
332 &pass->attachments[attachment_idx].desc;
333 const struct v3dv_format *format = v3dv_X(device, get_format)(desc->format);
340 if (desc->samples > VK_SAMPLE_COUNT_1_BIT)