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 (deUint32 width, deUint32 height, deUint32 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 arrayPitch, VkDeviceSize depthPitch)
93 VkSubresourceLayout res;
96 res.rowPitch = rowPitch;
97 res.arrayPitch = arrayPitch;
98 res.depthPitch = depthPitch;
102 inline VkComponentMapping makeComponentMapping (VkComponentSwizzle r, VkComponentSwizzle g, VkComponentSwizzle b, VkComponentSwizzle a)
104 VkComponentMapping res;
112 inline VkImageSubresourceRange makeImageSubresourceRange (VkImageAspectFlags aspectMask, deUint32 baseMipLevel, deUint32 levelCount, deUint32 baseArrayLayer, deUint32 layerCount)
114 VkImageSubresourceRange res;
115 res.aspectMask = aspectMask;
116 res.baseMipLevel = baseMipLevel;
117 res.levelCount = levelCount;
118 res.baseArrayLayer = baseArrayLayer;
119 res.layerCount = layerCount;
123 inline VkSpecializationMapEntry makeSpecializationMapEntry (deUint32 constantID, deUint32 offset, deUintptr size)
125 VkSpecializationMapEntry res;
126 res.constantID = constantID;
132 inline VkSpecializationInfo makeSpecializationInfo (deUint32 mapEntryCount, const VkSpecializationMapEntry* pMapEntries, deUintptr dataSize, const void* pData)
134 VkSpecializationInfo res;
135 res.mapEntryCount = mapEntryCount;
136 res.pMapEntries = pMapEntries;
137 res.dataSize = dataSize;
142 inline VkVertexInputBindingDescription makeVertexInputBindingDescription (deUint32 binding, deUint32 stride, VkVertexInputRate inputRate)
144 VkVertexInputBindingDescription res;
145 res.binding = binding;
147 res.inputRate = inputRate;
151 inline VkVertexInputAttributeDescription makeVertexInputAttributeDescription (deUint32 location, deUint32 binding, VkFormat format, deUint32 offset)
153 VkVertexInputAttributeDescription res;
154 res.location = location;
155 res.binding = binding;
161 inline VkViewport makeViewport (float x, float y, float width, float height, float minDepth, float maxDepth)
168 res.minDepth = minDepth;
169 res.maxDepth = maxDepth;
173 inline VkOffset2D makeOffset2D (deInt32 x, deInt32 y)
181 inline VkExtent2D makeExtent2D (deUint32 width, deUint32 height)
189 inline VkStencilOpState makeStencilOpState (VkStencilOp failOp, VkStencilOp passOp, VkStencilOp depthFailOp, VkCompareOp compareOp, deUint32 compareMask, deUint32 writeMask, deUint32 reference)
191 VkStencilOpState res;
194 res.depthFailOp = depthFailOp;
195 res.compareOp = compareOp;
196 res.compareMask = compareMask;
197 res.writeMask = writeMask;
198 res.reference = reference;
202 inline VkPipelineColorBlendAttachmentState makePipelineColorBlendAttachmentState (VkBool32 blendEnable, VkBlendFactor srcColorBlendFactor, VkBlendFactor dstColorBlendFactor, VkBlendOp colorBlendOp, VkBlendFactor srcAlphaBlendFactor, VkBlendFactor dstAlphaBlendFactor, VkBlendOp alphaBlendOp, VkColorComponentFlags colorWriteMask)
204 VkPipelineColorBlendAttachmentState res;
205 res.blendEnable = blendEnable;
206 res.srcColorBlendFactor = srcColorBlendFactor;
207 res.dstColorBlendFactor = dstColorBlendFactor;
208 res.colorBlendOp = colorBlendOp;
209 res.srcAlphaBlendFactor = srcAlphaBlendFactor;
210 res.dstAlphaBlendFactor = dstAlphaBlendFactor;
211 res.alphaBlendOp = alphaBlendOp;
212 res.colorWriteMask = colorWriteMask;
216 inline VkPushConstantRange makePushConstantRange (VkShaderStageFlags stageFlags, deUint32 offset, deUint32 size)
218 VkPushConstantRange res;
219 res.stageFlags = stageFlags;
225 inline VkDescriptorSetLayoutBinding makeDescriptorSetLayoutBinding (deUint32 binding, VkDescriptorType descriptorType, deUint32 descriptorCount, VkShaderStageFlags stageFlags, const VkSampler* pImmutableSamplers)
227 VkDescriptorSetLayoutBinding res;
228 res.binding = binding;
229 res.descriptorType = descriptorType;
230 res.descriptorCount = descriptorCount;
231 res.stageFlags = stageFlags;
232 res.pImmutableSamplers = pImmutableSamplers;
236 inline VkDescriptorPoolSize makeDescriptorPoolSize (VkDescriptorType type, deUint32 descriptorCount)
238 VkDescriptorPoolSize res;
240 res.descriptorCount = descriptorCount;
244 inline VkDescriptorImageInfo makeDescriptorImageInfo (VkSampler sampler, VkImageView imageView, VkImageLayout imageLayout)
246 VkDescriptorImageInfo res;
247 res.sampler = sampler;
248 res.imageView = imageView;
249 res.imageLayout = imageLayout;
253 inline VkDescriptorBufferInfo makeDescriptorBufferInfo (VkBuffer buffer, VkDeviceSize offset, VkDeviceSize range)
255 VkDescriptorBufferInfo res;
262 inline VkAttachmentDescription makeAttachmentDescription (VkAttachmentDescriptionFlags flags, VkFormat format, VkSampleCountFlagBits samples, VkAttachmentLoadOp loadOp, VkAttachmentStoreOp storeOp, VkAttachmentLoadOp stencilLoadOp, VkAttachmentStoreOp stencilStoreOp, VkImageLayout initialLayout, VkImageLayout finalLayout)
264 VkAttachmentDescription res;
267 res.samples = samples;
269 res.storeOp = storeOp;
270 res.stencilLoadOp = stencilLoadOp;
271 res.stencilStoreOp = stencilStoreOp;
272 res.initialLayout = initialLayout;
273 res.finalLayout = finalLayout;
277 inline VkAttachmentReference makeAttachmentReference (deUint32 attachment, VkImageLayout layout)
279 VkAttachmentReference res;
280 res.attachment = attachment;
285 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 deUint32* pPreserveAttachments)
287 VkSubpassDescription res;
289 res.pipelineBindPoint = pipelineBindPoint;
290 res.inputAttachmentCount = inputAttachmentCount;
291 res.pInputAttachments = pInputAttachments;
292 res.colorAttachmentCount = colorAttachmentCount;
293 res.pColorAttachments = pColorAttachments;
294 res.pResolveAttachments = pResolveAttachments;
295 res.pDepthStencilAttachment = pDepthStencilAttachment;
296 res.preserveAttachmentCount = preserveAttachmentCount;
297 res.pPreserveAttachments = pPreserveAttachments;
301 inline VkSubpassDependency makeSubpassDependency (deUint32 srcSubpass, deUint32 dstSubpass, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkAccessFlags srcAccessMask, VkAccessFlags dstAccessMask, VkDependencyFlags dependencyFlags)
303 VkSubpassDependency res;
304 res.srcSubpass = srcSubpass;
305 res.dstSubpass = dstSubpass;
306 res.srcStageMask = srcStageMask;
307 res.dstStageMask = dstStageMask;
308 res.srcAccessMask = srcAccessMask;
309 res.dstAccessMask = dstAccessMask;
310 res.dependencyFlags = dependencyFlags;
314 inline VkBufferCopy makeBufferCopy (VkDeviceSize srcOffset, VkDeviceSize dstOffset, VkDeviceSize size)
317 res.srcOffset = srcOffset;
318 res.dstOffset = dstOffset;
323 inline VkImageSubresourceLayers makeImageSubresourceLayers (VkImageAspectFlags aspectMask, deUint32 mipLevel, deUint32 baseArrayLayer, deUint32 layerCount)
325 VkImageSubresourceLayers res;
326 res.aspectMask = aspectMask;
327 res.mipLevel = mipLevel;
328 res.baseArrayLayer = baseArrayLayer;
329 res.layerCount = layerCount;
333 inline VkClearDepthStencilValue makeClearDepthStencilValue (float depth, deUint32 stencil)
335 VkClearDepthStencilValue res;
337 res.stencil = stencil;
341 inline VkDispatchIndirectCommand makeDispatchIndirectCommand (deUint32 x, deUint32 y, deUint32 z)
343 VkDispatchIndirectCommand res;
350 inline VkDrawIndexedIndirectCommand makeDrawIndexedIndirectCommand (deUint32 indexCount, deUint32 instanceCount, deUint32 firstIndex, deInt32 vertexOffset, deUint32 firstInstance)
352 VkDrawIndexedIndirectCommand res;
353 res.indexCount = indexCount;
354 res.instanceCount = instanceCount;
355 res.firstIndex = firstIndex;
356 res.vertexOffset = vertexOffset;
357 res.firstInstance = firstInstance;
361 inline VkDrawIndirectCommand makeDrawIndirectCommand (deUint32 vertexCount, deUint32 instanceCount, deUint32 firstVertex, deUint32 firstInstance)
363 VkDrawIndirectCommand res;
364 res.vertexCount = vertexCount;
365 res.instanceCount = instanceCount;
366 res.firstVertex = firstVertex;
367 res.firstInstance = firstInstance;
371 inline VkSurfaceFormatKHR makeSurfaceFormatKHR (VkFormat format, VkColorSpaceKHR colorSpace)
373 VkSurfaceFormatKHR res;
375 res.colorSpace = colorSpace;
379 inline VkDisplayPlanePropertiesKHR makeDisplayPlanePropertiesKHR (VkDisplayKHR currentDisplay, deUint32 currentStackIndex)
381 VkDisplayPlanePropertiesKHR res;
382 res.currentDisplay = currentDisplay;
383 res.currentStackIndex = currentStackIndex;