Lines Matching refs:out_struct

28                                                 safe_VkAttachmentReference2KHR* out_struct) {  in ConvertVkAttachmentReferenceToV2KHR()  argument
29 out_struct->sType = VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2_KHR; in ConvertVkAttachmentReferenceToV2KHR()
30 out_struct->pNext = nullptr; in ConvertVkAttachmentReferenceToV2KHR()
31 out_struct->attachment = in_struct->attachment; in ConvertVkAttachmentReferenceToV2KHR()
32 out_struct->layout = in_struct->layout; in ConvertVkAttachmentReferenceToV2KHR()
33 out_struct->aspectMask = in ConvertVkAttachmentReferenceToV2KHR()
37 …DependencyToV2KHR(const VkSubpassDependency* in_struct, safe_VkSubpassDependency2KHR* out_struct) { in ConvertVkSubpassDependencyToV2KHR() argument
38 out_struct->sType = VK_STRUCTURE_TYPE_SUBPASS_DEPENDENCY_2_KHR; in ConvertVkSubpassDependencyToV2KHR()
39 out_struct->pNext = nullptr; in ConvertVkSubpassDependencyToV2KHR()
40 out_struct->srcSubpass = in_struct->srcSubpass; in ConvertVkSubpassDependencyToV2KHR()
41 out_struct->dstSubpass = in_struct->dstSubpass; in ConvertVkSubpassDependencyToV2KHR()
42 out_struct->srcStageMask = in_struct->srcStageMask; in ConvertVkSubpassDependencyToV2KHR()
43 out_struct->dstStageMask = in_struct->dstStageMask; in ConvertVkSubpassDependencyToV2KHR()
44 out_struct->srcAccessMask = in_struct->srcAccessMask; in ConvertVkSubpassDependencyToV2KHR()
45 out_struct->dstAccessMask = in_struct->dstAccessMask; in ConvertVkSubpassDependencyToV2KHR()
46 out_struct->dependencyFlags = in_struct->dependencyFlags; in ConvertVkSubpassDependencyToV2KHR()
47 out_struct->viewOffset = 0; in ConvertVkSubpassDependencyToV2KHR()
50 …criptionToV2KHR(const VkSubpassDescription* in_struct, safe_VkSubpassDescription2KHR* out_struct) { in ConvertVkSubpassDescriptionToV2KHR() argument
51 out_struct->sType = VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_2_KHR; in ConvertVkSubpassDescriptionToV2KHR()
52 out_struct->pNext = nullptr; in ConvertVkSubpassDescriptionToV2KHR()
53 out_struct->flags = in_struct->flags; in ConvertVkSubpassDescriptionToV2KHR()
54 out_struct->pipelineBindPoint = in_struct->pipelineBindPoint; in ConvertVkSubpassDescriptionToV2KHR()
55 out_struct->viewMask = 0; in ConvertVkSubpassDescriptionToV2KHR()
56 out_struct->inputAttachmentCount = in_struct->inputAttachmentCount; in ConvertVkSubpassDescriptionToV2KHR()
57 out_struct->pInputAttachments = nullptr; in ConvertVkSubpassDescriptionToV2KHR()
58 out_struct->colorAttachmentCount = in_struct->colorAttachmentCount; in ConvertVkSubpassDescriptionToV2KHR()
59 out_struct->pColorAttachments = nullptr; in ConvertVkSubpassDescriptionToV2KHR()
60 out_struct->pResolveAttachments = nullptr; in ConvertVkSubpassDescriptionToV2KHR()
61 out_struct->preserveAttachmentCount = in_struct->preserveAttachmentCount; in ConvertVkSubpassDescriptionToV2KHR()
62 out_struct->pPreserveAttachments = nullptr; in ConvertVkSubpassDescriptionToV2KHR()
64 if (out_struct->inputAttachmentCount && in_struct->pInputAttachments) { in ConvertVkSubpassDescriptionToV2KHR()
65out_struct->pInputAttachments = new safe_VkAttachmentReference2KHR[out_struct->inputAttachmentCoun… in ConvertVkSubpassDescriptionToV2KHR()
66 for (uint32_t i = 0; i < out_struct->inputAttachmentCount; ++i) { in ConvertVkSubpassDescriptionToV2KHR()
67 …ConvertVkAttachmentReferenceToV2KHR(&in_struct->pInputAttachments[i], &out_struct->pInputAttachmen… in ConvertVkSubpassDescriptionToV2KHR()
70 if (out_struct->colorAttachmentCount && in_struct->pColorAttachments) { in ConvertVkSubpassDescriptionToV2KHR()
71out_struct->pColorAttachments = new safe_VkAttachmentReference2KHR[out_struct->colorAttachmentCoun… in ConvertVkSubpassDescriptionToV2KHR()
72 for (uint32_t i = 0; i < out_struct->colorAttachmentCount; ++i) { in ConvertVkSubpassDescriptionToV2KHR()
73 …ConvertVkAttachmentReferenceToV2KHR(&in_struct->pColorAttachments[i], &out_struct->pColorAttachmen… in ConvertVkSubpassDescriptionToV2KHR()
76 if (out_struct->colorAttachmentCount && in_struct->pResolveAttachments) { in ConvertVkSubpassDescriptionToV2KHR()
77out_struct->pResolveAttachments = new safe_VkAttachmentReference2KHR[out_struct->colorAttachmentCo… in ConvertVkSubpassDescriptionToV2KHR()
78 for (uint32_t i = 0; i < out_struct->colorAttachmentCount; ++i) { in ConvertVkSubpassDescriptionToV2KHR()
79 …ConvertVkAttachmentReferenceToV2KHR(&in_struct->pResolveAttachments[i], &out_struct->pResolveAttac… in ConvertVkSubpassDescriptionToV2KHR()
83 out_struct->pDepthStencilAttachment = new safe_VkAttachmentReference2KHR(); in ConvertVkSubpassDescriptionToV2KHR()
84 …ConvertVkAttachmentReferenceToV2KHR(in_struct->pDepthStencilAttachment, out_struct->pDepthStencilA… in ConvertVkSubpassDescriptionToV2KHR()
86 out_struct->pDepthStencilAttachment = NULL; in ConvertVkSubpassDescriptionToV2KHR()
89 out_struct->pPreserveAttachments = new uint32_t[in_struct->preserveAttachmentCount]; in ConvertVkSubpassDescriptionToV2KHR()
90 memcpy((void*)out_struct->pPreserveAttachments, (void*)in_struct->pPreserveAttachments, in ConvertVkSubpassDescriptionToV2KHR()
96 safe_VkAttachmentDescription2KHR* out_struct) { in ConvertVkAttachmentDescriptionToV2KHR() argument
97 out_struct->sType = VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2_KHR; in ConvertVkAttachmentDescriptionToV2KHR()
98 out_struct->pNext = nullptr; in ConvertVkAttachmentDescriptionToV2KHR()
99 out_struct->flags = in_struct->flags; in ConvertVkAttachmentDescriptionToV2KHR()
100 out_struct->format = in_struct->format; in ConvertVkAttachmentDescriptionToV2KHR()
101 out_struct->samples = in_struct->samples; in ConvertVkAttachmentDescriptionToV2KHR()
102 out_struct->loadOp = in_struct->loadOp; in ConvertVkAttachmentDescriptionToV2KHR()
103 out_struct->storeOp = in_struct->storeOp; in ConvertVkAttachmentDescriptionToV2KHR()
104 out_struct->stencilLoadOp = in_struct->stencilLoadOp; in ConvertVkAttachmentDescriptionToV2KHR()
105 out_struct->stencilStoreOp = in_struct->stencilStoreOp; in ConvertVkAttachmentDescriptionToV2KHR()
106 out_struct->initialLayout = in_struct->initialLayout; in ConvertVkAttachmentDescriptionToV2KHR()
107 out_struct->finalLayout = in_struct->finalLayout; in ConvertVkAttachmentDescriptionToV2KHR()
110 …InfoToV2KHR(const VkRenderPassCreateInfo* in_struct, safe_VkRenderPassCreateInfo2KHR* out_struct) { in ConvertVkRenderPassCreateInfoToV2KHR() argument
111 out_struct->sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2_KHR; in ConvertVkRenderPassCreateInfoToV2KHR()
112 out_struct->pNext = nullptr; in ConvertVkRenderPassCreateInfoToV2KHR()
113 out_struct->flags = in_struct->flags; in ConvertVkRenderPassCreateInfoToV2KHR()
114 out_struct->attachmentCount = in_struct->attachmentCount; in ConvertVkRenderPassCreateInfoToV2KHR()
115 out_struct->pAttachments = nullptr; in ConvertVkRenderPassCreateInfoToV2KHR()
116 out_struct->subpassCount = in_struct->subpassCount; in ConvertVkRenderPassCreateInfoToV2KHR()
117 out_struct->pSubpasses = nullptr; in ConvertVkRenderPassCreateInfoToV2KHR()
118 out_struct->dependencyCount = in_struct->dependencyCount; in ConvertVkRenderPassCreateInfoToV2KHR()
119 out_struct->pDependencies = nullptr; in ConvertVkRenderPassCreateInfoToV2KHR()
120 out_struct->correlatedViewMaskCount = 0; in ConvertVkRenderPassCreateInfoToV2KHR()
121 out_struct->pCorrelatedViewMasks = nullptr; in ConvertVkRenderPassCreateInfoToV2KHR()
122 if (out_struct->attachmentCount && in_struct->pAttachments) { in ConvertVkRenderPassCreateInfoToV2KHR()
123out_struct->pAttachments = new safe_VkAttachmentDescription2KHR[out_struct->attachmentCount]; in ConvertVkRenderPassCreateInfoToV2KHR()
124 for (uint32_t i = 0; i < out_struct->attachmentCount; ++i) { in ConvertVkRenderPassCreateInfoToV2KHR()
125 … ConvertVkAttachmentDescriptionToV2KHR(&in_struct->pAttachments[i], &out_struct->pAttachments[i]); in ConvertVkRenderPassCreateInfoToV2KHR()
128 if (out_struct->subpassCount && in_struct->pSubpasses) { in ConvertVkRenderPassCreateInfoToV2KHR()
129 out_struct->pSubpasses = new safe_VkSubpassDescription2KHR[out_struct->subpassCount]; in ConvertVkRenderPassCreateInfoToV2KHR()
130 for (uint32_t i = 0; i < out_struct->subpassCount; ++i) { in ConvertVkRenderPassCreateInfoToV2KHR()
131 … ConvertVkSubpassDescriptionToV2KHR(&in_struct->pSubpasses[i], &out_struct->pSubpasses[i]); in ConvertVkRenderPassCreateInfoToV2KHR()
134 if (out_struct->dependencyCount && in_struct->pDependencies) { in ConvertVkRenderPassCreateInfoToV2KHR()
135 out_struct->pDependencies = new safe_VkSubpassDependency2KHR[out_struct->dependencyCount]; in ConvertVkRenderPassCreateInfoToV2KHR()
136 for (uint32_t i = 0; i < out_struct->dependencyCount; ++i) { in ConvertVkRenderPassCreateInfoToV2KHR()
137 … ConvertVkSubpassDependencyToV2KHR(&in_struct->pDependencies[i], &out_struct->pDependencies[i]); in ConvertVkRenderPassCreateInfoToV2KHR()
148 out_struct->pSubpasses[subpass].viewMask = pMultiviewInfo->pViewMasks[subpass]; in ConvertVkRenderPassCreateInfoToV2KHR()
153out_struct->pDependencies[dependency].viewOffset = pMultiviewInfo->pViewOffsets[dependency]; in ConvertVkRenderPassCreateInfoToV2KHR()
157 out_struct->correlatedViewMaskCount = pMultiviewInfo->correlationMaskCount; in ConvertVkRenderPassCreateInfoToV2KHR()
158 uint32_t* pCorrelatedViewMasks = new uint32_t[out_struct->correlatedViewMaskCount]; in ConvertVkRenderPassCreateInfoToV2KHR()
162 out_struct->pCorrelatedViewMasks = pCorrelatedViewMasks; in ConvertVkRenderPassCreateInfoToV2KHR()
173out_struct->pSubpasses[subpass].pInputAttachments[attachment].aspectMask = aspectMask; in ConvertVkRenderPassCreateInfoToV2KHR()
179 if (out_struct->subpassCount && out_struct->pSubpasses) { in ConvertVkRenderPassCreateInfoToV2KHR()
180 for (uint32_t i = 0; i < out_struct->subpassCount; ++i) { in ConvertVkRenderPassCreateInfoToV2KHR()
181 …if (out_struct->pSubpasses[i].inputAttachmentCount && out_struct->pSubpasses[i].pInputAttachments)… in ConvertVkRenderPassCreateInfoToV2KHR()
182 for (uint32_t j = 0; j < out_struct->pSubpasses[i].inputAttachmentCount; ++j) { in ConvertVkRenderPassCreateInfoToV2KHR()
183 … safe_VkAttachmentReference2KHR& attachment_ref = out_struct->pSubpasses[i].pInputAttachments[j]; in ConvertVkRenderPassCreateInfoToV2KHR()
185 … attachment_ref.attachment < out_struct->attachmentCount && out_struct->pAttachments) { in ConvertVkRenderPassCreateInfoToV2KHR()
187 … VkFormat attachmentFormat = out_struct->pAttachments[attachment_ref.attachment].format; in ConvertVkRenderPassCreateInfoToV2KHR()