1 /* WARNING: This is auto-generated file. Do not modify, since changes will
2 * be lost! Modify the generating script instead.
3 * This file was generated by /scripts/gen_framework.py
7 inline VkOffset2D makeOffset2D (int32_t x, int32_t y)
15 inline VkOffset3D makeOffset3D (int32_t x, int32_t y, int32_t z)
24 inline VkExtent2D makeExtent2D (uint32_t width, uint32_t height)
32 inline VkExtent3D makeExtent3D (uint32_t width, uint32_t height, uint32_t depth)
41 inline VkViewport makeViewport (float x, float y, float width, float height, float minDepth, float maxDepth)
48 res.minDepth = minDepth;
49 res.maxDepth = maxDepth;
53 inline VkComponentMapping makeComponentMapping (VkComponentSwizzle r, VkComponentSwizzle g, VkComponentSwizzle b, VkComponentSwizzle a)
55 VkComponentMapping res;
63 inline VkAllocationCallbacks makeAllocationCallbacks (void* pUserData, PFN_vkAllocationFunction pfnAllocation, PFN_vkReallocationFunction pfnReallocation, PFN_vkFreeFunction pfnFree, PFN_vkInternalAllocationNotification pfnInternalAllocation, PFN_vkInternalFreeNotification pfnInternalFree)
65 VkAllocationCallbacks res;
66 res.pUserData = pUserData;
67 res.pfnAllocation = pfnAllocation;
68 res.pfnReallocation = pfnReallocation;
69 res.pfnFree = pfnFree;
70 res.pfnInternalAllocation = pfnInternalAllocation;
71 res.pfnInternalFree = pfnInternalFree;
75 inline VkMemoryRequirements makeMemoryRequirements (VkDeviceSize size, VkDeviceSize alignment, uint32_t memoryTypeBits)
77 VkMemoryRequirements res;
79 res.alignment = alignment;
80 res.memoryTypeBits = memoryTypeBits;
84 inline VkDescriptorBufferInfo makeDescriptorBufferInfo (VkBuffer buffer, VkDeviceSize offset, VkDeviceSize range)
86 VkDescriptorBufferInfo res;
93 inline VkDescriptorImageInfo makeDescriptorImageInfo (VkSampler sampler, VkImageView imageView, VkImageLayout imageLayout)
95 VkDescriptorImageInfo res;
96 res.sampler = sampler;
97 res.imageView = imageView;
98 res.imageLayout = imageLayout;
102 inline VkImageSubresource makeImageSubresource (VkImageAspectFlags aspectMask, uint32_t mipLevel, uint32_t arrayLayer)
104 VkImageSubresource res;
105 res.aspectMask = aspectMask;
106 res.mipLevel = mipLevel;
107 res.arrayLayer = arrayLayer;
111 inline VkImageSubresourceLayers makeImageSubresourceLayers (VkImageAspectFlags aspectMask, uint32_t mipLevel, uint32_t baseArrayLayer, uint32_t layerCount)
113 VkImageSubresourceLayers res;
114 res.aspectMask = aspectMask;
115 res.mipLevel = mipLevel;
116 res.baseArrayLayer = baseArrayLayer;
117 res.layerCount = layerCount;
121 inline VkImageSubresourceRange makeImageSubresourceRange (VkImageAspectFlags aspectMask, uint32_t baseMipLevel, uint32_t levelCount, uint32_t baseArrayLayer, uint32_t layerCount)
123 VkImageSubresourceRange res;
124 res.aspectMask = aspectMask;
125 res.baseMipLevel = baseMipLevel;
126 res.levelCount = levelCount;
127 res.baseArrayLayer = baseArrayLayer;
128 res.layerCount = layerCount;
132 inline VkSubresourceLayout makeSubresourceLayout (VkDeviceSize offset, VkDeviceSize size, VkDeviceSize rowPitch, VkDeviceSize arrayPitch, VkDeviceSize depthPitch)
134 VkSubresourceLayout res;
137 res.rowPitch = rowPitch;
138 res.arrayPitch = arrayPitch;
139 res.depthPitch = depthPitch;
143 inline VkBufferCopy makeBufferCopy (VkDeviceSize srcOffset, VkDeviceSize dstOffset, VkDeviceSize size)
146 res.srcOffset = srcOffset;
147 res.dstOffset = dstOffset;
152 inline VkSparseMemoryBind makeSparseMemoryBind (VkDeviceSize resourceOffset, VkDeviceSize size, VkDeviceMemory memory, VkDeviceSize memoryOffset, VkSparseMemoryBindFlags flags)
154 VkSparseMemoryBind res;
155 res.resourceOffset = resourceOffset;
158 res.memoryOffset = memoryOffset;
163 inline VkSparseBufferMemoryBindInfo makeSparseBufferMemoryBindInfo (VkBuffer buffer, uint32_t bindCount, const VkSparseMemoryBind* pBinds)
165 VkSparseBufferMemoryBindInfo res;
167 res.bindCount = bindCount;
172 inline VkSparseImageOpaqueMemoryBindInfo makeSparseImageOpaqueMemoryBindInfo (VkImage image, uint32_t bindCount, const VkSparseMemoryBind* pBinds)
174 VkSparseImageOpaqueMemoryBindInfo res;
176 res.bindCount = bindCount;
181 inline VkSparseImageMemoryBindInfo makeSparseImageMemoryBindInfo (VkImage image, uint32_t bindCount, const VkSparseImageMemoryBind* pBinds)
183 VkSparseImageMemoryBindInfo res;
185 res.bindCount = bindCount;
190 inline VkDescriptorSetLayoutBinding makeDescriptorSetLayoutBinding (uint32_t binding, VkDescriptorType descriptorType, uint32_t descriptorCount, VkShaderStageFlags stageFlags, const VkSampler* pImmutableSamplers)
192 VkDescriptorSetLayoutBinding res;
193 res.binding = binding;
194 res.descriptorType = descriptorType;
195 res.descriptorCount = descriptorCount;
196 res.stageFlags = stageFlags;
197 res.pImmutableSamplers = pImmutableSamplers;
201 inline VkDescriptorPoolSize makeDescriptorPoolSize (VkDescriptorType type, uint32_t descriptorCount)
203 VkDescriptorPoolSize res;
205 res.descriptorCount = descriptorCount;
209 inline VkSpecializationMapEntry makeSpecializationMapEntry (uint32_t constantID, uint32_t offset, size_t size)
211 VkSpecializationMapEntry res;
212 res.constantID = constantID;
218 inline VkSpecializationInfo makeSpecializationInfo (uint32_t mapEntryCount, const VkSpecializationMapEntry* pMapEntries, size_t dataSize, const void* pData)
220 VkSpecializationInfo res;
221 res.mapEntryCount = mapEntryCount;
222 res.pMapEntries = pMapEntries;
223 res.dataSize = dataSize;
228 inline VkVertexInputBindingDescription makeVertexInputBindingDescription (uint32_t binding, uint32_t stride, VkVertexInputRate inputRate)
230 VkVertexInputBindingDescription res;
231 res.binding = binding;
233 res.inputRate = inputRate;
237 inline VkVertexInputAttributeDescription makeVertexInputAttributeDescription (uint32_t location, uint32_t binding, VkFormat format, uint32_t offset)
239 VkVertexInputAttributeDescription res;
240 res.location = location;
241 res.binding = binding;
247 inline VkPipelineColorBlendAttachmentState makePipelineColorBlendAttachmentState (VkBool32 blendEnable, VkBlendFactor srcColorBlendFactor, VkBlendFactor dstColorBlendFactor, VkBlendOp colorBlendOp, VkBlendFactor srcAlphaBlendFactor, VkBlendFactor dstAlphaBlendFactor, VkBlendOp alphaBlendOp, VkColorComponentFlags colorWriteMask)
249 VkPipelineColorBlendAttachmentState res;
250 res.blendEnable = blendEnable;
251 res.srcColorBlendFactor = srcColorBlendFactor;
252 res.dstColorBlendFactor = dstColorBlendFactor;
253 res.colorBlendOp = colorBlendOp;
254 res.srcAlphaBlendFactor = srcAlphaBlendFactor;
255 res.dstAlphaBlendFactor = dstAlphaBlendFactor;
256 res.alphaBlendOp = alphaBlendOp;
257 res.colorWriteMask = colorWriteMask;
261 inline VkStencilOpState makeStencilOpState (VkStencilOp failOp, VkStencilOp passOp, VkStencilOp depthFailOp, VkCompareOp compareOp, uint32_t compareMask, uint32_t writeMask, uint32_t reference)
263 VkStencilOpState res;
266 res.depthFailOp = depthFailOp;
267 res.compareOp = compareOp;
268 res.compareMask = compareMask;
269 res.writeMask = writeMask;
270 res.reference = reference;
274 inline VkPushConstantRange makePushConstantRange (VkShaderStageFlags stageFlags, uint32_t offset, uint32_t size)
276 VkPushConstantRange res;
277 res.stageFlags = stageFlags;
283 inline VkClearDepthStencilValue makeClearDepthStencilValue (float depth, uint32_t stencil)
285 VkClearDepthStencilValue res;
287 res.stencil = stencil;
291 inline VkAttachmentDescription makeAttachmentDescription (VkAttachmentDescriptionFlags flags, VkFormat format, VkSampleCountFlagBits samples, VkAttachmentLoadOp loadOp, VkAttachmentStoreOp storeOp, VkAttachmentLoadOp stencilLoadOp, VkAttachmentStoreOp stencilStoreOp, VkImageLayout initialLayout, VkImageLayout finalLayout)
293 VkAttachmentDescription res;
296 res.samples = samples;
298 res.storeOp = storeOp;
299 res.stencilLoadOp = stencilLoadOp;
300 res.stencilStoreOp = stencilStoreOp;
301 res.initialLayout = initialLayout;
302 res.finalLayout = finalLayout;
306 inline VkAttachmentReference makeAttachmentReference (uint32_t attachment, VkImageLayout layout)
308 VkAttachmentReference res;
309 res.attachment = attachment;
314 inline VkSubpassDescription makeSubpassDescription (VkSubpassDescriptionFlags flags, VkPipelineBindPoint pipelineBindPoint, uint32_t inputAttachmentCount, const VkAttachmentReference* pInputAttachments, uint32_t colorAttachmentCount, const VkAttachmentReference* pColorAttachments, const VkAttachmentReference* pResolveAttachments, const VkAttachmentReference* pDepthStencilAttachment, uint32_t preserveAttachmentCount, const uint32_t* pPreserveAttachments)
316 VkSubpassDescription res;
318 res.pipelineBindPoint = pipelineBindPoint;
319 res.inputAttachmentCount = inputAttachmentCount;
320 res.pInputAttachments = pInputAttachments;
321 res.colorAttachmentCount = colorAttachmentCount;
322 res.pColorAttachments = pColorAttachments;
323 res.pResolveAttachments = pResolveAttachments;
324 res.pDepthStencilAttachment = pDepthStencilAttachment;
325 res.preserveAttachmentCount = preserveAttachmentCount;
326 res.pPreserveAttachments = pPreserveAttachments;
330 inline VkSubpassDependency makeSubpassDependency (uint32_t srcSubpass, uint32_t dstSubpass, VkPipelineStageFlags srcStageMask, VkPipelineStageFlags dstStageMask, VkAccessFlags srcAccessMask, VkAccessFlags dstAccessMask, VkDependencyFlags dependencyFlags)
332 VkSubpassDependency res;
333 res.srcSubpass = srcSubpass;
334 res.dstSubpass = dstSubpass;
335 res.srcStageMask = srcStageMask;
336 res.dstStageMask = dstStageMask;
337 res.srcAccessMask = srcAccessMask;
338 res.dstAccessMask = dstAccessMask;
339 res.dependencyFlags = dependencyFlags;
343 inline VkDrawIndirectCommand makeDrawIndirectCommand (uint32_t vertexCount, uint32_t instanceCount, uint32_t firstVertex, uint32_t firstInstance)
345 VkDrawIndirectCommand res;
346 res.vertexCount = vertexCount;
347 res.instanceCount = instanceCount;
348 res.firstVertex = firstVertex;
349 res.firstInstance = firstInstance;
353 inline VkDrawIndexedIndirectCommand makeDrawIndexedIndirectCommand (uint32_t indexCount, uint32_t instanceCount, uint32_t firstIndex, int32_t vertexOffset, uint32_t firstInstance)
355 VkDrawIndexedIndirectCommand res;
356 res.indexCount = indexCount;
357 res.instanceCount = instanceCount;
358 res.firstIndex = firstIndex;
359 res.vertexOffset = vertexOffset;
360 res.firstInstance = firstInstance;
364 inline VkDispatchIndirectCommand makeDispatchIndirectCommand (uint32_t x, uint32_t y, uint32_t z)
366 VkDispatchIndirectCommand res;
373 inline VkMultiDrawInfoEXT makeMultiDrawInfoEXT (uint32_t firstVertex, uint32_t vertexCount)
375 VkMultiDrawInfoEXT res;
376 res.firstVertex = firstVertex;
377 res.vertexCount = vertexCount;
381 inline VkMultiDrawIndexedInfoEXT makeMultiDrawIndexedInfoEXT (uint32_t firstIndex, uint32_t indexCount, int32_t vertexOffset)
383 VkMultiDrawIndexedInfoEXT res;
384 res.firstIndex = firstIndex;
385 res.indexCount = indexCount;
386 res.vertexOffset = vertexOffset;
390 inline VkDisplayPlanePropertiesKHR makeDisplayPlanePropertiesKHR (VkDisplayKHR currentDisplay, uint32_t currentStackIndex)
392 VkDisplayPlanePropertiesKHR res;
393 res.currentDisplay = currentDisplay;
394 res.currentStackIndex = currentStackIndex;
398 inline VkSurfaceFormatKHR makeSurfaceFormatKHR (VkFormat format, VkColorSpaceKHR colorSpace)
400 VkSurfaceFormatKHR res;
402 res.colorSpace = colorSpace;
406 inline VkBindShaderGroupIndirectCommandNV makeBindShaderGroupIndirectCommandNV (uint32_t groupIndex)
408 VkBindShaderGroupIndirectCommandNV res;
409 res.groupIndex = groupIndex;
413 inline VkBindIndexBufferIndirectCommandNV makeBindIndexBufferIndirectCommandNV (VkDeviceAddress bufferAddress, uint32_t size, VkIndexType indexType)
415 VkBindIndexBufferIndirectCommandNV res;
416 res.bufferAddress = bufferAddress;
418 res.indexType = indexType;
422 inline VkBindVertexBufferIndirectCommandNV makeBindVertexBufferIndirectCommandNV (VkDeviceAddress bufferAddress, uint32_t size, uint32_t stride)
424 VkBindVertexBufferIndirectCommandNV res;
425 res.bufferAddress = bufferAddress;
431 inline VkSetStateFlagsIndirectCommandNV makeSetStateFlagsIndirectCommandNV (uint32_t data)
433 VkSetStateFlagsIndirectCommandNV res;
438 inline VkIndirectCommandsStreamNV makeIndirectCommandsStreamNV (VkBuffer buffer, VkDeviceSize offset)
440 VkIndirectCommandsStreamNV res;
446 inline VkConformanceVersion makeConformanceVersion (uint8_t major, uint8_t minor, uint8_t subminor, uint8_t patch)
448 VkConformanceVersion res;
451 res.subminor = subminor;
456 inline VkPresentRegionKHR makePresentRegionKHR (uint32_t rectangleCount, const VkRectLayerKHR* pRectangles)
458 VkPresentRegionKHR res;
459 res.rectangleCount = rectangleCount;
460 res.pRectangles = pRectangles;
464 inline VkExternalMemoryProperties makeExternalMemoryProperties (VkExternalMemoryFeatureFlags externalMemoryFeatures, VkExternalMemoryHandleTypeFlags exportFromImportedHandleTypes, VkExternalMemoryHandleTypeFlags compatibleHandleTypes)
466 VkExternalMemoryProperties res;
467 res.externalMemoryFeatures = externalMemoryFeatures;
468 res.exportFromImportedHandleTypes = exportFromImportedHandleTypes;
469 res.compatibleHandleTypes = compatibleHandleTypes;
473 inline VkDescriptorUpdateTemplateEntry makeDescriptorUpdateTemplateEntry (uint32_t dstBinding, uint32_t dstArrayElement, uint32_t descriptorCount, VkDescriptorType descriptorType, size_t offset, size_t stride)
475 VkDescriptorUpdateTemplateEntry res;
476 res.dstBinding = dstBinding;
477 res.dstArrayElement = dstArrayElement;
478 res.descriptorCount = descriptorCount;
479 res.descriptorType = descriptorType;
485 inline VkXYColorEXT makeXYColorEXT (float x, float y)
493 inline VkRefreshCycleDurationGOOGLE makeRefreshCycleDurationGOOGLE (uint64_t refreshDuration)
495 VkRefreshCycleDurationGOOGLE res;
496 res.refreshDuration = refreshDuration;
500 inline VkPastPresentationTimingGOOGLE makePastPresentationTimingGOOGLE (uint32_t presentID, uint64_t desiredPresentTime, uint64_t actualPresentTime, uint64_t earliestPresentTime, uint64_t presentMargin)
502 VkPastPresentationTimingGOOGLE res;
503 res.presentID = presentID;
504 res.desiredPresentTime = desiredPresentTime;
505 res.actualPresentTime = actualPresentTime;
506 res.earliestPresentTime = earliestPresentTime;
507 res.presentMargin = presentMargin;
511 inline VkPresentTimeGOOGLE makePresentTimeGOOGLE (uint32_t presentID, uint64_t desiredPresentTime)
513 VkPresentTimeGOOGLE res;
514 res.presentID = presentID;
515 res.desiredPresentTime = desiredPresentTime;
519 inline VkViewportWScalingNV makeViewportWScalingNV (float xcoeff, float ycoeff)
521 VkViewportWScalingNV res;
527 inline VkViewportSwizzleNV makeViewportSwizzleNV (VkViewportCoordinateSwizzleNV x, VkViewportCoordinateSwizzleNV y, VkViewportCoordinateSwizzleNV z, VkViewportCoordinateSwizzleNV w)
529 VkViewportSwizzleNV res;
537 inline VkInputAttachmentAspectReference makeInputAttachmentAspectReference (uint32_t subpass, uint32_t inputAttachmentIndex, VkImageAspectFlags aspectMask)
539 VkInputAttachmentAspectReference res;
540 res.subpass = subpass;
541 res.inputAttachmentIndex = inputAttachmentIndex;
542 res.aspectMask = aspectMask;
546 inline VkSampleLocationEXT makeSampleLocationEXT (float x, float y)
548 VkSampleLocationEXT res;
554 inline VkShaderResourceUsageAMD makeShaderResourceUsageAMD (uint32_t numUsedVgprs, uint32_t numUsedSgprs, uint32_t ldsSizePerLocalWorkGroup, size_t ldsUsageSizeInBytes, size_t scratchMemUsageInBytes)
556 VkShaderResourceUsageAMD res;
557 res.numUsedVgprs = numUsedVgprs;
558 res.numUsedSgprs = numUsedSgprs;
559 res.ldsSizePerLocalWorkGroup = ldsSizePerLocalWorkGroup;
560 res.ldsUsageSizeInBytes = ldsUsageSizeInBytes;
561 res.scratchMemUsageInBytes = scratchMemUsageInBytes;
565 inline VkVertexInputBindingDivisorDescriptionEXT makeVertexInputBindingDivisorDescriptionEXT (uint32_t binding, uint32_t divisor)
567 VkVertexInputBindingDivisorDescriptionEXT res;
568 res.binding = binding;
569 res.divisor = divisor;
573 inline VkShadingRatePaletteNV makeShadingRatePaletteNV (uint32_t shadingRatePaletteEntryCount, const VkShadingRatePaletteEntryNV* pShadingRatePaletteEntries)
575 VkShadingRatePaletteNV res;
576 res.shadingRatePaletteEntryCount = shadingRatePaletteEntryCount;
577 res.pShadingRatePaletteEntries = pShadingRatePaletteEntries;
581 inline VkCoarseSampleLocationNV makeCoarseSampleLocationNV (uint32_t pixelX, uint32_t pixelY, uint32_t sample)
583 VkCoarseSampleLocationNV res;
590 inline VkCoarseSampleOrderCustomNV makeCoarseSampleOrderCustomNV (VkShadingRatePaletteEntryNV shadingRate, uint32_t sampleCount, uint32_t sampleLocationCount, const VkCoarseSampleLocationNV* pSampleLocations)
592 VkCoarseSampleOrderCustomNV res;
593 res.shadingRate = shadingRate;
594 res.sampleCount = sampleCount;
595 res.sampleLocationCount = sampleLocationCount;
596 res.pSampleLocations = pSampleLocations;
600 inline VkDrawMeshTasksIndirectCommandNV makeDrawMeshTasksIndirectCommandNV (uint32_t taskCount, uint32_t firstTask)
602 VkDrawMeshTasksIndirectCommandNV res;
603 res.taskCount = taskCount;
604 res.firstTask = firstTask;
608 inline VkDrawMeshTasksIndirectCommandEXT makeDrawMeshTasksIndirectCommandEXT (uint32_t groupCountX, uint32_t groupCountY, uint32_t groupCountZ)
610 VkDrawMeshTasksIndirectCommandEXT res;
611 res.groupCountX = groupCountX;
612 res.groupCountY = groupCountY;
613 res.groupCountZ = groupCountZ;
617 inline VkStridedDeviceAddressRegionKHR makeStridedDeviceAddressRegionKHR (VkDeviceAddress deviceAddress, VkDeviceSize stride, VkDeviceSize size)
619 VkStridedDeviceAddressRegionKHR res;
620 res.deviceAddress = deviceAddress;
626 inline VkTraceRaysIndirectCommandKHR makeTraceRaysIndirectCommandKHR (uint32_t width, uint32_t height, uint32_t depth)
628 VkTraceRaysIndirectCommandKHR res;
635 inline VkTraceRaysIndirectCommand2KHR makeTraceRaysIndirectCommand2KHR (VkDeviceAddress raygenShaderRecordAddress, VkDeviceSize raygenShaderRecordSize, VkDeviceAddress missShaderBindingTableAddress, VkDeviceSize missShaderBindingTableSize, VkDeviceSize missShaderBindingTableStride, VkDeviceAddress hitShaderBindingTableAddress, VkDeviceSize hitShaderBindingTableSize, VkDeviceSize hitShaderBindingTableStride, VkDeviceAddress callableShaderBindingTableAddress, VkDeviceSize callableShaderBindingTableSize, VkDeviceSize callableShaderBindingTableStride, uint32_t width, uint32_t height, uint32_t depth)
637 VkTraceRaysIndirectCommand2KHR res;
638 res.raygenShaderRecordAddress = raygenShaderRecordAddress;
639 res.raygenShaderRecordSize = raygenShaderRecordSize;
640 res.missShaderBindingTableAddress = missShaderBindingTableAddress;
641 res.missShaderBindingTableSize = missShaderBindingTableSize;
642 res.missShaderBindingTableStride = missShaderBindingTableStride;
643 res.hitShaderBindingTableAddress = hitShaderBindingTableAddress;
644 res.hitShaderBindingTableSize = hitShaderBindingTableSize;
645 res.hitShaderBindingTableStride = hitShaderBindingTableStride;
646 res.callableShaderBindingTableAddress = callableShaderBindingTableAddress;
647 res.callableShaderBindingTableSize = callableShaderBindingTableSize;
648 res.callableShaderBindingTableStride = callableShaderBindingTableStride;
655 inline VkDrmFormatModifierPropertiesEXT makeDrmFormatModifierPropertiesEXT (uint64_t drmFormatModifier, uint32_t drmFormatModifierPlaneCount, VkFormatFeatureFlags drmFormatModifierTilingFeatures)
657 VkDrmFormatModifierPropertiesEXT res;
658 res.drmFormatModifier = drmFormatModifier;
659 res.drmFormatModifierPlaneCount = drmFormatModifierPlaneCount;
660 res.drmFormatModifierTilingFeatures = drmFormatModifierTilingFeatures;
664 inline VkPipelineCreationFeedback makePipelineCreationFeedback (VkPipelineCreationFeedbackFlags flags, uint64_t duration)
666 VkPipelineCreationFeedback res;
668 res.duration = duration;
672 inline VkAccelerationStructureBuildRangeInfoKHR makeAccelerationStructureBuildRangeInfoKHR (uint32_t primitiveCount, uint32_t primitiveOffset, uint32_t firstVertex, uint32_t transformOffset)
674 VkAccelerationStructureBuildRangeInfoKHR res;
675 res.primitiveCount = primitiveCount;
676 res.primitiveOffset = primitiveOffset;
677 res.firstVertex = firstVertex;
678 res.transformOffset = transformOffset;
682 inline VkAabbPositionsKHR makeAabbPositionsKHR (float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
684 VkAabbPositionsKHR res;
694 inline VkColorBlendEquationEXT makeColorBlendEquationEXT (VkBlendFactor srcColorBlendFactor, VkBlendFactor dstColorBlendFactor, VkBlendOp colorBlendOp, VkBlendFactor srcAlphaBlendFactor, VkBlendFactor dstAlphaBlendFactor, VkBlendOp alphaBlendOp)
696 VkColorBlendEquationEXT res;
697 res.srcColorBlendFactor = srcColorBlendFactor;
698 res.dstColorBlendFactor = dstColorBlendFactor;
699 res.colorBlendOp = colorBlendOp;
700 res.srcAlphaBlendFactor = srcAlphaBlendFactor;
701 res.dstAlphaBlendFactor = dstAlphaBlendFactor;
702 res.alphaBlendOp = alphaBlendOp;
706 inline VkColorBlendAdvancedEXT makeColorBlendAdvancedEXT (VkBlendOp advancedBlendOp, VkBool32 srcPremultiplied, VkBool32 dstPremultiplied, VkBlendOverlapEXT blendOverlap, VkBool32 clampResults)
708 VkColorBlendAdvancedEXT res;
709 res.advancedBlendOp = advancedBlendOp;
710 res.srcPremultiplied = srcPremultiplied;
711 res.dstPremultiplied = dstPremultiplied;
712 res.blendOverlap = blendOverlap;
713 res.clampResults = clampResults;
717 inline VkMutableDescriptorTypeListEXT makeMutableDescriptorTypeListEXT (uint32_t descriptorTypeCount, const VkDescriptorType* pDescriptorTypes)
719 VkMutableDescriptorTypeListEXT res;
720 res.descriptorTypeCount = descriptorTypeCount;
721 res.pDescriptorTypes = pDescriptorTypes;
725 inline VkVideoEncodeH264QpEXT makeVideoEncodeH264QpEXT (int32_t qpI, int32_t qpP, int32_t qpB)
727 VkVideoEncodeH264QpEXT res;
734 inline VkVideoEncodeH264FrameSizeEXT makeVideoEncodeH264FrameSizeEXT (uint32_t frameISize, uint32_t framePSize, uint32_t frameBSize)
736 VkVideoEncodeH264FrameSizeEXT res;
737 res.frameISize = frameISize;
738 res.framePSize = framePSize;
739 res.frameBSize = frameBSize;
743 inline VkVideoEncodeH265QpEXT makeVideoEncodeH265QpEXT (int32_t qpI, int32_t qpP, int32_t qpB)
745 VkVideoEncodeH265QpEXT res;
752 inline VkVideoEncodeH265FrameSizeEXT makeVideoEncodeH265FrameSizeEXT (uint32_t frameISize, uint32_t framePSize, uint32_t frameBSize)
754 VkVideoEncodeH265FrameSizeEXT res;
755 res.frameISize = frameISize;
756 res.framePSize = framePSize;
757 res.frameBSize = frameBSize;
761 inline VkSRTDataNV makeSRTDataNV (float sx, float a, float b, float pvx, float sy, float c, float pvy, float sz, float pvz, float qx, float qy, float qz, float qw, float tx, float ty, float tz)
783 inline VkDrmFormatModifierProperties2EXT makeDrmFormatModifierProperties2EXT (uint64_t drmFormatModifier, uint32_t drmFormatModifierPlaneCount, VkFormatFeatureFlags2 drmFormatModifierTilingFeatures)
785 VkDrmFormatModifierProperties2EXT res;
786 res.drmFormatModifier = drmFormatModifier;
787 res.drmFormatModifierPlaneCount = drmFormatModifierPlaneCount;
788 res.drmFormatModifierTilingFeatures = drmFormatModifierTilingFeatures;
792 inline VkRenderPassCreationFeedbackInfoEXT makeRenderPassCreationFeedbackInfoEXT (uint32_t postMergeSubpassCount)
794 VkRenderPassCreationFeedbackInfoEXT res;
795 res.postMergeSubpassCount = postMergeSubpassCount;
799 inline VkMicromapUsageEXT makeMicromapUsageEXT (uint32_t count, uint32_t subdivisionLevel, uint32_t format)
801 VkMicromapUsageEXT res;
803 res.subdivisionLevel = subdivisionLevel;
808 inline VkMicromapTriangleEXT makeMicromapTriangleEXT (uint32_t dataOffset, uint16_t subdivisionLevel, uint16_t format)
810 VkMicromapTriangleEXT res;
811 res.dataOffset = dataOffset;
812 res.subdivisionLevel = subdivisionLevel;
817 inline VkDeviceFaultAddressInfoEXT makeDeviceFaultAddressInfoEXT (VkDeviceFaultAddressTypeEXT addressType, VkDeviceAddress reportedAddress, VkDeviceSize addressPrecision)
819 VkDeviceFaultAddressInfoEXT res;
820 res.addressType = addressType;
821 res.reportedAddress = reportedAddress;
822 res.addressPrecision = addressPrecision;
826 inline StdVideoEncodeH264WeightTableFlags makeStdVideoEncodeH264WeightTableFlags (uint32_t luma_weight_l0_flag, uint32_t chroma_weight_l0_flag, uint32_t luma_weight_l1_flag, uint32_t chroma_weight_l1_flag)
828 StdVideoEncodeH264WeightTableFlags res;
829 res.luma_weight_l0_flag = luma_weight_l0_flag;
830 res.chroma_weight_l0_flag = chroma_weight_l0_flag;
831 res.luma_weight_l1_flag = luma_weight_l1_flag;
832 res.chroma_weight_l1_flag = chroma_weight_l1_flag;
836 inline StdVideoEncodeH264RefListModEntry makeStdVideoEncodeH264RefListModEntry (StdVideoH264ModificationOfPicNumsIdc modification_of_pic_nums_idc, uint16_t abs_diff_pic_num_minus1, uint16_t long_term_pic_num)
838 StdVideoEncodeH264RefListModEntry res;
839 res.modification_of_pic_nums_idc = modification_of_pic_nums_idc;
840 res.abs_diff_pic_num_minus1 = abs_diff_pic_num_minus1;
841 res.long_term_pic_num = long_term_pic_num;
845 inline StdVideoEncodeH264RefPicMarkingEntry makeStdVideoEncodeH264RefPicMarkingEntry (StdVideoH264MemMgmtControlOp operation, uint16_t difference_of_pic_nums_minus1, uint16_t long_term_pic_num, uint16_t long_term_frame_idx, uint16_t max_long_term_frame_idx_plus1)
847 StdVideoEncodeH264RefPicMarkingEntry res;
848 res.operation = operation;
849 res.difference_of_pic_nums_minus1 = difference_of_pic_nums_minus1;
850 res.long_term_pic_num = long_term_pic_num;
851 res.long_term_frame_idx = long_term_frame_idx;
852 res.max_long_term_frame_idx_plus1 = max_long_term_frame_idx_plus1;
856 inline StdVideoEncodeH265WeightTableFlags makeStdVideoEncodeH265WeightTableFlags (uint16_t luma_weight_l0_flag, uint16_t chroma_weight_l0_flag, uint16_t luma_weight_l1_flag, uint16_t chroma_weight_l1_flag)
858 StdVideoEncodeH265WeightTableFlags res;
859 res.luma_weight_l0_flag = luma_weight_l0_flag;
860 res.chroma_weight_l0_flag = chroma_weight_l0_flag;
861 res.luma_weight_l1_flag = luma_weight_l1_flag;
862 res.chroma_weight_l1_flag = chroma_weight_l1_flag;