1 /* WARNING: This is auto-generated file. Do not modify, since changes will
2 * be lost! Modify the generating script instead.
5 inline VkAllocationCallbacks makeAllocationCallbacks (void* pUserData, PFN_vkAllocationFunction pfnAllocation, PFN_vkReallocationFunction pfnReallocation, PFN_vkFreeFunction pfnFree, PFN_vkInternalAllocationNotification pfnInternalAllocation, PFN_vkInternalFreeNotification pfnInternalFree)
7 VkAllocationCallbacks res;
8 res.pUserData = pUserData;
9 res.pfnAllocation = pfnAllocation;
10 res.pfnReallocation = pfnReallocation;
11 res.pfnFree = pfnFree;
12 res.pfnInternalAllocation = pfnInternalAllocation;
13 res.pfnInternalFree = pfnInternalFree;
17 inline VkExtent3D makeExtent3D (deInt32 width, deInt32 height, deInt32 depth)
26 inline VkMemoryRequirements makeMemoryRequirements (VkDeviceSize size, VkDeviceSize alignment, deUint32 memoryTypeBits)
28 VkMemoryRequirements res;
30 res.alignment = alignment;
31 res.memoryTypeBits = memoryTypeBits;
35 inline VkSparseMemoryBind makeSparseMemoryBind (VkDeviceSize resourceOffset, VkDeviceSize size, VkDeviceMemory memory, VkDeviceSize memoryOffset, VkSparseMemoryBindFlags flags)
37 VkSparseMemoryBind res;
38 res.resourceOffset = resourceOffset;
41 res.memoryOffset = memoryOffset;
46 inline VkSparseBufferMemoryBindInfo makeSparseBufferMemoryBindInfo (VkBuffer buffer, deUint32 bindCount, const VkSparseMemoryBind* pBinds)
48 VkSparseBufferMemoryBindInfo res;
50 res.bindCount = bindCount;
55 inline VkSparseImageOpaqueMemoryBindInfo makeSparseImageOpaqueMemoryBindInfo (VkImage image, deUint32 bindCount, const VkSparseMemoryBind* pBinds)
57 VkSparseImageOpaqueMemoryBindInfo res;
59 res.bindCount = bindCount;
64 inline VkImageSubresource makeImageSubresource (VkImageAspectFlags aspectMask, deUint32 mipLevel, deUint32 arrayLayer)
66 VkImageSubresource res;
67 res.aspectMask = aspectMask;
68 res.mipLevel = mipLevel;
69 res.arrayLayer = arrayLayer;
73 inline VkOffset3D makeOffset3D (deInt32 x, deInt32 y, deInt32 z)
82 inline VkSparseImageMemoryBindInfo makeSparseImageMemoryBindInfo (VkImage image, deUint32 bindCount, const VkSparseImageMemoryBind* pBinds)
84 VkSparseImageMemoryBindInfo res;
86 res.bindCount = bindCount;
91 inline VkSubresourceLayout makeSubresourceLayout (VkDeviceSize offset, VkDeviceSize size, VkDeviceSize rowPitch, VkDeviceSize depthPitch)
93 VkSubresourceLayout res;
96 res.rowPitch = rowPitch;
97 res.depthPitch = depthPitch;
101 inline VkComponentMapping makeComponentMapping (VkComponentSwizzle r, VkComponentSwizzle g, VkComponentSwizzle b, VkComponentSwizzle a)
103 VkComponentMapping res;
111 inline VkImageSubresourceRange makeImageSubresourceRange (VkImageAspectFlags aspectMask, deUint32 baseMipLevel, deUint32 levelCount, deUint32 baseArrayLayer, deUint32 layerCount)
113 VkImageSubresourceRange res;
114 res.aspectMask = aspectMask;
115 res.baseMipLevel = baseMipLevel;
116 res.levelCount = levelCount;
117 res.baseArrayLayer = baseArrayLayer;
118 res.layerCount = layerCount;
122 inline VkSpecializationMapEntry makeSpecializationMapEntry (deUint32 constantID, deUint32 offset, deUintptr size)
124 VkSpecializationMapEntry res;
125 res.constantID = constantID;
131 inline VkSpecializationInfo makeSpecializationInfo (deUint32 mapEntryCount, const VkSpecializationMapEntry* pMapEntries, deUintptr dataSize, const void* pData)
133 VkSpecializationInfo res;
134 res.mapEntryCount = mapEntryCount;
135 res.pMapEntries = pMapEntries;
136 res.dataSize = dataSize;
141 inline VkVertexInputBindingDescription makeVertexInputBindingDescription (deUint32 binding, deUint32 stride, VkVertexInputRate inputRate)
143 VkVertexInputBindingDescription res;
144 res.binding = binding;
146 res.inputRate = inputRate;
150 inline VkVertexInputAttributeDescription makeVertexInputAttributeDescription (deUint32 location, deUint32 binding, VkFormat format, deUint32 offset)
152 VkVertexInputAttributeDescription res;
153 res.location = location;
154 res.binding = binding;
160 inline VkViewport makeViewport (float x, float y, float width, float height, float minDepth, float maxDepth)
167 res.minDepth = minDepth;
168 res.maxDepth = maxDepth;
172 inline VkOffset2D makeOffset2D (deInt32 x, deInt32 y)
180 inline VkExtent2D makeExtent2D (deInt32 width, deInt32 height)
188 inline VkStencilOpState makeStencilOpState (VkStencilOp failOp, VkStencilOp passOp, VkStencilOp depthFailOp, VkCompareOp compareOp, deUint32 compareMask, deUint32 writeMask, deUint32 reference)
190 VkStencilOpState res;
193 res.depthFailOp = depthFailOp;
194 res.compareOp = compareOp;
195 res.compareMask = compareMask;
196 res.writeMask = writeMask;
197 res.reference = reference;
201 inline VkPipelineColorBlendAttachmentState makePipelineColorBlendAttachmentState (VkBool32 blendEnable, VkBlendFactor srcColorBlendFactor, VkBlendFactor dstColorBlendFactor, VkBlendOp colorBlendOp, VkBlendFactor srcAlphaBlendFactor, VkBlendFactor dstAlphaBlendFactor, VkBlendOp alphaBlendOp, VkColorComponentFlags colorWriteMask)
203 VkPipelineColorBlendAttachmentState res;
204 res.blendEnable = blendEnable;
205 res.srcColorBlendFactor = srcColorBlendFactor;
206 res.dstColorBlendFactor = dstColorBlendFactor;
207 res.colorBlendOp = colorBlendOp;
208 res.srcAlphaBlendFactor = srcAlphaBlendFactor;
209 res.dstAlphaBlendFactor = dstAlphaBlendFactor;
210 res.alphaBlendOp = alphaBlendOp;
211 res.colorWriteMask = colorWriteMask;
215 inline VkPushConstantRange makePushConstantRange (VkShaderStageFlags stageFlags, deUint32 offset, deUint32 size)
217 VkPushConstantRange res;
218 res.stageFlags = stageFlags;
224 inline VkDescriptorSetLayoutBinding makeDescriptorSetLayoutBinding (deUint32 binding, VkDescriptorType descriptorType, deUint32 descriptorCount, VkShaderStageFlags stageFlags, const VkSampler* pImmutableSamplers)
226 VkDescriptorSetLayoutBinding res;
227 res.binding = binding;
228 res.descriptorType = descriptorType;
229 res.descriptorCount = descriptorCount;
230 res.stageFlags = stageFlags;
231 res.pImmutableSamplers = pImmutableSamplers;
235 inline VkDescriptorPoolSize makeDescriptorPoolSize (VkDescriptorType type, deUint32 descriptorCount)
237 VkDescriptorPoolSize res;
239 res.descriptorCount = descriptorCount;
243 inline VkDescriptorImageInfo makeDescriptorImageInfo (VkSampler sampler, VkImageView imageView, VkImageLayout imageLayout)
245 VkDescriptorImageInfo res;
246 res.sampler = sampler;
247 res.imageView = imageView;
248 res.imageLayout = imageLayout;
252 inline VkDescriptorBufferInfo makeDescriptorBufferInfo (VkBuffer buffer, VkDeviceSize offset, VkDeviceSize range)
254 VkDescriptorBufferInfo res;
261 inline VkAttachmentDescription makeAttachmentDescription (VkAttachmentDescriptionFlags flags, VkFormat format, VkSampleCountFlagBits samples, VkAttachmentLoadOp loadOp, VkAttachmentStoreOp storeOp, VkAttachmentLoadOp stencilLoadOp, VkAttachmentStoreOp stencilStoreOp, VkImageLayout initialLayout, VkImageLayout finalLayout)
263 VkAttachmentDescription res;
266 res.samples = samples;
268 res.storeOp = storeOp;
269 res.stencilLoadOp = stencilLoadOp;
270 res.stencilStoreOp = stencilStoreOp;
271 res.initialLayout = initialLayout;
272 res.finalLayout = finalLayout;
276 inline VkAttachmentReference makeAttachmentReference (deUint32 attachment, VkImageLayout layout)
278 VkAttachmentReference res;
279 res.attachment = attachment;
284 inline VkSubpassDescription makeSubpassDescription (VkSubpassDescriptionFlags flags, VkPipelineBindPoint pipelineBindPoint, deUint32 inputAttachmentCount, const VkAttachmentReference* pInputAttachments, deUint32 colorAttachmentCount, const VkAttachmentReference* pColorAttachments, const VkAttachmentReference* pResolveAttachments, const VkAttachmentReference* pDepthStencilAttachment, deUint32 preserveAttachmentCount, const VkAttachmentReference* pPreserveAttachments)
286 VkSubpassDescription res;
288 res.pipelineBindPoint = pipelineBindPoint;
289 res.inputAttachmentCount = inputAttachmentCount;
290 res.pInputAttachments = pInputAttachments;
291 res.colorAttachmentCount = colorAttachmentCount;
292 res.pColorAttachments = pColorAttachments;
293 res.pResolveAttachments = pResolveAttachments;
294 res.pDepthStencilAttachment = pDepthStencilAttachment;
295 res.preserveAttachmentCount = preserveAttachmentCount;
296 res.pPreserveAttachments = pPreserveAttachments;
300 inline VkSubpassDependency makeSubpassDependency (deUint32 srcSubpass, deUint32 dstSubpass, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkAccessFlags srcAccessMask, VkAccessFlags dstAccessMask, VkDependencyFlags dependencyFlags)
302 VkSubpassDependency res;
303 res.srcSubpass = srcSubpass;
304 res.dstSubpass = dstSubpass;
305 res.srcStageMask = srcStageMask;
306 res.dstStageMask = dstStageMask;
307 res.srcAccessMask = srcAccessMask;
308 res.dstAccessMask = dstAccessMask;
309 res.dependencyFlags = dependencyFlags;
313 inline VkBufferCopy makeBufferCopy (VkDeviceSize srcOffset, VkDeviceSize dstOffset, VkDeviceSize size)
316 res.srcOffset = srcOffset;
317 res.dstOffset = dstOffset;
322 inline VkImageSubresourceLayers makeImageSubresourceLayers (VkImageAspectFlags aspectMask, deUint32 mipLevel, deUint32 baseArrayLayer, deUint32 layerCount)
324 VkImageSubresourceLayers res;
325 res.aspectMask = aspectMask;
326 res.mipLevel = mipLevel;
327 res.baseArrayLayer = baseArrayLayer;
328 res.layerCount = layerCount;
332 inline VkClearDepthStencilValue makeClearDepthStencilValue (float depth, deUint32 stencil)
334 VkClearDepthStencilValue res;
336 res.stencil = stencil;
340 inline VkDispatchIndirectCommand makeDispatchIndirectCommand (deUint32 x, deUint32 y, deUint32 z)
342 VkDispatchIndirectCommand res;
349 inline VkDrawIndexedIndirectCommand makeDrawIndexedIndirectCommand (deUint32 indexCount, deUint32 instanceCount, deUint32 firstIndex, deInt32 vertexOffset, deUint32 firstInstance)
351 VkDrawIndexedIndirectCommand res;
352 res.indexCount = indexCount;
353 res.instanceCount = instanceCount;
354 res.firstIndex = firstIndex;
355 res.vertexOffset = vertexOffset;
356 res.firstInstance = firstInstance;
360 inline VkDrawIndirectCommand makeDrawIndirectCommand (deUint32 vertexCount, deUint32 instanceCount, deUint32 firstVertex, deUint32 firstInstance)
362 VkDrawIndirectCommand res;
363 res.vertexCount = vertexCount;
364 res.instanceCount = instanceCount;
365 res.firstVertex = firstVertex;
366 res.firstInstance = firstInstance;
370 inline VkSurfaceFormatKHR makeSurfaceFormatKHR (VkFormat format, VkColorSpaceKHR colorSpace)
372 VkSurfaceFormatKHR res;
374 res.colorSpace = colorSpace;
378 inline VkDisplayPlanePropertiesKHR makeDisplayPlanePropertiesKHR (VkDisplayKHR currentDisplay, deUint32 currentStackIndex)
380 VkDisplayPlanePropertiesKHR res;
381 res.currentDisplay = currentDisplay;
382 res.currentStackIndex = currentStackIndex;