Lines Matching refs:attachment

18 void setup_vk_attachment_description(VkAttachmentDescription* attachment,
22 attachment->flags = 0;
23 attachment->format = desc.fFormat;
24 SkAssertResult(GrSampleCountToVkSampleCount(desc.fSamples, &attachment->samples));
29 attachment->loadOp = desc.fLoadStoreOps.fLoadOp;
30 attachment->storeOp = desc.fLoadStoreOps.fStoreOp;
31 attachment->stencilLoadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
32 attachment->stencilStoreOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
35 attachment->loadOp = VK_ATTACHMENT_LOAD_OP_DONT_CARE;
36 attachment->storeOp = VK_ATTACHMENT_STORE_OP_DONT_CARE;
37 attachment->stencilLoadOp = desc.fLoadStoreOps.fLoadOp;
38 attachment->stencilStoreOp = desc.fLoadStoreOps.fStoreOp;
41 SK_ABORT("Unexpected attachment layout");
44 attachment->initialLayout = startLayout;
45 attachment->finalLayout = endLayout == VK_IMAGE_LAYOUT_UNDEFINED ? startLayout : endLayout;
95 // If we have a resolve attachment, we will always do a resolve into it. Thus it doesn't make
96 // sense not to store the resolve attachment at the end of the render pass.
101 // for having a resolve attachment versus actually doing the resolving. This would allow us to
103 // always have the resolve attachment. The actual resolving or not does not affect render pass
104 // compatibility if there is only one sub pass, just the presence of the attachment or not.
114 // If we are loading the resolve image into the msaa color attachment then we should not be
115 // loading or storing the msaa attachment. Additionally we need to make sure we are loading
116 // the resolve so it can be copied into the msaa color attachment.
137 // Go through each of the attachment types (color, stencil) and set the necessary
156 // set up color attachment
166 // setup subpass use of attachment
167 colorRef.attachment = currentAttachment++;
200 clearValueCount = colorRef.attachment + 1;
203 // I don't think there should ever be a time where we don't have a color attachment
206 colorRef.attachment = VK_ATTACHMENT_UNUSED;
225 // setup main subpass use of attachment
226 resolveRef.attachment = currentAttachment++;
233 resolveLoadInputRef.attachment = resolveRef.attachment;
263 // set up stencil attachment
269 // setup subpass use of attachment
270 stencilRef.attachment = currentAttachment++;
273 clearValueCount = std::max(clearValueCount, stencilRef.attachment + 1);
276 stencilRef.attachment = VK_ATTACHMENT_UNUSED;
288 // Create the VkRenderPass compatible with the attachment descriptions above
357 // Works under the assumption that stencil attachment will always be after the color and resolve