mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
Squash of Droid-Deck/DroidDeck#517 (ASEbrahim/DroidDeck mali-bridge @ 6b823341): the Vulkan
bridge (tools/vkbridge) that runs the guest's Vulkan on the phone's own driver, with BC1-BC7,
clip/cull distance, vertex-divisor and depth-clip emulation and dma-heap memory sharing for Mali.
All of the bridge is ASEbrahim's work; squashed only to carry it on this test branch.
Combined with #570 on this branch, a device draws through exactly one path:
- Adreno: Turnip, unchanged (checked first; the bridge setting is ignored there).
- PowerVR / Xclipse with the system HAL and a render node: the system-Vulkan path (#570).
- Anything else with the Setup toggle on (Mali): the bridge.
7719 lines
374 KiB
C
7719 lines
374 KiB
C
/* Generated by tools/vkbridge/codegen/gen_vkbridge.py from vk.xml 1.4.341 - do not edit. */
|
|
|
|
#include "vkb_gen.h"
|
|
#include "../vkb_wire.h"
|
|
#include "vkb_server_gen.h"
|
|
#include "../vkb_server_iface.h"
|
|
#include <string.h>
|
|
|
|
void vkb_dispatch_load_instance(vkb_dispatch *dt, PFN_vkGetInstanceProcAddr gipa, VkInstance instance)
|
|
{
|
|
dt->vkAllocateCommandBuffers = (PFN_vkAllocateCommandBuffers)gipa(instance, "vkAllocateCommandBuffers");
|
|
dt->vkAllocateDescriptorSets = (PFN_vkAllocateDescriptorSets)gipa(instance, "vkAllocateDescriptorSets");
|
|
dt->vkAllocateMemory = (PFN_vkAllocateMemory)gipa(instance, "vkAllocateMemory");
|
|
dt->vkBeginCommandBuffer = (PFN_vkBeginCommandBuffer)gipa(instance, "vkBeginCommandBuffer");
|
|
dt->vkBindBufferMemory = (PFN_vkBindBufferMemory)gipa(instance, "vkBindBufferMemory");
|
|
dt->vkBindBufferMemory2 = (PFN_vkBindBufferMemory2)gipa(instance, "vkBindBufferMemory2");
|
|
if (!dt->vkBindBufferMemory2) dt->vkBindBufferMemory2 = (PFN_vkBindBufferMemory2)gipa(instance, "vkBindBufferMemory2KHR");
|
|
dt->vkBindImageMemory = (PFN_vkBindImageMemory)gipa(instance, "vkBindImageMemory");
|
|
dt->vkBindImageMemory2 = (PFN_vkBindImageMemory2)gipa(instance, "vkBindImageMemory2");
|
|
if (!dt->vkBindImageMemory2) dt->vkBindImageMemory2 = (PFN_vkBindImageMemory2)gipa(instance, "vkBindImageMemory2KHR");
|
|
dt->vkBindTensorMemoryARM = (PFN_vkBindTensorMemoryARM)gipa(instance, "vkBindTensorMemoryARM");
|
|
dt->vkCmdBeginConditionalRenderingEXT = (PFN_vkCmdBeginConditionalRenderingEXT)gipa(instance, "vkCmdBeginConditionalRenderingEXT");
|
|
dt->vkCmdBeginCustomResolveEXT = (PFN_vkCmdBeginCustomResolveEXT)gipa(instance, "vkCmdBeginCustomResolveEXT");
|
|
dt->vkCmdBeginQuery = (PFN_vkCmdBeginQuery)gipa(instance, "vkCmdBeginQuery");
|
|
dt->vkCmdBeginQueryIndexedEXT = (PFN_vkCmdBeginQueryIndexedEXT)gipa(instance, "vkCmdBeginQueryIndexedEXT");
|
|
dt->vkCmdBeginRenderPass = (PFN_vkCmdBeginRenderPass)gipa(instance, "vkCmdBeginRenderPass");
|
|
dt->vkCmdBeginRenderPass2 = (PFN_vkCmdBeginRenderPass2)gipa(instance, "vkCmdBeginRenderPass2");
|
|
if (!dt->vkCmdBeginRenderPass2) dt->vkCmdBeginRenderPass2 = (PFN_vkCmdBeginRenderPass2)gipa(instance, "vkCmdBeginRenderPass2KHR");
|
|
dt->vkCmdBeginRendering = (PFN_vkCmdBeginRendering)gipa(instance, "vkCmdBeginRendering");
|
|
if (!dt->vkCmdBeginRendering) dt->vkCmdBeginRendering = (PFN_vkCmdBeginRendering)gipa(instance, "vkCmdBeginRenderingKHR");
|
|
dt->vkCmdBeginTransformFeedbackEXT = (PFN_vkCmdBeginTransformFeedbackEXT)gipa(instance, "vkCmdBeginTransformFeedbackEXT");
|
|
dt->vkCmdBindDescriptorSets = (PFN_vkCmdBindDescriptorSets)gipa(instance, "vkCmdBindDescriptorSets");
|
|
dt->vkCmdBindDescriptorSets2 = (PFN_vkCmdBindDescriptorSets2)gipa(instance, "vkCmdBindDescriptorSets2");
|
|
if (!dt->vkCmdBindDescriptorSets2) dt->vkCmdBindDescriptorSets2 = (PFN_vkCmdBindDescriptorSets2)gipa(instance, "vkCmdBindDescriptorSets2KHR");
|
|
dt->vkCmdBindIndexBuffer = (PFN_vkCmdBindIndexBuffer)gipa(instance, "vkCmdBindIndexBuffer");
|
|
dt->vkCmdBindIndexBuffer2 = (PFN_vkCmdBindIndexBuffer2)gipa(instance, "vkCmdBindIndexBuffer2");
|
|
if (!dt->vkCmdBindIndexBuffer2) dt->vkCmdBindIndexBuffer2 = (PFN_vkCmdBindIndexBuffer2)gipa(instance, "vkCmdBindIndexBuffer2KHR");
|
|
dt->vkCmdBindPipeline = (PFN_vkCmdBindPipeline)gipa(instance, "vkCmdBindPipeline");
|
|
dt->vkCmdBindTransformFeedbackBuffersEXT = (PFN_vkCmdBindTransformFeedbackBuffersEXT)gipa(instance, "vkCmdBindTransformFeedbackBuffersEXT");
|
|
dt->vkCmdBindVertexBuffers = (PFN_vkCmdBindVertexBuffers)gipa(instance, "vkCmdBindVertexBuffers");
|
|
dt->vkCmdBindVertexBuffers2 = (PFN_vkCmdBindVertexBuffers2)gipa(instance, "vkCmdBindVertexBuffers2");
|
|
if (!dt->vkCmdBindVertexBuffers2) dt->vkCmdBindVertexBuffers2 = (PFN_vkCmdBindVertexBuffers2)gipa(instance, "vkCmdBindVertexBuffers2EXT");
|
|
dt->vkCmdBlitImage = (PFN_vkCmdBlitImage)gipa(instance, "vkCmdBlitImage");
|
|
dt->vkCmdBlitImage2 = (PFN_vkCmdBlitImage2)gipa(instance, "vkCmdBlitImage2");
|
|
if (!dt->vkCmdBlitImage2) dt->vkCmdBlitImage2 = (PFN_vkCmdBlitImage2)gipa(instance, "vkCmdBlitImage2KHR");
|
|
dt->vkCmdClearAttachments = (PFN_vkCmdClearAttachments)gipa(instance, "vkCmdClearAttachments");
|
|
dt->vkCmdClearColorImage = (PFN_vkCmdClearColorImage)gipa(instance, "vkCmdClearColorImage");
|
|
dt->vkCmdClearDepthStencilImage = (PFN_vkCmdClearDepthStencilImage)gipa(instance, "vkCmdClearDepthStencilImage");
|
|
dt->vkCmdCopyBuffer = (PFN_vkCmdCopyBuffer)gipa(instance, "vkCmdCopyBuffer");
|
|
dt->vkCmdCopyBuffer2 = (PFN_vkCmdCopyBuffer2)gipa(instance, "vkCmdCopyBuffer2");
|
|
if (!dt->vkCmdCopyBuffer2) dt->vkCmdCopyBuffer2 = (PFN_vkCmdCopyBuffer2)gipa(instance, "vkCmdCopyBuffer2KHR");
|
|
dt->vkCmdCopyBufferToImage = (PFN_vkCmdCopyBufferToImage)gipa(instance, "vkCmdCopyBufferToImage");
|
|
dt->vkCmdCopyBufferToImage2 = (PFN_vkCmdCopyBufferToImage2)gipa(instance, "vkCmdCopyBufferToImage2");
|
|
if (!dt->vkCmdCopyBufferToImage2) dt->vkCmdCopyBufferToImage2 = (PFN_vkCmdCopyBufferToImage2)gipa(instance, "vkCmdCopyBufferToImage2KHR");
|
|
dt->vkCmdCopyImage = (PFN_vkCmdCopyImage)gipa(instance, "vkCmdCopyImage");
|
|
dt->vkCmdCopyImage2 = (PFN_vkCmdCopyImage2)gipa(instance, "vkCmdCopyImage2");
|
|
if (!dt->vkCmdCopyImage2) dt->vkCmdCopyImage2 = (PFN_vkCmdCopyImage2)gipa(instance, "vkCmdCopyImage2KHR");
|
|
dt->vkCmdCopyImageToBuffer = (PFN_vkCmdCopyImageToBuffer)gipa(instance, "vkCmdCopyImageToBuffer");
|
|
dt->vkCmdCopyImageToBuffer2 = (PFN_vkCmdCopyImageToBuffer2)gipa(instance, "vkCmdCopyImageToBuffer2");
|
|
if (!dt->vkCmdCopyImageToBuffer2) dt->vkCmdCopyImageToBuffer2 = (PFN_vkCmdCopyImageToBuffer2)gipa(instance, "vkCmdCopyImageToBuffer2KHR");
|
|
dt->vkCmdCopyQueryPoolResults = (PFN_vkCmdCopyQueryPoolResults)gipa(instance, "vkCmdCopyQueryPoolResults");
|
|
dt->vkCmdCopyTensorARM = (PFN_vkCmdCopyTensorARM)gipa(instance, "vkCmdCopyTensorARM");
|
|
dt->vkCmdDispatch = (PFN_vkCmdDispatch)gipa(instance, "vkCmdDispatch");
|
|
dt->vkCmdDispatchBase = (PFN_vkCmdDispatchBase)gipa(instance, "vkCmdDispatchBase");
|
|
if (!dt->vkCmdDispatchBase) dt->vkCmdDispatchBase = (PFN_vkCmdDispatchBase)gipa(instance, "vkCmdDispatchBaseKHR");
|
|
dt->vkCmdDispatchIndirect = (PFN_vkCmdDispatchIndirect)gipa(instance, "vkCmdDispatchIndirect");
|
|
dt->vkCmdDraw = (PFN_vkCmdDraw)gipa(instance, "vkCmdDraw");
|
|
dt->vkCmdDrawIndexed = (PFN_vkCmdDrawIndexed)gipa(instance, "vkCmdDrawIndexed");
|
|
dt->vkCmdDrawIndexedIndirect = (PFN_vkCmdDrawIndexedIndirect)gipa(instance, "vkCmdDrawIndexedIndirect");
|
|
dt->vkCmdDrawIndexedIndirectCount = (PFN_vkCmdDrawIndexedIndirectCount)gipa(instance, "vkCmdDrawIndexedIndirectCount");
|
|
if (!dt->vkCmdDrawIndexedIndirectCount) dt->vkCmdDrawIndexedIndirectCount = (PFN_vkCmdDrawIndexedIndirectCount)gipa(instance, "vkCmdDrawIndexedIndirectCountAMD");
|
|
if (!dt->vkCmdDrawIndexedIndirectCount) dt->vkCmdDrawIndexedIndirectCount = (PFN_vkCmdDrawIndexedIndirectCount)gipa(instance, "vkCmdDrawIndexedIndirectCountKHR");
|
|
dt->vkCmdDrawIndirect = (PFN_vkCmdDrawIndirect)gipa(instance, "vkCmdDrawIndirect");
|
|
dt->vkCmdDrawIndirectByteCountEXT = (PFN_vkCmdDrawIndirectByteCountEXT)gipa(instance, "vkCmdDrawIndirectByteCountEXT");
|
|
dt->vkCmdDrawIndirectCount = (PFN_vkCmdDrawIndirectCount)gipa(instance, "vkCmdDrawIndirectCount");
|
|
if (!dt->vkCmdDrawIndirectCount) dt->vkCmdDrawIndirectCount = (PFN_vkCmdDrawIndirectCount)gipa(instance, "vkCmdDrawIndirectCountAMD");
|
|
if (!dt->vkCmdDrawIndirectCount) dt->vkCmdDrawIndirectCount = (PFN_vkCmdDrawIndirectCount)gipa(instance, "vkCmdDrawIndirectCountKHR");
|
|
dt->vkCmdDrawMultiEXT = (PFN_vkCmdDrawMultiEXT)gipa(instance, "vkCmdDrawMultiEXT");
|
|
dt->vkCmdDrawMultiIndexedEXT = (PFN_vkCmdDrawMultiIndexedEXT)gipa(instance, "vkCmdDrawMultiIndexedEXT");
|
|
dt->vkCmdEndConditionalRenderingEXT = (PFN_vkCmdEndConditionalRenderingEXT)gipa(instance, "vkCmdEndConditionalRenderingEXT");
|
|
dt->vkCmdEndQuery = (PFN_vkCmdEndQuery)gipa(instance, "vkCmdEndQuery");
|
|
dt->vkCmdEndQueryIndexedEXT = (PFN_vkCmdEndQueryIndexedEXT)gipa(instance, "vkCmdEndQueryIndexedEXT");
|
|
dt->vkCmdEndRenderPass = (PFN_vkCmdEndRenderPass)gipa(instance, "vkCmdEndRenderPass");
|
|
dt->vkCmdEndRenderPass2 = (PFN_vkCmdEndRenderPass2)gipa(instance, "vkCmdEndRenderPass2");
|
|
if (!dt->vkCmdEndRenderPass2) dt->vkCmdEndRenderPass2 = (PFN_vkCmdEndRenderPass2)gipa(instance, "vkCmdEndRenderPass2KHR");
|
|
dt->vkCmdEndRendering = (PFN_vkCmdEndRendering)gipa(instance, "vkCmdEndRendering");
|
|
if (!dt->vkCmdEndRendering) dt->vkCmdEndRendering = (PFN_vkCmdEndRendering)gipa(instance, "vkCmdEndRenderingKHR");
|
|
dt->vkCmdEndRendering2KHR = (PFN_vkCmdEndRendering2KHR)gipa(instance, "vkCmdEndRendering2KHR");
|
|
if (!dt->vkCmdEndRendering2KHR) dt->vkCmdEndRendering2KHR = (PFN_vkCmdEndRendering2KHR)gipa(instance, "vkCmdEndRendering2EXT");
|
|
dt->vkCmdEndTransformFeedbackEXT = (PFN_vkCmdEndTransformFeedbackEXT)gipa(instance, "vkCmdEndTransformFeedbackEXT");
|
|
dt->vkCmdExecuteCommands = (PFN_vkCmdExecuteCommands)gipa(instance, "vkCmdExecuteCommands");
|
|
dt->vkCmdFillBuffer = (PFN_vkCmdFillBuffer)gipa(instance, "vkCmdFillBuffer");
|
|
dt->vkCmdNextSubpass = (PFN_vkCmdNextSubpass)gipa(instance, "vkCmdNextSubpass");
|
|
dt->vkCmdNextSubpass2 = (PFN_vkCmdNextSubpass2)gipa(instance, "vkCmdNextSubpass2");
|
|
if (!dt->vkCmdNextSubpass2) dt->vkCmdNextSubpass2 = (PFN_vkCmdNextSubpass2)gipa(instance, "vkCmdNextSubpass2KHR");
|
|
dt->vkCmdPipelineBarrier = (PFN_vkCmdPipelineBarrier)gipa(instance, "vkCmdPipelineBarrier");
|
|
dt->vkCmdPipelineBarrier2 = (PFN_vkCmdPipelineBarrier2)gipa(instance, "vkCmdPipelineBarrier2");
|
|
if (!dt->vkCmdPipelineBarrier2) dt->vkCmdPipelineBarrier2 = (PFN_vkCmdPipelineBarrier2)gipa(instance, "vkCmdPipelineBarrier2KHR");
|
|
dt->vkCmdPushConstants = (PFN_vkCmdPushConstants)gipa(instance, "vkCmdPushConstants");
|
|
dt->vkCmdPushConstants2 = (PFN_vkCmdPushConstants2)gipa(instance, "vkCmdPushConstants2");
|
|
if (!dt->vkCmdPushConstants2) dt->vkCmdPushConstants2 = (PFN_vkCmdPushConstants2)gipa(instance, "vkCmdPushConstants2KHR");
|
|
dt->vkCmdPushDescriptorSet = (PFN_vkCmdPushDescriptorSet)gipa(instance, "vkCmdPushDescriptorSet");
|
|
if (!dt->vkCmdPushDescriptorSet) dt->vkCmdPushDescriptorSet = (PFN_vkCmdPushDescriptorSet)gipa(instance, "vkCmdPushDescriptorSetKHR");
|
|
dt->vkCmdPushDescriptorSet2 = (PFN_vkCmdPushDescriptorSet2)gipa(instance, "vkCmdPushDescriptorSet2");
|
|
if (!dt->vkCmdPushDescriptorSet2) dt->vkCmdPushDescriptorSet2 = (PFN_vkCmdPushDescriptorSet2)gipa(instance, "vkCmdPushDescriptorSet2KHR");
|
|
dt->vkCmdPushDescriptorSetWithTemplate = (PFN_vkCmdPushDescriptorSetWithTemplate)gipa(instance, "vkCmdPushDescriptorSetWithTemplate");
|
|
if (!dt->vkCmdPushDescriptorSetWithTemplate) dt->vkCmdPushDescriptorSetWithTemplate = (PFN_vkCmdPushDescriptorSetWithTemplate)gipa(instance, "vkCmdPushDescriptorSetWithTemplateKHR");
|
|
dt->vkCmdResetEvent = (PFN_vkCmdResetEvent)gipa(instance, "vkCmdResetEvent");
|
|
dt->vkCmdResetEvent2 = (PFN_vkCmdResetEvent2)gipa(instance, "vkCmdResetEvent2");
|
|
if (!dt->vkCmdResetEvent2) dt->vkCmdResetEvent2 = (PFN_vkCmdResetEvent2)gipa(instance, "vkCmdResetEvent2KHR");
|
|
dt->vkCmdResetQueryPool = (PFN_vkCmdResetQueryPool)gipa(instance, "vkCmdResetQueryPool");
|
|
dt->vkCmdResolveImage = (PFN_vkCmdResolveImage)gipa(instance, "vkCmdResolveImage");
|
|
dt->vkCmdResolveImage2 = (PFN_vkCmdResolveImage2)gipa(instance, "vkCmdResolveImage2");
|
|
if (!dt->vkCmdResolveImage2) dt->vkCmdResolveImage2 = (PFN_vkCmdResolveImage2)gipa(instance, "vkCmdResolveImage2KHR");
|
|
dt->vkCmdSetAlphaToCoverageEnableEXT = (PFN_vkCmdSetAlphaToCoverageEnableEXT)gipa(instance, "vkCmdSetAlphaToCoverageEnableEXT");
|
|
dt->vkCmdSetAlphaToOneEnableEXT = (PFN_vkCmdSetAlphaToOneEnableEXT)gipa(instance, "vkCmdSetAlphaToOneEnableEXT");
|
|
dt->vkCmdSetAttachmentFeedbackLoopEnableEXT = (PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT)gipa(instance, "vkCmdSetAttachmentFeedbackLoopEnableEXT");
|
|
dt->vkCmdSetBlendConstants = (PFN_vkCmdSetBlendConstants)gipa(instance, "vkCmdSetBlendConstants");
|
|
dt->vkCmdSetColorBlendAdvancedEXT = (PFN_vkCmdSetColorBlendAdvancedEXT)gipa(instance, "vkCmdSetColorBlendAdvancedEXT");
|
|
dt->vkCmdSetColorBlendEnableEXT = (PFN_vkCmdSetColorBlendEnableEXT)gipa(instance, "vkCmdSetColorBlendEnableEXT");
|
|
dt->vkCmdSetColorBlendEquationEXT = (PFN_vkCmdSetColorBlendEquationEXT)gipa(instance, "vkCmdSetColorBlendEquationEXT");
|
|
dt->vkCmdSetColorWriteEnableEXT = (PFN_vkCmdSetColorWriteEnableEXT)gipa(instance, "vkCmdSetColorWriteEnableEXT");
|
|
dt->vkCmdSetColorWriteMaskEXT = (PFN_vkCmdSetColorWriteMaskEXT)gipa(instance, "vkCmdSetColorWriteMaskEXT");
|
|
dt->vkCmdSetConservativeRasterizationModeEXT = (PFN_vkCmdSetConservativeRasterizationModeEXT)gipa(instance, "vkCmdSetConservativeRasterizationModeEXT");
|
|
dt->vkCmdSetCullMode = (PFN_vkCmdSetCullMode)gipa(instance, "vkCmdSetCullMode");
|
|
if (!dt->vkCmdSetCullMode) dt->vkCmdSetCullMode = (PFN_vkCmdSetCullMode)gipa(instance, "vkCmdSetCullModeEXT");
|
|
dt->vkCmdSetDepthBias = (PFN_vkCmdSetDepthBias)gipa(instance, "vkCmdSetDepthBias");
|
|
dt->vkCmdSetDepthBias2EXT = (PFN_vkCmdSetDepthBias2EXT)gipa(instance, "vkCmdSetDepthBias2EXT");
|
|
dt->vkCmdSetDepthBiasEnable = (PFN_vkCmdSetDepthBiasEnable)gipa(instance, "vkCmdSetDepthBiasEnable");
|
|
if (!dt->vkCmdSetDepthBiasEnable) dt->vkCmdSetDepthBiasEnable = (PFN_vkCmdSetDepthBiasEnable)gipa(instance, "vkCmdSetDepthBiasEnableEXT");
|
|
dt->vkCmdSetDepthBounds = (PFN_vkCmdSetDepthBounds)gipa(instance, "vkCmdSetDepthBounds");
|
|
dt->vkCmdSetDepthBoundsTestEnable = (PFN_vkCmdSetDepthBoundsTestEnable)gipa(instance, "vkCmdSetDepthBoundsTestEnable");
|
|
if (!dt->vkCmdSetDepthBoundsTestEnable) dt->vkCmdSetDepthBoundsTestEnable = (PFN_vkCmdSetDepthBoundsTestEnable)gipa(instance, "vkCmdSetDepthBoundsTestEnableEXT");
|
|
dt->vkCmdSetDepthClampEnableEXT = (PFN_vkCmdSetDepthClampEnableEXT)gipa(instance, "vkCmdSetDepthClampEnableEXT");
|
|
dt->vkCmdSetDepthClampRangeEXT = (PFN_vkCmdSetDepthClampRangeEXT)gipa(instance, "vkCmdSetDepthClampRangeEXT");
|
|
dt->vkCmdSetDepthClipEnableEXT = (PFN_vkCmdSetDepthClipEnableEXT)gipa(instance, "vkCmdSetDepthClipEnableEXT");
|
|
dt->vkCmdSetDepthClipNegativeOneToOneEXT = (PFN_vkCmdSetDepthClipNegativeOneToOneEXT)gipa(instance, "vkCmdSetDepthClipNegativeOneToOneEXT");
|
|
dt->vkCmdSetDepthCompareOp = (PFN_vkCmdSetDepthCompareOp)gipa(instance, "vkCmdSetDepthCompareOp");
|
|
if (!dt->vkCmdSetDepthCompareOp) dt->vkCmdSetDepthCompareOp = (PFN_vkCmdSetDepthCompareOp)gipa(instance, "vkCmdSetDepthCompareOpEXT");
|
|
dt->vkCmdSetDepthTestEnable = (PFN_vkCmdSetDepthTestEnable)gipa(instance, "vkCmdSetDepthTestEnable");
|
|
if (!dt->vkCmdSetDepthTestEnable) dt->vkCmdSetDepthTestEnable = (PFN_vkCmdSetDepthTestEnable)gipa(instance, "vkCmdSetDepthTestEnableEXT");
|
|
dt->vkCmdSetDepthWriteEnable = (PFN_vkCmdSetDepthWriteEnable)gipa(instance, "vkCmdSetDepthWriteEnable");
|
|
if (!dt->vkCmdSetDepthWriteEnable) dt->vkCmdSetDepthWriteEnable = (PFN_vkCmdSetDepthWriteEnable)gipa(instance, "vkCmdSetDepthWriteEnableEXT");
|
|
dt->vkCmdSetDeviceMask = (PFN_vkCmdSetDeviceMask)gipa(instance, "vkCmdSetDeviceMask");
|
|
if (!dt->vkCmdSetDeviceMask) dt->vkCmdSetDeviceMask = (PFN_vkCmdSetDeviceMask)gipa(instance, "vkCmdSetDeviceMaskKHR");
|
|
dt->vkCmdSetDiscardRectangleEXT = (PFN_vkCmdSetDiscardRectangleEXT)gipa(instance, "vkCmdSetDiscardRectangleEXT");
|
|
dt->vkCmdSetDiscardRectangleEnableEXT = (PFN_vkCmdSetDiscardRectangleEnableEXT)gipa(instance, "vkCmdSetDiscardRectangleEnableEXT");
|
|
dt->vkCmdSetDiscardRectangleModeEXT = (PFN_vkCmdSetDiscardRectangleModeEXT)gipa(instance, "vkCmdSetDiscardRectangleModeEXT");
|
|
dt->vkCmdSetEvent = (PFN_vkCmdSetEvent)gipa(instance, "vkCmdSetEvent");
|
|
dt->vkCmdSetEvent2 = (PFN_vkCmdSetEvent2)gipa(instance, "vkCmdSetEvent2");
|
|
if (!dt->vkCmdSetEvent2) dt->vkCmdSetEvent2 = (PFN_vkCmdSetEvent2)gipa(instance, "vkCmdSetEvent2KHR");
|
|
dt->vkCmdSetExtraPrimitiveOverestimationSizeEXT = (PFN_vkCmdSetExtraPrimitiveOverestimationSizeEXT)gipa(instance, "vkCmdSetExtraPrimitiveOverestimationSizeEXT");
|
|
dt->vkCmdSetFragmentShadingRateKHR = (PFN_vkCmdSetFragmentShadingRateKHR)gipa(instance, "vkCmdSetFragmentShadingRateKHR");
|
|
dt->vkCmdSetFrontFace = (PFN_vkCmdSetFrontFace)gipa(instance, "vkCmdSetFrontFace");
|
|
if (!dt->vkCmdSetFrontFace) dt->vkCmdSetFrontFace = (PFN_vkCmdSetFrontFace)gipa(instance, "vkCmdSetFrontFaceEXT");
|
|
dt->vkCmdSetLineRasterizationModeEXT = (PFN_vkCmdSetLineRasterizationModeEXT)gipa(instance, "vkCmdSetLineRasterizationModeEXT");
|
|
dt->vkCmdSetLineStipple = (PFN_vkCmdSetLineStipple)gipa(instance, "vkCmdSetLineStipple");
|
|
if (!dt->vkCmdSetLineStipple) dt->vkCmdSetLineStipple = (PFN_vkCmdSetLineStipple)gipa(instance, "vkCmdSetLineStippleEXT");
|
|
if (!dt->vkCmdSetLineStipple) dt->vkCmdSetLineStipple = (PFN_vkCmdSetLineStipple)gipa(instance, "vkCmdSetLineStippleKHR");
|
|
dt->vkCmdSetLineStippleEnableEXT = (PFN_vkCmdSetLineStippleEnableEXT)gipa(instance, "vkCmdSetLineStippleEnableEXT");
|
|
dt->vkCmdSetLineWidth = (PFN_vkCmdSetLineWidth)gipa(instance, "vkCmdSetLineWidth");
|
|
dt->vkCmdSetLogicOpEXT = (PFN_vkCmdSetLogicOpEXT)gipa(instance, "vkCmdSetLogicOpEXT");
|
|
dt->vkCmdSetLogicOpEnableEXT = (PFN_vkCmdSetLogicOpEnableEXT)gipa(instance, "vkCmdSetLogicOpEnableEXT");
|
|
dt->vkCmdSetPatchControlPointsEXT = (PFN_vkCmdSetPatchControlPointsEXT)gipa(instance, "vkCmdSetPatchControlPointsEXT");
|
|
dt->vkCmdSetPolygonModeEXT = (PFN_vkCmdSetPolygonModeEXT)gipa(instance, "vkCmdSetPolygonModeEXT");
|
|
dt->vkCmdSetPrimitiveRestartEnable = (PFN_vkCmdSetPrimitiveRestartEnable)gipa(instance, "vkCmdSetPrimitiveRestartEnable");
|
|
if (!dt->vkCmdSetPrimitiveRestartEnable) dt->vkCmdSetPrimitiveRestartEnable = (PFN_vkCmdSetPrimitiveRestartEnable)gipa(instance, "vkCmdSetPrimitiveRestartEnableEXT");
|
|
dt->vkCmdSetPrimitiveTopology = (PFN_vkCmdSetPrimitiveTopology)gipa(instance, "vkCmdSetPrimitiveTopology");
|
|
if (!dt->vkCmdSetPrimitiveTopology) dt->vkCmdSetPrimitiveTopology = (PFN_vkCmdSetPrimitiveTopology)gipa(instance, "vkCmdSetPrimitiveTopologyEXT");
|
|
dt->vkCmdSetProvokingVertexModeEXT = (PFN_vkCmdSetProvokingVertexModeEXT)gipa(instance, "vkCmdSetProvokingVertexModeEXT");
|
|
dt->vkCmdSetRasterizationSamplesEXT = (PFN_vkCmdSetRasterizationSamplesEXT)gipa(instance, "vkCmdSetRasterizationSamplesEXT");
|
|
dt->vkCmdSetRasterizationStreamEXT = (PFN_vkCmdSetRasterizationStreamEXT)gipa(instance, "vkCmdSetRasterizationStreamEXT");
|
|
dt->vkCmdSetRasterizerDiscardEnable = (PFN_vkCmdSetRasterizerDiscardEnable)gipa(instance, "vkCmdSetRasterizerDiscardEnable");
|
|
if (!dt->vkCmdSetRasterizerDiscardEnable) dt->vkCmdSetRasterizerDiscardEnable = (PFN_vkCmdSetRasterizerDiscardEnable)gipa(instance, "vkCmdSetRasterizerDiscardEnableEXT");
|
|
dt->vkCmdSetRenderingAttachmentLocations = (PFN_vkCmdSetRenderingAttachmentLocations)gipa(instance, "vkCmdSetRenderingAttachmentLocations");
|
|
if (!dt->vkCmdSetRenderingAttachmentLocations) dt->vkCmdSetRenderingAttachmentLocations = (PFN_vkCmdSetRenderingAttachmentLocations)gipa(instance, "vkCmdSetRenderingAttachmentLocationsKHR");
|
|
dt->vkCmdSetRenderingInputAttachmentIndices = (PFN_vkCmdSetRenderingInputAttachmentIndices)gipa(instance, "vkCmdSetRenderingInputAttachmentIndices");
|
|
if (!dt->vkCmdSetRenderingInputAttachmentIndices) dt->vkCmdSetRenderingInputAttachmentIndices = (PFN_vkCmdSetRenderingInputAttachmentIndices)gipa(instance, "vkCmdSetRenderingInputAttachmentIndicesKHR");
|
|
dt->vkCmdSetSampleLocationsEXT = (PFN_vkCmdSetSampleLocationsEXT)gipa(instance, "vkCmdSetSampleLocationsEXT");
|
|
dt->vkCmdSetSampleLocationsEnableEXT = (PFN_vkCmdSetSampleLocationsEnableEXT)gipa(instance, "vkCmdSetSampleLocationsEnableEXT");
|
|
dt->vkCmdSetSampleMaskEXT = (PFN_vkCmdSetSampleMaskEXT)gipa(instance, "vkCmdSetSampleMaskEXT");
|
|
dt->vkCmdSetScissor = (PFN_vkCmdSetScissor)gipa(instance, "vkCmdSetScissor");
|
|
dt->vkCmdSetScissorWithCount = (PFN_vkCmdSetScissorWithCount)gipa(instance, "vkCmdSetScissorWithCount");
|
|
if (!dt->vkCmdSetScissorWithCount) dt->vkCmdSetScissorWithCount = (PFN_vkCmdSetScissorWithCount)gipa(instance, "vkCmdSetScissorWithCountEXT");
|
|
dt->vkCmdSetStencilCompareMask = (PFN_vkCmdSetStencilCompareMask)gipa(instance, "vkCmdSetStencilCompareMask");
|
|
dt->vkCmdSetStencilOp = (PFN_vkCmdSetStencilOp)gipa(instance, "vkCmdSetStencilOp");
|
|
if (!dt->vkCmdSetStencilOp) dt->vkCmdSetStencilOp = (PFN_vkCmdSetStencilOp)gipa(instance, "vkCmdSetStencilOpEXT");
|
|
dt->vkCmdSetStencilReference = (PFN_vkCmdSetStencilReference)gipa(instance, "vkCmdSetStencilReference");
|
|
dt->vkCmdSetStencilTestEnable = (PFN_vkCmdSetStencilTestEnable)gipa(instance, "vkCmdSetStencilTestEnable");
|
|
if (!dt->vkCmdSetStencilTestEnable) dt->vkCmdSetStencilTestEnable = (PFN_vkCmdSetStencilTestEnable)gipa(instance, "vkCmdSetStencilTestEnableEXT");
|
|
dt->vkCmdSetStencilWriteMask = (PFN_vkCmdSetStencilWriteMask)gipa(instance, "vkCmdSetStencilWriteMask");
|
|
dt->vkCmdSetTessellationDomainOriginEXT = (PFN_vkCmdSetTessellationDomainOriginEXT)gipa(instance, "vkCmdSetTessellationDomainOriginEXT");
|
|
dt->vkCmdSetVertexInputEXT = (PFN_vkCmdSetVertexInputEXT)gipa(instance, "vkCmdSetVertexInputEXT");
|
|
dt->vkCmdSetViewport = (PFN_vkCmdSetViewport)gipa(instance, "vkCmdSetViewport");
|
|
dt->vkCmdSetViewportWithCount = (PFN_vkCmdSetViewportWithCount)gipa(instance, "vkCmdSetViewportWithCount");
|
|
if (!dt->vkCmdSetViewportWithCount) dt->vkCmdSetViewportWithCount = (PFN_vkCmdSetViewportWithCount)gipa(instance, "vkCmdSetViewportWithCountEXT");
|
|
dt->vkCmdUpdateBuffer = (PFN_vkCmdUpdateBuffer)gipa(instance, "vkCmdUpdateBuffer");
|
|
dt->vkCmdWaitEvents = (PFN_vkCmdWaitEvents)gipa(instance, "vkCmdWaitEvents");
|
|
dt->vkCmdWaitEvents2 = (PFN_vkCmdWaitEvents2)gipa(instance, "vkCmdWaitEvents2");
|
|
if (!dt->vkCmdWaitEvents2) dt->vkCmdWaitEvents2 = (PFN_vkCmdWaitEvents2)gipa(instance, "vkCmdWaitEvents2KHR");
|
|
dt->vkCmdWriteTimestamp = (PFN_vkCmdWriteTimestamp)gipa(instance, "vkCmdWriteTimestamp");
|
|
dt->vkCmdWriteTimestamp2 = (PFN_vkCmdWriteTimestamp2)gipa(instance, "vkCmdWriteTimestamp2");
|
|
if (!dt->vkCmdWriteTimestamp2) dt->vkCmdWriteTimestamp2 = (PFN_vkCmdWriteTimestamp2)gipa(instance, "vkCmdWriteTimestamp2KHR");
|
|
dt->vkCreateBuffer = (PFN_vkCreateBuffer)gipa(instance, "vkCreateBuffer");
|
|
dt->vkCreateBufferView = (PFN_vkCreateBufferView)gipa(instance, "vkCreateBufferView");
|
|
dt->vkCreateCommandPool = (PFN_vkCreateCommandPool)gipa(instance, "vkCreateCommandPool");
|
|
dt->vkCreateComputePipelines = (PFN_vkCreateComputePipelines)gipa(instance, "vkCreateComputePipelines");
|
|
dt->vkCreateDescriptorPool = (PFN_vkCreateDescriptorPool)gipa(instance, "vkCreateDescriptorPool");
|
|
dt->vkCreateDescriptorSetLayout = (PFN_vkCreateDescriptorSetLayout)gipa(instance, "vkCreateDescriptorSetLayout");
|
|
dt->vkCreateDescriptorUpdateTemplate = (PFN_vkCreateDescriptorUpdateTemplate)gipa(instance, "vkCreateDescriptorUpdateTemplate");
|
|
if (!dt->vkCreateDescriptorUpdateTemplate) dt->vkCreateDescriptorUpdateTemplate = (PFN_vkCreateDescriptorUpdateTemplate)gipa(instance, "vkCreateDescriptorUpdateTemplateKHR");
|
|
dt->vkCreateDevice = (PFN_vkCreateDevice)gipa(instance, "vkCreateDevice");
|
|
dt->vkCreateEvent = (PFN_vkCreateEvent)gipa(instance, "vkCreateEvent");
|
|
dt->vkCreateFence = (PFN_vkCreateFence)gipa(instance, "vkCreateFence");
|
|
dt->vkCreateFramebuffer = (PFN_vkCreateFramebuffer)gipa(instance, "vkCreateFramebuffer");
|
|
dt->vkCreateGraphicsPipelines = (PFN_vkCreateGraphicsPipelines)gipa(instance, "vkCreateGraphicsPipelines");
|
|
dt->vkCreateImage = (PFN_vkCreateImage)gipa(instance, "vkCreateImage");
|
|
dt->vkCreateImageView = (PFN_vkCreateImageView)gipa(instance, "vkCreateImageView");
|
|
dt->vkCreateInstance = (PFN_vkCreateInstance)gipa(instance, "vkCreateInstance");
|
|
dt->vkCreatePipelineCache = (PFN_vkCreatePipelineCache)gipa(instance, "vkCreatePipelineCache");
|
|
dt->vkCreatePipelineLayout = (PFN_vkCreatePipelineLayout)gipa(instance, "vkCreatePipelineLayout");
|
|
dt->vkCreateQueryPool = (PFN_vkCreateQueryPool)gipa(instance, "vkCreateQueryPool");
|
|
dt->vkCreateRenderPass = (PFN_vkCreateRenderPass)gipa(instance, "vkCreateRenderPass");
|
|
dt->vkCreateRenderPass2 = (PFN_vkCreateRenderPass2)gipa(instance, "vkCreateRenderPass2");
|
|
if (!dt->vkCreateRenderPass2) dt->vkCreateRenderPass2 = (PFN_vkCreateRenderPass2)gipa(instance, "vkCreateRenderPass2KHR");
|
|
dt->vkCreateSampler = (PFN_vkCreateSampler)gipa(instance, "vkCreateSampler");
|
|
dt->vkCreateSamplerYcbcrConversion = (PFN_vkCreateSamplerYcbcrConversion)gipa(instance, "vkCreateSamplerYcbcrConversion");
|
|
if (!dt->vkCreateSamplerYcbcrConversion) dt->vkCreateSamplerYcbcrConversion = (PFN_vkCreateSamplerYcbcrConversion)gipa(instance, "vkCreateSamplerYcbcrConversionKHR");
|
|
dt->vkCreateSemaphore = (PFN_vkCreateSemaphore)gipa(instance, "vkCreateSemaphore");
|
|
dt->vkCreateShaderModule = (PFN_vkCreateShaderModule)gipa(instance, "vkCreateShaderModule");
|
|
dt->vkCreateTensorARM = (PFN_vkCreateTensorARM)gipa(instance, "vkCreateTensorARM");
|
|
dt->vkCreateTensorViewARM = (PFN_vkCreateTensorViewARM)gipa(instance, "vkCreateTensorViewARM");
|
|
dt->vkDestroyBuffer = (PFN_vkDestroyBuffer)gipa(instance, "vkDestroyBuffer");
|
|
dt->vkDestroyBufferView = (PFN_vkDestroyBufferView)gipa(instance, "vkDestroyBufferView");
|
|
dt->vkDestroyCommandPool = (PFN_vkDestroyCommandPool)gipa(instance, "vkDestroyCommandPool");
|
|
dt->vkDestroyDescriptorPool = (PFN_vkDestroyDescriptorPool)gipa(instance, "vkDestroyDescriptorPool");
|
|
dt->vkDestroyDescriptorSetLayout = (PFN_vkDestroyDescriptorSetLayout)gipa(instance, "vkDestroyDescriptorSetLayout");
|
|
dt->vkDestroyDescriptorUpdateTemplate = (PFN_vkDestroyDescriptorUpdateTemplate)gipa(instance, "vkDestroyDescriptorUpdateTemplate");
|
|
if (!dt->vkDestroyDescriptorUpdateTemplate) dt->vkDestroyDescriptorUpdateTemplate = (PFN_vkDestroyDescriptorUpdateTemplate)gipa(instance, "vkDestroyDescriptorUpdateTemplateKHR");
|
|
dt->vkDestroyDevice = (PFN_vkDestroyDevice)gipa(instance, "vkDestroyDevice");
|
|
dt->vkDestroyEvent = (PFN_vkDestroyEvent)gipa(instance, "vkDestroyEvent");
|
|
dt->vkDestroyFence = (PFN_vkDestroyFence)gipa(instance, "vkDestroyFence");
|
|
dt->vkDestroyFramebuffer = (PFN_vkDestroyFramebuffer)gipa(instance, "vkDestroyFramebuffer");
|
|
dt->vkDestroyImage = (PFN_vkDestroyImage)gipa(instance, "vkDestroyImage");
|
|
dt->vkDestroyImageView = (PFN_vkDestroyImageView)gipa(instance, "vkDestroyImageView");
|
|
dt->vkDestroyInstance = (PFN_vkDestroyInstance)gipa(instance, "vkDestroyInstance");
|
|
dt->vkDestroyPipeline = (PFN_vkDestroyPipeline)gipa(instance, "vkDestroyPipeline");
|
|
dt->vkDestroyPipelineCache = (PFN_vkDestroyPipelineCache)gipa(instance, "vkDestroyPipelineCache");
|
|
dt->vkDestroyPipelineLayout = (PFN_vkDestroyPipelineLayout)gipa(instance, "vkDestroyPipelineLayout");
|
|
dt->vkDestroyQueryPool = (PFN_vkDestroyQueryPool)gipa(instance, "vkDestroyQueryPool");
|
|
dt->vkDestroyRenderPass = (PFN_vkDestroyRenderPass)gipa(instance, "vkDestroyRenderPass");
|
|
dt->vkDestroySampler = (PFN_vkDestroySampler)gipa(instance, "vkDestroySampler");
|
|
dt->vkDestroySamplerYcbcrConversion = (PFN_vkDestroySamplerYcbcrConversion)gipa(instance, "vkDestroySamplerYcbcrConversion");
|
|
if (!dt->vkDestroySamplerYcbcrConversion) dt->vkDestroySamplerYcbcrConversion = (PFN_vkDestroySamplerYcbcrConversion)gipa(instance, "vkDestroySamplerYcbcrConversionKHR");
|
|
dt->vkDestroySemaphore = (PFN_vkDestroySemaphore)gipa(instance, "vkDestroySemaphore");
|
|
dt->vkDestroyShaderModule = (PFN_vkDestroyShaderModule)gipa(instance, "vkDestroyShaderModule");
|
|
dt->vkDestroyTensorARM = (PFN_vkDestroyTensorARM)gipa(instance, "vkDestroyTensorARM");
|
|
dt->vkDestroyTensorViewARM = (PFN_vkDestroyTensorViewARM)gipa(instance, "vkDestroyTensorViewARM");
|
|
dt->vkDeviceWaitIdle = (PFN_vkDeviceWaitIdle)gipa(instance, "vkDeviceWaitIdle");
|
|
dt->vkEndCommandBuffer = (PFN_vkEndCommandBuffer)gipa(instance, "vkEndCommandBuffer");
|
|
dt->vkEnumerateDeviceExtensionProperties = (PFN_vkEnumerateDeviceExtensionProperties)gipa(instance, "vkEnumerateDeviceExtensionProperties");
|
|
dt->vkEnumerateInstanceExtensionProperties = (PFN_vkEnumerateInstanceExtensionProperties)gipa(instance, "vkEnumerateInstanceExtensionProperties");
|
|
dt->vkEnumerateInstanceLayerProperties = (PFN_vkEnumerateInstanceLayerProperties)gipa(instance, "vkEnumerateInstanceLayerProperties");
|
|
dt->vkEnumerateInstanceVersion = (PFN_vkEnumerateInstanceVersion)gipa(instance, "vkEnumerateInstanceVersion");
|
|
dt->vkEnumeratePhysicalDeviceGroups = (PFN_vkEnumeratePhysicalDeviceGroups)gipa(instance, "vkEnumeratePhysicalDeviceGroups");
|
|
if (!dt->vkEnumeratePhysicalDeviceGroups) dt->vkEnumeratePhysicalDeviceGroups = (PFN_vkEnumeratePhysicalDeviceGroups)gipa(instance, "vkEnumeratePhysicalDeviceGroupsKHR");
|
|
dt->vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM = (PFN_vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM)gipa(instance, "vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM");
|
|
dt->vkEnumeratePhysicalDevices = (PFN_vkEnumeratePhysicalDevices)gipa(instance, "vkEnumeratePhysicalDevices");
|
|
dt->vkFlushMappedMemoryRanges = (PFN_vkFlushMappedMemoryRanges)gipa(instance, "vkFlushMappedMemoryRanges");
|
|
dt->vkFreeCommandBuffers = (PFN_vkFreeCommandBuffers)gipa(instance, "vkFreeCommandBuffers");
|
|
dt->vkFreeDescriptorSets = (PFN_vkFreeDescriptorSets)gipa(instance, "vkFreeDescriptorSets");
|
|
dt->vkFreeMemory = (PFN_vkFreeMemory)gipa(instance, "vkFreeMemory");
|
|
dt->vkGetBufferDeviceAddress = (PFN_vkGetBufferDeviceAddress)gipa(instance, "vkGetBufferDeviceAddress");
|
|
if (!dt->vkGetBufferDeviceAddress) dt->vkGetBufferDeviceAddress = (PFN_vkGetBufferDeviceAddress)gipa(instance, "vkGetBufferDeviceAddressEXT");
|
|
if (!dt->vkGetBufferDeviceAddress) dt->vkGetBufferDeviceAddress = (PFN_vkGetBufferDeviceAddress)gipa(instance, "vkGetBufferDeviceAddressKHR");
|
|
dt->vkGetBufferMemoryRequirements = (PFN_vkGetBufferMemoryRequirements)gipa(instance, "vkGetBufferMemoryRequirements");
|
|
dt->vkGetBufferMemoryRequirements2 = (PFN_vkGetBufferMemoryRequirements2)gipa(instance, "vkGetBufferMemoryRequirements2");
|
|
if (!dt->vkGetBufferMemoryRequirements2) dt->vkGetBufferMemoryRequirements2 = (PFN_vkGetBufferMemoryRequirements2)gipa(instance, "vkGetBufferMemoryRequirements2KHR");
|
|
dt->vkGetBufferOpaqueCaptureAddress = (PFN_vkGetBufferOpaqueCaptureAddress)gipa(instance, "vkGetBufferOpaqueCaptureAddress");
|
|
if (!dt->vkGetBufferOpaqueCaptureAddress) dt->vkGetBufferOpaqueCaptureAddress = (PFN_vkGetBufferOpaqueCaptureAddress)gipa(instance, "vkGetBufferOpaqueCaptureAddressKHR");
|
|
dt->vkGetCalibratedTimestampsKHR = (PFN_vkGetCalibratedTimestampsKHR)gipa(instance, "vkGetCalibratedTimestampsKHR");
|
|
if (!dt->vkGetCalibratedTimestampsKHR) dt->vkGetCalibratedTimestampsKHR = (PFN_vkGetCalibratedTimestampsKHR)gipa(instance, "vkGetCalibratedTimestampsEXT");
|
|
dt->vkGetDescriptorSetLayoutSupport = (PFN_vkGetDescriptorSetLayoutSupport)gipa(instance, "vkGetDescriptorSetLayoutSupport");
|
|
if (!dt->vkGetDescriptorSetLayoutSupport) dt->vkGetDescriptorSetLayoutSupport = (PFN_vkGetDescriptorSetLayoutSupport)gipa(instance, "vkGetDescriptorSetLayoutSupportKHR");
|
|
dt->vkGetDeviceBufferMemoryRequirements = (PFN_vkGetDeviceBufferMemoryRequirements)gipa(instance, "vkGetDeviceBufferMemoryRequirements");
|
|
if (!dt->vkGetDeviceBufferMemoryRequirements) dt->vkGetDeviceBufferMemoryRequirements = (PFN_vkGetDeviceBufferMemoryRequirements)gipa(instance, "vkGetDeviceBufferMemoryRequirementsKHR");
|
|
dt->vkGetDeviceGroupPeerMemoryFeatures = (PFN_vkGetDeviceGroupPeerMemoryFeatures)gipa(instance, "vkGetDeviceGroupPeerMemoryFeatures");
|
|
if (!dt->vkGetDeviceGroupPeerMemoryFeatures) dt->vkGetDeviceGroupPeerMemoryFeatures = (PFN_vkGetDeviceGroupPeerMemoryFeatures)gipa(instance, "vkGetDeviceGroupPeerMemoryFeaturesKHR");
|
|
dt->vkGetDeviceImageMemoryRequirements = (PFN_vkGetDeviceImageMemoryRequirements)gipa(instance, "vkGetDeviceImageMemoryRequirements");
|
|
if (!dt->vkGetDeviceImageMemoryRequirements) dt->vkGetDeviceImageMemoryRequirements = (PFN_vkGetDeviceImageMemoryRequirements)gipa(instance, "vkGetDeviceImageMemoryRequirementsKHR");
|
|
dt->vkGetDeviceImageSparseMemoryRequirements = (PFN_vkGetDeviceImageSparseMemoryRequirements)gipa(instance, "vkGetDeviceImageSparseMemoryRequirements");
|
|
if (!dt->vkGetDeviceImageSparseMemoryRequirements) dt->vkGetDeviceImageSparseMemoryRequirements = (PFN_vkGetDeviceImageSparseMemoryRequirements)gipa(instance, "vkGetDeviceImageSparseMemoryRequirementsKHR");
|
|
dt->vkGetDeviceImageSubresourceLayout = (PFN_vkGetDeviceImageSubresourceLayout)gipa(instance, "vkGetDeviceImageSubresourceLayout");
|
|
if (!dt->vkGetDeviceImageSubresourceLayout) dt->vkGetDeviceImageSubresourceLayout = (PFN_vkGetDeviceImageSubresourceLayout)gipa(instance, "vkGetDeviceImageSubresourceLayoutKHR");
|
|
dt->vkGetDeviceMemoryCommitment = (PFN_vkGetDeviceMemoryCommitment)gipa(instance, "vkGetDeviceMemoryCommitment");
|
|
dt->vkGetDeviceMemoryOpaqueCaptureAddress = (PFN_vkGetDeviceMemoryOpaqueCaptureAddress)gipa(instance, "vkGetDeviceMemoryOpaqueCaptureAddress");
|
|
if (!dt->vkGetDeviceMemoryOpaqueCaptureAddress) dt->vkGetDeviceMemoryOpaqueCaptureAddress = (PFN_vkGetDeviceMemoryOpaqueCaptureAddress)gipa(instance, "vkGetDeviceMemoryOpaqueCaptureAddressKHR");
|
|
dt->vkGetDeviceQueue = (PFN_vkGetDeviceQueue)gipa(instance, "vkGetDeviceQueue");
|
|
dt->vkGetDeviceQueue2 = (PFN_vkGetDeviceQueue2)gipa(instance, "vkGetDeviceQueue2");
|
|
dt->vkGetDeviceTensorMemoryRequirementsARM = (PFN_vkGetDeviceTensorMemoryRequirementsARM)gipa(instance, "vkGetDeviceTensorMemoryRequirementsARM");
|
|
dt->vkGetEventStatus = (PFN_vkGetEventStatus)gipa(instance, "vkGetEventStatus");
|
|
dt->vkGetFenceFdKHR = (PFN_vkGetFenceFdKHR)gipa(instance, "vkGetFenceFdKHR");
|
|
dt->vkGetFenceStatus = (PFN_vkGetFenceStatus)gipa(instance, "vkGetFenceStatus");
|
|
dt->vkGetImageDrmFormatModifierPropertiesEXT = (PFN_vkGetImageDrmFormatModifierPropertiesEXT)gipa(instance, "vkGetImageDrmFormatModifierPropertiesEXT");
|
|
dt->vkGetImageMemoryRequirements = (PFN_vkGetImageMemoryRequirements)gipa(instance, "vkGetImageMemoryRequirements");
|
|
dt->vkGetImageMemoryRequirements2 = (PFN_vkGetImageMemoryRequirements2)gipa(instance, "vkGetImageMemoryRequirements2");
|
|
if (!dt->vkGetImageMemoryRequirements2) dt->vkGetImageMemoryRequirements2 = (PFN_vkGetImageMemoryRequirements2)gipa(instance, "vkGetImageMemoryRequirements2KHR");
|
|
dt->vkGetImageSparseMemoryRequirements = (PFN_vkGetImageSparseMemoryRequirements)gipa(instance, "vkGetImageSparseMemoryRequirements");
|
|
dt->vkGetImageSparseMemoryRequirements2 = (PFN_vkGetImageSparseMemoryRequirements2)gipa(instance, "vkGetImageSparseMemoryRequirements2");
|
|
if (!dt->vkGetImageSparseMemoryRequirements2) dt->vkGetImageSparseMemoryRequirements2 = (PFN_vkGetImageSparseMemoryRequirements2)gipa(instance, "vkGetImageSparseMemoryRequirements2KHR");
|
|
dt->vkGetImageSubresourceLayout = (PFN_vkGetImageSubresourceLayout)gipa(instance, "vkGetImageSubresourceLayout");
|
|
dt->vkGetImageSubresourceLayout2 = (PFN_vkGetImageSubresourceLayout2)gipa(instance, "vkGetImageSubresourceLayout2");
|
|
if (!dt->vkGetImageSubresourceLayout2) dt->vkGetImageSubresourceLayout2 = (PFN_vkGetImageSubresourceLayout2)gipa(instance, "vkGetImageSubresourceLayout2EXT");
|
|
if (!dt->vkGetImageSubresourceLayout2) dt->vkGetImageSubresourceLayout2 = (PFN_vkGetImageSubresourceLayout2)gipa(instance, "vkGetImageSubresourceLayout2KHR");
|
|
dt->vkGetMemoryFdKHR = (PFN_vkGetMemoryFdKHR)gipa(instance, "vkGetMemoryFdKHR");
|
|
dt->vkGetMemoryFdPropertiesKHR = (PFN_vkGetMemoryFdPropertiesKHR)gipa(instance, "vkGetMemoryFdPropertiesKHR");
|
|
dt->vkGetMemoryHostPointerPropertiesEXT = (PFN_vkGetMemoryHostPointerPropertiesEXT)gipa(instance, "vkGetMemoryHostPointerPropertiesEXT");
|
|
dt->vkGetPhysicalDeviceCalibrateableTimeDomainsKHR = (PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsKHR)gipa(instance, "vkGetPhysicalDeviceCalibrateableTimeDomainsKHR");
|
|
if (!dt->vkGetPhysicalDeviceCalibrateableTimeDomainsKHR) dt->vkGetPhysicalDeviceCalibrateableTimeDomainsKHR = (PFN_vkGetPhysicalDeviceCalibrateableTimeDomainsKHR)gipa(instance, "vkGetPhysicalDeviceCalibrateableTimeDomainsEXT");
|
|
dt->vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR = (PFN_vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR)gipa(instance, "vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR");
|
|
dt->vkGetPhysicalDeviceExternalBufferProperties = (PFN_vkGetPhysicalDeviceExternalBufferProperties)gipa(instance, "vkGetPhysicalDeviceExternalBufferProperties");
|
|
if (!dt->vkGetPhysicalDeviceExternalBufferProperties) dt->vkGetPhysicalDeviceExternalBufferProperties = (PFN_vkGetPhysicalDeviceExternalBufferProperties)gipa(instance, "vkGetPhysicalDeviceExternalBufferPropertiesKHR");
|
|
dt->vkGetPhysicalDeviceExternalFenceProperties = (PFN_vkGetPhysicalDeviceExternalFenceProperties)gipa(instance, "vkGetPhysicalDeviceExternalFenceProperties");
|
|
if (!dt->vkGetPhysicalDeviceExternalFenceProperties) dt->vkGetPhysicalDeviceExternalFenceProperties = (PFN_vkGetPhysicalDeviceExternalFenceProperties)gipa(instance, "vkGetPhysicalDeviceExternalFencePropertiesKHR");
|
|
dt->vkGetPhysicalDeviceExternalSemaphoreProperties = (PFN_vkGetPhysicalDeviceExternalSemaphoreProperties)gipa(instance, "vkGetPhysicalDeviceExternalSemaphoreProperties");
|
|
if (!dt->vkGetPhysicalDeviceExternalSemaphoreProperties) dt->vkGetPhysicalDeviceExternalSemaphoreProperties = (PFN_vkGetPhysicalDeviceExternalSemaphoreProperties)gipa(instance, "vkGetPhysicalDeviceExternalSemaphorePropertiesKHR");
|
|
dt->vkGetPhysicalDeviceExternalTensorPropertiesARM = (PFN_vkGetPhysicalDeviceExternalTensorPropertiesARM)gipa(instance, "vkGetPhysicalDeviceExternalTensorPropertiesARM");
|
|
dt->vkGetPhysicalDeviceFeatures = (PFN_vkGetPhysicalDeviceFeatures)gipa(instance, "vkGetPhysicalDeviceFeatures");
|
|
dt->vkGetPhysicalDeviceFeatures2 = (PFN_vkGetPhysicalDeviceFeatures2)gipa(instance, "vkGetPhysicalDeviceFeatures2");
|
|
if (!dt->vkGetPhysicalDeviceFeatures2) dt->vkGetPhysicalDeviceFeatures2 = (PFN_vkGetPhysicalDeviceFeatures2)gipa(instance, "vkGetPhysicalDeviceFeatures2KHR");
|
|
dt->vkGetPhysicalDeviceFormatProperties = (PFN_vkGetPhysicalDeviceFormatProperties)gipa(instance, "vkGetPhysicalDeviceFormatProperties");
|
|
dt->vkGetPhysicalDeviceFormatProperties2 = (PFN_vkGetPhysicalDeviceFormatProperties2)gipa(instance, "vkGetPhysicalDeviceFormatProperties2");
|
|
if (!dt->vkGetPhysicalDeviceFormatProperties2) dt->vkGetPhysicalDeviceFormatProperties2 = (PFN_vkGetPhysicalDeviceFormatProperties2)gipa(instance, "vkGetPhysicalDeviceFormatProperties2KHR");
|
|
dt->vkGetPhysicalDeviceFragmentShadingRatesKHR = (PFN_vkGetPhysicalDeviceFragmentShadingRatesKHR)gipa(instance, "vkGetPhysicalDeviceFragmentShadingRatesKHR");
|
|
dt->vkGetPhysicalDeviceImageFormatProperties = (PFN_vkGetPhysicalDeviceImageFormatProperties)gipa(instance, "vkGetPhysicalDeviceImageFormatProperties");
|
|
dt->vkGetPhysicalDeviceImageFormatProperties2 = (PFN_vkGetPhysicalDeviceImageFormatProperties2)gipa(instance, "vkGetPhysicalDeviceImageFormatProperties2");
|
|
if (!dt->vkGetPhysicalDeviceImageFormatProperties2) dt->vkGetPhysicalDeviceImageFormatProperties2 = (PFN_vkGetPhysicalDeviceImageFormatProperties2)gipa(instance, "vkGetPhysicalDeviceImageFormatProperties2KHR");
|
|
dt->vkGetPhysicalDeviceMemoryProperties = (PFN_vkGetPhysicalDeviceMemoryProperties)gipa(instance, "vkGetPhysicalDeviceMemoryProperties");
|
|
dt->vkGetPhysicalDeviceMemoryProperties2 = (PFN_vkGetPhysicalDeviceMemoryProperties2)gipa(instance, "vkGetPhysicalDeviceMemoryProperties2");
|
|
if (!dt->vkGetPhysicalDeviceMemoryProperties2) dt->vkGetPhysicalDeviceMemoryProperties2 = (PFN_vkGetPhysicalDeviceMemoryProperties2)gipa(instance, "vkGetPhysicalDeviceMemoryProperties2KHR");
|
|
dt->vkGetPhysicalDeviceMultisamplePropertiesEXT = (PFN_vkGetPhysicalDeviceMultisamplePropertiesEXT)gipa(instance, "vkGetPhysicalDeviceMultisamplePropertiesEXT");
|
|
dt->vkGetPhysicalDeviceProperties = (PFN_vkGetPhysicalDeviceProperties)gipa(instance, "vkGetPhysicalDeviceProperties");
|
|
dt->vkGetPhysicalDeviceProperties2 = (PFN_vkGetPhysicalDeviceProperties2)gipa(instance, "vkGetPhysicalDeviceProperties2");
|
|
if (!dt->vkGetPhysicalDeviceProperties2) dt->vkGetPhysicalDeviceProperties2 = (PFN_vkGetPhysicalDeviceProperties2)gipa(instance, "vkGetPhysicalDeviceProperties2KHR");
|
|
dt->vkGetPhysicalDeviceQueueFamilyProperties = (PFN_vkGetPhysicalDeviceQueueFamilyProperties)gipa(instance, "vkGetPhysicalDeviceQueueFamilyProperties");
|
|
dt->vkGetPhysicalDeviceQueueFamilyProperties2 = (PFN_vkGetPhysicalDeviceQueueFamilyProperties2)gipa(instance, "vkGetPhysicalDeviceQueueFamilyProperties2");
|
|
if (!dt->vkGetPhysicalDeviceQueueFamilyProperties2) dt->vkGetPhysicalDeviceQueueFamilyProperties2 = (PFN_vkGetPhysicalDeviceQueueFamilyProperties2)gipa(instance, "vkGetPhysicalDeviceQueueFamilyProperties2KHR");
|
|
dt->vkGetPhysicalDeviceSparseImageFormatProperties = (PFN_vkGetPhysicalDeviceSparseImageFormatProperties)gipa(instance, "vkGetPhysicalDeviceSparseImageFormatProperties");
|
|
dt->vkGetPhysicalDeviceSparseImageFormatProperties2 = (PFN_vkGetPhysicalDeviceSparseImageFormatProperties2)gipa(instance, "vkGetPhysicalDeviceSparseImageFormatProperties2");
|
|
if (!dt->vkGetPhysicalDeviceSparseImageFormatProperties2) dt->vkGetPhysicalDeviceSparseImageFormatProperties2 = (PFN_vkGetPhysicalDeviceSparseImageFormatProperties2)gipa(instance, "vkGetPhysicalDeviceSparseImageFormatProperties2KHR");
|
|
dt->vkGetPhysicalDeviceToolProperties = (PFN_vkGetPhysicalDeviceToolProperties)gipa(instance, "vkGetPhysicalDeviceToolProperties");
|
|
if (!dt->vkGetPhysicalDeviceToolProperties) dt->vkGetPhysicalDeviceToolProperties = (PFN_vkGetPhysicalDeviceToolProperties)gipa(instance, "vkGetPhysicalDeviceToolPropertiesEXT");
|
|
dt->vkGetPipelineCacheData = (PFN_vkGetPipelineCacheData)gipa(instance, "vkGetPipelineCacheData");
|
|
dt->vkGetQueryPoolResults = (PFN_vkGetQueryPoolResults)gipa(instance, "vkGetQueryPoolResults");
|
|
dt->vkGetRenderAreaGranularity = (PFN_vkGetRenderAreaGranularity)gipa(instance, "vkGetRenderAreaGranularity");
|
|
dt->vkGetRenderingAreaGranularity = (PFN_vkGetRenderingAreaGranularity)gipa(instance, "vkGetRenderingAreaGranularity");
|
|
if (!dt->vkGetRenderingAreaGranularity) dt->vkGetRenderingAreaGranularity = (PFN_vkGetRenderingAreaGranularity)gipa(instance, "vkGetRenderingAreaGranularityKHR");
|
|
dt->vkGetSemaphoreCounterValue = (PFN_vkGetSemaphoreCounterValue)gipa(instance, "vkGetSemaphoreCounterValue");
|
|
if (!dt->vkGetSemaphoreCounterValue) dt->vkGetSemaphoreCounterValue = (PFN_vkGetSemaphoreCounterValue)gipa(instance, "vkGetSemaphoreCounterValueKHR");
|
|
dt->vkGetSemaphoreFdKHR = (PFN_vkGetSemaphoreFdKHR)gipa(instance, "vkGetSemaphoreFdKHR");
|
|
dt->vkGetShaderModuleCreateInfoIdentifierEXT = (PFN_vkGetShaderModuleCreateInfoIdentifierEXT)gipa(instance, "vkGetShaderModuleCreateInfoIdentifierEXT");
|
|
dt->vkGetShaderModuleIdentifierEXT = (PFN_vkGetShaderModuleIdentifierEXT)gipa(instance, "vkGetShaderModuleIdentifierEXT");
|
|
dt->vkGetTensorMemoryRequirementsARM = (PFN_vkGetTensorMemoryRequirementsARM)gipa(instance, "vkGetTensorMemoryRequirementsARM");
|
|
dt->vkImportFenceFdKHR = (PFN_vkImportFenceFdKHR)gipa(instance, "vkImportFenceFdKHR");
|
|
dt->vkImportSemaphoreFdKHR = (PFN_vkImportSemaphoreFdKHR)gipa(instance, "vkImportSemaphoreFdKHR");
|
|
dt->vkInvalidateMappedMemoryRanges = (PFN_vkInvalidateMappedMemoryRanges)gipa(instance, "vkInvalidateMappedMemoryRanges");
|
|
dt->vkMapMemory = (PFN_vkMapMemory)gipa(instance, "vkMapMemory");
|
|
dt->vkMergePipelineCaches = (PFN_vkMergePipelineCaches)gipa(instance, "vkMergePipelineCaches");
|
|
dt->vkQueueBindSparse = (PFN_vkQueueBindSparse)gipa(instance, "vkQueueBindSparse");
|
|
dt->vkQueueSubmit = (PFN_vkQueueSubmit)gipa(instance, "vkQueueSubmit");
|
|
dt->vkQueueSubmit2 = (PFN_vkQueueSubmit2)gipa(instance, "vkQueueSubmit2");
|
|
if (!dt->vkQueueSubmit2) dt->vkQueueSubmit2 = (PFN_vkQueueSubmit2)gipa(instance, "vkQueueSubmit2KHR");
|
|
dt->vkQueueWaitIdle = (PFN_vkQueueWaitIdle)gipa(instance, "vkQueueWaitIdle");
|
|
dt->vkResetCommandBuffer = (PFN_vkResetCommandBuffer)gipa(instance, "vkResetCommandBuffer");
|
|
dt->vkResetCommandPool = (PFN_vkResetCommandPool)gipa(instance, "vkResetCommandPool");
|
|
dt->vkResetDescriptorPool = (PFN_vkResetDescriptorPool)gipa(instance, "vkResetDescriptorPool");
|
|
dt->vkResetEvent = (PFN_vkResetEvent)gipa(instance, "vkResetEvent");
|
|
dt->vkResetFences = (PFN_vkResetFences)gipa(instance, "vkResetFences");
|
|
dt->vkResetQueryPool = (PFN_vkResetQueryPool)gipa(instance, "vkResetQueryPool");
|
|
if (!dt->vkResetQueryPool) dt->vkResetQueryPool = (PFN_vkResetQueryPool)gipa(instance, "vkResetQueryPoolEXT");
|
|
dt->vkSetDeviceMemoryPriorityEXT = (PFN_vkSetDeviceMemoryPriorityEXT)gipa(instance, "vkSetDeviceMemoryPriorityEXT");
|
|
dt->vkSetEvent = (PFN_vkSetEvent)gipa(instance, "vkSetEvent");
|
|
dt->vkSignalSemaphore = (PFN_vkSignalSemaphore)gipa(instance, "vkSignalSemaphore");
|
|
if (!dt->vkSignalSemaphore) dt->vkSignalSemaphore = (PFN_vkSignalSemaphore)gipa(instance, "vkSignalSemaphoreKHR");
|
|
dt->vkTrimCommandPool = (PFN_vkTrimCommandPool)gipa(instance, "vkTrimCommandPool");
|
|
if (!dt->vkTrimCommandPool) dt->vkTrimCommandPool = (PFN_vkTrimCommandPool)gipa(instance, "vkTrimCommandPoolKHR");
|
|
dt->vkUnmapMemory = (PFN_vkUnmapMemory)gipa(instance, "vkUnmapMemory");
|
|
dt->vkUpdateDescriptorSetWithTemplate = (PFN_vkUpdateDescriptorSetWithTemplate)gipa(instance, "vkUpdateDescriptorSetWithTemplate");
|
|
if (!dt->vkUpdateDescriptorSetWithTemplate) dt->vkUpdateDescriptorSetWithTemplate = (PFN_vkUpdateDescriptorSetWithTemplate)gipa(instance, "vkUpdateDescriptorSetWithTemplateKHR");
|
|
dt->vkUpdateDescriptorSets = (PFN_vkUpdateDescriptorSets)gipa(instance, "vkUpdateDescriptorSets");
|
|
dt->vkWaitForFences = (PFN_vkWaitForFences)gipa(instance, "vkWaitForFences");
|
|
dt->vkWaitSemaphores = (PFN_vkWaitSemaphores)gipa(instance, "vkWaitSemaphores");
|
|
if (!dt->vkWaitSemaphores) dt->vkWaitSemaphores = (PFN_vkWaitSemaphores)gipa(instance, "vkWaitSemaphoresKHR");
|
|
}
|
|
|
|
void vkb_dispatch_load_device(vkb_dispatch *dt, PFN_vkGetDeviceProcAddr gdpa, VkDevice device)
|
|
{
|
|
{
|
|
PFN_vkAllocateCommandBuffers f_ = (PFN_vkAllocateCommandBuffers)gdpa(device, "vkAllocateCommandBuffers");
|
|
dt->vkAllocateCommandBuffers = f_;
|
|
}
|
|
{
|
|
PFN_vkAllocateDescriptorSets f_ = (PFN_vkAllocateDescriptorSets)gdpa(device, "vkAllocateDescriptorSets");
|
|
dt->vkAllocateDescriptorSets = f_;
|
|
}
|
|
{
|
|
PFN_vkAllocateMemory f_ = (PFN_vkAllocateMemory)gdpa(device, "vkAllocateMemory");
|
|
dt->vkAllocateMemory = f_;
|
|
}
|
|
{
|
|
PFN_vkBeginCommandBuffer f_ = (PFN_vkBeginCommandBuffer)gdpa(device, "vkBeginCommandBuffer");
|
|
dt->vkBeginCommandBuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkBindBufferMemory f_ = (PFN_vkBindBufferMemory)gdpa(device, "vkBindBufferMemory");
|
|
dt->vkBindBufferMemory = f_;
|
|
}
|
|
{
|
|
PFN_vkBindBufferMemory2 f_ = (PFN_vkBindBufferMemory2)gdpa(device, "vkBindBufferMemory2");
|
|
if (!f_) f_ = (PFN_vkBindBufferMemory2)gdpa(device, "vkBindBufferMemory2KHR");
|
|
dt->vkBindBufferMemory2 = f_;
|
|
}
|
|
{
|
|
PFN_vkBindImageMemory f_ = (PFN_vkBindImageMemory)gdpa(device, "vkBindImageMemory");
|
|
dt->vkBindImageMemory = f_;
|
|
}
|
|
{
|
|
PFN_vkBindImageMemory2 f_ = (PFN_vkBindImageMemory2)gdpa(device, "vkBindImageMemory2");
|
|
if (!f_) f_ = (PFN_vkBindImageMemory2)gdpa(device, "vkBindImageMemory2KHR");
|
|
dt->vkBindImageMemory2 = f_;
|
|
}
|
|
{
|
|
PFN_vkBindTensorMemoryARM f_ = (PFN_vkBindTensorMemoryARM)gdpa(device, "vkBindTensorMemoryARM");
|
|
dt->vkBindTensorMemoryARM = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBeginConditionalRenderingEXT f_ = (PFN_vkCmdBeginConditionalRenderingEXT)gdpa(device, "vkCmdBeginConditionalRenderingEXT");
|
|
dt->vkCmdBeginConditionalRenderingEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBeginCustomResolveEXT f_ = (PFN_vkCmdBeginCustomResolveEXT)gdpa(device, "vkCmdBeginCustomResolveEXT");
|
|
dt->vkCmdBeginCustomResolveEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBeginQuery f_ = (PFN_vkCmdBeginQuery)gdpa(device, "vkCmdBeginQuery");
|
|
dt->vkCmdBeginQuery = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBeginQueryIndexedEXT f_ = (PFN_vkCmdBeginQueryIndexedEXT)gdpa(device, "vkCmdBeginQueryIndexedEXT");
|
|
dt->vkCmdBeginQueryIndexedEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBeginRenderPass f_ = (PFN_vkCmdBeginRenderPass)gdpa(device, "vkCmdBeginRenderPass");
|
|
dt->vkCmdBeginRenderPass = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBeginRenderPass2 f_ = (PFN_vkCmdBeginRenderPass2)gdpa(device, "vkCmdBeginRenderPass2");
|
|
if (!f_) f_ = (PFN_vkCmdBeginRenderPass2)gdpa(device, "vkCmdBeginRenderPass2KHR");
|
|
dt->vkCmdBeginRenderPass2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBeginRendering f_ = (PFN_vkCmdBeginRendering)gdpa(device, "vkCmdBeginRendering");
|
|
if (!f_) f_ = (PFN_vkCmdBeginRendering)gdpa(device, "vkCmdBeginRenderingKHR");
|
|
dt->vkCmdBeginRendering = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBeginTransformFeedbackEXT f_ = (PFN_vkCmdBeginTransformFeedbackEXT)gdpa(device, "vkCmdBeginTransformFeedbackEXT");
|
|
dt->vkCmdBeginTransformFeedbackEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBindDescriptorSets f_ = (PFN_vkCmdBindDescriptorSets)gdpa(device, "vkCmdBindDescriptorSets");
|
|
dt->vkCmdBindDescriptorSets = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBindDescriptorSets2 f_ = (PFN_vkCmdBindDescriptorSets2)gdpa(device, "vkCmdBindDescriptorSets2");
|
|
if (!f_) f_ = (PFN_vkCmdBindDescriptorSets2)gdpa(device, "vkCmdBindDescriptorSets2KHR");
|
|
dt->vkCmdBindDescriptorSets2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBindIndexBuffer f_ = (PFN_vkCmdBindIndexBuffer)gdpa(device, "vkCmdBindIndexBuffer");
|
|
dt->vkCmdBindIndexBuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBindIndexBuffer2 f_ = (PFN_vkCmdBindIndexBuffer2)gdpa(device, "vkCmdBindIndexBuffer2");
|
|
if (!f_) f_ = (PFN_vkCmdBindIndexBuffer2)gdpa(device, "vkCmdBindIndexBuffer2KHR");
|
|
dt->vkCmdBindIndexBuffer2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBindPipeline f_ = (PFN_vkCmdBindPipeline)gdpa(device, "vkCmdBindPipeline");
|
|
dt->vkCmdBindPipeline = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBindTransformFeedbackBuffersEXT f_ = (PFN_vkCmdBindTransformFeedbackBuffersEXT)gdpa(device, "vkCmdBindTransformFeedbackBuffersEXT");
|
|
dt->vkCmdBindTransformFeedbackBuffersEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBindVertexBuffers f_ = (PFN_vkCmdBindVertexBuffers)gdpa(device, "vkCmdBindVertexBuffers");
|
|
dt->vkCmdBindVertexBuffers = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBindVertexBuffers2 f_ = (PFN_vkCmdBindVertexBuffers2)gdpa(device, "vkCmdBindVertexBuffers2");
|
|
if (!f_) f_ = (PFN_vkCmdBindVertexBuffers2)gdpa(device, "vkCmdBindVertexBuffers2EXT");
|
|
dt->vkCmdBindVertexBuffers2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBlitImage f_ = (PFN_vkCmdBlitImage)gdpa(device, "vkCmdBlitImage");
|
|
dt->vkCmdBlitImage = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdBlitImage2 f_ = (PFN_vkCmdBlitImage2)gdpa(device, "vkCmdBlitImage2");
|
|
if (!f_) f_ = (PFN_vkCmdBlitImage2)gdpa(device, "vkCmdBlitImage2KHR");
|
|
dt->vkCmdBlitImage2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdClearAttachments f_ = (PFN_vkCmdClearAttachments)gdpa(device, "vkCmdClearAttachments");
|
|
dt->vkCmdClearAttachments = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdClearColorImage f_ = (PFN_vkCmdClearColorImage)gdpa(device, "vkCmdClearColorImage");
|
|
dt->vkCmdClearColorImage = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdClearDepthStencilImage f_ = (PFN_vkCmdClearDepthStencilImage)gdpa(device, "vkCmdClearDepthStencilImage");
|
|
dt->vkCmdClearDepthStencilImage = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdCopyBuffer f_ = (PFN_vkCmdCopyBuffer)gdpa(device, "vkCmdCopyBuffer");
|
|
dt->vkCmdCopyBuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdCopyBuffer2 f_ = (PFN_vkCmdCopyBuffer2)gdpa(device, "vkCmdCopyBuffer2");
|
|
if (!f_) f_ = (PFN_vkCmdCopyBuffer2)gdpa(device, "vkCmdCopyBuffer2KHR");
|
|
dt->vkCmdCopyBuffer2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdCopyBufferToImage f_ = (PFN_vkCmdCopyBufferToImage)gdpa(device, "vkCmdCopyBufferToImage");
|
|
dt->vkCmdCopyBufferToImage = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdCopyBufferToImage2 f_ = (PFN_vkCmdCopyBufferToImage2)gdpa(device, "vkCmdCopyBufferToImage2");
|
|
if (!f_) f_ = (PFN_vkCmdCopyBufferToImage2)gdpa(device, "vkCmdCopyBufferToImage2KHR");
|
|
dt->vkCmdCopyBufferToImage2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdCopyImage f_ = (PFN_vkCmdCopyImage)gdpa(device, "vkCmdCopyImage");
|
|
dt->vkCmdCopyImage = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdCopyImage2 f_ = (PFN_vkCmdCopyImage2)gdpa(device, "vkCmdCopyImage2");
|
|
if (!f_) f_ = (PFN_vkCmdCopyImage2)gdpa(device, "vkCmdCopyImage2KHR");
|
|
dt->vkCmdCopyImage2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdCopyImageToBuffer f_ = (PFN_vkCmdCopyImageToBuffer)gdpa(device, "vkCmdCopyImageToBuffer");
|
|
dt->vkCmdCopyImageToBuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdCopyImageToBuffer2 f_ = (PFN_vkCmdCopyImageToBuffer2)gdpa(device, "vkCmdCopyImageToBuffer2");
|
|
if (!f_) f_ = (PFN_vkCmdCopyImageToBuffer2)gdpa(device, "vkCmdCopyImageToBuffer2KHR");
|
|
dt->vkCmdCopyImageToBuffer2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdCopyQueryPoolResults f_ = (PFN_vkCmdCopyQueryPoolResults)gdpa(device, "vkCmdCopyQueryPoolResults");
|
|
dt->vkCmdCopyQueryPoolResults = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdCopyTensorARM f_ = (PFN_vkCmdCopyTensorARM)gdpa(device, "vkCmdCopyTensorARM");
|
|
dt->vkCmdCopyTensorARM = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDispatch f_ = (PFN_vkCmdDispatch)gdpa(device, "vkCmdDispatch");
|
|
dt->vkCmdDispatch = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDispatchBase f_ = (PFN_vkCmdDispatchBase)gdpa(device, "vkCmdDispatchBase");
|
|
if (!f_) f_ = (PFN_vkCmdDispatchBase)gdpa(device, "vkCmdDispatchBaseKHR");
|
|
dt->vkCmdDispatchBase = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDispatchIndirect f_ = (PFN_vkCmdDispatchIndirect)gdpa(device, "vkCmdDispatchIndirect");
|
|
dt->vkCmdDispatchIndirect = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDraw f_ = (PFN_vkCmdDraw)gdpa(device, "vkCmdDraw");
|
|
dt->vkCmdDraw = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDrawIndexed f_ = (PFN_vkCmdDrawIndexed)gdpa(device, "vkCmdDrawIndexed");
|
|
dt->vkCmdDrawIndexed = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDrawIndexedIndirect f_ = (PFN_vkCmdDrawIndexedIndirect)gdpa(device, "vkCmdDrawIndexedIndirect");
|
|
dt->vkCmdDrawIndexedIndirect = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDrawIndexedIndirectCount f_ = (PFN_vkCmdDrawIndexedIndirectCount)gdpa(device, "vkCmdDrawIndexedIndirectCount");
|
|
if (!f_) f_ = (PFN_vkCmdDrawIndexedIndirectCount)gdpa(device, "vkCmdDrawIndexedIndirectCountAMD");
|
|
if (!f_) f_ = (PFN_vkCmdDrawIndexedIndirectCount)gdpa(device, "vkCmdDrawIndexedIndirectCountKHR");
|
|
dt->vkCmdDrawIndexedIndirectCount = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDrawIndirect f_ = (PFN_vkCmdDrawIndirect)gdpa(device, "vkCmdDrawIndirect");
|
|
dt->vkCmdDrawIndirect = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDrawIndirectByteCountEXT f_ = (PFN_vkCmdDrawIndirectByteCountEXT)gdpa(device, "vkCmdDrawIndirectByteCountEXT");
|
|
dt->vkCmdDrawIndirectByteCountEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDrawIndirectCount f_ = (PFN_vkCmdDrawIndirectCount)gdpa(device, "vkCmdDrawIndirectCount");
|
|
if (!f_) f_ = (PFN_vkCmdDrawIndirectCount)gdpa(device, "vkCmdDrawIndirectCountAMD");
|
|
if (!f_) f_ = (PFN_vkCmdDrawIndirectCount)gdpa(device, "vkCmdDrawIndirectCountKHR");
|
|
dt->vkCmdDrawIndirectCount = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDrawMultiEXT f_ = (PFN_vkCmdDrawMultiEXT)gdpa(device, "vkCmdDrawMultiEXT");
|
|
dt->vkCmdDrawMultiEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdDrawMultiIndexedEXT f_ = (PFN_vkCmdDrawMultiIndexedEXT)gdpa(device, "vkCmdDrawMultiIndexedEXT");
|
|
dt->vkCmdDrawMultiIndexedEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdEndConditionalRenderingEXT f_ = (PFN_vkCmdEndConditionalRenderingEXT)gdpa(device, "vkCmdEndConditionalRenderingEXT");
|
|
dt->vkCmdEndConditionalRenderingEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdEndQuery f_ = (PFN_vkCmdEndQuery)gdpa(device, "vkCmdEndQuery");
|
|
dt->vkCmdEndQuery = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdEndQueryIndexedEXT f_ = (PFN_vkCmdEndQueryIndexedEXT)gdpa(device, "vkCmdEndQueryIndexedEXT");
|
|
dt->vkCmdEndQueryIndexedEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdEndRenderPass f_ = (PFN_vkCmdEndRenderPass)gdpa(device, "vkCmdEndRenderPass");
|
|
dt->vkCmdEndRenderPass = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdEndRenderPass2 f_ = (PFN_vkCmdEndRenderPass2)gdpa(device, "vkCmdEndRenderPass2");
|
|
if (!f_) f_ = (PFN_vkCmdEndRenderPass2)gdpa(device, "vkCmdEndRenderPass2KHR");
|
|
dt->vkCmdEndRenderPass2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdEndRendering f_ = (PFN_vkCmdEndRendering)gdpa(device, "vkCmdEndRendering");
|
|
if (!f_) f_ = (PFN_vkCmdEndRendering)gdpa(device, "vkCmdEndRenderingKHR");
|
|
dt->vkCmdEndRendering = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdEndRendering2KHR f_ = (PFN_vkCmdEndRendering2KHR)gdpa(device, "vkCmdEndRendering2KHR");
|
|
if (!f_) f_ = (PFN_vkCmdEndRendering2KHR)gdpa(device, "vkCmdEndRendering2EXT");
|
|
dt->vkCmdEndRendering2KHR = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdEndTransformFeedbackEXT f_ = (PFN_vkCmdEndTransformFeedbackEXT)gdpa(device, "vkCmdEndTransformFeedbackEXT");
|
|
dt->vkCmdEndTransformFeedbackEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdExecuteCommands f_ = (PFN_vkCmdExecuteCommands)gdpa(device, "vkCmdExecuteCommands");
|
|
dt->vkCmdExecuteCommands = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdFillBuffer f_ = (PFN_vkCmdFillBuffer)gdpa(device, "vkCmdFillBuffer");
|
|
dt->vkCmdFillBuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdNextSubpass f_ = (PFN_vkCmdNextSubpass)gdpa(device, "vkCmdNextSubpass");
|
|
dt->vkCmdNextSubpass = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdNextSubpass2 f_ = (PFN_vkCmdNextSubpass2)gdpa(device, "vkCmdNextSubpass2");
|
|
if (!f_) f_ = (PFN_vkCmdNextSubpass2)gdpa(device, "vkCmdNextSubpass2KHR");
|
|
dt->vkCmdNextSubpass2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdPipelineBarrier f_ = (PFN_vkCmdPipelineBarrier)gdpa(device, "vkCmdPipelineBarrier");
|
|
dt->vkCmdPipelineBarrier = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdPipelineBarrier2 f_ = (PFN_vkCmdPipelineBarrier2)gdpa(device, "vkCmdPipelineBarrier2");
|
|
if (!f_) f_ = (PFN_vkCmdPipelineBarrier2)gdpa(device, "vkCmdPipelineBarrier2KHR");
|
|
dt->vkCmdPipelineBarrier2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdPushConstants f_ = (PFN_vkCmdPushConstants)gdpa(device, "vkCmdPushConstants");
|
|
dt->vkCmdPushConstants = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdPushConstants2 f_ = (PFN_vkCmdPushConstants2)gdpa(device, "vkCmdPushConstants2");
|
|
if (!f_) f_ = (PFN_vkCmdPushConstants2)gdpa(device, "vkCmdPushConstants2KHR");
|
|
dt->vkCmdPushConstants2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdPushDescriptorSet f_ = (PFN_vkCmdPushDescriptorSet)gdpa(device, "vkCmdPushDescriptorSet");
|
|
if (!f_) f_ = (PFN_vkCmdPushDescriptorSet)gdpa(device, "vkCmdPushDescriptorSetKHR");
|
|
dt->vkCmdPushDescriptorSet = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdPushDescriptorSet2 f_ = (PFN_vkCmdPushDescriptorSet2)gdpa(device, "vkCmdPushDescriptorSet2");
|
|
if (!f_) f_ = (PFN_vkCmdPushDescriptorSet2)gdpa(device, "vkCmdPushDescriptorSet2KHR");
|
|
dt->vkCmdPushDescriptorSet2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdPushDescriptorSetWithTemplate f_ = (PFN_vkCmdPushDescriptorSetWithTemplate)gdpa(device, "vkCmdPushDescriptorSetWithTemplate");
|
|
if (!f_) f_ = (PFN_vkCmdPushDescriptorSetWithTemplate)gdpa(device, "vkCmdPushDescriptorSetWithTemplateKHR");
|
|
dt->vkCmdPushDescriptorSetWithTemplate = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdResetEvent f_ = (PFN_vkCmdResetEvent)gdpa(device, "vkCmdResetEvent");
|
|
dt->vkCmdResetEvent = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdResetEvent2 f_ = (PFN_vkCmdResetEvent2)gdpa(device, "vkCmdResetEvent2");
|
|
if (!f_) f_ = (PFN_vkCmdResetEvent2)gdpa(device, "vkCmdResetEvent2KHR");
|
|
dt->vkCmdResetEvent2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdResetQueryPool f_ = (PFN_vkCmdResetQueryPool)gdpa(device, "vkCmdResetQueryPool");
|
|
dt->vkCmdResetQueryPool = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdResolveImage f_ = (PFN_vkCmdResolveImage)gdpa(device, "vkCmdResolveImage");
|
|
dt->vkCmdResolveImage = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdResolveImage2 f_ = (PFN_vkCmdResolveImage2)gdpa(device, "vkCmdResolveImage2");
|
|
if (!f_) f_ = (PFN_vkCmdResolveImage2)gdpa(device, "vkCmdResolveImage2KHR");
|
|
dt->vkCmdResolveImage2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetAlphaToCoverageEnableEXT f_ = (PFN_vkCmdSetAlphaToCoverageEnableEXT)gdpa(device, "vkCmdSetAlphaToCoverageEnableEXT");
|
|
dt->vkCmdSetAlphaToCoverageEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetAlphaToOneEnableEXT f_ = (PFN_vkCmdSetAlphaToOneEnableEXT)gdpa(device, "vkCmdSetAlphaToOneEnableEXT");
|
|
dt->vkCmdSetAlphaToOneEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT f_ = (PFN_vkCmdSetAttachmentFeedbackLoopEnableEXT)gdpa(device, "vkCmdSetAttachmentFeedbackLoopEnableEXT");
|
|
dt->vkCmdSetAttachmentFeedbackLoopEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetBlendConstants f_ = (PFN_vkCmdSetBlendConstants)gdpa(device, "vkCmdSetBlendConstants");
|
|
dt->vkCmdSetBlendConstants = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetColorBlendAdvancedEXT f_ = (PFN_vkCmdSetColorBlendAdvancedEXT)gdpa(device, "vkCmdSetColorBlendAdvancedEXT");
|
|
dt->vkCmdSetColorBlendAdvancedEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetColorBlendEnableEXT f_ = (PFN_vkCmdSetColorBlendEnableEXT)gdpa(device, "vkCmdSetColorBlendEnableEXT");
|
|
dt->vkCmdSetColorBlendEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetColorBlendEquationEXT f_ = (PFN_vkCmdSetColorBlendEquationEXT)gdpa(device, "vkCmdSetColorBlendEquationEXT");
|
|
dt->vkCmdSetColorBlendEquationEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetColorWriteEnableEXT f_ = (PFN_vkCmdSetColorWriteEnableEXT)gdpa(device, "vkCmdSetColorWriteEnableEXT");
|
|
dt->vkCmdSetColorWriteEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetColorWriteMaskEXT f_ = (PFN_vkCmdSetColorWriteMaskEXT)gdpa(device, "vkCmdSetColorWriteMaskEXT");
|
|
dt->vkCmdSetColorWriteMaskEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetConservativeRasterizationModeEXT f_ = (PFN_vkCmdSetConservativeRasterizationModeEXT)gdpa(device, "vkCmdSetConservativeRasterizationModeEXT");
|
|
dt->vkCmdSetConservativeRasterizationModeEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetCullMode f_ = (PFN_vkCmdSetCullMode)gdpa(device, "vkCmdSetCullMode");
|
|
if (!f_) f_ = (PFN_vkCmdSetCullMode)gdpa(device, "vkCmdSetCullModeEXT");
|
|
dt->vkCmdSetCullMode = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthBias f_ = (PFN_vkCmdSetDepthBias)gdpa(device, "vkCmdSetDepthBias");
|
|
dt->vkCmdSetDepthBias = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthBias2EXT f_ = (PFN_vkCmdSetDepthBias2EXT)gdpa(device, "vkCmdSetDepthBias2EXT");
|
|
dt->vkCmdSetDepthBias2EXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthBiasEnable f_ = (PFN_vkCmdSetDepthBiasEnable)gdpa(device, "vkCmdSetDepthBiasEnable");
|
|
if (!f_) f_ = (PFN_vkCmdSetDepthBiasEnable)gdpa(device, "vkCmdSetDepthBiasEnableEXT");
|
|
dt->vkCmdSetDepthBiasEnable = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthBounds f_ = (PFN_vkCmdSetDepthBounds)gdpa(device, "vkCmdSetDepthBounds");
|
|
dt->vkCmdSetDepthBounds = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthBoundsTestEnable f_ = (PFN_vkCmdSetDepthBoundsTestEnable)gdpa(device, "vkCmdSetDepthBoundsTestEnable");
|
|
if (!f_) f_ = (PFN_vkCmdSetDepthBoundsTestEnable)gdpa(device, "vkCmdSetDepthBoundsTestEnableEXT");
|
|
dt->vkCmdSetDepthBoundsTestEnable = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthClampEnableEXT f_ = (PFN_vkCmdSetDepthClampEnableEXT)gdpa(device, "vkCmdSetDepthClampEnableEXT");
|
|
dt->vkCmdSetDepthClampEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthClampRangeEXT f_ = (PFN_vkCmdSetDepthClampRangeEXT)gdpa(device, "vkCmdSetDepthClampRangeEXT");
|
|
dt->vkCmdSetDepthClampRangeEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthClipEnableEXT f_ = (PFN_vkCmdSetDepthClipEnableEXT)gdpa(device, "vkCmdSetDepthClipEnableEXT");
|
|
dt->vkCmdSetDepthClipEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthClipNegativeOneToOneEXT f_ = (PFN_vkCmdSetDepthClipNegativeOneToOneEXT)gdpa(device, "vkCmdSetDepthClipNegativeOneToOneEXT");
|
|
dt->vkCmdSetDepthClipNegativeOneToOneEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthCompareOp f_ = (PFN_vkCmdSetDepthCompareOp)gdpa(device, "vkCmdSetDepthCompareOp");
|
|
if (!f_) f_ = (PFN_vkCmdSetDepthCompareOp)gdpa(device, "vkCmdSetDepthCompareOpEXT");
|
|
dt->vkCmdSetDepthCompareOp = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthTestEnable f_ = (PFN_vkCmdSetDepthTestEnable)gdpa(device, "vkCmdSetDepthTestEnable");
|
|
if (!f_) f_ = (PFN_vkCmdSetDepthTestEnable)gdpa(device, "vkCmdSetDepthTestEnableEXT");
|
|
dt->vkCmdSetDepthTestEnable = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDepthWriteEnable f_ = (PFN_vkCmdSetDepthWriteEnable)gdpa(device, "vkCmdSetDepthWriteEnable");
|
|
if (!f_) f_ = (PFN_vkCmdSetDepthWriteEnable)gdpa(device, "vkCmdSetDepthWriteEnableEXT");
|
|
dt->vkCmdSetDepthWriteEnable = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDeviceMask f_ = (PFN_vkCmdSetDeviceMask)gdpa(device, "vkCmdSetDeviceMask");
|
|
if (!f_) f_ = (PFN_vkCmdSetDeviceMask)gdpa(device, "vkCmdSetDeviceMaskKHR");
|
|
dt->vkCmdSetDeviceMask = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDiscardRectangleEXT f_ = (PFN_vkCmdSetDiscardRectangleEXT)gdpa(device, "vkCmdSetDiscardRectangleEXT");
|
|
dt->vkCmdSetDiscardRectangleEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDiscardRectangleEnableEXT f_ = (PFN_vkCmdSetDiscardRectangleEnableEXT)gdpa(device, "vkCmdSetDiscardRectangleEnableEXT");
|
|
dt->vkCmdSetDiscardRectangleEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetDiscardRectangleModeEXT f_ = (PFN_vkCmdSetDiscardRectangleModeEXT)gdpa(device, "vkCmdSetDiscardRectangleModeEXT");
|
|
dt->vkCmdSetDiscardRectangleModeEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetEvent f_ = (PFN_vkCmdSetEvent)gdpa(device, "vkCmdSetEvent");
|
|
dt->vkCmdSetEvent = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetEvent2 f_ = (PFN_vkCmdSetEvent2)gdpa(device, "vkCmdSetEvent2");
|
|
if (!f_) f_ = (PFN_vkCmdSetEvent2)gdpa(device, "vkCmdSetEvent2KHR");
|
|
dt->vkCmdSetEvent2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetExtraPrimitiveOverestimationSizeEXT f_ = (PFN_vkCmdSetExtraPrimitiveOverestimationSizeEXT)gdpa(device, "vkCmdSetExtraPrimitiveOverestimationSizeEXT");
|
|
dt->vkCmdSetExtraPrimitiveOverestimationSizeEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetFragmentShadingRateKHR f_ = (PFN_vkCmdSetFragmentShadingRateKHR)gdpa(device, "vkCmdSetFragmentShadingRateKHR");
|
|
dt->vkCmdSetFragmentShadingRateKHR = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetFrontFace f_ = (PFN_vkCmdSetFrontFace)gdpa(device, "vkCmdSetFrontFace");
|
|
if (!f_) f_ = (PFN_vkCmdSetFrontFace)gdpa(device, "vkCmdSetFrontFaceEXT");
|
|
dt->vkCmdSetFrontFace = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetLineRasterizationModeEXT f_ = (PFN_vkCmdSetLineRasterizationModeEXT)gdpa(device, "vkCmdSetLineRasterizationModeEXT");
|
|
dt->vkCmdSetLineRasterizationModeEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetLineStipple f_ = (PFN_vkCmdSetLineStipple)gdpa(device, "vkCmdSetLineStipple");
|
|
if (!f_) f_ = (PFN_vkCmdSetLineStipple)gdpa(device, "vkCmdSetLineStippleEXT");
|
|
if (!f_) f_ = (PFN_vkCmdSetLineStipple)gdpa(device, "vkCmdSetLineStippleKHR");
|
|
dt->vkCmdSetLineStipple = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetLineStippleEnableEXT f_ = (PFN_vkCmdSetLineStippleEnableEXT)gdpa(device, "vkCmdSetLineStippleEnableEXT");
|
|
dt->vkCmdSetLineStippleEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetLineWidth f_ = (PFN_vkCmdSetLineWidth)gdpa(device, "vkCmdSetLineWidth");
|
|
dt->vkCmdSetLineWidth = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetLogicOpEXT f_ = (PFN_vkCmdSetLogicOpEXT)gdpa(device, "vkCmdSetLogicOpEXT");
|
|
dt->vkCmdSetLogicOpEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetLogicOpEnableEXT f_ = (PFN_vkCmdSetLogicOpEnableEXT)gdpa(device, "vkCmdSetLogicOpEnableEXT");
|
|
dt->vkCmdSetLogicOpEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetPatchControlPointsEXT f_ = (PFN_vkCmdSetPatchControlPointsEXT)gdpa(device, "vkCmdSetPatchControlPointsEXT");
|
|
dt->vkCmdSetPatchControlPointsEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetPolygonModeEXT f_ = (PFN_vkCmdSetPolygonModeEXT)gdpa(device, "vkCmdSetPolygonModeEXT");
|
|
dt->vkCmdSetPolygonModeEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetPrimitiveRestartEnable f_ = (PFN_vkCmdSetPrimitiveRestartEnable)gdpa(device, "vkCmdSetPrimitiveRestartEnable");
|
|
if (!f_) f_ = (PFN_vkCmdSetPrimitiveRestartEnable)gdpa(device, "vkCmdSetPrimitiveRestartEnableEXT");
|
|
dt->vkCmdSetPrimitiveRestartEnable = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetPrimitiveTopology f_ = (PFN_vkCmdSetPrimitiveTopology)gdpa(device, "vkCmdSetPrimitiveTopology");
|
|
if (!f_) f_ = (PFN_vkCmdSetPrimitiveTopology)gdpa(device, "vkCmdSetPrimitiveTopologyEXT");
|
|
dt->vkCmdSetPrimitiveTopology = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetProvokingVertexModeEXT f_ = (PFN_vkCmdSetProvokingVertexModeEXT)gdpa(device, "vkCmdSetProvokingVertexModeEXT");
|
|
dt->vkCmdSetProvokingVertexModeEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetRasterizationSamplesEXT f_ = (PFN_vkCmdSetRasterizationSamplesEXT)gdpa(device, "vkCmdSetRasterizationSamplesEXT");
|
|
dt->vkCmdSetRasterizationSamplesEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetRasterizationStreamEXT f_ = (PFN_vkCmdSetRasterizationStreamEXT)gdpa(device, "vkCmdSetRasterizationStreamEXT");
|
|
dt->vkCmdSetRasterizationStreamEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetRasterizerDiscardEnable f_ = (PFN_vkCmdSetRasterizerDiscardEnable)gdpa(device, "vkCmdSetRasterizerDiscardEnable");
|
|
if (!f_) f_ = (PFN_vkCmdSetRasterizerDiscardEnable)gdpa(device, "vkCmdSetRasterizerDiscardEnableEXT");
|
|
dt->vkCmdSetRasterizerDiscardEnable = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetRenderingAttachmentLocations f_ = (PFN_vkCmdSetRenderingAttachmentLocations)gdpa(device, "vkCmdSetRenderingAttachmentLocations");
|
|
if (!f_) f_ = (PFN_vkCmdSetRenderingAttachmentLocations)gdpa(device, "vkCmdSetRenderingAttachmentLocationsKHR");
|
|
dt->vkCmdSetRenderingAttachmentLocations = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetRenderingInputAttachmentIndices f_ = (PFN_vkCmdSetRenderingInputAttachmentIndices)gdpa(device, "vkCmdSetRenderingInputAttachmentIndices");
|
|
if (!f_) f_ = (PFN_vkCmdSetRenderingInputAttachmentIndices)gdpa(device, "vkCmdSetRenderingInputAttachmentIndicesKHR");
|
|
dt->vkCmdSetRenderingInputAttachmentIndices = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetSampleLocationsEXT f_ = (PFN_vkCmdSetSampleLocationsEXT)gdpa(device, "vkCmdSetSampleLocationsEXT");
|
|
dt->vkCmdSetSampleLocationsEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetSampleLocationsEnableEXT f_ = (PFN_vkCmdSetSampleLocationsEnableEXT)gdpa(device, "vkCmdSetSampleLocationsEnableEXT");
|
|
dt->vkCmdSetSampleLocationsEnableEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetSampleMaskEXT f_ = (PFN_vkCmdSetSampleMaskEXT)gdpa(device, "vkCmdSetSampleMaskEXT");
|
|
dt->vkCmdSetSampleMaskEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetScissor f_ = (PFN_vkCmdSetScissor)gdpa(device, "vkCmdSetScissor");
|
|
dt->vkCmdSetScissor = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetScissorWithCount f_ = (PFN_vkCmdSetScissorWithCount)gdpa(device, "vkCmdSetScissorWithCount");
|
|
if (!f_) f_ = (PFN_vkCmdSetScissorWithCount)gdpa(device, "vkCmdSetScissorWithCountEXT");
|
|
dt->vkCmdSetScissorWithCount = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetStencilCompareMask f_ = (PFN_vkCmdSetStencilCompareMask)gdpa(device, "vkCmdSetStencilCompareMask");
|
|
dt->vkCmdSetStencilCompareMask = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetStencilOp f_ = (PFN_vkCmdSetStencilOp)gdpa(device, "vkCmdSetStencilOp");
|
|
if (!f_) f_ = (PFN_vkCmdSetStencilOp)gdpa(device, "vkCmdSetStencilOpEXT");
|
|
dt->vkCmdSetStencilOp = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetStencilReference f_ = (PFN_vkCmdSetStencilReference)gdpa(device, "vkCmdSetStencilReference");
|
|
dt->vkCmdSetStencilReference = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetStencilTestEnable f_ = (PFN_vkCmdSetStencilTestEnable)gdpa(device, "vkCmdSetStencilTestEnable");
|
|
if (!f_) f_ = (PFN_vkCmdSetStencilTestEnable)gdpa(device, "vkCmdSetStencilTestEnableEXT");
|
|
dt->vkCmdSetStencilTestEnable = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetStencilWriteMask f_ = (PFN_vkCmdSetStencilWriteMask)gdpa(device, "vkCmdSetStencilWriteMask");
|
|
dt->vkCmdSetStencilWriteMask = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetTessellationDomainOriginEXT f_ = (PFN_vkCmdSetTessellationDomainOriginEXT)gdpa(device, "vkCmdSetTessellationDomainOriginEXT");
|
|
dt->vkCmdSetTessellationDomainOriginEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetVertexInputEXT f_ = (PFN_vkCmdSetVertexInputEXT)gdpa(device, "vkCmdSetVertexInputEXT");
|
|
dt->vkCmdSetVertexInputEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetViewport f_ = (PFN_vkCmdSetViewport)gdpa(device, "vkCmdSetViewport");
|
|
dt->vkCmdSetViewport = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdSetViewportWithCount f_ = (PFN_vkCmdSetViewportWithCount)gdpa(device, "vkCmdSetViewportWithCount");
|
|
if (!f_) f_ = (PFN_vkCmdSetViewportWithCount)gdpa(device, "vkCmdSetViewportWithCountEXT");
|
|
dt->vkCmdSetViewportWithCount = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdUpdateBuffer f_ = (PFN_vkCmdUpdateBuffer)gdpa(device, "vkCmdUpdateBuffer");
|
|
dt->vkCmdUpdateBuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdWaitEvents f_ = (PFN_vkCmdWaitEvents)gdpa(device, "vkCmdWaitEvents");
|
|
dt->vkCmdWaitEvents = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdWaitEvents2 f_ = (PFN_vkCmdWaitEvents2)gdpa(device, "vkCmdWaitEvents2");
|
|
if (!f_) f_ = (PFN_vkCmdWaitEvents2)gdpa(device, "vkCmdWaitEvents2KHR");
|
|
dt->vkCmdWaitEvents2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdWriteTimestamp f_ = (PFN_vkCmdWriteTimestamp)gdpa(device, "vkCmdWriteTimestamp");
|
|
dt->vkCmdWriteTimestamp = f_;
|
|
}
|
|
{
|
|
PFN_vkCmdWriteTimestamp2 f_ = (PFN_vkCmdWriteTimestamp2)gdpa(device, "vkCmdWriteTimestamp2");
|
|
if (!f_) f_ = (PFN_vkCmdWriteTimestamp2)gdpa(device, "vkCmdWriteTimestamp2KHR");
|
|
dt->vkCmdWriteTimestamp2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateBuffer f_ = (PFN_vkCreateBuffer)gdpa(device, "vkCreateBuffer");
|
|
dt->vkCreateBuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateBufferView f_ = (PFN_vkCreateBufferView)gdpa(device, "vkCreateBufferView");
|
|
dt->vkCreateBufferView = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateCommandPool f_ = (PFN_vkCreateCommandPool)gdpa(device, "vkCreateCommandPool");
|
|
dt->vkCreateCommandPool = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateComputePipelines f_ = (PFN_vkCreateComputePipelines)gdpa(device, "vkCreateComputePipelines");
|
|
dt->vkCreateComputePipelines = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateDescriptorPool f_ = (PFN_vkCreateDescriptorPool)gdpa(device, "vkCreateDescriptorPool");
|
|
dt->vkCreateDescriptorPool = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateDescriptorSetLayout f_ = (PFN_vkCreateDescriptorSetLayout)gdpa(device, "vkCreateDescriptorSetLayout");
|
|
dt->vkCreateDescriptorSetLayout = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateDescriptorUpdateTemplate f_ = (PFN_vkCreateDescriptorUpdateTemplate)gdpa(device, "vkCreateDescriptorUpdateTemplate");
|
|
if (!f_) f_ = (PFN_vkCreateDescriptorUpdateTemplate)gdpa(device, "vkCreateDescriptorUpdateTemplateKHR");
|
|
dt->vkCreateDescriptorUpdateTemplate = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateEvent f_ = (PFN_vkCreateEvent)gdpa(device, "vkCreateEvent");
|
|
dt->vkCreateEvent = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateFence f_ = (PFN_vkCreateFence)gdpa(device, "vkCreateFence");
|
|
dt->vkCreateFence = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateFramebuffer f_ = (PFN_vkCreateFramebuffer)gdpa(device, "vkCreateFramebuffer");
|
|
dt->vkCreateFramebuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateGraphicsPipelines f_ = (PFN_vkCreateGraphicsPipelines)gdpa(device, "vkCreateGraphicsPipelines");
|
|
dt->vkCreateGraphicsPipelines = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateImage f_ = (PFN_vkCreateImage)gdpa(device, "vkCreateImage");
|
|
dt->vkCreateImage = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateImageView f_ = (PFN_vkCreateImageView)gdpa(device, "vkCreateImageView");
|
|
dt->vkCreateImageView = f_;
|
|
}
|
|
{
|
|
PFN_vkCreatePipelineCache f_ = (PFN_vkCreatePipelineCache)gdpa(device, "vkCreatePipelineCache");
|
|
dt->vkCreatePipelineCache = f_;
|
|
}
|
|
{
|
|
PFN_vkCreatePipelineLayout f_ = (PFN_vkCreatePipelineLayout)gdpa(device, "vkCreatePipelineLayout");
|
|
dt->vkCreatePipelineLayout = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateQueryPool f_ = (PFN_vkCreateQueryPool)gdpa(device, "vkCreateQueryPool");
|
|
dt->vkCreateQueryPool = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateRenderPass f_ = (PFN_vkCreateRenderPass)gdpa(device, "vkCreateRenderPass");
|
|
dt->vkCreateRenderPass = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateRenderPass2 f_ = (PFN_vkCreateRenderPass2)gdpa(device, "vkCreateRenderPass2");
|
|
if (!f_) f_ = (PFN_vkCreateRenderPass2)gdpa(device, "vkCreateRenderPass2KHR");
|
|
dt->vkCreateRenderPass2 = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateSampler f_ = (PFN_vkCreateSampler)gdpa(device, "vkCreateSampler");
|
|
dt->vkCreateSampler = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateSamplerYcbcrConversion f_ = (PFN_vkCreateSamplerYcbcrConversion)gdpa(device, "vkCreateSamplerYcbcrConversion");
|
|
if (!f_) f_ = (PFN_vkCreateSamplerYcbcrConversion)gdpa(device, "vkCreateSamplerYcbcrConversionKHR");
|
|
dt->vkCreateSamplerYcbcrConversion = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateSemaphore f_ = (PFN_vkCreateSemaphore)gdpa(device, "vkCreateSemaphore");
|
|
dt->vkCreateSemaphore = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateShaderModule f_ = (PFN_vkCreateShaderModule)gdpa(device, "vkCreateShaderModule");
|
|
dt->vkCreateShaderModule = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateTensorARM f_ = (PFN_vkCreateTensorARM)gdpa(device, "vkCreateTensorARM");
|
|
dt->vkCreateTensorARM = f_;
|
|
}
|
|
{
|
|
PFN_vkCreateTensorViewARM f_ = (PFN_vkCreateTensorViewARM)gdpa(device, "vkCreateTensorViewARM");
|
|
dt->vkCreateTensorViewARM = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyBuffer f_ = (PFN_vkDestroyBuffer)gdpa(device, "vkDestroyBuffer");
|
|
dt->vkDestroyBuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyBufferView f_ = (PFN_vkDestroyBufferView)gdpa(device, "vkDestroyBufferView");
|
|
dt->vkDestroyBufferView = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyCommandPool f_ = (PFN_vkDestroyCommandPool)gdpa(device, "vkDestroyCommandPool");
|
|
dt->vkDestroyCommandPool = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyDescriptorPool f_ = (PFN_vkDestroyDescriptorPool)gdpa(device, "vkDestroyDescriptorPool");
|
|
dt->vkDestroyDescriptorPool = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyDescriptorSetLayout f_ = (PFN_vkDestroyDescriptorSetLayout)gdpa(device, "vkDestroyDescriptorSetLayout");
|
|
dt->vkDestroyDescriptorSetLayout = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyDescriptorUpdateTemplate f_ = (PFN_vkDestroyDescriptorUpdateTemplate)gdpa(device, "vkDestroyDescriptorUpdateTemplate");
|
|
if (!f_) f_ = (PFN_vkDestroyDescriptorUpdateTemplate)gdpa(device, "vkDestroyDescriptorUpdateTemplateKHR");
|
|
dt->vkDestroyDescriptorUpdateTemplate = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyDevice f_ = (PFN_vkDestroyDevice)gdpa(device, "vkDestroyDevice");
|
|
dt->vkDestroyDevice = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyEvent f_ = (PFN_vkDestroyEvent)gdpa(device, "vkDestroyEvent");
|
|
dt->vkDestroyEvent = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyFence f_ = (PFN_vkDestroyFence)gdpa(device, "vkDestroyFence");
|
|
dt->vkDestroyFence = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyFramebuffer f_ = (PFN_vkDestroyFramebuffer)gdpa(device, "vkDestroyFramebuffer");
|
|
dt->vkDestroyFramebuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyImage f_ = (PFN_vkDestroyImage)gdpa(device, "vkDestroyImage");
|
|
dt->vkDestroyImage = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyImageView f_ = (PFN_vkDestroyImageView)gdpa(device, "vkDestroyImageView");
|
|
dt->vkDestroyImageView = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyPipeline f_ = (PFN_vkDestroyPipeline)gdpa(device, "vkDestroyPipeline");
|
|
dt->vkDestroyPipeline = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyPipelineCache f_ = (PFN_vkDestroyPipelineCache)gdpa(device, "vkDestroyPipelineCache");
|
|
dt->vkDestroyPipelineCache = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyPipelineLayout f_ = (PFN_vkDestroyPipelineLayout)gdpa(device, "vkDestroyPipelineLayout");
|
|
dt->vkDestroyPipelineLayout = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyQueryPool f_ = (PFN_vkDestroyQueryPool)gdpa(device, "vkDestroyQueryPool");
|
|
dt->vkDestroyQueryPool = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyRenderPass f_ = (PFN_vkDestroyRenderPass)gdpa(device, "vkDestroyRenderPass");
|
|
dt->vkDestroyRenderPass = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroySampler f_ = (PFN_vkDestroySampler)gdpa(device, "vkDestroySampler");
|
|
dt->vkDestroySampler = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroySamplerYcbcrConversion f_ = (PFN_vkDestroySamplerYcbcrConversion)gdpa(device, "vkDestroySamplerYcbcrConversion");
|
|
if (!f_) f_ = (PFN_vkDestroySamplerYcbcrConversion)gdpa(device, "vkDestroySamplerYcbcrConversionKHR");
|
|
dt->vkDestroySamplerYcbcrConversion = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroySemaphore f_ = (PFN_vkDestroySemaphore)gdpa(device, "vkDestroySemaphore");
|
|
dt->vkDestroySemaphore = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyShaderModule f_ = (PFN_vkDestroyShaderModule)gdpa(device, "vkDestroyShaderModule");
|
|
dt->vkDestroyShaderModule = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyTensorARM f_ = (PFN_vkDestroyTensorARM)gdpa(device, "vkDestroyTensorARM");
|
|
dt->vkDestroyTensorARM = f_;
|
|
}
|
|
{
|
|
PFN_vkDestroyTensorViewARM f_ = (PFN_vkDestroyTensorViewARM)gdpa(device, "vkDestroyTensorViewARM");
|
|
dt->vkDestroyTensorViewARM = f_;
|
|
}
|
|
{
|
|
PFN_vkDeviceWaitIdle f_ = (PFN_vkDeviceWaitIdle)gdpa(device, "vkDeviceWaitIdle");
|
|
dt->vkDeviceWaitIdle = f_;
|
|
}
|
|
{
|
|
PFN_vkEndCommandBuffer f_ = (PFN_vkEndCommandBuffer)gdpa(device, "vkEndCommandBuffer");
|
|
dt->vkEndCommandBuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkFlushMappedMemoryRanges f_ = (PFN_vkFlushMappedMemoryRanges)gdpa(device, "vkFlushMappedMemoryRanges");
|
|
dt->vkFlushMappedMemoryRanges = f_;
|
|
}
|
|
{
|
|
PFN_vkFreeCommandBuffers f_ = (PFN_vkFreeCommandBuffers)gdpa(device, "vkFreeCommandBuffers");
|
|
dt->vkFreeCommandBuffers = f_;
|
|
}
|
|
{
|
|
PFN_vkFreeDescriptorSets f_ = (PFN_vkFreeDescriptorSets)gdpa(device, "vkFreeDescriptorSets");
|
|
dt->vkFreeDescriptorSets = f_;
|
|
}
|
|
{
|
|
PFN_vkFreeMemory f_ = (PFN_vkFreeMemory)gdpa(device, "vkFreeMemory");
|
|
dt->vkFreeMemory = f_;
|
|
}
|
|
{
|
|
PFN_vkGetBufferDeviceAddress f_ = (PFN_vkGetBufferDeviceAddress)gdpa(device, "vkGetBufferDeviceAddress");
|
|
if (!f_) f_ = (PFN_vkGetBufferDeviceAddress)gdpa(device, "vkGetBufferDeviceAddressEXT");
|
|
if (!f_) f_ = (PFN_vkGetBufferDeviceAddress)gdpa(device, "vkGetBufferDeviceAddressKHR");
|
|
dt->vkGetBufferDeviceAddress = f_;
|
|
}
|
|
{
|
|
PFN_vkGetBufferMemoryRequirements f_ = (PFN_vkGetBufferMemoryRequirements)gdpa(device, "vkGetBufferMemoryRequirements");
|
|
dt->vkGetBufferMemoryRequirements = f_;
|
|
}
|
|
{
|
|
PFN_vkGetBufferMemoryRequirements2 f_ = (PFN_vkGetBufferMemoryRequirements2)gdpa(device, "vkGetBufferMemoryRequirements2");
|
|
if (!f_) f_ = (PFN_vkGetBufferMemoryRequirements2)gdpa(device, "vkGetBufferMemoryRequirements2KHR");
|
|
dt->vkGetBufferMemoryRequirements2 = f_;
|
|
}
|
|
{
|
|
PFN_vkGetBufferOpaqueCaptureAddress f_ = (PFN_vkGetBufferOpaqueCaptureAddress)gdpa(device, "vkGetBufferOpaqueCaptureAddress");
|
|
if (!f_) f_ = (PFN_vkGetBufferOpaqueCaptureAddress)gdpa(device, "vkGetBufferOpaqueCaptureAddressKHR");
|
|
dt->vkGetBufferOpaqueCaptureAddress = f_;
|
|
}
|
|
{
|
|
PFN_vkGetCalibratedTimestampsKHR f_ = (PFN_vkGetCalibratedTimestampsKHR)gdpa(device, "vkGetCalibratedTimestampsKHR");
|
|
if (!f_) f_ = (PFN_vkGetCalibratedTimestampsKHR)gdpa(device, "vkGetCalibratedTimestampsEXT");
|
|
dt->vkGetCalibratedTimestampsKHR = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDescriptorSetLayoutSupport f_ = (PFN_vkGetDescriptorSetLayoutSupport)gdpa(device, "vkGetDescriptorSetLayoutSupport");
|
|
if (!f_) f_ = (PFN_vkGetDescriptorSetLayoutSupport)gdpa(device, "vkGetDescriptorSetLayoutSupportKHR");
|
|
dt->vkGetDescriptorSetLayoutSupport = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDeviceBufferMemoryRequirements f_ = (PFN_vkGetDeviceBufferMemoryRequirements)gdpa(device, "vkGetDeviceBufferMemoryRequirements");
|
|
if (!f_) f_ = (PFN_vkGetDeviceBufferMemoryRequirements)gdpa(device, "vkGetDeviceBufferMemoryRequirementsKHR");
|
|
dt->vkGetDeviceBufferMemoryRequirements = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDeviceGroupPeerMemoryFeatures f_ = (PFN_vkGetDeviceGroupPeerMemoryFeatures)gdpa(device, "vkGetDeviceGroupPeerMemoryFeatures");
|
|
if (!f_) f_ = (PFN_vkGetDeviceGroupPeerMemoryFeatures)gdpa(device, "vkGetDeviceGroupPeerMemoryFeaturesKHR");
|
|
dt->vkGetDeviceGroupPeerMemoryFeatures = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDeviceImageMemoryRequirements f_ = (PFN_vkGetDeviceImageMemoryRequirements)gdpa(device, "vkGetDeviceImageMemoryRequirements");
|
|
if (!f_) f_ = (PFN_vkGetDeviceImageMemoryRequirements)gdpa(device, "vkGetDeviceImageMemoryRequirementsKHR");
|
|
dt->vkGetDeviceImageMemoryRequirements = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDeviceImageSparseMemoryRequirements f_ = (PFN_vkGetDeviceImageSparseMemoryRequirements)gdpa(device, "vkGetDeviceImageSparseMemoryRequirements");
|
|
if (!f_) f_ = (PFN_vkGetDeviceImageSparseMemoryRequirements)gdpa(device, "vkGetDeviceImageSparseMemoryRequirementsKHR");
|
|
dt->vkGetDeviceImageSparseMemoryRequirements = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDeviceImageSubresourceLayout f_ = (PFN_vkGetDeviceImageSubresourceLayout)gdpa(device, "vkGetDeviceImageSubresourceLayout");
|
|
if (!f_) f_ = (PFN_vkGetDeviceImageSubresourceLayout)gdpa(device, "vkGetDeviceImageSubresourceLayoutKHR");
|
|
dt->vkGetDeviceImageSubresourceLayout = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDeviceMemoryCommitment f_ = (PFN_vkGetDeviceMemoryCommitment)gdpa(device, "vkGetDeviceMemoryCommitment");
|
|
dt->vkGetDeviceMemoryCommitment = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDeviceMemoryOpaqueCaptureAddress f_ = (PFN_vkGetDeviceMemoryOpaqueCaptureAddress)gdpa(device, "vkGetDeviceMemoryOpaqueCaptureAddress");
|
|
if (!f_) f_ = (PFN_vkGetDeviceMemoryOpaqueCaptureAddress)gdpa(device, "vkGetDeviceMemoryOpaqueCaptureAddressKHR");
|
|
dt->vkGetDeviceMemoryOpaqueCaptureAddress = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDeviceQueue f_ = (PFN_vkGetDeviceQueue)gdpa(device, "vkGetDeviceQueue");
|
|
dt->vkGetDeviceQueue = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDeviceQueue2 f_ = (PFN_vkGetDeviceQueue2)gdpa(device, "vkGetDeviceQueue2");
|
|
dt->vkGetDeviceQueue2 = f_;
|
|
}
|
|
{
|
|
PFN_vkGetDeviceTensorMemoryRequirementsARM f_ = (PFN_vkGetDeviceTensorMemoryRequirementsARM)gdpa(device, "vkGetDeviceTensorMemoryRequirementsARM");
|
|
dt->vkGetDeviceTensorMemoryRequirementsARM = f_;
|
|
}
|
|
{
|
|
PFN_vkGetEventStatus f_ = (PFN_vkGetEventStatus)gdpa(device, "vkGetEventStatus");
|
|
dt->vkGetEventStatus = f_;
|
|
}
|
|
{
|
|
PFN_vkGetFenceFdKHR f_ = (PFN_vkGetFenceFdKHR)gdpa(device, "vkGetFenceFdKHR");
|
|
dt->vkGetFenceFdKHR = f_;
|
|
}
|
|
{
|
|
PFN_vkGetFenceStatus f_ = (PFN_vkGetFenceStatus)gdpa(device, "vkGetFenceStatus");
|
|
dt->vkGetFenceStatus = f_;
|
|
}
|
|
{
|
|
PFN_vkGetImageDrmFormatModifierPropertiesEXT f_ = (PFN_vkGetImageDrmFormatModifierPropertiesEXT)gdpa(device, "vkGetImageDrmFormatModifierPropertiesEXT");
|
|
dt->vkGetImageDrmFormatModifierPropertiesEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkGetImageMemoryRequirements f_ = (PFN_vkGetImageMemoryRequirements)gdpa(device, "vkGetImageMemoryRequirements");
|
|
dt->vkGetImageMemoryRequirements = f_;
|
|
}
|
|
{
|
|
PFN_vkGetImageMemoryRequirements2 f_ = (PFN_vkGetImageMemoryRequirements2)gdpa(device, "vkGetImageMemoryRequirements2");
|
|
if (!f_) f_ = (PFN_vkGetImageMemoryRequirements2)gdpa(device, "vkGetImageMemoryRequirements2KHR");
|
|
dt->vkGetImageMemoryRequirements2 = f_;
|
|
}
|
|
{
|
|
PFN_vkGetImageSparseMemoryRequirements f_ = (PFN_vkGetImageSparseMemoryRequirements)gdpa(device, "vkGetImageSparseMemoryRequirements");
|
|
dt->vkGetImageSparseMemoryRequirements = f_;
|
|
}
|
|
{
|
|
PFN_vkGetImageSparseMemoryRequirements2 f_ = (PFN_vkGetImageSparseMemoryRequirements2)gdpa(device, "vkGetImageSparseMemoryRequirements2");
|
|
if (!f_) f_ = (PFN_vkGetImageSparseMemoryRequirements2)gdpa(device, "vkGetImageSparseMemoryRequirements2KHR");
|
|
dt->vkGetImageSparseMemoryRequirements2 = f_;
|
|
}
|
|
{
|
|
PFN_vkGetImageSubresourceLayout f_ = (PFN_vkGetImageSubresourceLayout)gdpa(device, "vkGetImageSubresourceLayout");
|
|
dt->vkGetImageSubresourceLayout = f_;
|
|
}
|
|
{
|
|
PFN_vkGetImageSubresourceLayout2 f_ = (PFN_vkGetImageSubresourceLayout2)gdpa(device, "vkGetImageSubresourceLayout2");
|
|
if (!f_) f_ = (PFN_vkGetImageSubresourceLayout2)gdpa(device, "vkGetImageSubresourceLayout2EXT");
|
|
if (!f_) f_ = (PFN_vkGetImageSubresourceLayout2)gdpa(device, "vkGetImageSubresourceLayout2KHR");
|
|
dt->vkGetImageSubresourceLayout2 = f_;
|
|
}
|
|
{
|
|
PFN_vkGetMemoryFdKHR f_ = (PFN_vkGetMemoryFdKHR)gdpa(device, "vkGetMemoryFdKHR");
|
|
dt->vkGetMemoryFdKHR = f_;
|
|
}
|
|
{
|
|
PFN_vkGetMemoryFdPropertiesKHR f_ = (PFN_vkGetMemoryFdPropertiesKHR)gdpa(device, "vkGetMemoryFdPropertiesKHR");
|
|
dt->vkGetMemoryFdPropertiesKHR = f_;
|
|
}
|
|
{
|
|
PFN_vkGetMemoryHostPointerPropertiesEXT f_ = (PFN_vkGetMemoryHostPointerPropertiesEXT)gdpa(device, "vkGetMemoryHostPointerPropertiesEXT");
|
|
dt->vkGetMemoryHostPointerPropertiesEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkGetPipelineCacheData f_ = (PFN_vkGetPipelineCacheData)gdpa(device, "vkGetPipelineCacheData");
|
|
dt->vkGetPipelineCacheData = f_;
|
|
}
|
|
{
|
|
PFN_vkGetQueryPoolResults f_ = (PFN_vkGetQueryPoolResults)gdpa(device, "vkGetQueryPoolResults");
|
|
dt->vkGetQueryPoolResults = f_;
|
|
}
|
|
{
|
|
PFN_vkGetRenderAreaGranularity f_ = (PFN_vkGetRenderAreaGranularity)gdpa(device, "vkGetRenderAreaGranularity");
|
|
dt->vkGetRenderAreaGranularity = f_;
|
|
}
|
|
{
|
|
PFN_vkGetRenderingAreaGranularity f_ = (PFN_vkGetRenderingAreaGranularity)gdpa(device, "vkGetRenderingAreaGranularity");
|
|
if (!f_) f_ = (PFN_vkGetRenderingAreaGranularity)gdpa(device, "vkGetRenderingAreaGranularityKHR");
|
|
dt->vkGetRenderingAreaGranularity = f_;
|
|
}
|
|
{
|
|
PFN_vkGetSemaphoreCounterValue f_ = (PFN_vkGetSemaphoreCounterValue)gdpa(device, "vkGetSemaphoreCounterValue");
|
|
if (!f_) f_ = (PFN_vkGetSemaphoreCounterValue)gdpa(device, "vkGetSemaphoreCounterValueKHR");
|
|
dt->vkGetSemaphoreCounterValue = f_;
|
|
}
|
|
{
|
|
PFN_vkGetSemaphoreFdKHR f_ = (PFN_vkGetSemaphoreFdKHR)gdpa(device, "vkGetSemaphoreFdKHR");
|
|
dt->vkGetSemaphoreFdKHR = f_;
|
|
}
|
|
{
|
|
PFN_vkGetShaderModuleCreateInfoIdentifierEXT f_ = (PFN_vkGetShaderModuleCreateInfoIdentifierEXT)gdpa(device, "vkGetShaderModuleCreateInfoIdentifierEXT");
|
|
dt->vkGetShaderModuleCreateInfoIdentifierEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkGetShaderModuleIdentifierEXT f_ = (PFN_vkGetShaderModuleIdentifierEXT)gdpa(device, "vkGetShaderModuleIdentifierEXT");
|
|
dt->vkGetShaderModuleIdentifierEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkGetTensorMemoryRequirementsARM f_ = (PFN_vkGetTensorMemoryRequirementsARM)gdpa(device, "vkGetTensorMemoryRequirementsARM");
|
|
dt->vkGetTensorMemoryRequirementsARM = f_;
|
|
}
|
|
{
|
|
PFN_vkImportFenceFdKHR f_ = (PFN_vkImportFenceFdKHR)gdpa(device, "vkImportFenceFdKHR");
|
|
dt->vkImportFenceFdKHR = f_;
|
|
}
|
|
{
|
|
PFN_vkImportSemaphoreFdKHR f_ = (PFN_vkImportSemaphoreFdKHR)gdpa(device, "vkImportSemaphoreFdKHR");
|
|
dt->vkImportSemaphoreFdKHR = f_;
|
|
}
|
|
{
|
|
PFN_vkInvalidateMappedMemoryRanges f_ = (PFN_vkInvalidateMappedMemoryRanges)gdpa(device, "vkInvalidateMappedMemoryRanges");
|
|
dt->vkInvalidateMappedMemoryRanges = f_;
|
|
}
|
|
{
|
|
PFN_vkMapMemory f_ = (PFN_vkMapMemory)gdpa(device, "vkMapMemory");
|
|
dt->vkMapMemory = f_;
|
|
}
|
|
{
|
|
PFN_vkMergePipelineCaches f_ = (PFN_vkMergePipelineCaches)gdpa(device, "vkMergePipelineCaches");
|
|
dt->vkMergePipelineCaches = f_;
|
|
}
|
|
{
|
|
PFN_vkQueueBindSparse f_ = (PFN_vkQueueBindSparse)gdpa(device, "vkQueueBindSparse");
|
|
dt->vkQueueBindSparse = f_;
|
|
}
|
|
{
|
|
PFN_vkQueueSubmit f_ = (PFN_vkQueueSubmit)gdpa(device, "vkQueueSubmit");
|
|
dt->vkQueueSubmit = f_;
|
|
}
|
|
{
|
|
PFN_vkQueueSubmit2 f_ = (PFN_vkQueueSubmit2)gdpa(device, "vkQueueSubmit2");
|
|
if (!f_) f_ = (PFN_vkQueueSubmit2)gdpa(device, "vkQueueSubmit2KHR");
|
|
dt->vkQueueSubmit2 = f_;
|
|
}
|
|
{
|
|
PFN_vkQueueWaitIdle f_ = (PFN_vkQueueWaitIdle)gdpa(device, "vkQueueWaitIdle");
|
|
dt->vkQueueWaitIdle = f_;
|
|
}
|
|
{
|
|
PFN_vkResetCommandBuffer f_ = (PFN_vkResetCommandBuffer)gdpa(device, "vkResetCommandBuffer");
|
|
dt->vkResetCommandBuffer = f_;
|
|
}
|
|
{
|
|
PFN_vkResetCommandPool f_ = (PFN_vkResetCommandPool)gdpa(device, "vkResetCommandPool");
|
|
dt->vkResetCommandPool = f_;
|
|
}
|
|
{
|
|
PFN_vkResetDescriptorPool f_ = (PFN_vkResetDescriptorPool)gdpa(device, "vkResetDescriptorPool");
|
|
dt->vkResetDescriptorPool = f_;
|
|
}
|
|
{
|
|
PFN_vkResetEvent f_ = (PFN_vkResetEvent)gdpa(device, "vkResetEvent");
|
|
dt->vkResetEvent = f_;
|
|
}
|
|
{
|
|
PFN_vkResetFences f_ = (PFN_vkResetFences)gdpa(device, "vkResetFences");
|
|
dt->vkResetFences = f_;
|
|
}
|
|
{
|
|
PFN_vkResetQueryPool f_ = (PFN_vkResetQueryPool)gdpa(device, "vkResetQueryPool");
|
|
if (!f_) f_ = (PFN_vkResetQueryPool)gdpa(device, "vkResetQueryPoolEXT");
|
|
dt->vkResetQueryPool = f_;
|
|
}
|
|
{
|
|
PFN_vkSetDeviceMemoryPriorityEXT f_ = (PFN_vkSetDeviceMemoryPriorityEXT)gdpa(device, "vkSetDeviceMemoryPriorityEXT");
|
|
dt->vkSetDeviceMemoryPriorityEXT = f_;
|
|
}
|
|
{
|
|
PFN_vkSetEvent f_ = (PFN_vkSetEvent)gdpa(device, "vkSetEvent");
|
|
dt->vkSetEvent = f_;
|
|
}
|
|
{
|
|
PFN_vkSignalSemaphore f_ = (PFN_vkSignalSemaphore)gdpa(device, "vkSignalSemaphore");
|
|
if (!f_) f_ = (PFN_vkSignalSemaphore)gdpa(device, "vkSignalSemaphoreKHR");
|
|
dt->vkSignalSemaphore = f_;
|
|
}
|
|
{
|
|
PFN_vkTrimCommandPool f_ = (PFN_vkTrimCommandPool)gdpa(device, "vkTrimCommandPool");
|
|
if (!f_) f_ = (PFN_vkTrimCommandPool)gdpa(device, "vkTrimCommandPoolKHR");
|
|
dt->vkTrimCommandPool = f_;
|
|
}
|
|
{
|
|
PFN_vkUnmapMemory f_ = (PFN_vkUnmapMemory)gdpa(device, "vkUnmapMemory");
|
|
dt->vkUnmapMemory = f_;
|
|
}
|
|
{
|
|
PFN_vkUpdateDescriptorSetWithTemplate f_ = (PFN_vkUpdateDescriptorSetWithTemplate)gdpa(device, "vkUpdateDescriptorSetWithTemplate");
|
|
if (!f_) f_ = (PFN_vkUpdateDescriptorSetWithTemplate)gdpa(device, "vkUpdateDescriptorSetWithTemplateKHR");
|
|
dt->vkUpdateDescriptorSetWithTemplate = f_;
|
|
}
|
|
{
|
|
PFN_vkUpdateDescriptorSets f_ = (PFN_vkUpdateDescriptorSets)gdpa(device, "vkUpdateDescriptorSets");
|
|
dt->vkUpdateDescriptorSets = f_;
|
|
}
|
|
{
|
|
PFN_vkWaitForFences f_ = (PFN_vkWaitForFences)gdpa(device, "vkWaitForFences");
|
|
dt->vkWaitForFences = f_;
|
|
}
|
|
{
|
|
PFN_vkWaitSemaphores f_ = (PFN_vkWaitSemaphores)gdpa(device, "vkWaitSemaphores");
|
|
if (!f_) f_ = (PFN_vkWaitSemaphores)gdpa(device, "vkWaitSemaphoresKHR");
|
|
dt->vkWaitSemaphores = f_;
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkAllocateCommandBuffers(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkCommandBufferAllocateInfo *pAllocateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCommandBufferAllocateInfo *a_ = (VkCommandBufferAllocateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCommandBufferAllocateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkCommandBufferAllocateInfo(d, &a_[i_]);
|
|
pAllocateInfo = a_;
|
|
} else {
|
|
pAllocateInfo = NULL;
|
|
}
|
|
uint8_t has_pCommandBuffers = vkb_dec_u8(d); uint32_t n_pCommandBuffers = vkb_dec_u32(d);
|
|
VkCommandBuffer *pCommandBuffers = has_pCommandBuffers ? (VkCommandBuffer *)vkb_dec_alloc_zero(d, (size_t)n_pCommandBuffers * sizeof(VkCommandBuffer)) : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkAllocateCommandBuffers) { vkb_srv_missing(c, "vkAllocateCommandBuffers"); return; }
|
|
VkResult r_ = c->dt->vkAllocateCommandBuffers(device, pAllocateInfo, pCommandBuffers);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
{
|
|
uint32_t rn_ = n_pCommandBuffers;
|
|
uint32_t has_ = pCommandBuffers ? (rn_ < n_pCommandBuffers ? rn_ : n_pCommandBuffers) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_u64(e, (uint64_t)(uintptr_t)pCommandBuffers[i_]);
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkAllocateDescriptorSets(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDescriptorSetAllocateInfo *pAllocateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDescriptorSetAllocateInfo *a_ = (VkDescriptorSetAllocateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDescriptorSetAllocateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDescriptorSetAllocateInfo(d, &a_[i_]);
|
|
pAllocateInfo = a_;
|
|
} else {
|
|
pAllocateInfo = NULL;
|
|
}
|
|
uint8_t has_pDescriptorSets = vkb_dec_u8(d); uint32_t n_pDescriptorSets = vkb_dec_u32(d);
|
|
VkDescriptorSet *pDescriptorSets = has_pDescriptorSets ? (VkDescriptorSet *)vkb_dec_alloc_zero(d, (size_t)n_pDescriptorSets * sizeof(VkDescriptorSet)) : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkAllocateDescriptorSets) { vkb_srv_missing(c, "vkAllocateDescriptorSets"); return; }
|
|
VkResult r_ = c->dt->vkAllocateDescriptorSets(device, pAllocateInfo, pDescriptorSets);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
{
|
|
uint32_t rn_ = n_pDescriptorSets;
|
|
uint32_t has_ = pDescriptorSets ? (rn_ < n_pDescriptorSets ? rn_ : n_pDescriptorSets) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pDescriptorSets[i_], sizeof(VkDescriptorSet));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkBeginCommandBuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkCommandBufferBeginInfo *pBeginInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCommandBufferBeginInfo *a_ = (VkCommandBufferBeginInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCommandBufferBeginInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkCommandBufferBeginInfo(d, &a_[i_]);
|
|
pBeginInfo = a_;
|
|
} else {
|
|
pBeginInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkBeginCommandBuffer) { vkb_srv_missing(c, "vkBeginCommandBuffer"); return; }
|
|
VkResult r_ = c->dt->vkBeginCommandBuffer(commandBuffer, pBeginInfo);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkBindBufferMemory(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer buffer;
|
|
vkb_dec_bytes(d, &buffer, sizeof(buffer));
|
|
VkDeviceMemory memory;
|
|
vkb_dec_bytes(d, &memory, sizeof(memory));
|
|
VkDeviceSize memoryOffset;
|
|
vkb_dec_bytes(d, &memoryOffset, sizeof(memoryOffset));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkBindBufferMemory) { vkb_srv_missing(c, "vkBindBufferMemory"); return; }
|
|
VkResult r_ = c->dt->vkBindBufferMemory(device, buffer, memory, memoryOffset);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkBindBufferMemory2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t bindInfoCount;
|
|
vkb_dec_bytes(d, &bindInfoCount, sizeof(bindInfoCount));
|
|
const VkBindBufferMemoryInfo *pBindInfos;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBindBufferMemoryInfo *a_ = (VkBindBufferMemoryInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBindBufferMemoryInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBindBufferMemoryInfo(d, &a_[i_]);
|
|
pBindInfos = a_;
|
|
} else {
|
|
pBindInfos = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkBindBufferMemory2) { vkb_srv_missing(c, "vkBindBufferMemory2"); return; }
|
|
VkResult r_ = c->dt->vkBindBufferMemory2(device, bindInfoCount, pBindInfos);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkBindImageMemory(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage image;
|
|
vkb_dec_bytes(d, &image, sizeof(image));
|
|
VkDeviceMemory memory;
|
|
vkb_dec_bytes(d, &memory, sizeof(memory));
|
|
VkDeviceSize memoryOffset;
|
|
vkb_dec_bytes(d, &memoryOffset, sizeof(memoryOffset));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkBindImageMemory) { vkb_srv_missing(c, "vkBindImageMemory"); return; }
|
|
VkResult r_ = c->dt->vkBindImageMemory(device, image, memory, memoryOffset);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkBindImageMemory2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t bindInfoCount;
|
|
vkb_dec_bytes(d, &bindInfoCount, sizeof(bindInfoCount));
|
|
const VkBindImageMemoryInfo *pBindInfos;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBindImageMemoryInfo *a_ = (VkBindImageMemoryInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBindImageMemoryInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBindImageMemoryInfo(d, &a_[i_]);
|
|
pBindInfos = a_;
|
|
} else {
|
|
pBindInfos = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkBindImageMemory2) { vkb_srv_missing(c, "vkBindImageMemory2"); return; }
|
|
VkResult r_ = c->dt->vkBindImageMemory2(device, bindInfoCount, pBindInfos);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkBindTensorMemoryARM(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t bindInfoCount;
|
|
vkb_dec_bytes(d, &bindInfoCount, sizeof(bindInfoCount));
|
|
const VkBindTensorMemoryInfoARM *pBindInfos;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBindTensorMemoryInfoARM *a_ = (VkBindTensorMemoryInfoARM *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBindTensorMemoryInfoARM));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBindTensorMemoryInfoARM(d, &a_[i_]);
|
|
pBindInfos = a_;
|
|
} else {
|
|
pBindInfos = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkBindTensorMemoryARM) { vkb_srv_missing(c, "vkBindTensorMemoryARM"); return; }
|
|
VkResult r_ = c->dt->vkBindTensorMemoryARM(device, bindInfoCount, pBindInfos);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkCmdBeginConditionalRenderingEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkConditionalRenderingBeginInfoEXT *pConditionalRenderingBegin;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkConditionalRenderingBeginInfoEXT *a_ = (VkConditionalRenderingBeginInfoEXT *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkConditionalRenderingBeginInfoEXT));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkConditionalRenderingBeginInfoEXT(d, &a_[i_]);
|
|
pConditionalRenderingBegin = a_;
|
|
} else {
|
|
pConditionalRenderingBegin = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBeginConditionalRenderingEXT) { vkb_srv_missing(c, "vkCmdBeginConditionalRenderingEXT"); return; }
|
|
c->dt->vkCmdBeginConditionalRenderingEXT(commandBuffer, pConditionalRenderingBegin);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBeginCustomResolveEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkBeginCustomResolveInfoEXT *pBeginCustomResolveInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBeginCustomResolveInfoEXT *a_ = (VkBeginCustomResolveInfoEXT *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBeginCustomResolveInfoEXT));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBeginCustomResolveInfoEXT(d, &a_[i_]);
|
|
pBeginCustomResolveInfo = a_;
|
|
} else {
|
|
pBeginCustomResolveInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBeginCustomResolveEXT) { vkb_srv_missing(c, "vkCmdBeginCustomResolveEXT"); return; }
|
|
c->dt->vkCmdBeginCustomResolveEXT(commandBuffer, pBeginCustomResolveInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBeginQuery(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
uint32_t query;
|
|
vkb_dec_bytes(d, &query, sizeof(query));
|
|
VkQueryControlFlags flags;
|
|
vkb_dec_bytes(d, &flags, sizeof(flags));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBeginQuery) { vkb_srv_missing(c, "vkCmdBeginQuery"); return; }
|
|
c->dt->vkCmdBeginQuery(commandBuffer, queryPool, query, flags);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBeginQueryIndexedEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
uint32_t query;
|
|
vkb_dec_bytes(d, &query, sizeof(query));
|
|
VkQueryControlFlags flags;
|
|
vkb_dec_bytes(d, &flags, sizeof(flags));
|
|
uint32_t index;
|
|
vkb_dec_bytes(d, &index, sizeof(index));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBeginQueryIndexedEXT) { vkb_srv_missing(c, "vkCmdBeginQueryIndexedEXT"); return; }
|
|
c->dt->vkCmdBeginQueryIndexedEXT(commandBuffer, queryPool, query, flags, index);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBeginRenderPass(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkRenderPassBeginInfo *pRenderPassBegin;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkRenderPassBeginInfo *a_ = (VkRenderPassBeginInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkRenderPassBeginInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkRenderPassBeginInfo(d, &a_[i_]);
|
|
pRenderPassBegin = a_;
|
|
} else {
|
|
pRenderPassBegin = NULL;
|
|
}
|
|
VkSubpassContents contents;
|
|
vkb_dec_bytes(d, &contents, sizeof(contents));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBeginRenderPass) { vkb_srv_missing(c, "vkCmdBeginRenderPass"); return; }
|
|
c->dt->vkCmdBeginRenderPass(commandBuffer, pRenderPassBegin, contents);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBeginRenderPass2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkRenderPassBeginInfo *pRenderPassBegin;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkRenderPassBeginInfo *a_ = (VkRenderPassBeginInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkRenderPassBeginInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkRenderPassBeginInfo(d, &a_[i_]);
|
|
pRenderPassBegin = a_;
|
|
} else {
|
|
pRenderPassBegin = NULL;
|
|
}
|
|
const VkSubpassBeginInfo *pSubpassBeginInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSubpassBeginInfo *a_ = (VkSubpassBeginInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSubpassBeginInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSubpassBeginInfo(d, &a_[i_]);
|
|
pSubpassBeginInfo = a_;
|
|
} else {
|
|
pSubpassBeginInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBeginRenderPass2) { vkb_srv_missing(c, "vkCmdBeginRenderPass2"); return; }
|
|
c->dt->vkCmdBeginRenderPass2(commandBuffer, pRenderPassBegin, pSubpassBeginInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBeginRendering(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkRenderingInfo *pRenderingInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkRenderingInfo *a_ = (VkRenderingInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkRenderingInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkRenderingInfo(d, &a_[i_]);
|
|
pRenderingInfo = a_;
|
|
} else {
|
|
pRenderingInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBeginRendering) { vkb_srv_missing(c, "vkCmdBeginRendering"); return; }
|
|
c->dt->vkCmdBeginRendering(commandBuffer, pRenderingInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBeginTransformFeedbackEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstCounterBuffer;
|
|
vkb_dec_bytes(d, &firstCounterBuffer, sizeof(firstCounterBuffer));
|
|
uint32_t counterBufferCount;
|
|
vkb_dec_bytes(d, &counterBufferCount, sizeof(counterBufferCount));
|
|
const VkBuffer *pCounterBuffers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pCounterBuffers = (const VkBuffer *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkBuffer));
|
|
} else {
|
|
pCounterBuffers = NULL;
|
|
}
|
|
const VkDeviceSize *pCounterBufferOffsets;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pCounterBufferOffsets = (const VkDeviceSize *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDeviceSize));
|
|
} else {
|
|
pCounterBufferOffsets = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBeginTransformFeedbackEXT) { vkb_srv_missing(c, "vkCmdBeginTransformFeedbackEXT"); return; }
|
|
c->dt->vkCmdBeginTransformFeedbackEXT(commandBuffer, firstCounterBuffer, counterBufferCount, pCounterBuffers, pCounterBufferOffsets);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBindDescriptorSets(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineBindPoint pipelineBindPoint;
|
|
vkb_dec_bytes(d, &pipelineBindPoint, sizeof(pipelineBindPoint));
|
|
VkPipelineLayout layout;
|
|
vkb_dec_bytes(d, &layout, sizeof(layout));
|
|
uint32_t firstSet;
|
|
vkb_dec_bytes(d, &firstSet, sizeof(firstSet));
|
|
uint32_t descriptorSetCount;
|
|
vkb_dec_bytes(d, &descriptorSetCount, sizeof(descriptorSetCount));
|
|
const VkDescriptorSet *pDescriptorSets;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pDescriptorSets = (const VkDescriptorSet *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDescriptorSet));
|
|
} else {
|
|
pDescriptorSets = NULL;
|
|
}
|
|
uint32_t dynamicOffsetCount;
|
|
vkb_dec_bytes(d, &dynamicOffsetCount, sizeof(dynamicOffsetCount));
|
|
const uint32_t *pDynamicOffsets;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pDynamicOffsets = (const uint32_t *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(uint32_t));
|
|
} else {
|
|
pDynamicOffsets = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBindDescriptorSets) { vkb_srv_missing(c, "vkCmdBindDescriptorSets"); return; }
|
|
c->dt->vkCmdBindDescriptorSets(commandBuffer, pipelineBindPoint, layout, firstSet, descriptorSetCount, pDescriptorSets, dynamicOffsetCount, pDynamicOffsets);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBindDescriptorSets2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkBindDescriptorSetsInfo *pBindDescriptorSetsInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBindDescriptorSetsInfo *a_ = (VkBindDescriptorSetsInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBindDescriptorSetsInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBindDescriptorSetsInfo(d, &a_[i_]);
|
|
pBindDescriptorSetsInfo = a_;
|
|
} else {
|
|
pBindDescriptorSetsInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBindDescriptorSets2) { vkb_srv_missing(c, "vkCmdBindDescriptorSets2"); return; }
|
|
c->dt->vkCmdBindDescriptorSets2(commandBuffer, pBindDescriptorSetsInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBindIndexBuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer buffer;
|
|
vkb_dec_bytes(d, &buffer, sizeof(buffer));
|
|
VkDeviceSize offset;
|
|
vkb_dec_bytes(d, &offset, sizeof(offset));
|
|
VkIndexType indexType;
|
|
vkb_dec_bytes(d, &indexType, sizeof(indexType));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBindIndexBuffer) { vkb_srv_missing(c, "vkCmdBindIndexBuffer"); return; }
|
|
c->dt->vkCmdBindIndexBuffer(commandBuffer, buffer, offset, indexType);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBindIndexBuffer2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer buffer;
|
|
vkb_dec_bytes(d, &buffer, sizeof(buffer));
|
|
VkDeviceSize offset;
|
|
vkb_dec_bytes(d, &offset, sizeof(offset));
|
|
VkDeviceSize size;
|
|
vkb_dec_bytes(d, &size, sizeof(size));
|
|
VkIndexType indexType;
|
|
vkb_dec_bytes(d, &indexType, sizeof(indexType));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBindIndexBuffer2) { vkb_srv_missing(c, "vkCmdBindIndexBuffer2"); return; }
|
|
c->dt->vkCmdBindIndexBuffer2(commandBuffer, buffer, offset, size, indexType);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBindPipeline(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineBindPoint pipelineBindPoint;
|
|
vkb_dec_bytes(d, &pipelineBindPoint, sizeof(pipelineBindPoint));
|
|
VkPipeline pipeline;
|
|
vkb_dec_bytes(d, &pipeline, sizeof(pipeline));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBindPipeline) { vkb_srv_missing(c, "vkCmdBindPipeline"); return; }
|
|
c->dt->vkCmdBindPipeline(commandBuffer, pipelineBindPoint, pipeline);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBindTransformFeedbackBuffersEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstBinding;
|
|
vkb_dec_bytes(d, &firstBinding, sizeof(firstBinding));
|
|
uint32_t bindingCount;
|
|
vkb_dec_bytes(d, &bindingCount, sizeof(bindingCount));
|
|
const VkBuffer *pBuffers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pBuffers = (const VkBuffer *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkBuffer));
|
|
} else {
|
|
pBuffers = NULL;
|
|
}
|
|
const VkDeviceSize *pOffsets;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pOffsets = (const VkDeviceSize *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDeviceSize));
|
|
} else {
|
|
pOffsets = NULL;
|
|
}
|
|
const VkDeviceSize *pSizes;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pSizes = (const VkDeviceSize *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDeviceSize));
|
|
} else {
|
|
pSizes = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBindTransformFeedbackBuffersEXT) { vkb_srv_missing(c, "vkCmdBindTransformFeedbackBuffersEXT"); return; }
|
|
c->dt->vkCmdBindTransformFeedbackBuffersEXT(commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets, pSizes);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBindVertexBuffers(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstBinding;
|
|
vkb_dec_bytes(d, &firstBinding, sizeof(firstBinding));
|
|
uint32_t bindingCount;
|
|
vkb_dec_bytes(d, &bindingCount, sizeof(bindingCount));
|
|
const VkBuffer *pBuffers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pBuffers = (const VkBuffer *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkBuffer));
|
|
} else {
|
|
pBuffers = NULL;
|
|
}
|
|
const VkDeviceSize *pOffsets;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pOffsets = (const VkDeviceSize *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDeviceSize));
|
|
} else {
|
|
pOffsets = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBindVertexBuffers) { vkb_srv_missing(c, "vkCmdBindVertexBuffers"); return; }
|
|
c->dt->vkCmdBindVertexBuffers(commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBindVertexBuffers2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstBinding;
|
|
vkb_dec_bytes(d, &firstBinding, sizeof(firstBinding));
|
|
uint32_t bindingCount;
|
|
vkb_dec_bytes(d, &bindingCount, sizeof(bindingCount));
|
|
const VkBuffer *pBuffers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pBuffers = (const VkBuffer *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkBuffer));
|
|
} else {
|
|
pBuffers = NULL;
|
|
}
|
|
const VkDeviceSize *pOffsets;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pOffsets = (const VkDeviceSize *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDeviceSize));
|
|
} else {
|
|
pOffsets = NULL;
|
|
}
|
|
const VkDeviceSize *pSizes;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pSizes = (const VkDeviceSize *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDeviceSize));
|
|
} else {
|
|
pSizes = NULL;
|
|
}
|
|
const VkDeviceSize *pStrides;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pStrides = (const VkDeviceSize *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDeviceSize));
|
|
} else {
|
|
pStrides = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBindVertexBuffers2) { vkb_srv_missing(c, "vkCmdBindVertexBuffers2"); return; }
|
|
c->dt->vkCmdBindVertexBuffers2(commandBuffer, firstBinding, bindingCount, pBuffers, pOffsets, pSizes, pStrides);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBlitImage(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage srcImage;
|
|
vkb_dec_bytes(d, &srcImage, sizeof(srcImage));
|
|
VkImageLayout srcImageLayout;
|
|
vkb_dec_bytes(d, &srcImageLayout, sizeof(srcImageLayout));
|
|
VkImage dstImage;
|
|
vkb_dec_bytes(d, &dstImage, sizeof(dstImage));
|
|
VkImageLayout dstImageLayout;
|
|
vkb_dec_bytes(d, &dstImageLayout, sizeof(dstImageLayout));
|
|
uint32_t regionCount;
|
|
vkb_dec_bytes(d, ®ionCount, sizeof(regionCount));
|
|
const VkImageBlit *pRegions;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pRegions = (const VkImageBlit *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkImageBlit));
|
|
} else {
|
|
pRegions = NULL;
|
|
}
|
|
VkFilter filter;
|
|
vkb_dec_bytes(d, &filter, sizeof(filter));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBlitImage) { vkb_srv_missing(c, "vkCmdBlitImage"); return; }
|
|
c->dt->vkCmdBlitImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions, filter);
|
|
}
|
|
|
|
void vkb_sv_vkCmdBlitImage2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkBlitImageInfo2 *pBlitImageInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBlitImageInfo2 *a_ = (VkBlitImageInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBlitImageInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBlitImageInfo2(d, &a_[i_]);
|
|
pBlitImageInfo = a_;
|
|
} else {
|
|
pBlitImageInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdBlitImage2) { vkb_srv_missing(c, "vkCmdBlitImage2"); return; }
|
|
c->dt->vkCmdBlitImage2(commandBuffer, pBlitImageInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdClearAttachments(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t attachmentCount;
|
|
vkb_dec_bytes(d, &attachmentCount, sizeof(attachmentCount));
|
|
const VkClearAttachment *pAttachments;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pAttachments = (const VkClearAttachment *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkClearAttachment));
|
|
} else {
|
|
pAttachments = NULL;
|
|
}
|
|
uint32_t rectCount;
|
|
vkb_dec_bytes(d, &rectCount, sizeof(rectCount));
|
|
const VkClearRect *pRects;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pRects = (const VkClearRect *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkClearRect));
|
|
} else {
|
|
pRects = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdClearAttachments) { vkb_srv_missing(c, "vkCmdClearAttachments"); return; }
|
|
c->dt->vkCmdClearAttachments(commandBuffer, attachmentCount, pAttachments, rectCount, pRects);
|
|
}
|
|
|
|
void vkb_sv_vkCmdClearColorImage(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage image;
|
|
vkb_dec_bytes(d, &image, sizeof(image));
|
|
VkImageLayout imageLayout;
|
|
vkb_dec_bytes(d, &imageLayout, sizeof(imageLayout));
|
|
const VkClearColorValue *pColor;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pColor = (const VkClearColorValue *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkClearColorValue));
|
|
} else {
|
|
pColor = NULL;
|
|
}
|
|
uint32_t rangeCount;
|
|
vkb_dec_bytes(d, &rangeCount, sizeof(rangeCount));
|
|
const VkImageSubresourceRange *pRanges;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pRanges = (const VkImageSubresourceRange *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkImageSubresourceRange));
|
|
} else {
|
|
pRanges = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdClearColorImage) { vkb_srv_missing(c, "vkCmdClearColorImage"); return; }
|
|
c->dt->vkCmdClearColorImage(commandBuffer, image, imageLayout, pColor, rangeCount, pRanges);
|
|
}
|
|
|
|
void vkb_sv_vkCmdClearDepthStencilImage(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage image;
|
|
vkb_dec_bytes(d, &image, sizeof(image));
|
|
VkImageLayout imageLayout;
|
|
vkb_dec_bytes(d, &imageLayout, sizeof(imageLayout));
|
|
const VkClearDepthStencilValue *pDepthStencil;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pDepthStencil = (const VkClearDepthStencilValue *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkClearDepthStencilValue));
|
|
} else {
|
|
pDepthStencil = NULL;
|
|
}
|
|
uint32_t rangeCount;
|
|
vkb_dec_bytes(d, &rangeCount, sizeof(rangeCount));
|
|
const VkImageSubresourceRange *pRanges;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pRanges = (const VkImageSubresourceRange *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkImageSubresourceRange));
|
|
} else {
|
|
pRanges = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdClearDepthStencilImage) { vkb_srv_missing(c, "vkCmdClearDepthStencilImage"); return; }
|
|
c->dt->vkCmdClearDepthStencilImage(commandBuffer, image, imageLayout, pDepthStencil, rangeCount, pRanges);
|
|
}
|
|
|
|
void vkb_sv_vkCmdCopyBuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer srcBuffer;
|
|
vkb_dec_bytes(d, &srcBuffer, sizeof(srcBuffer));
|
|
VkBuffer dstBuffer;
|
|
vkb_dec_bytes(d, &dstBuffer, sizeof(dstBuffer));
|
|
uint32_t regionCount;
|
|
vkb_dec_bytes(d, ®ionCount, sizeof(regionCount));
|
|
const VkBufferCopy *pRegions;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pRegions = (const VkBufferCopy *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkBufferCopy));
|
|
} else {
|
|
pRegions = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdCopyBuffer) { vkb_srv_missing(c, "vkCmdCopyBuffer"); return; }
|
|
c->dt->vkCmdCopyBuffer(commandBuffer, srcBuffer, dstBuffer, regionCount, pRegions);
|
|
}
|
|
|
|
void vkb_sv_vkCmdCopyBuffer2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkCopyBufferInfo2 *pCopyBufferInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCopyBufferInfo2 *a_ = (VkCopyBufferInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCopyBufferInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkCopyBufferInfo2(d, &a_[i_]);
|
|
pCopyBufferInfo = a_;
|
|
} else {
|
|
pCopyBufferInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdCopyBuffer2) { vkb_srv_missing(c, "vkCmdCopyBuffer2"); return; }
|
|
c->dt->vkCmdCopyBuffer2(commandBuffer, pCopyBufferInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdCopyBufferToImage(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer srcBuffer;
|
|
vkb_dec_bytes(d, &srcBuffer, sizeof(srcBuffer));
|
|
VkImage dstImage;
|
|
vkb_dec_bytes(d, &dstImage, sizeof(dstImage));
|
|
VkImageLayout dstImageLayout;
|
|
vkb_dec_bytes(d, &dstImageLayout, sizeof(dstImageLayout));
|
|
uint32_t regionCount;
|
|
vkb_dec_bytes(d, ®ionCount, sizeof(regionCount));
|
|
const VkBufferImageCopy *pRegions;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pRegions = (const VkBufferImageCopy *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkBufferImageCopy));
|
|
} else {
|
|
pRegions = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdCopyBufferToImage) { vkb_srv_missing(c, "vkCmdCopyBufferToImage"); return; }
|
|
c->dt->vkCmdCopyBufferToImage(commandBuffer, srcBuffer, dstImage, dstImageLayout, regionCount, pRegions);
|
|
}
|
|
|
|
void vkb_sv_vkCmdCopyBufferToImage2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkCopyBufferToImageInfo2 *pCopyBufferToImageInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCopyBufferToImageInfo2 *a_ = (VkCopyBufferToImageInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCopyBufferToImageInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkCopyBufferToImageInfo2(d, &a_[i_]);
|
|
pCopyBufferToImageInfo = a_;
|
|
} else {
|
|
pCopyBufferToImageInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdCopyBufferToImage2) { vkb_srv_missing(c, "vkCmdCopyBufferToImage2"); return; }
|
|
c->dt->vkCmdCopyBufferToImage2(commandBuffer, pCopyBufferToImageInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdCopyImage(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage srcImage;
|
|
vkb_dec_bytes(d, &srcImage, sizeof(srcImage));
|
|
VkImageLayout srcImageLayout;
|
|
vkb_dec_bytes(d, &srcImageLayout, sizeof(srcImageLayout));
|
|
VkImage dstImage;
|
|
vkb_dec_bytes(d, &dstImage, sizeof(dstImage));
|
|
VkImageLayout dstImageLayout;
|
|
vkb_dec_bytes(d, &dstImageLayout, sizeof(dstImageLayout));
|
|
uint32_t regionCount;
|
|
vkb_dec_bytes(d, ®ionCount, sizeof(regionCount));
|
|
const VkImageCopy *pRegions;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pRegions = (const VkImageCopy *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkImageCopy));
|
|
} else {
|
|
pRegions = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdCopyImage) { vkb_srv_missing(c, "vkCmdCopyImage"); return; }
|
|
c->dt->vkCmdCopyImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions);
|
|
}
|
|
|
|
void vkb_sv_vkCmdCopyImage2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkCopyImageInfo2 *pCopyImageInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCopyImageInfo2 *a_ = (VkCopyImageInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCopyImageInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkCopyImageInfo2(d, &a_[i_]);
|
|
pCopyImageInfo = a_;
|
|
} else {
|
|
pCopyImageInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdCopyImage2) { vkb_srv_missing(c, "vkCmdCopyImage2"); return; }
|
|
c->dt->vkCmdCopyImage2(commandBuffer, pCopyImageInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdCopyImageToBuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage srcImage;
|
|
vkb_dec_bytes(d, &srcImage, sizeof(srcImage));
|
|
VkImageLayout srcImageLayout;
|
|
vkb_dec_bytes(d, &srcImageLayout, sizeof(srcImageLayout));
|
|
VkBuffer dstBuffer;
|
|
vkb_dec_bytes(d, &dstBuffer, sizeof(dstBuffer));
|
|
uint32_t regionCount;
|
|
vkb_dec_bytes(d, ®ionCount, sizeof(regionCount));
|
|
const VkBufferImageCopy *pRegions;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pRegions = (const VkBufferImageCopy *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkBufferImageCopy));
|
|
} else {
|
|
pRegions = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdCopyImageToBuffer) { vkb_srv_missing(c, "vkCmdCopyImageToBuffer"); return; }
|
|
c->dt->vkCmdCopyImageToBuffer(commandBuffer, srcImage, srcImageLayout, dstBuffer, regionCount, pRegions);
|
|
}
|
|
|
|
void vkb_sv_vkCmdCopyImageToBuffer2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkCopyImageToBufferInfo2 *pCopyImageToBufferInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCopyImageToBufferInfo2 *a_ = (VkCopyImageToBufferInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCopyImageToBufferInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkCopyImageToBufferInfo2(d, &a_[i_]);
|
|
pCopyImageToBufferInfo = a_;
|
|
} else {
|
|
pCopyImageToBufferInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdCopyImageToBuffer2) { vkb_srv_missing(c, "vkCmdCopyImageToBuffer2"); return; }
|
|
c->dt->vkCmdCopyImageToBuffer2(commandBuffer, pCopyImageToBufferInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdCopyQueryPoolResults(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
uint32_t firstQuery;
|
|
vkb_dec_bytes(d, &firstQuery, sizeof(firstQuery));
|
|
uint32_t queryCount;
|
|
vkb_dec_bytes(d, &queryCount, sizeof(queryCount));
|
|
VkBuffer dstBuffer;
|
|
vkb_dec_bytes(d, &dstBuffer, sizeof(dstBuffer));
|
|
VkDeviceSize dstOffset;
|
|
vkb_dec_bytes(d, &dstOffset, sizeof(dstOffset));
|
|
VkDeviceSize stride;
|
|
vkb_dec_bytes(d, &stride, sizeof(stride));
|
|
VkQueryResultFlags flags;
|
|
vkb_dec_bytes(d, &flags, sizeof(flags));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdCopyQueryPoolResults) { vkb_srv_missing(c, "vkCmdCopyQueryPoolResults"); return; }
|
|
c->dt->vkCmdCopyQueryPoolResults(commandBuffer, queryPool, firstQuery, queryCount, dstBuffer, dstOffset, stride, flags);
|
|
}
|
|
|
|
void vkb_sv_vkCmdCopyTensorARM(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkCopyTensorInfoARM *pCopyTensorInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCopyTensorInfoARM *a_ = (VkCopyTensorInfoARM *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCopyTensorInfoARM));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkCopyTensorInfoARM(d, &a_[i_]);
|
|
pCopyTensorInfo = a_;
|
|
} else {
|
|
pCopyTensorInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdCopyTensorARM) { vkb_srv_missing(c, "vkCmdCopyTensorARM"); return; }
|
|
c->dt->vkCmdCopyTensorARM(commandBuffer, pCopyTensorInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDispatch(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t groupCountX;
|
|
vkb_dec_bytes(d, &groupCountX, sizeof(groupCountX));
|
|
uint32_t groupCountY;
|
|
vkb_dec_bytes(d, &groupCountY, sizeof(groupCountY));
|
|
uint32_t groupCountZ;
|
|
vkb_dec_bytes(d, &groupCountZ, sizeof(groupCountZ));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDispatch) { vkb_srv_missing(c, "vkCmdDispatch"); return; }
|
|
c->dt->vkCmdDispatch(commandBuffer, groupCountX, groupCountY, groupCountZ);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDispatchBase(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t baseGroupX;
|
|
vkb_dec_bytes(d, &baseGroupX, sizeof(baseGroupX));
|
|
uint32_t baseGroupY;
|
|
vkb_dec_bytes(d, &baseGroupY, sizeof(baseGroupY));
|
|
uint32_t baseGroupZ;
|
|
vkb_dec_bytes(d, &baseGroupZ, sizeof(baseGroupZ));
|
|
uint32_t groupCountX;
|
|
vkb_dec_bytes(d, &groupCountX, sizeof(groupCountX));
|
|
uint32_t groupCountY;
|
|
vkb_dec_bytes(d, &groupCountY, sizeof(groupCountY));
|
|
uint32_t groupCountZ;
|
|
vkb_dec_bytes(d, &groupCountZ, sizeof(groupCountZ));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDispatchBase) { vkb_srv_missing(c, "vkCmdDispatchBase"); return; }
|
|
c->dt->vkCmdDispatchBase(commandBuffer, baseGroupX, baseGroupY, baseGroupZ, groupCountX, groupCountY, groupCountZ);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDispatchIndirect(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer buffer;
|
|
vkb_dec_bytes(d, &buffer, sizeof(buffer));
|
|
VkDeviceSize offset;
|
|
vkb_dec_bytes(d, &offset, sizeof(offset));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDispatchIndirect) { vkb_srv_missing(c, "vkCmdDispatchIndirect"); return; }
|
|
c->dt->vkCmdDispatchIndirect(commandBuffer, buffer, offset);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDraw(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t vertexCount;
|
|
vkb_dec_bytes(d, &vertexCount, sizeof(vertexCount));
|
|
uint32_t instanceCount;
|
|
vkb_dec_bytes(d, &instanceCount, sizeof(instanceCount));
|
|
uint32_t firstVertex;
|
|
vkb_dec_bytes(d, &firstVertex, sizeof(firstVertex));
|
|
uint32_t firstInstance;
|
|
vkb_dec_bytes(d, &firstInstance, sizeof(firstInstance));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDraw) { vkb_srv_missing(c, "vkCmdDraw"); return; }
|
|
c->dt->vkCmdDraw(commandBuffer, vertexCount, instanceCount, firstVertex, firstInstance);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDrawIndexed(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t indexCount;
|
|
vkb_dec_bytes(d, &indexCount, sizeof(indexCount));
|
|
uint32_t instanceCount;
|
|
vkb_dec_bytes(d, &instanceCount, sizeof(instanceCount));
|
|
uint32_t firstIndex;
|
|
vkb_dec_bytes(d, &firstIndex, sizeof(firstIndex));
|
|
int32_t vertexOffset;
|
|
vkb_dec_bytes(d, &vertexOffset, sizeof(vertexOffset));
|
|
uint32_t firstInstance;
|
|
vkb_dec_bytes(d, &firstInstance, sizeof(firstInstance));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDrawIndexed) { vkb_srv_missing(c, "vkCmdDrawIndexed"); return; }
|
|
c->dt->vkCmdDrawIndexed(commandBuffer, indexCount, instanceCount, firstIndex, vertexOffset, firstInstance);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDrawIndexedIndirect(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer buffer;
|
|
vkb_dec_bytes(d, &buffer, sizeof(buffer));
|
|
VkDeviceSize offset;
|
|
vkb_dec_bytes(d, &offset, sizeof(offset));
|
|
uint32_t drawCount;
|
|
vkb_dec_bytes(d, &drawCount, sizeof(drawCount));
|
|
uint32_t stride;
|
|
vkb_dec_bytes(d, &stride, sizeof(stride));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDrawIndexedIndirect) { vkb_srv_missing(c, "vkCmdDrawIndexedIndirect"); return; }
|
|
c->dt->vkCmdDrawIndexedIndirect(commandBuffer, buffer, offset, drawCount, stride);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDrawIndexedIndirectCount(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer buffer;
|
|
vkb_dec_bytes(d, &buffer, sizeof(buffer));
|
|
VkDeviceSize offset;
|
|
vkb_dec_bytes(d, &offset, sizeof(offset));
|
|
VkBuffer countBuffer;
|
|
vkb_dec_bytes(d, &countBuffer, sizeof(countBuffer));
|
|
VkDeviceSize countBufferOffset;
|
|
vkb_dec_bytes(d, &countBufferOffset, sizeof(countBufferOffset));
|
|
uint32_t maxDrawCount;
|
|
vkb_dec_bytes(d, &maxDrawCount, sizeof(maxDrawCount));
|
|
uint32_t stride;
|
|
vkb_dec_bytes(d, &stride, sizeof(stride));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDrawIndexedIndirectCount) { vkb_srv_missing(c, "vkCmdDrawIndexedIndirectCount"); return; }
|
|
c->dt->vkCmdDrawIndexedIndirectCount(commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDrawIndirect(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer buffer;
|
|
vkb_dec_bytes(d, &buffer, sizeof(buffer));
|
|
VkDeviceSize offset;
|
|
vkb_dec_bytes(d, &offset, sizeof(offset));
|
|
uint32_t drawCount;
|
|
vkb_dec_bytes(d, &drawCount, sizeof(drawCount));
|
|
uint32_t stride;
|
|
vkb_dec_bytes(d, &stride, sizeof(stride));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDrawIndirect) { vkb_srv_missing(c, "vkCmdDrawIndirect"); return; }
|
|
c->dt->vkCmdDrawIndirect(commandBuffer, buffer, offset, drawCount, stride);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDrawIndirectByteCountEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t instanceCount;
|
|
vkb_dec_bytes(d, &instanceCount, sizeof(instanceCount));
|
|
uint32_t firstInstance;
|
|
vkb_dec_bytes(d, &firstInstance, sizeof(firstInstance));
|
|
VkBuffer counterBuffer;
|
|
vkb_dec_bytes(d, &counterBuffer, sizeof(counterBuffer));
|
|
VkDeviceSize counterBufferOffset;
|
|
vkb_dec_bytes(d, &counterBufferOffset, sizeof(counterBufferOffset));
|
|
uint32_t counterOffset;
|
|
vkb_dec_bytes(d, &counterOffset, sizeof(counterOffset));
|
|
uint32_t vertexStride;
|
|
vkb_dec_bytes(d, &vertexStride, sizeof(vertexStride));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDrawIndirectByteCountEXT) { vkb_srv_missing(c, "vkCmdDrawIndirectByteCountEXT"); return; }
|
|
c->dt->vkCmdDrawIndirectByteCountEXT(commandBuffer, instanceCount, firstInstance, counterBuffer, counterBufferOffset, counterOffset, vertexStride);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDrawIndirectCount(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer buffer;
|
|
vkb_dec_bytes(d, &buffer, sizeof(buffer));
|
|
VkDeviceSize offset;
|
|
vkb_dec_bytes(d, &offset, sizeof(offset));
|
|
VkBuffer countBuffer;
|
|
vkb_dec_bytes(d, &countBuffer, sizeof(countBuffer));
|
|
VkDeviceSize countBufferOffset;
|
|
vkb_dec_bytes(d, &countBufferOffset, sizeof(countBufferOffset));
|
|
uint32_t maxDrawCount;
|
|
vkb_dec_bytes(d, &maxDrawCount, sizeof(maxDrawCount));
|
|
uint32_t stride;
|
|
vkb_dec_bytes(d, &stride, sizeof(stride));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDrawIndirectCount) { vkb_srv_missing(c, "vkCmdDrawIndirectCount"); return; }
|
|
c->dt->vkCmdDrawIndirectCount(commandBuffer, buffer, offset, countBuffer, countBufferOffset, maxDrawCount, stride);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDrawMultiEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t drawCount;
|
|
vkb_dec_bytes(d, &drawCount, sizeof(drawCount));
|
|
const VkMultiDrawInfoEXT *pVertexInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pVertexInfo = (const VkMultiDrawInfoEXT *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkMultiDrawInfoEXT));
|
|
} else {
|
|
pVertexInfo = NULL;
|
|
}
|
|
uint32_t instanceCount;
|
|
vkb_dec_bytes(d, &instanceCount, sizeof(instanceCount));
|
|
uint32_t firstInstance;
|
|
vkb_dec_bytes(d, &firstInstance, sizeof(firstInstance));
|
|
uint32_t stride;
|
|
vkb_dec_bytes(d, &stride, sizeof(stride));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDrawMultiEXT) { vkb_srv_missing(c, "vkCmdDrawMultiEXT"); return; }
|
|
c->dt->vkCmdDrawMultiEXT(commandBuffer, drawCount, pVertexInfo, instanceCount, firstInstance, stride);
|
|
}
|
|
|
|
void vkb_sv_vkCmdDrawMultiIndexedEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t drawCount;
|
|
vkb_dec_bytes(d, &drawCount, sizeof(drawCount));
|
|
const VkMultiDrawIndexedInfoEXT *pIndexInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pIndexInfo = (const VkMultiDrawIndexedInfoEXT *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkMultiDrawIndexedInfoEXT));
|
|
} else {
|
|
pIndexInfo = NULL;
|
|
}
|
|
uint32_t instanceCount;
|
|
vkb_dec_bytes(d, &instanceCount, sizeof(instanceCount));
|
|
uint32_t firstInstance;
|
|
vkb_dec_bytes(d, &firstInstance, sizeof(firstInstance));
|
|
uint32_t stride;
|
|
vkb_dec_bytes(d, &stride, sizeof(stride));
|
|
const int32_t *pVertexOffset;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pVertexOffset = (const int32_t *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(int32_t));
|
|
} else {
|
|
pVertexOffset = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdDrawMultiIndexedEXT) { vkb_srv_missing(c, "vkCmdDrawMultiIndexedEXT"); return; }
|
|
c->dt->vkCmdDrawMultiIndexedEXT(commandBuffer, drawCount, pIndexInfo, instanceCount, firstInstance, stride, pVertexOffset);
|
|
}
|
|
|
|
void vkb_sv_vkCmdEndConditionalRenderingEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdEndConditionalRenderingEXT) { vkb_srv_missing(c, "vkCmdEndConditionalRenderingEXT"); return; }
|
|
c->dt->vkCmdEndConditionalRenderingEXT(commandBuffer);
|
|
}
|
|
|
|
void vkb_sv_vkCmdEndQuery(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
uint32_t query;
|
|
vkb_dec_bytes(d, &query, sizeof(query));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdEndQuery) { vkb_srv_missing(c, "vkCmdEndQuery"); return; }
|
|
c->dt->vkCmdEndQuery(commandBuffer, queryPool, query);
|
|
}
|
|
|
|
void vkb_sv_vkCmdEndQueryIndexedEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
uint32_t query;
|
|
vkb_dec_bytes(d, &query, sizeof(query));
|
|
uint32_t index;
|
|
vkb_dec_bytes(d, &index, sizeof(index));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdEndQueryIndexedEXT) { vkb_srv_missing(c, "vkCmdEndQueryIndexedEXT"); return; }
|
|
c->dt->vkCmdEndQueryIndexedEXT(commandBuffer, queryPool, query, index);
|
|
}
|
|
|
|
void vkb_sv_vkCmdEndRenderPass(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdEndRenderPass) { vkb_srv_missing(c, "vkCmdEndRenderPass"); return; }
|
|
c->dt->vkCmdEndRenderPass(commandBuffer);
|
|
}
|
|
|
|
void vkb_sv_vkCmdEndRenderPass2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkSubpassEndInfo *pSubpassEndInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSubpassEndInfo *a_ = (VkSubpassEndInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSubpassEndInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSubpassEndInfo(d, &a_[i_]);
|
|
pSubpassEndInfo = a_;
|
|
} else {
|
|
pSubpassEndInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdEndRenderPass2) { vkb_srv_missing(c, "vkCmdEndRenderPass2"); return; }
|
|
c->dt->vkCmdEndRenderPass2(commandBuffer, pSubpassEndInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdEndRendering(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdEndRendering) { vkb_srv_missing(c, "vkCmdEndRendering"); return; }
|
|
c->dt->vkCmdEndRendering(commandBuffer);
|
|
}
|
|
|
|
void vkb_sv_vkCmdEndRendering2KHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkRenderingEndInfoKHR *pRenderingEndInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkRenderingEndInfoKHR *a_ = (VkRenderingEndInfoKHR *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkRenderingEndInfoKHR));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkRenderingEndInfoKHR(d, &a_[i_]);
|
|
pRenderingEndInfo = a_;
|
|
} else {
|
|
pRenderingEndInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdEndRendering2KHR) { vkb_srv_missing(c, "vkCmdEndRendering2KHR"); return; }
|
|
c->dt->vkCmdEndRendering2KHR(commandBuffer, pRenderingEndInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdEndTransformFeedbackEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstCounterBuffer;
|
|
vkb_dec_bytes(d, &firstCounterBuffer, sizeof(firstCounterBuffer));
|
|
uint32_t counterBufferCount;
|
|
vkb_dec_bytes(d, &counterBufferCount, sizeof(counterBufferCount));
|
|
const VkBuffer *pCounterBuffers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pCounterBuffers = (const VkBuffer *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkBuffer));
|
|
} else {
|
|
pCounterBuffers = NULL;
|
|
}
|
|
const VkDeviceSize *pCounterBufferOffsets;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pCounterBufferOffsets = (const VkDeviceSize *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDeviceSize));
|
|
} else {
|
|
pCounterBufferOffsets = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdEndTransformFeedbackEXT) { vkb_srv_missing(c, "vkCmdEndTransformFeedbackEXT"); return; }
|
|
c->dt->vkCmdEndTransformFeedbackEXT(commandBuffer, firstCounterBuffer, counterBufferCount, pCounterBuffers, pCounterBufferOffsets);
|
|
}
|
|
|
|
void vkb_sv_vkCmdExecuteCommands(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t commandBufferCount;
|
|
vkb_dec_bytes(d, &commandBufferCount, sizeof(commandBufferCount));
|
|
const VkCommandBuffer *pCommandBuffers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCommandBuffer *a_ = (VkCommandBuffer *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCommandBuffer));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) a_[i_] = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
pCommandBuffers = a_;
|
|
} else {
|
|
pCommandBuffers = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdExecuteCommands) { vkb_srv_missing(c, "vkCmdExecuteCommands"); return; }
|
|
c->dt->vkCmdExecuteCommands(commandBuffer, commandBufferCount, pCommandBuffers);
|
|
}
|
|
|
|
void vkb_sv_vkCmdFillBuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer dstBuffer;
|
|
vkb_dec_bytes(d, &dstBuffer, sizeof(dstBuffer));
|
|
VkDeviceSize dstOffset;
|
|
vkb_dec_bytes(d, &dstOffset, sizeof(dstOffset));
|
|
VkDeviceSize size;
|
|
vkb_dec_bytes(d, &size, sizeof(size));
|
|
uint32_t data;
|
|
vkb_dec_bytes(d, &data, sizeof(data));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdFillBuffer) { vkb_srv_missing(c, "vkCmdFillBuffer"); return; }
|
|
c->dt->vkCmdFillBuffer(commandBuffer, dstBuffer, dstOffset, size, data);
|
|
}
|
|
|
|
void vkb_sv_vkCmdNextSubpass(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkSubpassContents contents;
|
|
vkb_dec_bytes(d, &contents, sizeof(contents));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdNextSubpass) { vkb_srv_missing(c, "vkCmdNextSubpass"); return; }
|
|
c->dt->vkCmdNextSubpass(commandBuffer, contents);
|
|
}
|
|
|
|
void vkb_sv_vkCmdNextSubpass2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkSubpassBeginInfo *pSubpassBeginInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSubpassBeginInfo *a_ = (VkSubpassBeginInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSubpassBeginInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSubpassBeginInfo(d, &a_[i_]);
|
|
pSubpassBeginInfo = a_;
|
|
} else {
|
|
pSubpassBeginInfo = NULL;
|
|
}
|
|
const VkSubpassEndInfo *pSubpassEndInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSubpassEndInfo *a_ = (VkSubpassEndInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSubpassEndInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSubpassEndInfo(d, &a_[i_]);
|
|
pSubpassEndInfo = a_;
|
|
} else {
|
|
pSubpassEndInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdNextSubpass2) { vkb_srv_missing(c, "vkCmdNextSubpass2"); return; }
|
|
c->dt->vkCmdNextSubpass2(commandBuffer, pSubpassBeginInfo, pSubpassEndInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdPipelineBarrier(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineStageFlags srcStageMask;
|
|
vkb_dec_bytes(d, &srcStageMask, sizeof(srcStageMask));
|
|
VkPipelineStageFlags dstStageMask;
|
|
vkb_dec_bytes(d, &dstStageMask, sizeof(dstStageMask));
|
|
VkDependencyFlags dependencyFlags;
|
|
vkb_dec_bytes(d, &dependencyFlags, sizeof(dependencyFlags));
|
|
uint32_t memoryBarrierCount;
|
|
vkb_dec_bytes(d, &memoryBarrierCount, sizeof(memoryBarrierCount));
|
|
const VkMemoryBarrier *pMemoryBarriers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkMemoryBarrier *a_ = (VkMemoryBarrier *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkMemoryBarrier));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkMemoryBarrier(d, &a_[i_]);
|
|
pMemoryBarriers = a_;
|
|
} else {
|
|
pMemoryBarriers = NULL;
|
|
}
|
|
uint32_t bufferMemoryBarrierCount;
|
|
vkb_dec_bytes(d, &bufferMemoryBarrierCount, sizeof(bufferMemoryBarrierCount));
|
|
const VkBufferMemoryBarrier *pBufferMemoryBarriers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBufferMemoryBarrier *a_ = (VkBufferMemoryBarrier *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBufferMemoryBarrier));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBufferMemoryBarrier(d, &a_[i_]);
|
|
pBufferMemoryBarriers = a_;
|
|
} else {
|
|
pBufferMemoryBarriers = NULL;
|
|
}
|
|
uint32_t imageMemoryBarrierCount;
|
|
vkb_dec_bytes(d, &imageMemoryBarrierCount, sizeof(imageMemoryBarrierCount));
|
|
const VkImageMemoryBarrier *pImageMemoryBarriers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkImageMemoryBarrier *a_ = (VkImageMemoryBarrier *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkImageMemoryBarrier));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkImageMemoryBarrier(d, &a_[i_]);
|
|
pImageMemoryBarriers = a_;
|
|
} else {
|
|
pImageMemoryBarriers = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdPipelineBarrier) { vkb_srv_missing(c, "vkCmdPipelineBarrier"); return; }
|
|
c->dt->vkCmdPipelineBarrier(commandBuffer, srcStageMask, dstStageMask, dependencyFlags, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers);
|
|
}
|
|
|
|
void vkb_sv_vkCmdPipelineBarrier2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDependencyInfo *pDependencyInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDependencyInfo *a_ = (VkDependencyInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDependencyInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDependencyInfo(d, &a_[i_]);
|
|
pDependencyInfo = a_;
|
|
} else {
|
|
pDependencyInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdPipelineBarrier2) { vkb_srv_missing(c, "vkCmdPipelineBarrier2"); return; }
|
|
c->dt->vkCmdPipelineBarrier2(commandBuffer, pDependencyInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdPushConstants(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineLayout layout;
|
|
vkb_dec_bytes(d, &layout, sizeof(layout));
|
|
VkShaderStageFlags stageFlags;
|
|
vkb_dec_bytes(d, &stageFlags, sizeof(stageFlags));
|
|
uint32_t offset;
|
|
vkb_dec_bytes(d, &offset, sizeof(offset));
|
|
uint32_t size;
|
|
vkb_dec_bytes(d, &size, sizeof(size));
|
|
const void *pValues;
|
|
pValues = (const void *)vkb_dec_blob(d, NULL);
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdPushConstants) { vkb_srv_missing(c, "vkCmdPushConstants"); return; }
|
|
c->dt->vkCmdPushConstants(commandBuffer, layout, stageFlags, offset, size, pValues);
|
|
}
|
|
|
|
void vkb_sv_vkCmdPushConstants2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkPushConstantsInfo *pPushConstantsInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkPushConstantsInfo *a_ = (VkPushConstantsInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkPushConstantsInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkPushConstantsInfo(d, &a_[i_]);
|
|
pPushConstantsInfo = a_;
|
|
} else {
|
|
pPushConstantsInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdPushConstants2) { vkb_srv_missing(c, "vkCmdPushConstants2"); return; }
|
|
c->dt->vkCmdPushConstants2(commandBuffer, pPushConstantsInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdPushDescriptorSet(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineBindPoint pipelineBindPoint;
|
|
vkb_dec_bytes(d, &pipelineBindPoint, sizeof(pipelineBindPoint));
|
|
VkPipelineLayout layout;
|
|
vkb_dec_bytes(d, &layout, sizeof(layout));
|
|
uint32_t set;
|
|
vkb_dec_bytes(d, &set, sizeof(set));
|
|
uint32_t descriptorWriteCount;
|
|
vkb_dec_bytes(d, &descriptorWriteCount, sizeof(descriptorWriteCount));
|
|
const VkWriteDescriptorSet *pDescriptorWrites;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkWriteDescriptorSet *a_ = (VkWriteDescriptorSet *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkWriteDescriptorSet));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkWriteDescriptorSet(d, &a_[i_]);
|
|
pDescriptorWrites = a_;
|
|
} else {
|
|
pDescriptorWrites = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdPushDescriptorSet) { vkb_srv_missing(c, "vkCmdPushDescriptorSet"); return; }
|
|
c->dt->vkCmdPushDescriptorSet(commandBuffer, pipelineBindPoint, layout, set, descriptorWriteCount, pDescriptorWrites);
|
|
}
|
|
|
|
void vkb_sv_vkCmdPushDescriptorSet2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkPushDescriptorSetInfo *pPushDescriptorSetInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkPushDescriptorSetInfo *a_ = (VkPushDescriptorSetInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkPushDescriptorSetInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkPushDescriptorSetInfo(d, &a_[i_]);
|
|
pPushDescriptorSetInfo = a_;
|
|
} else {
|
|
pPushDescriptorSetInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdPushDescriptorSet2) { vkb_srv_missing(c, "vkCmdPushDescriptorSet2"); return; }
|
|
c->dt->vkCmdPushDescriptorSet2(commandBuffer, pPushDescriptorSetInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdResetEvent(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkEvent event;
|
|
vkb_dec_bytes(d, &event, sizeof(event));
|
|
VkPipelineStageFlags stageMask;
|
|
vkb_dec_bytes(d, &stageMask, sizeof(stageMask));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdResetEvent) { vkb_srv_missing(c, "vkCmdResetEvent"); return; }
|
|
c->dt->vkCmdResetEvent(commandBuffer, event, stageMask);
|
|
}
|
|
|
|
void vkb_sv_vkCmdResetEvent2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkEvent event;
|
|
vkb_dec_bytes(d, &event, sizeof(event));
|
|
VkPipelineStageFlags2 stageMask;
|
|
vkb_dec_bytes(d, &stageMask, sizeof(stageMask));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdResetEvent2) { vkb_srv_missing(c, "vkCmdResetEvent2"); return; }
|
|
c->dt->vkCmdResetEvent2(commandBuffer, event, stageMask);
|
|
}
|
|
|
|
void vkb_sv_vkCmdResetQueryPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
uint32_t firstQuery;
|
|
vkb_dec_bytes(d, &firstQuery, sizeof(firstQuery));
|
|
uint32_t queryCount;
|
|
vkb_dec_bytes(d, &queryCount, sizeof(queryCount));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdResetQueryPool) { vkb_srv_missing(c, "vkCmdResetQueryPool"); return; }
|
|
c->dt->vkCmdResetQueryPool(commandBuffer, queryPool, firstQuery, queryCount);
|
|
}
|
|
|
|
void vkb_sv_vkCmdResolveImage(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage srcImage;
|
|
vkb_dec_bytes(d, &srcImage, sizeof(srcImage));
|
|
VkImageLayout srcImageLayout;
|
|
vkb_dec_bytes(d, &srcImageLayout, sizeof(srcImageLayout));
|
|
VkImage dstImage;
|
|
vkb_dec_bytes(d, &dstImage, sizeof(dstImage));
|
|
VkImageLayout dstImageLayout;
|
|
vkb_dec_bytes(d, &dstImageLayout, sizeof(dstImageLayout));
|
|
uint32_t regionCount;
|
|
vkb_dec_bytes(d, ®ionCount, sizeof(regionCount));
|
|
const VkImageResolve *pRegions;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pRegions = (const VkImageResolve *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkImageResolve));
|
|
} else {
|
|
pRegions = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdResolveImage) { vkb_srv_missing(c, "vkCmdResolveImage"); return; }
|
|
c->dt->vkCmdResolveImage(commandBuffer, srcImage, srcImageLayout, dstImage, dstImageLayout, regionCount, pRegions);
|
|
}
|
|
|
|
void vkb_sv_vkCmdResolveImage2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkResolveImageInfo2 *pResolveImageInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkResolveImageInfo2 *a_ = (VkResolveImageInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkResolveImageInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkResolveImageInfo2(d, &a_[i_]);
|
|
pResolveImageInfo = a_;
|
|
} else {
|
|
pResolveImageInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdResolveImage2) { vkb_srv_missing(c, "vkCmdResolveImage2"); return; }
|
|
c->dt->vkCmdResolveImage2(commandBuffer, pResolveImageInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetAlphaToCoverageEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 alphaToCoverageEnable;
|
|
vkb_dec_bytes(d, &alphaToCoverageEnable, sizeof(alphaToCoverageEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetAlphaToCoverageEnableEXT) { vkb_srv_missing(c, "vkCmdSetAlphaToCoverageEnableEXT"); return; }
|
|
c->dt->vkCmdSetAlphaToCoverageEnableEXT(commandBuffer, alphaToCoverageEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetAlphaToOneEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 alphaToOneEnable;
|
|
vkb_dec_bytes(d, &alphaToOneEnable, sizeof(alphaToOneEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetAlphaToOneEnableEXT) { vkb_srv_missing(c, "vkCmdSetAlphaToOneEnableEXT"); return; }
|
|
c->dt->vkCmdSetAlphaToOneEnableEXT(commandBuffer, alphaToOneEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetAttachmentFeedbackLoopEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkImageAspectFlags aspectMask;
|
|
vkb_dec_bytes(d, &aspectMask, sizeof(aspectMask));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetAttachmentFeedbackLoopEnableEXT) { vkb_srv_missing(c, "vkCmdSetAttachmentFeedbackLoopEnableEXT"); return; }
|
|
c->dt->vkCmdSetAttachmentFeedbackLoopEnableEXT(commandBuffer, aspectMask);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetBlendConstants(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const float *blendConstants = (const float *)vkb_dec_raw_view(d, sizeof(float) * 4);
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetBlendConstants) { vkb_srv_missing(c, "vkCmdSetBlendConstants"); return; }
|
|
c->dt->vkCmdSetBlendConstants(commandBuffer, blendConstants);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetColorBlendAdvancedEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstAttachment;
|
|
vkb_dec_bytes(d, &firstAttachment, sizeof(firstAttachment));
|
|
uint32_t attachmentCount;
|
|
vkb_dec_bytes(d, &attachmentCount, sizeof(attachmentCount));
|
|
const VkColorBlendAdvancedEXT *pColorBlendAdvanced;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pColorBlendAdvanced = (const VkColorBlendAdvancedEXT *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkColorBlendAdvancedEXT));
|
|
} else {
|
|
pColorBlendAdvanced = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetColorBlendAdvancedEXT) { vkb_srv_missing(c, "vkCmdSetColorBlendAdvancedEXT"); return; }
|
|
c->dt->vkCmdSetColorBlendAdvancedEXT(commandBuffer, firstAttachment, attachmentCount, pColorBlendAdvanced);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetColorBlendEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstAttachment;
|
|
vkb_dec_bytes(d, &firstAttachment, sizeof(firstAttachment));
|
|
uint32_t attachmentCount;
|
|
vkb_dec_bytes(d, &attachmentCount, sizeof(attachmentCount));
|
|
const VkBool32 *pColorBlendEnables;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pColorBlendEnables = (const VkBool32 *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkBool32));
|
|
} else {
|
|
pColorBlendEnables = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetColorBlendEnableEXT) { vkb_srv_missing(c, "vkCmdSetColorBlendEnableEXT"); return; }
|
|
c->dt->vkCmdSetColorBlendEnableEXT(commandBuffer, firstAttachment, attachmentCount, pColorBlendEnables);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetColorBlendEquationEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstAttachment;
|
|
vkb_dec_bytes(d, &firstAttachment, sizeof(firstAttachment));
|
|
uint32_t attachmentCount;
|
|
vkb_dec_bytes(d, &attachmentCount, sizeof(attachmentCount));
|
|
const VkColorBlendEquationEXT *pColorBlendEquations;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pColorBlendEquations = (const VkColorBlendEquationEXT *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkColorBlendEquationEXT));
|
|
} else {
|
|
pColorBlendEquations = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetColorBlendEquationEXT) { vkb_srv_missing(c, "vkCmdSetColorBlendEquationEXT"); return; }
|
|
c->dt->vkCmdSetColorBlendEquationEXT(commandBuffer, firstAttachment, attachmentCount, pColorBlendEquations);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetColorWriteEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t attachmentCount;
|
|
vkb_dec_bytes(d, &attachmentCount, sizeof(attachmentCount));
|
|
const VkBool32 *pColorWriteEnables;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pColorWriteEnables = (const VkBool32 *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkBool32));
|
|
} else {
|
|
pColorWriteEnables = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetColorWriteEnableEXT) { vkb_srv_missing(c, "vkCmdSetColorWriteEnableEXT"); return; }
|
|
c->dt->vkCmdSetColorWriteEnableEXT(commandBuffer, attachmentCount, pColorWriteEnables);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetColorWriteMaskEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstAttachment;
|
|
vkb_dec_bytes(d, &firstAttachment, sizeof(firstAttachment));
|
|
uint32_t attachmentCount;
|
|
vkb_dec_bytes(d, &attachmentCount, sizeof(attachmentCount));
|
|
const VkColorComponentFlags *pColorWriteMasks;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pColorWriteMasks = (const VkColorComponentFlags *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkColorComponentFlags));
|
|
} else {
|
|
pColorWriteMasks = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetColorWriteMaskEXT) { vkb_srv_missing(c, "vkCmdSetColorWriteMaskEXT"); return; }
|
|
c->dt->vkCmdSetColorWriteMaskEXT(commandBuffer, firstAttachment, attachmentCount, pColorWriteMasks);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetConservativeRasterizationModeEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkConservativeRasterizationModeEXT conservativeRasterizationMode;
|
|
vkb_dec_bytes(d, &conservativeRasterizationMode, sizeof(conservativeRasterizationMode));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetConservativeRasterizationModeEXT) { vkb_srv_missing(c, "vkCmdSetConservativeRasterizationModeEXT"); return; }
|
|
c->dt->vkCmdSetConservativeRasterizationModeEXT(commandBuffer, conservativeRasterizationMode);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetCullMode(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkCullModeFlags cullMode;
|
|
vkb_dec_bytes(d, &cullMode, sizeof(cullMode));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetCullMode) { vkb_srv_missing(c, "vkCmdSetCullMode"); return; }
|
|
c->dt->vkCmdSetCullMode(commandBuffer, cullMode);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthBias(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
float depthBiasConstantFactor;
|
|
vkb_dec_bytes(d, &depthBiasConstantFactor, sizeof(depthBiasConstantFactor));
|
|
float depthBiasClamp;
|
|
vkb_dec_bytes(d, &depthBiasClamp, sizeof(depthBiasClamp));
|
|
float depthBiasSlopeFactor;
|
|
vkb_dec_bytes(d, &depthBiasSlopeFactor, sizeof(depthBiasSlopeFactor));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthBias) { vkb_srv_missing(c, "vkCmdSetDepthBias"); return; }
|
|
c->dt->vkCmdSetDepthBias(commandBuffer, depthBiasConstantFactor, depthBiasClamp, depthBiasSlopeFactor);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthBias2EXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDepthBiasInfoEXT *pDepthBiasInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDepthBiasInfoEXT *a_ = (VkDepthBiasInfoEXT *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDepthBiasInfoEXT));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDepthBiasInfoEXT(d, &a_[i_]);
|
|
pDepthBiasInfo = a_;
|
|
} else {
|
|
pDepthBiasInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthBias2EXT) { vkb_srv_missing(c, "vkCmdSetDepthBias2EXT"); return; }
|
|
c->dt->vkCmdSetDepthBias2EXT(commandBuffer, pDepthBiasInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthBiasEnable(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 depthBiasEnable;
|
|
vkb_dec_bytes(d, &depthBiasEnable, sizeof(depthBiasEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthBiasEnable) { vkb_srv_missing(c, "vkCmdSetDepthBiasEnable"); return; }
|
|
c->dt->vkCmdSetDepthBiasEnable(commandBuffer, depthBiasEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthBounds(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
float minDepthBounds;
|
|
vkb_dec_bytes(d, &minDepthBounds, sizeof(minDepthBounds));
|
|
float maxDepthBounds;
|
|
vkb_dec_bytes(d, &maxDepthBounds, sizeof(maxDepthBounds));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthBounds) { vkb_srv_missing(c, "vkCmdSetDepthBounds"); return; }
|
|
c->dt->vkCmdSetDepthBounds(commandBuffer, minDepthBounds, maxDepthBounds);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthBoundsTestEnable(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 depthBoundsTestEnable;
|
|
vkb_dec_bytes(d, &depthBoundsTestEnable, sizeof(depthBoundsTestEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthBoundsTestEnable) { vkb_srv_missing(c, "vkCmdSetDepthBoundsTestEnable"); return; }
|
|
c->dt->vkCmdSetDepthBoundsTestEnable(commandBuffer, depthBoundsTestEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthClampEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 depthClampEnable;
|
|
vkb_dec_bytes(d, &depthClampEnable, sizeof(depthClampEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthClampEnableEXT) { vkb_srv_missing(c, "vkCmdSetDepthClampEnableEXT"); return; }
|
|
c->dt->vkCmdSetDepthClampEnableEXT(commandBuffer, depthClampEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthClampRangeEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkDepthClampModeEXT depthClampMode;
|
|
vkb_dec_bytes(d, &depthClampMode, sizeof(depthClampMode));
|
|
const VkDepthClampRangeEXT *pDepthClampRange;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pDepthClampRange = (const VkDepthClampRangeEXT *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDepthClampRangeEXT));
|
|
} else {
|
|
pDepthClampRange = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthClampRangeEXT) { vkb_srv_missing(c, "vkCmdSetDepthClampRangeEXT"); return; }
|
|
c->dt->vkCmdSetDepthClampRangeEXT(commandBuffer, depthClampMode, pDepthClampRange);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthClipEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 depthClipEnable;
|
|
vkb_dec_bytes(d, &depthClipEnable, sizeof(depthClipEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthClipEnableEXT) { vkb_srv_missing(c, "vkCmdSetDepthClipEnableEXT"); return; }
|
|
c->dt->vkCmdSetDepthClipEnableEXT(commandBuffer, depthClipEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthClipNegativeOneToOneEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 negativeOneToOne;
|
|
vkb_dec_bytes(d, &negativeOneToOne, sizeof(negativeOneToOne));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthClipNegativeOneToOneEXT) { vkb_srv_missing(c, "vkCmdSetDepthClipNegativeOneToOneEXT"); return; }
|
|
c->dt->vkCmdSetDepthClipNegativeOneToOneEXT(commandBuffer, negativeOneToOne);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthCompareOp(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkCompareOp depthCompareOp;
|
|
vkb_dec_bytes(d, &depthCompareOp, sizeof(depthCompareOp));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthCompareOp) { vkb_srv_missing(c, "vkCmdSetDepthCompareOp"); return; }
|
|
c->dt->vkCmdSetDepthCompareOp(commandBuffer, depthCompareOp);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthTestEnable(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 depthTestEnable;
|
|
vkb_dec_bytes(d, &depthTestEnable, sizeof(depthTestEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthTestEnable) { vkb_srv_missing(c, "vkCmdSetDepthTestEnable"); return; }
|
|
c->dt->vkCmdSetDepthTestEnable(commandBuffer, depthTestEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDepthWriteEnable(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 depthWriteEnable;
|
|
vkb_dec_bytes(d, &depthWriteEnable, sizeof(depthWriteEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDepthWriteEnable) { vkb_srv_missing(c, "vkCmdSetDepthWriteEnable"); return; }
|
|
c->dt->vkCmdSetDepthWriteEnable(commandBuffer, depthWriteEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDeviceMask(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t deviceMask;
|
|
vkb_dec_bytes(d, &deviceMask, sizeof(deviceMask));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDeviceMask) { vkb_srv_missing(c, "vkCmdSetDeviceMask"); return; }
|
|
c->dt->vkCmdSetDeviceMask(commandBuffer, deviceMask);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDiscardRectangleEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstDiscardRectangle;
|
|
vkb_dec_bytes(d, &firstDiscardRectangle, sizeof(firstDiscardRectangle));
|
|
uint32_t discardRectangleCount;
|
|
vkb_dec_bytes(d, &discardRectangleCount, sizeof(discardRectangleCount));
|
|
const VkRect2D *pDiscardRectangles;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pDiscardRectangles = (const VkRect2D *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkRect2D));
|
|
} else {
|
|
pDiscardRectangles = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDiscardRectangleEXT) { vkb_srv_missing(c, "vkCmdSetDiscardRectangleEXT"); return; }
|
|
c->dt->vkCmdSetDiscardRectangleEXT(commandBuffer, firstDiscardRectangle, discardRectangleCount, pDiscardRectangles);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDiscardRectangleEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 discardRectangleEnable;
|
|
vkb_dec_bytes(d, &discardRectangleEnable, sizeof(discardRectangleEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDiscardRectangleEnableEXT) { vkb_srv_missing(c, "vkCmdSetDiscardRectangleEnableEXT"); return; }
|
|
c->dt->vkCmdSetDiscardRectangleEnableEXT(commandBuffer, discardRectangleEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetDiscardRectangleModeEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkDiscardRectangleModeEXT discardRectangleMode;
|
|
vkb_dec_bytes(d, &discardRectangleMode, sizeof(discardRectangleMode));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetDiscardRectangleModeEXT) { vkb_srv_missing(c, "vkCmdSetDiscardRectangleModeEXT"); return; }
|
|
c->dt->vkCmdSetDiscardRectangleModeEXT(commandBuffer, discardRectangleMode);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetEvent(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkEvent event;
|
|
vkb_dec_bytes(d, &event, sizeof(event));
|
|
VkPipelineStageFlags stageMask;
|
|
vkb_dec_bytes(d, &stageMask, sizeof(stageMask));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetEvent) { vkb_srv_missing(c, "vkCmdSetEvent"); return; }
|
|
c->dt->vkCmdSetEvent(commandBuffer, event, stageMask);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetEvent2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkEvent event;
|
|
vkb_dec_bytes(d, &event, sizeof(event));
|
|
const VkDependencyInfo *pDependencyInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDependencyInfo *a_ = (VkDependencyInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDependencyInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDependencyInfo(d, &a_[i_]);
|
|
pDependencyInfo = a_;
|
|
} else {
|
|
pDependencyInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetEvent2) { vkb_srv_missing(c, "vkCmdSetEvent2"); return; }
|
|
c->dt->vkCmdSetEvent2(commandBuffer, event, pDependencyInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetExtraPrimitiveOverestimationSizeEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
float extraPrimitiveOverestimationSize;
|
|
vkb_dec_bytes(d, &extraPrimitiveOverestimationSize, sizeof(extraPrimitiveOverestimationSize));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetExtraPrimitiveOverestimationSizeEXT) { vkb_srv_missing(c, "vkCmdSetExtraPrimitiveOverestimationSizeEXT"); return; }
|
|
c->dt->vkCmdSetExtraPrimitiveOverestimationSizeEXT(commandBuffer, extraPrimitiveOverestimationSize);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetFragmentShadingRateKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkExtent2D *pFragmentSize;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pFragmentSize = (const VkExtent2D *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkExtent2D));
|
|
} else {
|
|
pFragmentSize = NULL;
|
|
}
|
|
const VkFragmentShadingRateCombinerOpKHR *combinerOps = (const VkFragmentShadingRateCombinerOpKHR *)vkb_dec_raw_view(d, sizeof(VkFragmentShadingRateCombinerOpKHR) * 2);
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetFragmentShadingRateKHR) { vkb_srv_missing(c, "vkCmdSetFragmentShadingRateKHR"); return; }
|
|
c->dt->vkCmdSetFragmentShadingRateKHR(commandBuffer, pFragmentSize, combinerOps);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetFrontFace(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkFrontFace frontFace;
|
|
vkb_dec_bytes(d, &frontFace, sizeof(frontFace));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetFrontFace) { vkb_srv_missing(c, "vkCmdSetFrontFace"); return; }
|
|
c->dt->vkCmdSetFrontFace(commandBuffer, frontFace);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetLineRasterizationModeEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkLineRasterizationModeEXT lineRasterizationMode;
|
|
vkb_dec_bytes(d, &lineRasterizationMode, sizeof(lineRasterizationMode));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetLineRasterizationModeEXT) { vkb_srv_missing(c, "vkCmdSetLineRasterizationModeEXT"); return; }
|
|
c->dt->vkCmdSetLineRasterizationModeEXT(commandBuffer, lineRasterizationMode);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetLineStipple(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t lineStippleFactor;
|
|
vkb_dec_bytes(d, &lineStippleFactor, sizeof(lineStippleFactor));
|
|
uint16_t lineStipplePattern;
|
|
vkb_dec_bytes(d, &lineStipplePattern, sizeof(lineStipplePattern));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetLineStipple) { vkb_srv_missing(c, "vkCmdSetLineStipple"); return; }
|
|
c->dt->vkCmdSetLineStipple(commandBuffer, lineStippleFactor, lineStipplePattern);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetLineStippleEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 stippledLineEnable;
|
|
vkb_dec_bytes(d, &stippledLineEnable, sizeof(stippledLineEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetLineStippleEnableEXT) { vkb_srv_missing(c, "vkCmdSetLineStippleEnableEXT"); return; }
|
|
c->dt->vkCmdSetLineStippleEnableEXT(commandBuffer, stippledLineEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetLineWidth(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
float lineWidth;
|
|
vkb_dec_bytes(d, &lineWidth, sizeof(lineWidth));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetLineWidth) { vkb_srv_missing(c, "vkCmdSetLineWidth"); return; }
|
|
c->dt->vkCmdSetLineWidth(commandBuffer, lineWidth);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetLogicOpEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkLogicOp logicOp;
|
|
vkb_dec_bytes(d, &logicOp, sizeof(logicOp));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetLogicOpEXT) { vkb_srv_missing(c, "vkCmdSetLogicOpEXT"); return; }
|
|
c->dt->vkCmdSetLogicOpEXT(commandBuffer, logicOp);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetLogicOpEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 logicOpEnable;
|
|
vkb_dec_bytes(d, &logicOpEnable, sizeof(logicOpEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetLogicOpEnableEXT) { vkb_srv_missing(c, "vkCmdSetLogicOpEnableEXT"); return; }
|
|
c->dt->vkCmdSetLogicOpEnableEXT(commandBuffer, logicOpEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetPatchControlPointsEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t patchControlPoints;
|
|
vkb_dec_bytes(d, &patchControlPoints, sizeof(patchControlPoints));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetPatchControlPointsEXT) { vkb_srv_missing(c, "vkCmdSetPatchControlPointsEXT"); return; }
|
|
c->dt->vkCmdSetPatchControlPointsEXT(commandBuffer, patchControlPoints);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetPolygonModeEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkPolygonMode polygonMode;
|
|
vkb_dec_bytes(d, &polygonMode, sizeof(polygonMode));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetPolygonModeEXT) { vkb_srv_missing(c, "vkCmdSetPolygonModeEXT"); return; }
|
|
c->dt->vkCmdSetPolygonModeEXT(commandBuffer, polygonMode);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetPrimitiveRestartEnable(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 primitiveRestartEnable;
|
|
vkb_dec_bytes(d, &primitiveRestartEnable, sizeof(primitiveRestartEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetPrimitiveRestartEnable) { vkb_srv_missing(c, "vkCmdSetPrimitiveRestartEnable"); return; }
|
|
c->dt->vkCmdSetPrimitiveRestartEnable(commandBuffer, primitiveRestartEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetPrimitiveTopology(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkPrimitiveTopology primitiveTopology;
|
|
vkb_dec_bytes(d, &primitiveTopology, sizeof(primitiveTopology));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetPrimitiveTopology) { vkb_srv_missing(c, "vkCmdSetPrimitiveTopology"); return; }
|
|
c->dt->vkCmdSetPrimitiveTopology(commandBuffer, primitiveTopology);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetProvokingVertexModeEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkProvokingVertexModeEXT provokingVertexMode;
|
|
vkb_dec_bytes(d, &provokingVertexMode, sizeof(provokingVertexMode));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetProvokingVertexModeEXT) { vkb_srv_missing(c, "vkCmdSetProvokingVertexModeEXT"); return; }
|
|
c->dt->vkCmdSetProvokingVertexModeEXT(commandBuffer, provokingVertexMode);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetRasterizationSamplesEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkSampleCountFlagBits rasterizationSamples;
|
|
vkb_dec_bytes(d, &rasterizationSamples, sizeof(rasterizationSamples));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetRasterizationSamplesEXT) { vkb_srv_missing(c, "vkCmdSetRasterizationSamplesEXT"); return; }
|
|
c->dt->vkCmdSetRasterizationSamplesEXT(commandBuffer, rasterizationSamples);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetRasterizationStreamEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t rasterizationStream;
|
|
vkb_dec_bytes(d, &rasterizationStream, sizeof(rasterizationStream));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetRasterizationStreamEXT) { vkb_srv_missing(c, "vkCmdSetRasterizationStreamEXT"); return; }
|
|
c->dt->vkCmdSetRasterizationStreamEXT(commandBuffer, rasterizationStream);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetRasterizerDiscardEnable(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 rasterizerDiscardEnable;
|
|
vkb_dec_bytes(d, &rasterizerDiscardEnable, sizeof(rasterizerDiscardEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetRasterizerDiscardEnable) { vkb_srv_missing(c, "vkCmdSetRasterizerDiscardEnable"); return; }
|
|
c->dt->vkCmdSetRasterizerDiscardEnable(commandBuffer, rasterizerDiscardEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetRenderingAttachmentLocations(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkRenderingAttachmentLocationInfo *pLocationInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkRenderingAttachmentLocationInfo *a_ = (VkRenderingAttachmentLocationInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkRenderingAttachmentLocationInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkRenderingAttachmentLocationInfo(d, &a_[i_]);
|
|
pLocationInfo = a_;
|
|
} else {
|
|
pLocationInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetRenderingAttachmentLocations) { vkb_srv_missing(c, "vkCmdSetRenderingAttachmentLocations"); return; }
|
|
c->dt->vkCmdSetRenderingAttachmentLocations(commandBuffer, pLocationInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetRenderingInputAttachmentIndices(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkRenderingInputAttachmentIndexInfo *pInputAttachmentIndexInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkRenderingInputAttachmentIndexInfo *a_ = (VkRenderingInputAttachmentIndexInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkRenderingInputAttachmentIndexInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkRenderingInputAttachmentIndexInfo(d, &a_[i_]);
|
|
pInputAttachmentIndexInfo = a_;
|
|
} else {
|
|
pInputAttachmentIndexInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetRenderingInputAttachmentIndices) { vkb_srv_missing(c, "vkCmdSetRenderingInputAttachmentIndices"); return; }
|
|
c->dt->vkCmdSetRenderingInputAttachmentIndices(commandBuffer, pInputAttachmentIndexInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetSampleLocationsEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
const VkSampleLocationsInfoEXT *pSampleLocationsInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSampleLocationsInfoEXT *a_ = (VkSampleLocationsInfoEXT *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSampleLocationsInfoEXT));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSampleLocationsInfoEXT(d, &a_[i_]);
|
|
pSampleLocationsInfo = a_;
|
|
} else {
|
|
pSampleLocationsInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetSampleLocationsEXT) { vkb_srv_missing(c, "vkCmdSetSampleLocationsEXT"); return; }
|
|
c->dt->vkCmdSetSampleLocationsEXT(commandBuffer, pSampleLocationsInfo);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetSampleLocationsEnableEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 sampleLocationsEnable;
|
|
vkb_dec_bytes(d, &sampleLocationsEnable, sizeof(sampleLocationsEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetSampleLocationsEnableEXT) { vkb_srv_missing(c, "vkCmdSetSampleLocationsEnableEXT"); return; }
|
|
c->dt->vkCmdSetSampleLocationsEnableEXT(commandBuffer, sampleLocationsEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetSampleMaskEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkSampleCountFlagBits samples;
|
|
vkb_dec_bytes(d, &samples, sizeof(samples));
|
|
const VkSampleMask *pSampleMask;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pSampleMask = (const VkSampleMask *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkSampleMask));
|
|
} else {
|
|
pSampleMask = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetSampleMaskEXT) { vkb_srv_missing(c, "vkCmdSetSampleMaskEXT"); return; }
|
|
c->dt->vkCmdSetSampleMaskEXT(commandBuffer, samples, pSampleMask);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetScissor(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstScissor;
|
|
vkb_dec_bytes(d, &firstScissor, sizeof(firstScissor));
|
|
uint32_t scissorCount;
|
|
vkb_dec_bytes(d, &scissorCount, sizeof(scissorCount));
|
|
const VkRect2D *pScissors;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pScissors = (const VkRect2D *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkRect2D));
|
|
} else {
|
|
pScissors = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetScissor) { vkb_srv_missing(c, "vkCmdSetScissor"); return; }
|
|
c->dt->vkCmdSetScissor(commandBuffer, firstScissor, scissorCount, pScissors);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetScissorWithCount(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t scissorCount;
|
|
vkb_dec_bytes(d, &scissorCount, sizeof(scissorCount));
|
|
const VkRect2D *pScissors;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pScissors = (const VkRect2D *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkRect2D));
|
|
} else {
|
|
pScissors = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetScissorWithCount) { vkb_srv_missing(c, "vkCmdSetScissorWithCount"); return; }
|
|
c->dt->vkCmdSetScissorWithCount(commandBuffer, scissorCount, pScissors);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetStencilCompareMask(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkStencilFaceFlags faceMask;
|
|
vkb_dec_bytes(d, &faceMask, sizeof(faceMask));
|
|
uint32_t compareMask;
|
|
vkb_dec_bytes(d, &compareMask, sizeof(compareMask));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetStencilCompareMask) { vkb_srv_missing(c, "vkCmdSetStencilCompareMask"); return; }
|
|
c->dt->vkCmdSetStencilCompareMask(commandBuffer, faceMask, compareMask);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetStencilOp(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkStencilFaceFlags faceMask;
|
|
vkb_dec_bytes(d, &faceMask, sizeof(faceMask));
|
|
VkStencilOp failOp;
|
|
vkb_dec_bytes(d, &failOp, sizeof(failOp));
|
|
VkStencilOp passOp;
|
|
vkb_dec_bytes(d, &passOp, sizeof(passOp));
|
|
VkStencilOp depthFailOp;
|
|
vkb_dec_bytes(d, &depthFailOp, sizeof(depthFailOp));
|
|
VkCompareOp compareOp;
|
|
vkb_dec_bytes(d, &compareOp, sizeof(compareOp));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetStencilOp) { vkb_srv_missing(c, "vkCmdSetStencilOp"); return; }
|
|
c->dt->vkCmdSetStencilOp(commandBuffer, faceMask, failOp, passOp, depthFailOp, compareOp);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetStencilReference(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkStencilFaceFlags faceMask;
|
|
vkb_dec_bytes(d, &faceMask, sizeof(faceMask));
|
|
uint32_t reference;
|
|
vkb_dec_bytes(d, &reference, sizeof(reference));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetStencilReference) { vkb_srv_missing(c, "vkCmdSetStencilReference"); return; }
|
|
c->dt->vkCmdSetStencilReference(commandBuffer, faceMask, reference);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetStencilTestEnable(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBool32 stencilTestEnable;
|
|
vkb_dec_bytes(d, &stencilTestEnable, sizeof(stencilTestEnable));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetStencilTestEnable) { vkb_srv_missing(c, "vkCmdSetStencilTestEnable"); return; }
|
|
c->dt->vkCmdSetStencilTestEnable(commandBuffer, stencilTestEnable);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetStencilWriteMask(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkStencilFaceFlags faceMask;
|
|
vkb_dec_bytes(d, &faceMask, sizeof(faceMask));
|
|
uint32_t writeMask;
|
|
vkb_dec_bytes(d, &writeMask, sizeof(writeMask));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetStencilWriteMask) { vkb_srv_missing(c, "vkCmdSetStencilWriteMask"); return; }
|
|
c->dt->vkCmdSetStencilWriteMask(commandBuffer, faceMask, writeMask);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetTessellationDomainOriginEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkTessellationDomainOrigin domainOrigin;
|
|
vkb_dec_bytes(d, &domainOrigin, sizeof(domainOrigin));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetTessellationDomainOriginEXT) { vkb_srv_missing(c, "vkCmdSetTessellationDomainOriginEXT"); return; }
|
|
c->dt->vkCmdSetTessellationDomainOriginEXT(commandBuffer, domainOrigin);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetVertexInputEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t vertexBindingDescriptionCount;
|
|
vkb_dec_bytes(d, &vertexBindingDescriptionCount, sizeof(vertexBindingDescriptionCount));
|
|
const VkVertexInputBindingDescription2EXT *pVertexBindingDescriptions;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkVertexInputBindingDescription2EXT *a_ = (VkVertexInputBindingDescription2EXT *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkVertexInputBindingDescription2EXT));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkVertexInputBindingDescription2EXT(d, &a_[i_]);
|
|
pVertexBindingDescriptions = a_;
|
|
} else {
|
|
pVertexBindingDescriptions = NULL;
|
|
}
|
|
uint32_t vertexAttributeDescriptionCount;
|
|
vkb_dec_bytes(d, &vertexAttributeDescriptionCount, sizeof(vertexAttributeDescriptionCount));
|
|
const VkVertexInputAttributeDescription2EXT *pVertexAttributeDescriptions;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkVertexInputAttributeDescription2EXT *a_ = (VkVertexInputAttributeDescription2EXT *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkVertexInputAttributeDescription2EXT));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkVertexInputAttributeDescription2EXT(d, &a_[i_]);
|
|
pVertexAttributeDescriptions = a_;
|
|
} else {
|
|
pVertexAttributeDescriptions = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetVertexInputEXT) { vkb_srv_missing(c, "vkCmdSetVertexInputEXT"); return; }
|
|
c->dt->vkCmdSetVertexInputEXT(commandBuffer, vertexBindingDescriptionCount, pVertexBindingDescriptions, vertexAttributeDescriptionCount, pVertexAttributeDescriptions);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetViewport(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t firstViewport;
|
|
vkb_dec_bytes(d, &firstViewport, sizeof(firstViewport));
|
|
uint32_t viewportCount;
|
|
vkb_dec_bytes(d, &viewportCount, sizeof(viewportCount));
|
|
const VkViewport *pViewports;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pViewports = (const VkViewport *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkViewport));
|
|
} else {
|
|
pViewports = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetViewport) { vkb_srv_missing(c, "vkCmdSetViewport"); return; }
|
|
c->dt->vkCmdSetViewport(commandBuffer, firstViewport, viewportCount, pViewports);
|
|
}
|
|
|
|
void vkb_sv_vkCmdSetViewportWithCount(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t viewportCount;
|
|
vkb_dec_bytes(d, &viewportCount, sizeof(viewportCount));
|
|
const VkViewport *pViewports;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pViewports = (const VkViewport *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkViewport));
|
|
} else {
|
|
pViewports = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdSetViewportWithCount) { vkb_srv_missing(c, "vkCmdSetViewportWithCount"); return; }
|
|
c->dt->vkCmdSetViewportWithCount(commandBuffer, viewportCount, pViewports);
|
|
}
|
|
|
|
void vkb_sv_vkCmdUpdateBuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer dstBuffer;
|
|
vkb_dec_bytes(d, &dstBuffer, sizeof(dstBuffer));
|
|
VkDeviceSize dstOffset;
|
|
vkb_dec_bytes(d, &dstOffset, sizeof(dstOffset));
|
|
VkDeviceSize dataSize;
|
|
vkb_dec_bytes(d, &dataSize, sizeof(dataSize));
|
|
const void *pData;
|
|
pData = (const void *)vkb_dec_blob(d, NULL);
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdUpdateBuffer) { vkb_srv_missing(c, "vkCmdUpdateBuffer"); return; }
|
|
c->dt->vkCmdUpdateBuffer(commandBuffer, dstBuffer, dstOffset, dataSize, pData);
|
|
}
|
|
|
|
void vkb_sv_vkCmdWaitEvents(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t eventCount;
|
|
vkb_dec_bytes(d, &eventCount, sizeof(eventCount));
|
|
const VkEvent *pEvents;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pEvents = (const VkEvent *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkEvent));
|
|
} else {
|
|
pEvents = NULL;
|
|
}
|
|
VkPipelineStageFlags srcStageMask;
|
|
vkb_dec_bytes(d, &srcStageMask, sizeof(srcStageMask));
|
|
VkPipelineStageFlags dstStageMask;
|
|
vkb_dec_bytes(d, &dstStageMask, sizeof(dstStageMask));
|
|
uint32_t memoryBarrierCount;
|
|
vkb_dec_bytes(d, &memoryBarrierCount, sizeof(memoryBarrierCount));
|
|
const VkMemoryBarrier *pMemoryBarriers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkMemoryBarrier *a_ = (VkMemoryBarrier *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkMemoryBarrier));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkMemoryBarrier(d, &a_[i_]);
|
|
pMemoryBarriers = a_;
|
|
} else {
|
|
pMemoryBarriers = NULL;
|
|
}
|
|
uint32_t bufferMemoryBarrierCount;
|
|
vkb_dec_bytes(d, &bufferMemoryBarrierCount, sizeof(bufferMemoryBarrierCount));
|
|
const VkBufferMemoryBarrier *pBufferMemoryBarriers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBufferMemoryBarrier *a_ = (VkBufferMemoryBarrier *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBufferMemoryBarrier));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBufferMemoryBarrier(d, &a_[i_]);
|
|
pBufferMemoryBarriers = a_;
|
|
} else {
|
|
pBufferMemoryBarriers = NULL;
|
|
}
|
|
uint32_t imageMemoryBarrierCount;
|
|
vkb_dec_bytes(d, &imageMemoryBarrierCount, sizeof(imageMemoryBarrierCount));
|
|
const VkImageMemoryBarrier *pImageMemoryBarriers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkImageMemoryBarrier *a_ = (VkImageMemoryBarrier *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkImageMemoryBarrier));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkImageMemoryBarrier(d, &a_[i_]);
|
|
pImageMemoryBarriers = a_;
|
|
} else {
|
|
pImageMemoryBarriers = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdWaitEvents) { vkb_srv_missing(c, "vkCmdWaitEvents"); return; }
|
|
c->dt->vkCmdWaitEvents(commandBuffer, eventCount, pEvents, srcStageMask, dstStageMask, memoryBarrierCount, pMemoryBarriers, bufferMemoryBarrierCount, pBufferMemoryBarriers, imageMemoryBarrierCount, pImageMemoryBarriers);
|
|
}
|
|
|
|
void vkb_sv_vkCmdWaitEvents2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t eventCount;
|
|
vkb_dec_bytes(d, &eventCount, sizeof(eventCount));
|
|
const VkEvent *pEvents;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pEvents = (const VkEvent *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkEvent));
|
|
} else {
|
|
pEvents = NULL;
|
|
}
|
|
const VkDependencyInfo *pDependencyInfos;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDependencyInfo *a_ = (VkDependencyInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDependencyInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDependencyInfo(d, &a_[i_]);
|
|
pDependencyInfos = a_;
|
|
} else {
|
|
pDependencyInfos = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdWaitEvents2) { vkb_srv_missing(c, "vkCmdWaitEvents2"); return; }
|
|
c->dt->vkCmdWaitEvents2(commandBuffer, eventCount, pEvents, pDependencyInfos);
|
|
}
|
|
|
|
void vkb_sv_vkCmdWriteTimestamp(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineStageFlagBits pipelineStage;
|
|
vkb_dec_bytes(d, &pipelineStage, sizeof(pipelineStage));
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
uint32_t query;
|
|
vkb_dec_bytes(d, &query, sizeof(query));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdWriteTimestamp) { vkb_srv_missing(c, "vkCmdWriteTimestamp"); return; }
|
|
c->dt->vkCmdWriteTimestamp(commandBuffer, pipelineStage, queryPool, query);
|
|
}
|
|
|
|
void vkb_sv_vkCmdWriteTimestamp2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineStageFlags2 stage;
|
|
vkb_dec_bytes(d, &stage, sizeof(stage));
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
uint32_t query;
|
|
vkb_dec_bytes(d, &query, sizeof(query));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCmdWriteTimestamp2) { vkb_srv_missing(c, "vkCmdWriteTimestamp2"); return; }
|
|
c->dt->vkCmdWriteTimestamp2(commandBuffer, stage, queryPool, query);
|
|
}
|
|
|
|
void vkb_sv_vkCreateBuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkBufferCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBufferCreateInfo *a_ = (VkBufferCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBufferCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBufferCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pBuffer = vkb_dec_u8(d);
|
|
VkBuffer pBuffer_v;
|
|
memset(&pBuffer_v, 0, sizeof(pBuffer_v));
|
|
if (has_pBuffer) vkb_dec_bytes(d, &pBuffer_v, sizeof(pBuffer_v));
|
|
VkBuffer *pBuffer = has_pBuffer ? &pBuffer_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateBuffer) { vkb_srv_missing(c, "vkCreateBuffer"); return; }
|
|
VkResult r_ = c->dt->vkCreateBuffer(device, pCreateInfo, NULL, pBuffer);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pBuffer != NULL);
|
|
if (pBuffer) vkb_enc_raw(e, pBuffer, sizeof(*pBuffer));
|
|
}
|
|
|
|
void vkb_sv_vkCreateBufferView(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkBufferViewCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBufferViewCreateInfo *a_ = (VkBufferViewCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBufferViewCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBufferViewCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pView = vkb_dec_u8(d);
|
|
VkBufferView pView_v;
|
|
memset(&pView_v, 0, sizeof(pView_v));
|
|
if (has_pView) vkb_dec_bytes(d, &pView_v, sizeof(pView_v));
|
|
VkBufferView *pView = has_pView ? &pView_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateBufferView) { vkb_srv_missing(c, "vkCreateBufferView"); return; }
|
|
VkResult r_ = c->dt->vkCreateBufferView(device, pCreateInfo, NULL, pView);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pView != NULL);
|
|
if (pView) vkb_enc_raw(e, pView, sizeof(*pView));
|
|
}
|
|
|
|
void vkb_sv_vkCreateCommandPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkCommandPoolCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCommandPoolCreateInfo *a_ = (VkCommandPoolCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCommandPoolCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkCommandPoolCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pCommandPool = vkb_dec_u8(d);
|
|
VkCommandPool pCommandPool_v;
|
|
memset(&pCommandPool_v, 0, sizeof(pCommandPool_v));
|
|
if (has_pCommandPool) vkb_dec_bytes(d, &pCommandPool_v, sizeof(pCommandPool_v));
|
|
VkCommandPool *pCommandPool = has_pCommandPool ? &pCommandPool_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateCommandPool) { vkb_srv_missing(c, "vkCreateCommandPool"); return; }
|
|
VkResult r_ = c->dt->vkCreateCommandPool(device, pCreateInfo, NULL, pCommandPool);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pCommandPool != NULL);
|
|
if (pCommandPool) vkb_enc_raw(e, pCommandPool, sizeof(*pCommandPool));
|
|
}
|
|
|
|
void vkb_sv_vkCreateComputePipelines(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineCache pipelineCache;
|
|
vkb_dec_bytes(d, &pipelineCache, sizeof(pipelineCache));
|
|
uint32_t createInfoCount;
|
|
vkb_dec_bytes(d, &createInfoCount, sizeof(createInfoCount));
|
|
const VkComputePipelineCreateInfo *pCreateInfos;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkComputePipelineCreateInfo *a_ = (VkComputePipelineCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkComputePipelineCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkComputePipelineCreateInfo(d, &a_[i_]);
|
|
pCreateInfos = a_;
|
|
} else {
|
|
pCreateInfos = NULL;
|
|
}
|
|
uint8_t has_pPipelines = vkb_dec_u8(d); uint32_t n_pPipelines = vkb_dec_u32(d);
|
|
VkPipeline *pPipelines = has_pPipelines ? (VkPipeline *)vkb_dec_alloc_zero(d, (size_t)n_pPipelines * sizeof(VkPipeline)) : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateComputePipelines) { vkb_srv_missing(c, "vkCreateComputePipelines"); return; }
|
|
VkResult r_ = c->dt->vkCreateComputePipelines(device, pipelineCache, createInfoCount, pCreateInfos, NULL, pPipelines);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
{
|
|
uint32_t rn_ = n_pPipelines;
|
|
uint32_t has_ = pPipelines ? (rn_ < n_pPipelines ? rn_ : n_pPipelines) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pPipelines[i_], sizeof(VkPipeline));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkCreateDescriptorPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDescriptorPoolCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDescriptorPoolCreateInfo *a_ = (VkDescriptorPoolCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDescriptorPoolCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDescriptorPoolCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pDescriptorPool = vkb_dec_u8(d);
|
|
VkDescriptorPool pDescriptorPool_v;
|
|
memset(&pDescriptorPool_v, 0, sizeof(pDescriptorPool_v));
|
|
if (has_pDescriptorPool) vkb_dec_bytes(d, &pDescriptorPool_v, sizeof(pDescriptorPool_v));
|
|
VkDescriptorPool *pDescriptorPool = has_pDescriptorPool ? &pDescriptorPool_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateDescriptorPool) { vkb_srv_missing(c, "vkCreateDescriptorPool"); return; }
|
|
VkResult r_ = c->dt->vkCreateDescriptorPool(device, pCreateInfo, NULL, pDescriptorPool);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pDescriptorPool != NULL);
|
|
if (pDescriptorPool) vkb_enc_raw(e, pDescriptorPool, sizeof(*pDescriptorPool));
|
|
}
|
|
|
|
void vkb_sv_vkCreateDescriptorSetLayout(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDescriptorSetLayoutCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDescriptorSetLayoutCreateInfo *a_ = (VkDescriptorSetLayoutCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDescriptorSetLayoutCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDescriptorSetLayoutCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pSetLayout = vkb_dec_u8(d);
|
|
VkDescriptorSetLayout pSetLayout_v;
|
|
memset(&pSetLayout_v, 0, sizeof(pSetLayout_v));
|
|
if (has_pSetLayout) vkb_dec_bytes(d, &pSetLayout_v, sizeof(pSetLayout_v));
|
|
VkDescriptorSetLayout *pSetLayout = has_pSetLayout ? &pSetLayout_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateDescriptorSetLayout) { vkb_srv_missing(c, "vkCreateDescriptorSetLayout"); return; }
|
|
VkResult r_ = c->dt->vkCreateDescriptorSetLayout(device, pCreateInfo, NULL, pSetLayout);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pSetLayout != NULL);
|
|
if (pSetLayout) vkb_enc_raw(e, pSetLayout, sizeof(*pSetLayout));
|
|
}
|
|
|
|
void vkb_sv_vkCreateDescriptorUpdateTemplate(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDescriptorUpdateTemplateCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDescriptorUpdateTemplateCreateInfo *a_ = (VkDescriptorUpdateTemplateCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDescriptorUpdateTemplateCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDescriptorUpdateTemplateCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pDescriptorUpdateTemplate = vkb_dec_u8(d);
|
|
VkDescriptorUpdateTemplate pDescriptorUpdateTemplate_v;
|
|
memset(&pDescriptorUpdateTemplate_v, 0, sizeof(pDescriptorUpdateTemplate_v));
|
|
if (has_pDescriptorUpdateTemplate) vkb_dec_bytes(d, &pDescriptorUpdateTemplate_v, sizeof(pDescriptorUpdateTemplate_v));
|
|
VkDescriptorUpdateTemplate *pDescriptorUpdateTemplate = has_pDescriptorUpdateTemplate ? &pDescriptorUpdateTemplate_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateDescriptorUpdateTemplate) { vkb_srv_missing(c, "vkCreateDescriptorUpdateTemplate"); return; }
|
|
VkResult r_ = c->dt->vkCreateDescriptorUpdateTemplate(device, pCreateInfo, NULL, pDescriptorUpdateTemplate);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pDescriptorUpdateTemplate != NULL);
|
|
if (pDescriptorUpdateTemplate) vkb_enc_raw(e, pDescriptorUpdateTemplate, sizeof(*pDescriptorUpdateTemplate));
|
|
}
|
|
|
|
void vkb_sv_vkCreateEvent(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkEventCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkEventCreateInfo *a_ = (VkEventCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkEventCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkEventCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pEvent = vkb_dec_u8(d);
|
|
VkEvent pEvent_v;
|
|
memset(&pEvent_v, 0, sizeof(pEvent_v));
|
|
if (has_pEvent) vkb_dec_bytes(d, &pEvent_v, sizeof(pEvent_v));
|
|
VkEvent *pEvent = has_pEvent ? &pEvent_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateEvent) { vkb_srv_missing(c, "vkCreateEvent"); return; }
|
|
VkResult r_ = c->dt->vkCreateEvent(device, pCreateInfo, NULL, pEvent);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pEvent != NULL);
|
|
if (pEvent) vkb_enc_raw(e, pEvent, sizeof(*pEvent));
|
|
}
|
|
|
|
void vkb_sv_vkCreateFence(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkFenceCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkFenceCreateInfo *a_ = (VkFenceCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkFenceCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkFenceCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pFence = vkb_dec_u8(d);
|
|
VkFence pFence_v;
|
|
memset(&pFence_v, 0, sizeof(pFence_v));
|
|
if (has_pFence) vkb_dec_bytes(d, &pFence_v, sizeof(pFence_v));
|
|
VkFence *pFence = has_pFence ? &pFence_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateFence) { vkb_srv_missing(c, "vkCreateFence"); return; }
|
|
VkResult r_ = c->dt->vkCreateFence(device, pCreateInfo, NULL, pFence);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pFence != NULL);
|
|
if (pFence) vkb_enc_raw(e, pFence, sizeof(*pFence));
|
|
}
|
|
|
|
void vkb_sv_vkCreateFramebuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkFramebufferCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkFramebufferCreateInfo *a_ = (VkFramebufferCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkFramebufferCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkFramebufferCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pFramebuffer = vkb_dec_u8(d);
|
|
VkFramebuffer pFramebuffer_v;
|
|
memset(&pFramebuffer_v, 0, sizeof(pFramebuffer_v));
|
|
if (has_pFramebuffer) vkb_dec_bytes(d, &pFramebuffer_v, sizeof(pFramebuffer_v));
|
|
VkFramebuffer *pFramebuffer = has_pFramebuffer ? &pFramebuffer_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateFramebuffer) { vkb_srv_missing(c, "vkCreateFramebuffer"); return; }
|
|
VkResult r_ = c->dt->vkCreateFramebuffer(device, pCreateInfo, NULL, pFramebuffer);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pFramebuffer != NULL);
|
|
if (pFramebuffer) vkb_enc_raw(e, pFramebuffer, sizeof(*pFramebuffer));
|
|
}
|
|
|
|
void vkb_sv_vkCreateGraphicsPipelines(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineCache pipelineCache;
|
|
vkb_dec_bytes(d, &pipelineCache, sizeof(pipelineCache));
|
|
uint32_t createInfoCount;
|
|
vkb_dec_bytes(d, &createInfoCount, sizeof(createInfoCount));
|
|
const VkGraphicsPipelineCreateInfo *pCreateInfos;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkGraphicsPipelineCreateInfo *a_ = (VkGraphicsPipelineCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkGraphicsPipelineCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkGraphicsPipelineCreateInfo(d, &a_[i_]);
|
|
pCreateInfos = a_;
|
|
} else {
|
|
pCreateInfos = NULL;
|
|
}
|
|
uint8_t has_pPipelines = vkb_dec_u8(d); uint32_t n_pPipelines = vkb_dec_u32(d);
|
|
VkPipeline *pPipelines = has_pPipelines ? (VkPipeline *)vkb_dec_alloc_zero(d, (size_t)n_pPipelines * sizeof(VkPipeline)) : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateGraphicsPipelines) { vkb_srv_missing(c, "vkCreateGraphicsPipelines"); return; }
|
|
VkResult r_ = c->dt->vkCreateGraphicsPipelines(device, pipelineCache, createInfoCount, pCreateInfos, NULL, pPipelines);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
{
|
|
uint32_t rn_ = n_pPipelines;
|
|
uint32_t has_ = pPipelines ? (rn_ < n_pPipelines ? rn_ : n_pPipelines) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pPipelines[i_], sizeof(VkPipeline));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkCreateImage(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkImageCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkImageCreateInfo *a_ = (VkImageCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkImageCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkImageCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pImage = vkb_dec_u8(d);
|
|
VkImage pImage_v;
|
|
memset(&pImage_v, 0, sizeof(pImage_v));
|
|
if (has_pImage) vkb_dec_bytes(d, &pImage_v, sizeof(pImage_v));
|
|
VkImage *pImage = has_pImage ? &pImage_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateImage) { vkb_srv_missing(c, "vkCreateImage"); return; }
|
|
VkResult r_ = c->dt->vkCreateImage(device, pCreateInfo, NULL, pImage);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pImage != NULL);
|
|
if (pImage) vkb_enc_raw(e, pImage, sizeof(*pImage));
|
|
}
|
|
|
|
void vkb_sv_vkCreateImageView(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkImageViewCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkImageViewCreateInfo *a_ = (VkImageViewCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkImageViewCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkImageViewCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pView = vkb_dec_u8(d);
|
|
VkImageView pView_v;
|
|
memset(&pView_v, 0, sizeof(pView_v));
|
|
if (has_pView) vkb_dec_bytes(d, &pView_v, sizeof(pView_v));
|
|
VkImageView *pView = has_pView ? &pView_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateImageView) { vkb_srv_missing(c, "vkCreateImageView"); return; }
|
|
VkResult r_ = c->dt->vkCreateImageView(device, pCreateInfo, NULL, pView);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pView != NULL);
|
|
if (pView) vkb_enc_raw(e, pView, sizeof(*pView));
|
|
}
|
|
|
|
void vkb_sv_vkCreatePipelineCache(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkPipelineCacheCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkPipelineCacheCreateInfo *a_ = (VkPipelineCacheCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkPipelineCacheCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkPipelineCacheCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pPipelineCache = vkb_dec_u8(d);
|
|
VkPipelineCache pPipelineCache_v;
|
|
memset(&pPipelineCache_v, 0, sizeof(pPipelineCache_v));
|
|
if (has_pPipelineCache) vkb_dec_bytes(d, &pPipelineCache_v, sizeof(pPipelineCache_v));
|
|
VkPipelineCache *pPipelineCache = has_pPipelineCache ? &pPipelineCache_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreatePipelineCache) { vkb_srv_missing(c, "vkCreatePipelineCache"); return; }
|
|
VkResult r_ = c->dt->vkCreatePipelineCache(device, pCreateInfo, NULL, pPipelineCache);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pPipelineCache != NULL);
|
|
if (pPipelineCache) vkb_enc_raw(e, pPipelineCache, sizeof(*pPipelineCache));
|
|
}
|
|
|
|
void vkb_sv_vkCreatePipelineLayout(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkPipelineLayoutCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkPipelineLayoutCreateInfo *a_ = (VkPipelineLayoutCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkPipelineLayoutCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkPipelineLayoutCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pPipelineLayout = vkb_dec_u8(d);
|
|
VkPipelineLayout pPipelineLayout_v;
|
|
memset(&pPipelineLayout_v, 0, sizeof(pPipelineLayout_v));
|
|
if (has_pPipelineLayout) vkb_dec_bytes(d, &pPipelineLayout_v, sizeof(pPipelineLayout_v));
|
|
VkPipelineLayout *pPipelineLayout = has_pPipelineLayout ? &pPipelineLayout_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreatePipelineLayout) { vkb_srv_missing(c, "vkCreatePipelineLayout"); return; }
|
|
VkResult r_ = c->dt->vkCreatePipelineLayout(device, pCreateInfo, NULL, pPipelineLayout);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pPipelineLayout != NULL);
|
|
if (pPipelineLayout) vkb_enc_raw(e, pPipelineLayout, sizeof(*pPipelineLayout));
|
|
}
|
|
|
|
void vkb_sv_vkCreateQueryPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkQueryPoolCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkQueryPoolCreateInfo *a_ = (VkQueryPoolCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkQueryPoolCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkQueryPoolCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pQueryPool = vkb_dec_u8(d);
|
|
VkQueryPool pQueryPool_v;
|
|
memset(&pQueryPool_v, 0, sizeof(pQueryPool_v));
|
|
if (has_pQueryPool) vkb_dec_bytes(d, &pQueryPool_v, sizeof(pQueryPool_v));
|
|
VkQueryPool *pQueryPool = has_pQueryPool ? &pQueryPool_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateQueryPool) { vkb_srv_missing(c, "vkCreateQueryPool"); return; }
|
|
VkResult r_ = c->dt->vkCreateQueryPool(device, pCreateInfo, NULL, pQueryPool);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pQueryPool != NULL);
|
|
if (pQueryPool) vkb_enc_raw(e, pQueryPool, sizeof(*pQueryPool));
|
|
}
|
|
|
|
void vkb_sv_vkCreateRenderPass(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkRenderPassCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkRenderPassCreateInfo *a_ = (VkRenderPassCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkRenderPassCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkRenderPassCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pRenderPass = vkb_dec_u8(d);
|
|
VkRenderPass pRenderPass_v;
|
|
memset(&pRenderPass_v, 0, sizeof(pRenderPass_v));
|
|
if (has_pRenderPass) vkb_dec_bytes(d, &pRenderPass_v, sizeof(pRenderPass_v));
|
|
VkRenderPass *pRenderPass = has_pRenderPass ? &pRenderPass_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateRenderPass) { vkb_srv_missing(c, "vkCreateRenderPass"); return; }
|
|
VkResult r_ = c->dt->vkCreateRenderPass(device, pCreateInfo, NULL, pRenderPass);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pRenderPass != NULL);
|
|
if (pRenderPass) vkb_enc_raw(e, pRenderPass, sizeof(*pRenderPass));
|
|
}
|
|
|
|
void vkb_sv_vkCreateRenderPass2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkRenderPassCreateInfo2 *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkRenderPassCreateInfo2 *a_ = (VkRenderPassCreateInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkRenderPassCreateInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkRenderPassCreateInfo2(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pRenderPass = vkb_dec_u8(d);
|
|
VkRenderPass pRenderPass_v;
|
|
memset(&pRenderPass_v, 0, sizeof(pRenderPass_v));
|
|
if (has_pRenderPass) vkb_dec_bytes(d, &pRenderPass_v, sizeof(pRenderPass_v));
|
|
VkRenderPass *pRenderPass = has_pRenderPass ? &pRenderPass_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateRenderPass2) { vkb_srv_missing(c, "vkCreateRenderPass2"); return; }
|
|
VkResult r_ = c->dt->vkCreateRenderPass2(device, pCreateInfo, NULL, pRenderPass);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pRenderPass != NULL);
|
|
if (pRenderPass) vkb_enc_raw(e, pRenderPass, sizeof(*pRenderPass));
|
|
}
|
|
|
|
void vkb_sv_vkCreateSampler(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkSamplerCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSamplerCreateInfo *a_ = (VkSamplerCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSamplerCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSamplerCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pSampler = vkb_dec_u8(d);
|
|
VkSampler pSampler_v;
|
|
memset(&pSampler_v, 0, sizeof(pSampler_v));
|
|
if (has_pSampler) vkb_dec_bytes(d, &pSampler_v, sizeof(pSampler_v));
|
|
VkSampler *pSampler = has_pSampler ? &pSampler_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateSampler) { vkb_srv_missing(c, "vkCreateSampler"); return; }
|
|
VkResult r_ = c->dt->vkCreateSampler(device, pCreateInfo, NULL, pSampler);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pSampler != NULL);
|
|
if (pSampler) vkb_enc_raw(e, pSampler, sizeof(*pSampler));
|
|
}
|
|
|
|
void vkb_sv_vkCreateSamplerYcbcrConversion(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkSamplerYcbcrConversionCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSamplerYcbcrConversionCreateInfo *a_ = (VkSamplerYcbcrConversionCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSamplerYcbcrConversionCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSamplerYcbcrConversionCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pYcbcrConversion = vkb_dec_u8(d);
|
|
VkSamplerYcbcrConversion pYcbcrConversion_v;
|
|
memset(&pYcbcrConversion_v, 0, sizeof(pYcbcrConversion_v));
|
|
if (has_pYcbcrConversion) vkb_dec_bytes(d, &pYcbcrConversion_v, sizeof(pYcbcrConversion_v));
|
|
VkSamplerYcbcrConversion *pYcbcrConversion = has_pYcbcrConversion ? &pYcbcrConversion_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateSamplerYcbcrConversion) { vkb_srv_missing(c, "vkCreateSamplerYcbcrConversion"); return; }
|
|
VkResult r_ = c->dt->vkCreateSamplerYcbcrConversion(device, pCreateInfo, NULL, pYcbcrConversion);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pYcbcrConversion != NULL);
|
|
if (pYcbcrConversion) vkb_enc_raw(e, pYcbcrConversion, sizeof(*pYcbcrConversion));
|
|
}
|
|
|
|
void vkb_sv_vkCreateSemaphore(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkSemaphoreCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSemaphoreCreateInfo *a_ = (VkSemaphoreCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSemaphoreCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSemaphoreCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pSemaphore = vkb_dec_u8(d);
|
|
VkSemaphore pSemaphore_v;
|
|
memset(&pSemaphore_v, 0, sizeof(pSemaphore_v));
|
|
if (has_pSemaphore) vkb_dec_bytes(d, &pSemaphore_v, sizeof(pSemaphore_v));
|
|
VkSemaphore *pSemaphore = has_pSemaphore ? &pSemaphore_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateSemaphore) { vkb_srv_missing(c, "vkCreateSemaphore"); return; }
|
|
VkResult r_ = c->dt->vkCreateSemaphore(device, pCreateInfo, NULL, pSemaphore);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pSemaphore != NULL);
|
|
if (pSemaphore) vkb_enc_raw(e, pSemaphore, sizeof(*pSemaphore));
|
|
}
|
|
|
|
void vkb_sv_vkCreateShaderModule(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkShaderModuleCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkShaderModuleCreateInfo *a_ = (VkShaderModuleCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkShaderModuleCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkShaderModuleCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pShaderModule = vkb_dec_u8(d);
|
|
VkShaderModule pShaderModule_v;
|
|
memset(&pShaderModule_v, 0, sizeof(pShaderModule_v));
|
|
if (has_pShaderModule) vkb_dec_bytes(d, &pShaderModule_v, sizeof(pShaderModule_v));
|
|
VkShaderModule *pShaderModule = has_pShaderModule ? &pShaderModule_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateShaderModule) { vkb_srv_missing(c, "vkCreateShaderModule"); return; }
|
|
VkResult r_ = c->dt->vkCreateShaderModule(device, pCreateInfo, NULL, pShaderModule);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pShaderModule != NULL);
|
|
if (pShaderModule) vkb_enc_raw(e, pShaderModule, sizeof(*pShaderModule));
|
|
}
|
|
|
|
void vkb_sv_vkCreateTensorARM(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkTensorCreateInfoARM *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkTensorCreateInfoARM *a_ = (VkTensorCreateInfoARM *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkTensorCreateInfoARM));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkTensorCreateInfoARM(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pTensor = vkb_dec_u8(d);
|
|
VkTensorARM pTensor_v;
|
|
memset(&pTensor_v, 0, sizeof(pTensor_v));
|
|
if (has_pTensor) vkb_dec_bytes(d, &pTensor_v, sizeof(pTensor_v));
|
|
VkTensorARM *pTensor = has_pTensor ? &pTensor_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateTensorARM) { vkb_srv_missing(c, "vkCreateTensorARM"); return; }
|
|
VkResult r_ = c->dt->vkCreateTensorARM(device, pCreateInfo, NULL, pTensor);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pTensor != NULL);
|
|
if (pTensor) vkb_enc_raw(e, pTensor, sizeof(*pTensor));
|
|
}
|
|
|
|
void vkb_sv_vkCreateTensorViewARM(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkTensorViewCreateInfoARM *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkTensorViewCreateInfoARM *a_ = (VkTensorViewCreateInfoARM *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkTensorViewCreateInfoARM));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkTensorViewCreateInfoARM(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pView = vkb_dec_u8(d);
|
|
VkTensorViewARM pView_v;
|
|
memset(&pView_v, 0, sizeof(pView_v));
|
|
if (has_pView) vkb_dec_bytes(d, &pView_v, sizeof(pView_v));
|
|
VkTensorViewARM *pView = has_pView ? &pView_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkCreateTensorViewARM) { vkb_srv_missing(c, "vkCreateTensorViewARM"); return; }
|
|
VkResult r_ = c->dt->vkCreateTensorViewARM(device, pCreateInfo, NULL, pView);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pView != NULL);
|
|
if (pView) vkb_enc_raw(e, pView, sizeof(*pView));
|
|
}
|
|
|
|
void vkb_sv_vkDestroyBuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer buffer;
|
|
vkb_dec_bytes(d, &buffer, sizeof(buffer));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyBuffer) { vkb_srv_missing(c, "vkDestroyBuffer"); return; }
|
|
c->dt->vkDestroyBuffer(device, buffer, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyBufferView(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkBufferView bufferView;
|
|
vkb_dec_bytes(d, &bufferView, sizeof(bufferView));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyBufferView) { vkb_srv_missing(c, "vkDestroyBufferView"); return; }
|
|
c->dt->vkDestroyBufferView(device, bufferView, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyCommandPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkCommandPool commandPool;
|
|
vkb_dec_bytes(d, &commandPool, sizeof(commandPool));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyCommandPool) { vkb_srv_missing(c, "vkDestroyCommandPool"); return; }
|
|
c->dt->vkDestroyCommandPool(device, commandPool, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyDescriptorPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkDescriptorPool descriptorPool;
|
|
vkb_dec_bytes(d, &descriptorPool, sizeof(descriptorPool));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyDescriptorPool) { vkb_srv_missing(c, "vkDestroyDescriptorPool"); return; }
|
|
c->dt->vkDestroyDescriptorPool(device, descriptorPool, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyDescriptorSetLayout(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkDescriptorSetLayout descriptorSetLayout;
|
|
vkb_dec_bytes(d, &descriptorSetLayout, sizeof(descriptorSetLayout));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyDescriptorSetLayout) { vkb_srv_missing(c, "vkDestroyDescriptorSetLayout"); return; }
|
|
c->dt->vkDestroyDescriptorSetLayout(device, descriptorSetLayout, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyDescriptorUpdateTemplate(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkDescriptorUpdateTemplate descriptorUpdateTemplate;
|
|
vkb_dec_bytes(d, &descriptorUpdateTemplate, sizeof(descriptorUpdateTemplate));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyDescriptorUpdateTemplate) { vkb_srv_missing(c, "vkDestroyDescriptorUpdateTemplate"); return; }
|
|
c->dt->vkDestroyDescriptorUpdateTemplate(device, descriptorUpdateTemplate, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyEvent(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkEvent event;
|
|
vkb_dec_bytes(d, &event, sizeof(event));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyEvent) { vkb_srv_missing(c, "vkDestroyEvent"); return; }
|
|
c->dt->vkDestroyEvent(device, event, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyFence(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkFence fence;
|
|
vkb_dec_bytes(d, &fence, sizeof(fence));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyFence) { vkb_srv_missing(c, "vkDestroyFence"); return; }
|
|
c->dt->vkDestroyFence(device, fence, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyFramebuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkFramebuffer framebuffer;
|
|
vkb_dec_bytes(d, &framebuffer, sizeof(framebuffer));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyFramebuffer) { vkb_srv_missing(c, "vkDestroyFramebuffer"); return; }
|
|
c->dt->vkDestroyFramebuffer(device, framebuffer, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyImage(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage image;
|
|
vkb_dec_bytes(d, &image, sizeof(image));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyImage) { vkb_srv_missing(c, "vkDestroyImage"); return; }
|
|
c->dt->vkDestroyImage(device, image, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyImageView(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkImageView imageView;
|
|
vkb_dec_bytes(d, &imageView, sizeof(imageView));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyImageView) { vkb_srv_missing(c, "vkDestroyImageView"); return; }
|
|
c->dt->vkDestroyImageView(device, imageView, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyPipeline(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipeline pipeline;
|
|
vkb_dec_bytes(d, &pipeline, sizeof(pipeline));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyPipeline) { vkb_srv_missing(c, "vkDestroyPipeline"); return; }
|
|
c->dt->vkDestroyPipeline(device, pipeline, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyPipelineCache(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineCache pipelineCache;
|
|
vkb_dec_bytes(d, &pipelineCache, sizeof(pipelineCache));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyPipelineCache) { vkb_srv_missing(c, "vkDestroyPipelineCache"); return; }
|
|
c->dt->vkDestroyPipelineCache(device, pipelineCache, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyPipelineLayout(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineLayout pipelineLayout;
|
|
vkb_dec_bytes(d, &pipelineLayout, sizeof(pipelineLayout));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyPipelineLayout) { vkb_srv_missing(c, "vkDestroyPipelineLayout"); return; }
|
|
c->dt->vkDestroyPipelineLayout(device, pipelineLayout, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyQueryPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyQueryPool) { vkb_srv_missing(c, "vkDestroyQueryPool"); return; }
|
|
c->dt->vkDestroyQueryPool(device, queryPool, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyRenderPass(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkRenderPass renderPass;
|
|
vkb_dec_bytes(d, &renderPass, sizeof(renderPass));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyRenderPass) { vkb_srv_missing(c, "vkDestroyRenderPass"); return; }
|
|
c->dt->vkDestroyRenderPass(device, renderPass, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroySampler(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkSampler sampler;
|
|
vkb_dec_bytes(d, &sampler, sizeof(sampler));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroySampler) { vkb_srv_missing(c, "vkDestroySampler"); return; }
|
|
c->dt->vkDestroySampler(device, sampler, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroySamplerYcbcrConversion(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkSamplerYcbcrConversion ycbcrConversion;
|
|
vkb_dec_bytes(d, &ycbcrConversion, sizeof(ycbcrConversion));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroySamplerYcbcrConversion) { vkb_srv_missing(c, "vkDestroySamplerYcbcrConversion"); return; }
|
|
c->dt->vkDestroySamplerYcbcrConversion(device, ycbcrConversion, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroySemaphore(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkSemaphore semaphore;
|
|
vkb_dec_bytes(d, &semaphore, sizeof(semaphore));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroySemaphore) { vkb_srv_missing(c, "vkDestroySemaphore"); return; }
|
|
c->dt->vkDestroySemaphore(device, semaphore, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyShaderModule(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkShaderModule shaderModule;
|
|
vkb_dec_bytes(d, &shaderModule, sizeof(shaderModule));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyShaderModule) { vkb_srv_missing(c, "vkDestroyShaderModule"); return; }
|
|
c->dt->vkDestroyShaderModule(device, shaderModule, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyTensorARM(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkTensorARM tensor;
|
|
vkb_dec_bytes(d, &tensor, sizeof(tensor));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyTensorARM) { vkb_srv_missing(c, "vkDestroyTensorARM"); return; }
|
|
c->dt->vkDestroyTensorARM(device, tensor, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDestroyTensorViewARM(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkTensorViewARM tensorView;
|
|
vkb_dec_bytes(d, &tensorView, sizeof(tensorView));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDestroyTensorViewARM) { vkb_srv_missing(c, "vkDestroyTensorViewARM"); return; }
|
|
c->dt->vkDestroyTensorViewARM(device, tensorView, NULL);
|
|
}
|
|
|
|
void vkb_sv_vkDeviceWaitIdle(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkDeviceWaitIdle) { vkb_srv_missing(c, "vkDeviceWaitIdle"); return; }
|
|
VkResult r_ = c->dt->vkDeviceWaitIdle(device);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkEnumerateDeviceExtensionProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const char *pLayerName;
|
|
pLayerName = vkb_dec_str(d);
|
|
uint8_t has_pPropertyCount = vkb_dec_u8(d);
|
|
uint32_t pPropertyCount_v;
|
|
memset(&pPropertyCount_v, 0, sizeof(pPropertyCount_v));
|
|
if (has_pPropertyCount) vkb_dec_bytes(d, &pPropertyCount_v, sizeof(pPropertyCount_v));
|
|
uint32_t *pPropertyCount = has_pPropertyCount ? &pPropertyCount_v : NULL;
|
|
uint8_t has_pProperties = vkb_dec_u8(d); uint32_t n_pProperties = vkb_dec_u32(d);
|
|
VkExtensionProperties *pProperties = has_pProperties ? (VkExtensionProperties *)vkb_dec_alloc_zero(d, (size_t)n_pProperties * sizeof(VkExtensionProperties)) : NULL;
|
|
if (pProperties && pPropertyCount) *pPropertyCount = n_pProperties;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkEnumerateDeviceExtensionProperties) { vkb_srv_missing(c, "vkEnumerateDeviceExtensionProperties"); return; }
|
|
VkResult r_ = c->dt->vkEnumerateDeviceExtensionProperties(physicalDevice, pLayerName, pPropertyCount, pProperties);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pPropertyCount != NULL);
|
|
if (pPropertyCount) vkb_enc_raw(e, pPropertyCount, sizeof(*pPropertyCount));
|
|
{
|
|
uint32_t rn_ = (pPropertyCount ? *pPropertyCount : 0);
|
|
uint32_t has_ = pProperties ? (rn_ < n_pProperties ? rn_ : n_pProperties) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pProperties[i_], sizeof(VkExtensionProperties));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkEnumerateInstanceExtensionProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
const char *pLayerName;
|
|
pLayerName = vkb_dec_str(d);
|
|
uint8_t has_pPropertyCount = vkb_dec_u8(d);
|
|
uint32_t pPropertyCount_v;
|
|
memset(&pPropertyCount_v, 0, sizeof(pPropertyCount_v));
|
|
if (has_pPropertyCount) vkb_dec_bytes(d, &pPropertyCount_v, sizeof(pPropertyCount_v));
|
|
uint32_t *pPropertyCount = has_pPropertyCount ? &pPropertyCount_v : NULL;
|
|
uint8_t has_pProperties = vkb_dec_u8(d); uint32_t n_pProperties = vkb_dec_u32(d);
|
|
VkExtensionProperties *pProperties = has_pProperties ? (VkExtensionProperties *)vkb_dec_alloc_zero(d, (size_t)n_pProperties * sizeof(VkExtensionProperties)) : NULL;
|
|
if (pProperties && pPropertyCount) *pPropertyCount = n_pProperties;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkEnumerateInstanceExtensionProperties) { vkb_srv_missing(c, "vkEnumerateInstanceExtensionProperties"); return; }
|
|
VkResult r_ = c->dt->vkEnumerateInstanceExtensionProperties(pLayerName, pPropertyCount, pProperties);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pPropertyCount != NULL);
|
|
if (pPropertyCount) vkb_enc_raw(e, pPropertyCount, sizeof(*pPropertyCount));
|
|
{
|
|
uint32_t rn_ = (pPropertyCount ? *pPropertyCount : 0);
|
|
uint32_t has_ = pProperties ? (rn_ < n_pProperties ? rn_ : n_pProperties) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pProperties[i_], sizeof(VkExtensionProperties));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkEnumerateInstanceLayerProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
uint8_t has_pPropertyCount = vkb_dec_u8(d);
|
|
uint32_t pPropertyCount_v;
|
|
memset(&pPropertyCount_v, 0, sizeof(pPropertyCount_v));
|
|
if (has_pPropertyCount) vkb_dec_bytes(d, &pPropertyCount_v, sizeof(pPropertyCount_v));
|
|
uint32_t *pPropertyCount = has_pPropertyCount ? &pPropertyCount_v : NULL;
|
|
uint8_t has_pProperties = vkb_dec_u8(d); uint32_t n_pProperties = vkb_dec_u32(d);
|
|
VkLayerProperties *pProperties = has_pProperties ? (VkLayerProperties *)vkb_dec_alloc_zero(d, (size_t)n_pProperties * sizeof(VkLayerProperties)) : NULL;
|
|
if (pProperties && pPropertyCount) *pPropertyCount = n_pProperties;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkEnumerateInstanceLayerProperties) { vkb_srv_missing(c, "vkEnumerateInstanceLayerProperties"); return; }
|
|
VkResult r_ = c->dt->vkEnumerateInstanceLayerProperties(pPropertyCount, pProperties);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pPropertyCount != NULL);
|
|
if (pPropertyCount) vkb_enc_raw(e, pPropertyCount, sizeof(*pPropertyCount));
|
|
{
|
|
uint32_t rn_ = (pPropertyCount ? *pPropertyCount : 0);
|
|
uint32_t has_ = pProperties ? (rn_ < n_pProperties ? rn_ : n_pProperties) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pProperties[i_], sizeof(VkLayerProperties));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkEnumerateInstanceVersion(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
uint8_t has_pApiVersion = vkb_dec_u8(d);
|
|
uint32_t pApiVersion_v;
|
|
memset(&pApiVersion_v, 0, sizeof(pApiVersion_v));
|
|
if (has_pApiVersion) vkb_dec_bytes(d, &pApiVersion_v, sizeof(pApiVersion_v));
|
|
uint32_t *pApiVersion = has_pApiVersion ? &pApiVersion_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkEnumerateInstanceVersion) { vkb_srv_missing(c, "vkEnumerateInstanceVersion"); return; }
|
|
VkResult r_ = c->dt->vkEnumerateInstanceVersion(pApiVersion);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pApiVersion != NULL);
|
|
if (pApiVersion) vkb_enc_raw(e, pApiVersion, sizeof(*pApiVersion));
|
|
}
|
|
|
|
void vkb_sv_vkEnumeratePhysicalDeviceGroups(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkInstance instance = (VkInstance)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pPhysicalDeviceGroupCount = vkb_dec_u8(d);
|
|
uint32_t pPhysicalDeviceGroupCount_v;
|
|
memset(&pPhysicalDeviceGroupCount_v, 0, sizeof(pPhysicalDeviceGroupCount_v));
|
|
if (has_pPhysicalDeviceGroupCount) vkb_dec_bytes(d, &pPhysicalDeviceGroupCount_v, sizeof(pPhysicalDeviceGroupCount_v));
|
|
uint32_t *pPhysicalDeviceGroupCount = has_pPhysicalDeviceGroupCount ? &pPhysicalDeviceGroupCount_v : NULL;
|
|
uint8_t has_pPhysicalDeviceGroupProperties = vkb_dec_u8(d); uint32_t n_pPhysicalDeviceGroupProperties = vkb_dec_u32(d);
|
|
VkPhysicalDeviceGroupProperties *pPhysicalDeviceGroupProperties = has_pPhysicalDeviceGroupProperties ? (VkPhysicalDeviceGroupProperties *)vkb_dec_alloc_zero(d, (size_t)n_pPhysicalDeviceGroupProperties * sizeof(VkPhysicalDeviceGroupProperties)) : NULL;
|
|
for (uint32_t i_ = 0; pPhysicalDeviceGroupProperties && i_ < n_pPhysicalDeviceGroupProperties; i_++) vkb_dec_out_template(d, &pPhysicalDeviceGroupProperties[i_], sizeof(VkPhysicalDeviceGroupProperties));
|
|
if (pPhysicalDeviceGroupProperties && pPhysicalDeviceGroupCount) *pPhysicalDeviceGroupCount = n_pPhysicalDeviceGroupProperties;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkEnumeratePhysicalDeviceGroups) { vkb_srv_missing(c, "vkEnumeratePhysicalDeviceGroups"); return; }
|
|
VkResult r_ = c->dt->vkEnumeratePhysicalDeviceGroups(instance, pPhysicalDeviceGroupCount, pPhysicalDeviceGroupProperties);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pPhysicalDeviceGroupCount != NULL);
|
|
if (pPhysicalDeviceGroupCount) vkb_enc_raw(e, pPhysicalDeviceGroupCount, sizeof(*pPhysicalDeviceGroupCount));
|
|
{
|
|
uint32_t rn_ = (pPhysicalDeviceGroupCount ? *pPhysicalDeviceGroupCount : 0);
|
|
uint32_t has_ = pPhysicalDeviceGroupProperties ? (rn_ < n_pPhysicalDeviceGroupProperties ? rn_ : n_pPhysicalDeviceGroupProperties) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_out_struct(e, &pPhysicalDeviceGroupProperties[i_], sizeof(VkPhysicalDeviceGroupProperties));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t queueFamilyIndex;
|
|
vkb_dec_bytes(d, &queueFamilyIndex, sizeof(queueFamilyIndex));
|
|
uint8_t has_pCounterCount = vkb_dec_u8(d);
|
|
uint32_t pCounterCount_v;
|
|
memset(&pCounterCount_v, 0, sizeof(pCounterCount_v));
|
|
if (has_pCounterCount) vkb_dec_bytes(d, &pCounterCount_v, sizeof(pCounterCount_v));
|
|
uint32_t *pCounterCount = has_pCounterCount ? &pCounterCount_v : NULL;
|
|
uint8_t has_pCounters = vkb_dec_u8(d); uint32_t n_pCounters = vkb_dec_u32(d);
|
|
VkPerformanceCounterARM *pCounters = has_pCounters ? (VkPerformanceCounterARM *)vkb_dec_alloc_zero(d, (size_t)n_pCounters * sizeof(VkPerformanceCounterARM)) : NULL;
|
|
for (uint32_t i_ = 0; pCounters && i_ < n_pCounters; i_++) vkb_dec_out_template(d, &pCounters[i_], sizeof(VkPerformanceCounterARM));
|
|
if (pCounters && pCounterCount) *pCounterCount = n_pCounters;
|
|
uint8_t has_pCounterDescriptions = vkb_dec_u8(d); uint32_t n_pCounterDescriptions = vkb_dec_u32(d);
|
|
VkPerformanceCounterDescriptionARM *pCounterDescriptions = has_pCounterDescriptions ? (VkPerformanceCounterDescriptionARM *)vkb_dec_alloc_zero(d, (size_t)n_pCounterDescriptions * sizeof(VkPerformanceCounterDescriptionARM)) : NULL;
|
|
for (uint32_t i_ = 0; pCounterDescriptions && i_ < n_pCounterDescriptions; i_++) vkb_dec_out_template(d, &pCounterDescriptions[i_], sizeof(VkPerformanceCounterDescriptionARM));
|
|
if (pCounterDescriptions && pCounterCount) *pCounterCount = n_pCounterDescriptions;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM) { vkb_srv_missing(c, "vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM"); return; }
|
|
VkResult r_ = c->dt->vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM(physicalDevice, queueFamilyIndex, pCounterCount, pCounters, pCounterDescriptions);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pCounterCount != NULL);
|
|
if (pCounterCount) vkb_enc_raw(e, pCounterCount, sizeof(*pCounterCount));
|
|
{
|
|
uint32_t rn_ = (pCounterCount ? *pCounterCount : 0);
|
|
uint32_t has_ = pCounters ? (rn_ < n_pCounters ? rn_ : n_pCounters) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_out_struct(e, &pCounters[i_], sizeof(VkPerformanceCounterARM));
|
|
}
|
|
{
|
|
uint32_t rn_ = (pCounterCount ? *pCounterCount : 0);
|
|
uint32_t has_ = pCounterDescriptions ? (rn_ < n_pCounterDescriptions ? rn_ : n_pCounterDescriptions) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_out_struct(e, &pCounterDescriptions[i_], sizeof(VkPerformanceCounterDescriptionARM));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkEnumeratePhysicalDevices(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkInstance instance = (VkInstance)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pPhysicalDeviceCount = vkb_dec_u8(d);
|
|
uint32_t pPhysicalDeviceCount_v;
|
|
memset(&pPhysicalDeviceCount_v, 0, sizeof(pPhysicalDeviceCount_v));
|
|
if (has_pPhysicalDeviceCount) vkb_dec_bytes(d, &pPhysicalDeviceCount_v, sizeof(pPhysicalDeviceCount_v));
|
|
uint32_t *pPhysicalDeviceCount = has_pPhysicalDeviceCount ? &pPhysicalDeviceCount_v : NULL;
|
|
uint8_t has_pPhysicalDevices = vkb_dec_u8(d); uint32_t n_pPhysicalDevices = vkb_dec_u32(d);
|
|
VkPhysicalDevice *pPhysicalDevices = has_pPhysicalDevices ? (VkPhysicalDevice *)vkb_dec_alloc_zero(d, (size_t)n_pPhysicalDevices * sizeof(VkPhysicalDevice)) : NULL;
|
|
if (pPhysicalDevices && pPhysicalDeviceCount) *pPhysicalDeviceCount = n_pPhysicalDevices;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkEnumeratePhysicalDevices) { vkb_srv_missing(c, "vkEnumeratePhysicalDevices"); return; }
|
|
VkResult r_ = c->dt->vkEnumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysicalDevices);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pPhysicalDeviceCount != NULL);
|
|
if (pPhysicalDeviceCount) vkb_enc_raw(e, pPhysicalDeviceCount, sizeof(*pPhysicalDeviceCount));
|
|
{
|
|
uint32_t rn_ = (pPhysicalDeviceCount ? *pPhysicalDeviceCount : 0);
|
|
uint32_t has_ = pPhysicalDevices ? (rn_ < n_pPhysicalDevices ? rn_ : n_pPhysicalDevices) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_u64(e, (uint64_t)(uintptr_t)pPhysicalDevices[i_]);
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkFreeCommandBuffers(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkCommandPool commandPool;
|
|
vkb_dec_bytes(d, &commandPool, sizeof(commandPool));
|
|
uint32_t commandBufferCount;
|
|
vkb_dec_bytes(d, &commandBufferCount, sizeof(commandBufferCount));
|
|
const VkCommandBuffer *pCommandBuffers;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCommandBuffer *a_ = (VkCommandBuffer *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCommandBuffer));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) a_[i_] = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
pCommandBuffers = a_;
|
|
} else {
|
|
pCommandBuffers = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkFreeCommandBuffers) { vkb_srv_missing(c, "vkFreeCommandBuffers"); return; }
|
|
c->dt->vkFreeCommandBuffers(device, commandPool, commandBufferCount, pCommandBuffers);
|
|
}
|
|
|
|
void vkb_sv_vkFreeDescriptorSets(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkDescriptorPool descriptorPool;
|
|
vkb_dec_bytes(d, &descriptorPool, sizeof(descriptorPool));
|
|
uint32_t descriptorSetCount;
|
|
vkb_dec_bytes(d, &descriptorSetCount, sizeof(descriptorSetCount));
|
|
const VkDescriptorSet *pDescriptorSets;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pDescriptorSets = (const VkDescriptorSet *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkDescriptorSet));
|
|
} else {
|
|
pDescriptorSets = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkFreeDescriptorSets) { vkb_srv_missing(c, "vkFreeDescriptorSets"); return; }
|
|
VkResult r_ = c->dt->vkFreeDescriptorSets(device, descriptorPool, descriptorSetCount, pDescriptorSets);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkGetBufferDeviceAddress(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkBufferDeviceAddressInfo *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBufferDeviceAddressInfo *a_ = (VkBufferDeviceAddressInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBufferDeviceAddressInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBufferDeviceAddressInfo(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetBufferDeviceAddress) { vkb_srv_missing(c, "vkGetBufferDeviceAddress"); return; }
|
|
VkDeviceAddress r_ = c->dt->vkGetBufferDeviceAddress(device, pInfo);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkGetBufferMemoryRequirements(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkBuffer buffer;
|
|
vkb_dec_bytes(d, &buffer, sizeof(buffer));
|
|
uint8_t has_pMemoryRequirements = vkb_dec_u8(d);
|
|
VkMemoryRequirements pMemoryRequirements_v;
|
|
memset(&pMemoryRequirements_v, 0, sizeof(pMemoryRequirements_v));
|
|
VkMemoryRequirements *pMemoryRequirements = has_pMemoryRequirements ? &pMemoryRequirements_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetBufferMemoryRequirements) { vkb_srv_missing(c, "vkGetBufferMemoryRequirements"); return; }
|
|
c->dt->vkGetBufferMemoryRequirements(device, buffer, pMemoryRequirements);
|
|
vkb_enc_u8(e, pMemoryRequirements != NULL);
|
|
if (pMemoryRequirements) vkb_enc_raw(e, pMemoryRequirements, sizeof(*pMemoryRequirements));
|
|
}
|
|
|
|
void vkb_sv_vkGetBufferMemoryRequirements2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkBufferMemoryRequirementsInfo2 *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBufferMemoryRequirementsInfo2 *a_ = (VkBufferMemoryRequirementsInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBufferMemoryRequirementsInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBufferMemoryRequirementsInfo2(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
uint8_t has_pMemoryRequirements = vkb_dec_u8(d);
|
|
VkMemoryRequirements2 pMemoryRequirements_v;
|
|
memset(&pMemoryRequirements_v, 0, sizeof(pMemoryRequirements_v));
|
|
if (has_pMemoryRequirements) vkb_dec_out_template(d, &pMemoryRequirements_v, sizeof(VkMemoryRequirements2));
|
|
VkMemoryRequirements2 *pMemoryRequirements = has_pMemoryRequirements ? &pMemoryRequirements_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetBufferMemoryRequirements2) { vkb_srv_missing(c, "vkGetBufferMemoryRequirements2"); return; }
|
|
c->dt->vkGetBufferMemoryRequirements2(device, pInfo, pMemoryRequirements);
|
|
vkb_enc_u8(e, pMemoryRequirements != NULL);
|
|
if (pMemoryRequirements) vkb_enc_out_struct(e, pMemoryRequirements, sizeof(VkMemoryRequirements2));
|
|
}
|
|
|
|
void vkb_sv_vkGetBufferOpaqueCaptureAddress(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkBufferDeviceAddressInfo *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBufferDeviceAddressInfo *a_ = (VkBufferDeviceAddressInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBufferDeviceAddressInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBufferDeviceAddressInfo(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetBufferOpaqueCaptureAddress) { vkb_srv_missing(c, "vkGetBufferOpaqueCaptureAddress"); return; }
|
|
uint64_t r_ = c->dt->vkGetBufferOpaqueCaptureAddress(device, pInfo);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkGetCalibratedTimestampsKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t timestampCount;
|
|
vkb_dec_bytes(d, ×tampCount, sizeof(timestampCount));
|
|
const VkCalibratedTimestampInfoKHR *pTimestampInfos;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCalibratedTimestampInfoKHR *a_ = (VkCalibratedTimestampInfoKHR *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCalibratedTimestampInfoKHR));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkCalibratedTimestampInfoKHR(d, &a_[i_]);
|
|
pTimestampInfos = a_;
|
|
} else {
|
|
pTimestampInfos = NULL;
|
|
}
|
|
uint8_t has_pTimestamps = vkb_dec_u8(d); uint32_t n_pTimestamps = vkb_dec_u32(d);
|
|
uint64_t *pTimestamps = has_pTimestamps ? (uint64_t *)vkb_dec_alloc_zero(d, (size_t)n_pTimestamps * sizeof(uint64_t)) : NULL;
|
|
uint8_t has_pMaxDeviation = vkb_dec_u8(d);
|
|
uint64_t pMaxDeviation_v;
|
|
memset(&pMaxDeviation_v, 0, sizeof(pMaxDeviation_v));
|
|
if (has_pMaxDeviation) vkb_dec_bytes(d, &pMaxDeviation_v, sizeof(pMaxDeviation_v));
|
|
uint64_t *pMaxDeviation = has_pMaxDeviation ? &pMaxDeviation_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetCalibratedTimestampsKHR) { vkb_srv_missing(c, "vkGetCalibratedTimestampsKHR"); return; }
|
|
VkResult r_ = c->dt->vkGetCalibratedTimestampsKHR(device, timestampCount, pTimestampInfos, pTimestamps, pMaxDeviation);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
{
|
|
uint32_t rn_ = n_pTimestamps;
|
|
uint32_t has_ = pTimestamps ? (rn_ < n_pTimestamps ? rn_ : n_pTimestamps) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pTimestamps[i_], sizeof(uint64_t));
|
|
}
|
|
vkb_enc_u8(e, pMaxDeviation != NULL);
|
|
if (pMaxDeviation) vkb_enc_raw(e, pMaxDeviation, sizeof(*pMaxDeviation));
|
|
}
|
|
|
|
void vkb_sv_vkGetDescriptorSetLayoutSupport(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDescriptorSetLayoutCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDescriptorSetLayoutCreateInfo *a_ = (VkDescriptorSetLayoutCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDescriptorSetLayoutCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDescriptorSetLayoutCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pSupport = vkb_dec_u8(d);
|
|
VkDescriptorSetLayoutSupport pSupport_v;
|
|
memset(&pSupport_v, 0, sizeof(pSupport_v));
|
|
if (has_pSupport) vkb_dec_out_template(d, &pSupport_v, sizeof(VkDescriptorSetLayoutSupport));
|
|
VkDescriptorSetLayoutSupport *pSupport = has_pSupport ? &pSupport_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDescriptorSetLayoutSupport) { vkb_srv_missing(c, "vkGetDescriptorSetLayoutSupport"); return; }
|
|
c->dt->vkGetDescriptorSetLayoutSupport(device, pCreateInfo, pSupport);
|
|
vkb_enc_u8(e, pSupport != NULL);
|
|
if (pSupport) vkb_enc_out_struct(e, pSupport, sizeof(VkDescriptorSetLayoutSupport));
|
|
}
|
|
|
|
void vkb_sv_vkGetDeviceBufferMemoryRequirements(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDeviceBufferMemoryRequirements *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDeviceBufferMemoryRequirements *a_ = (VkDeviceBufferMemoryRequirements *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDeviceBufferMemoryRequirements));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDeviceBufferMemoryRequirements(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
uint8_t has_pMemoryRequirements = vkb_dec_u8(d);
|
|
VkMemoryRequirements2 pMemoryRequirements_v;
|
|
memset(&pMemoryRequirements_v, 0, sizeof(pMemoryRequirements_v));
|
|
if (has_pMemoryRequirements) vkb_dec_out_template(d, &pMemoryRequirements_v, sizeof(VkMemoryRequirements2));
|
|
VkMemoryRequirements2 *pMemoryRequirements = has_pMemoryRequirements ? &pMemoryRequirements_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDeviceBufferMemoryRequirements) { vkb_srv_missing(c, "vkGetDeviceBufferMemoryRequirements"); return; }
|
|
c->dt->vkGetDeviceBufferMemoryRequirements(device, pInfo, pMemoryRequirements);
|
|
vkb_enc_u8(e, pMemoryRequirements != NULL);
|
|
if (pMemoryRequirements) vkb_enc_out_struct(e, pMemoryRequirements, sizeof(VkMemoryRequirements2));
|
|
}
|
|
|
|
void vkb_sv_vkGetDeviceGroupPeerMemoryFeatures(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t heapIndex;
|
|
vkb_dec_bytes(d, &heapIndex, sizeof(heapIndex));
|
|
uint32_t localDeviceIndex;
|
|
vkb_dec_bytes(d, &localDeviceIndex, sizeof(localDeviceIndex));
|
|
uint32_t remoteDeviceIndex;
|
|
vkb_dec_bytes(d, &remoteDeviceIndex, sizeof(remoteDeviceIndex));
|
|
uint8_t has_pPeerMemoryFeatures = vkb_dec_u8(d);
|
|
VkPeerMemoryFeatureFlags pPeerMemoryFeatures_v;
|
|
memset(&pPeerMemoryFeatures_v, 0, sizeof(pPeerMemoryFeatures_v));
|
|
if (has_pPeerMemoryFeatures) vkb_dec_bytes(d, &pPeerMemoryFeatures_v, sizeof(pPeerMemoryFeatures_v));
|
|
VkPeerMemoryFeatureFlags *pPeerMemoryFeatures = has_pPeerMemoryFeatures ? &pPeerMemoryFeatures_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDeviceGroupPeerMemoryFeatures) { vkb_srv_missing(c, "vkGetDeviceGroupPeerMemoryFeatures"); return; }
|
|
c->dt->vkGetDeviceGroupPeerMemoryFeatures(device, heapIndex, localDeviceIndex, remoteDeviceIndex, pPeerMemoryFeatures);
|
|
vkb_enc_u8(e, pPeerMemoryFeatures != NULL);
|
|
if (pPeerMemoryFeatures) vkb_enc_raw(e, pPeerMemoryFeatures, sizeof(*pPeerMemoryFeatures));
|
|
}
|
|
|
|
void vkb_sv_vkGetDeviceImageMemoryRequirements(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDeviceImageMemoryRequirements *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDeviceImageMemoryRequirements *a_ = (VkDeviceImageMemoryRequirements *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDeviceImageMemoryRequirements));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDeviceImageMemoryRequirements(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
uint8_t has_pMemoryRequirements = vkb_dec_u8(d);
|
|
VkMemoryRequirements2 pMemoryRequirements_v;
|
|
memset(&pMemoryRequirements_v, 0, sizeof(pMemoryRequirements_v));
|
|
if (has_pMemoryRequirements) vkb_dec_out_template(d, &pMemoryRequirements_v, sizeof(VkMemoryRequirements2));
|
|
VkMemoryRequirements2 *pMemoryRequirements = has_pMemoryRequirements ? &pMemoryRequirements_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDeviceImageMemoryRequirements) { vkb_srv_missing(c, "vkGetDeviceImageMemoryRequirements"); return; }
|
|
c->dt->vkGetDeviceImageMemoryRequirements(device, pInfo, pMemoryRequirements);
|
|
vkb_enc_u8(e, pMemoryRequirements != NULL);
|
|
if (pMemoryRequirements) vkb_enc_out_struct(e, pMemoryRequirements, sizeof(VkMemoryRequirements2));
|
|
}
|
|
|
|
void vkb_sv_vkGetDeviceImageSparseMemoryRequirements(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDeviceImageMemoryRequirements *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDeviceImageMemoryRequirements *a_ = (VkDeviceImageMemoryRequirements *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDeviceImageMemoryRequirements));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDeviceImageMemoryRequirements(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
uint8_t has_pSparseMemoryRequirementCount = vkb_dec_u8(d);
|
|
uint32_t pSparseMemoryRequirementCount_v;
|
|
memset(&pSparseMemoryRequirementCount_v, 0, sizeof(pSparseMemoryRequirementCount_v));
|
|
if (has_pSparseMemoryRequirementCount) vkb_dec_bytes(d, &pSparseMemoryRequirementCount_v, sizeof(pSparseMemoryRequirementCount_v));
|
|
uint32_t *pSparseMemoryRequirementCount = has_pSparseMemoryRequirementCount ? &pSparseMemoryRequirementCount_v : NULL;
|
|
uint8_t has_pSparseMemoryRequirements = vkb_dec_u8(d); uint32_t n_pSparseMemoryRequirements = vkb_dec_u32(d);
|
|
VkSparseImageMemoryRequirements2 *pSparseMemoryRequirements = has_pSparseMemoryRequirements ? (VkSparseImageMemoryRequirements2 *)vkb_dec_alloc_zero(d, (size_t)n_pSparseMemoryRequirements * sizeof(VkSparseImageMemoryRequirements2)) : NULL;
|
|
for (uint32_t i_ = 0; pSparseMemoryRequirements && i_ < n_pSparseMemoryRequirements; i_++) vkb_dec_out_template(d, &pSparseMemoryRequirements[i_], sizeof(VkSparseImageMemoryRequirements2));
|
|
if (pSparseMemoryRequirements && pSparseMemoryRequirementCount) *pSparseMemoryRequirementCount = n_pSparseMemoryRequirements;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDeviceImageSparseMemoryRequirements) { vkb_srv_missing(c, "vkGetDeviceImageSparseMemoryRequirements"); return; }
|
|
c->dt->vkGetDeviceImageSparseMemoryRequirements(device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
vkb_enc_u8(e, pSparseMemoryRequirementCount != NULL);
|
|
if (pSparseMemoryRequirementCount) vkb_enc_raw(e, pSparseMemoryRequirementCount, sizeof(*pSparseMemoryRequirementCount));
|
|
{
|
|
uint32_t rn_ = (pSparseMemoryRequirementCount ? *pSparseMemoryRequirementCount : 0);
|
|
uint32_t has_ = pSparseMemoryRequirements ? (rn_ < n_pSparseMemoryRequirements ? rn_ : n_pSparseMemoryRequirements) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_out_struct(e, &pSparseMemoryRequirements[i_], sizeof(VkSparseImageMemoryRequirements2));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetDeviceImageSubresourceLayout(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDeviceImageSubresourceInfo *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDeviceImageSubresourceInfo *a_ = (VkDeviceImageSubresourceInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDeviceImageSubresourceInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDeviceImageSubresourceInfo(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
uint8_t has_pLayout = vkb_dec_u8(d);
|
|
VkSubresourceLayout2 pLayout_v;
|
|
memset(&pLayout_v, 0, sizeof(pLayout_v));
|
|
if (has_pLayout) vkb_dec_out_template(d, &pLayout_v, sizeof(VkSubresourceLayout2));
|
|
VkSubresourceLayout2 *pLayout = has_pLayout ? &pLayout_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDeviceImageSubresourceLayout) { vkb_srv_missing(c, "vkGetDeviceImageSubresourceLayout"); return; }
|
|
c->dt->vkGetDeviceImageSubresourceLayout(device, pInfo, pLayout);
|
|
vkb_enc_u8(e, pLayout != NULL);
|
|
if (pLayout) vkb_enc_out_struct(e, pLayout, sizeof(VkSubresourceLayout2));
|
|
}
|
|
|
|
void vkb_sv_vkGetDeviceMemoryCommitment(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkDeviceMemory memory;
|
|
vkb_dec_bytes(d, &memory, sizeof(memory));
|
|
uint8_t has_pCommittedMemoryInBytes = vkb_dec_u8(d);
|
|
VkDeviceSize pCommittedMemoryInBytes_v;
|
|
memset(&pCommittedMemoryInBytes_v, 0, sizeof(pCommittedMemoryInBytes_v));
|
|
if (has_pCommittedMemoryInBytes) vkb_dec_bytes(d, &pCommittedMemoryInBytes_v, sizeof(pCommittedMemoryInBytes_v));
|
|
VkDeviceSize *pCommittedMemoryInBytes = has_pCommittedMemoryInBytes ? &pCommittedMemoryInBytes_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDeviceMemoryCommitment) { vkb_srv_missing(c, "vkGetDeviceMemoryCommitment"); return; }
|
|
c->dt->vkGetDeviceMemoryCommitment(device, memory, pCommittedMemoryInBytes);
|
|
vkb_enc_u8(e, pCommittedMemoryInBytes != NULL);
|
|
if (pCommittedMemoryInBytes) vkb_enc_raw(e, pCommittedMemoryInBytes, sizeof(*pCommittedMemoryInBytes));
|
|
}
|
|
|
|
void vkb_sv_vkGetDeviceMemoryOpaqueCaptureAddress(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDeviceMemoryOpaqueCaptureAddressInfo *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDeviceMemoryOpaqueCaptureAddressInfo *a_ = (VkDeviceMemoryOpaqueCaptureAddressInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDeviceMemoryOpaqueCaptureAddressInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDeviceMemoryOpaqueCaptureAddressInfo(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDeviceMemoryOpaqueCaptureAddress) { vkb_srv_missing(c, "vkGetDeviceMemoryOpaqueCaptureAddress"); return; }
|
|
uint64_t r_ = c->dt->vkGetDeviceMemoryOpaqueCaptureAddress(device, pInfo);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkGetDeviceQueue(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t queueFamilyIndex;
|
|
vkb_dec_bytes(d, &queueFamilyIndex, sizeof(queueFamilyIndex));
|
|
uint32_t queueIndex;
|
|
vkb_dec_bytes(d, &queueIndex, sizeof(queueIndex));
|
|
uint8_t has_pQueue = vkb_dec_u8(d);
|
|
VkQueue pQueue_v;
|
|
memset(&pQueue_v, 0, sizeof(pQueue_v));
|
|
VkQueue *pQueue = has_pQueue ? &pQueue_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDeviceQueue) { vkb_srv_missing(c, "vkGetDeviceQueue"); return; }
|
|
c->dt->vkGetDeviceQueue(device, queueFamilyIndex, queueIndex, pQueue);
|
|
vkb_enc_u8(e, pQueue != NULL);
|
|
if (pQueue) vkb_enc_u64(e, (uint64_t)(uintptr_t)*pQueue);
|
|
}
|
|
|
|
void vkb_sv_vkGetDeviceQueue2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDeviceQueueInfo2 *pQueueInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDeviceQueueInfo2 *a_ = (VkDeviceQueueInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDeviceQueueInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDeviceQueueInfo2(d, &a_[i_]);
|
|
pQueueInfo = a_;
|
|
} else {
|
|
pQueueInfo = NULL;
|
|
}
|
|
uint8_t has_pQueue = vkb_dec_u8(d);
|
|
VkQueue pQueue_v;
|
|
memset(&pQueue_v, 0, sizeof(pQueue_v));
|
|
VkQueue *pQueue = has_pQueue ? &pQueue_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDeviceQueue2) { vkb_srv_missing(c, "vkGetDeviceQueue2"); return; }
|
|
c->dt->vkGetDeviceQueue2(device, pQueueInfo, pQueue);
|
|
vkb_enc_u8(e, pQueue != NULL);
|
|
if (pQueue) vkb_enc_u64(e, (uint64_t)(uintptr_t)*pQueue);
|
|
}
|
|
|
|
void vkb_sv_vkGetDeviceTensorMemoryRequirementsARM(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkDeviceTensorMemoryRequirementsARM *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkDeviceTensorMemoryRequirementsARM *a_ = (VkDeviceTensorMemoryRequirementsARM *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkDeviceTensorMemoryRequirementsARM));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkDeviceTensorMemoryRequirementsARM(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
uint8_t has_pMemoryRequirements = vkb_dec_u8(d);
|
|
VkMemoryRequirements2 pMemoryRequirements_v;
|
|
memset(&pMemoryRequirements_v, 0, sizeof(pMemoryRequirements_v));
|
|
if (has_pMemoryRequirements) vkb_dec_out_template(d, &pMemoryRequirements_v, sizeof(VkMemoryRequirements2));
|
|
VkMemoryRequirements2 *pMemoryRequirements = has_pMemoryRequirements ? &pMemoryRequirements_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetDeviceTensorMemoryRequirementsARM) { vkb_srv_missing(c, "vkGetDeviceTensorMemoryRequirementsARM"); return; }
|
|
c->dt->vkGetDeviceTensorMemoryRequirementsARM(device, pInfo, pMemoryRequirements);
|
|
vkb_enc_u8(e, pMemoryRequirements != NULL);
|
|
if (pMemoryRequirements) vkb_enc_out_struct(e, pMemoryRequirements, sizeof(VkMemoryRequirements2));
|
|
}
|
|
|
|
void vkb_sv_vkGetEventStatus(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkEvent event;
|
|
vkb_dec_bytes(d, &event, sizeof(event));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetEventStatus) { vkb_srv_missing(c, "vkGetEventStatus"); return; }
|
|
VkResult r_ = c->dt->vkGetEventStatus(device, event);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkGetFenceFdKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkFenceGetFdInfoKHR *pGetFdInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkFenceGetFdInfoKHR *a_ = (VkFenceGetFdInfoKHR *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkFenceGetFdInfoKHR));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkFenceGetFdInfoKHR(d, &a_[i_]);
|
|
pGetFdInfo = a_;
|
|
} else {
|
|
pGetFdInfo = NULL;
|
|
}
|
|
int pFd_v = -1; int *pFd = vkb_dec_u8(d) ? &pFd_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetFenceFdKHR) { vkb_srv_missing(c, "vkGetFenceFdKHR"); return; }
|
|
VkResult r_ = c->dt->vkGetFenceFdKHR(device, pGetFdInfo, pFd);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_fd(e, pFd ? *pFd : -1);
|
|
if (pFd && *pFd >= 0) vkb_srv_close_after_send(c, *pFd);
|
|
}
|
|
|
|
void vkb_sv_vkGetFenceStatus(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkFence fence;
|
|
vkb_dec_bytes(d, &fence, sizeof(fence));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetFenceStatus) { vkb_srv_missing(c, "vkGetFenceStatus"); return; }
|
|
VkResult r_ = c->dt->vkGetFenceStatus(device, fence);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkGetImageDrmFormatModifierPropertiesEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage image;
|
|
vkb_dec_bytes(d, &image, sizeof(image));
|
|
uint8_t has_pProperties = vkb_dec_u8(d);
|
|
VkImageDrmFormatModifierPropertiesEXT pProperties_v;
|
|
memset(&pProperties_v, 0, sizeof(pProperties_v));
|
|
if (has_pProperties) vkb_dec_out_template(d, &pProperties_v, sizeof(VkImageDrmFormatModifierPropertiesEXT));
|
|
VkImageDrmFormatModifierPropertiesEXT *pProperties = has_pProperties ? &pProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetImageDrmFormatModifierPropertiesEXT) { vkb_srv_missing(c, "vkGetImageDrmFormatModifierPropertiesEXT"); return; }
|
|
VkResult r_ = c->dt->vkGetImageDrmFormatModifierPropertiesEXT(device, image, pProperties);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pProperties != NULL);
|
|
if (pProperties) vkb_enc_out_struct(e, pProperties, sizeof(VkImageDrmFormatModifierPropertiesEXT));
|
|
}
|
|
|
|
void vkb_sv_vkGetImageMemoryRequirements(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage image;
|
|
vkb_dec_bytes(d, &image, sizeof(image));
|
|
uint8_t has_pMemoryRequirements = vkb_dec_u8(d);
|
|
VkMemoryRequirements pMemoryRequirements_v;
|
|
memset(&pMemoryRequirements_v, 0, sizeof(pMemoryRequirements_v));
|
|
VkMemoryRequirements *pMemoryRequirements = has_pMemoryRequirements ? &pMemoryRequirements_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetImageMemoryRequirements) { vkb_srv_missing(c, "vkGetImageMemoryRequirements"); return; }
|
|
c->dt->vkGetImageMemoryRequirements(device, image, pMemoryRequirements);
|
|
vkb_enc_u8(e, pMemoryRequirements != NULL);
|
|
if (pMemoryRequirements) vkb_enc_raw(e, pMemoryRequirements, sizeof(*pMemoryRequirements));
|
|
}
|
|
|
|
void vkb_sv_vkGetImageMemoryRequirements2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkImageMemoryRequirementsInfo2 *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkImageMemoryRequirementsInfo2 *a_ = (VkImageMemoryRequirementsInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkImageMemoryRequirementsInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkImageMemoryRequirementsInfo2(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
uint8_t has_pMemoryRequirements = vkb_dec_u8(d);
|
|
VkMemoryRequirements2 pMemoryRequirements_v;
|
|
memset(&pMemoryRequirements_v, 0, sizeof(pMemoryRequirements_v));
|
|
if (has_pMemoryRequirements) vkb_dec_out_template(d, &pMemoryRequirements_v, sizeof(VkMemoryRequirements2));
|
|
VkMemoryRequirements2 *pMemoryRequirements = has_pMemoryRequirements ? &pMemoryRequirements_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetImageMemoryRequirements2) { vkb_srv_missing(c, "vkGetImageMemoryRequirements2"); return; }
|
|
c->dt->vkGetImageMemoryRequirements2(device, pInfo, pMemoryRequirements);
|
|
vkb_enc_u8(e, pMemoryRequirements != NULL);
|
|
if (pMemoryRequirements) vkb_enc_out_struct(e, pMemoryRequirements, sizeof(VkMemoryRequirements2));
|
|
}
|
|
|
|
void vkb_sv_vkGetImageSparseMemoryRequirements(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage image;
|
|
vkb_dec_bytes(d, &image, sizeof(image));
|
|
uint8_t has_pSparseMemoryRequirementCount = vkb_dec_u8(d);
|
|
uint32_t pSparseMemoryRequirementCount_v;
|
|
memset(&pSparseMemoryRequirementCount_v, 0, sizeof(pSparseMemoryRequirementCount_v));
|
|
if (has_pSparseMemoryRequirementCount) vkb_dec_bytes(d, &pSparseMemoryRequirementCount_v, sizeof(pSparseMemoryRequirementCount_v));
|
|
uint32_t *pSparseMemoryRequirementCount = has_pSparseMemoryRequirementCount ? &pSparseMemoryRequirementCount_v : NULL;
|
|
uint8_t has_pSparseMemoryRequirements = vkb_dec_u8(d); uint32_t n_pSparseMemoryRequirements = vkb_dec_u32(d);
|
|
VkSparseImageMemoryRequirements *pSparseMemoryRequirements = has_pSparseMemoryRequirements ? (VkSparseImageMemoryRequirements *)vkb_dec_alloc_zero(d, (size_t)n_pSparseMemoryRequirements * sizeof(VkSparseImageMemoryRequirements)) : NULL;
|
|
if (pSparseMemoryRequirements && pSparseMemoryRequirementCount) *pSparseMemoryRequirementCount = n_pSparseMemoryRequirements;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetImageSparseMemoryRequirements) { vkb_srv_missing(c, "vkGetImageSparseMemoryRequirements"); return; }
|
|
c->dt->vkGetImageSparseMemoryRequirements(device, image, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
vkb_enc_u8(e, pSparseMemoryRequirementCount != NULL);
|
|
if (pSparseMemoryRequirementCount) vkb_enc_raw(e, pSparseMemoryRequirementCount, sizeof(*pSparseMemoryRequirementCount));
|
|
{
|
|
uint32_t rn_ = (pSparseMemoryRequirementCount ? *pSparseMemoryRequirementCount : 0);
|
|
uint32_t has_ = pSparseMemoryRequirements ? (rn_ < n_pSparseMemoryRequirements ? rn_ : n_pSparseMemoryRequirements) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pSparseMemoryRequirements[i_], sizeof(VkSparseImageMemoryRequirements));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetImageSparseMemoryRequirements2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkImageSparseMemoryRequirementsInfo2 *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkImageSparseMemoryRequirementsInfo2 *a_ = (VkImageSparseMemoryRequirementsInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkImageSparseMemoryRequirementsInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkImageSparseMemoryRequirementsInfo2(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
uint8_t has_pSparseMemoryRequirementCount = vkb_dec_u8(d);
|
|
uint32_t pSparseMemoryRequirementCount_v;
|
|
memset(&pSparseMemoryRequirementCount_v, 0, sizeof(pSparseMemoryRequirementCount_v));
|
|
if (has_pSparseMemoryRequirementCount) vkb_dec_bytes(d, &pSparseMemoryRequirementCount_v, sizeof(pSparseMemoryRequirementCount_v));
|
|
uint32_t *pSparseMemoryRequirementCount = has_pSparseMemoryRequirementCount ? &pSparseMemoryRequirementCount_v : NULL;
|
|
uint8_t has_pSparseMemoryRequirements = vkb_dec_u8(d); uint32_t n_pSparseMemoryRequirements = vkb_dec_u32(d);
|
|
VkSparseImageMemoryRequirements2 *pSparseMemoryRequirements = has_pSparseMemoryRequirements ? (VkSparseImageMemoryRequirements2 *)vkb_dec_alloc_zero(d, (size_t)n_pSparseMemoryRequirements * sizeof(VkSparseImageMemoryRequirements2)) : NULL;
|
|
for (uint32_t i_ = 0; pSparseMemoryRequirements && i_ < n_pSparseMemoryRequirements; i_++) vkb_dec_out_template(d, &pSparseMemoryRequirements[i_], sizeof(VkSparseImageMemoryRequirements2));
|
|
if (pSparseMemoryRequirements && pSparseMemoryRequirementCount) *pSparseMemoryRequirementCount = n_pSparseMemoryRequirements;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetImageSparseMemoryRequirements2) { vkb_srv_missing(c, "vkGetImageSparseMemoryRequirements2"); return; }
|
|
c->dt->vkGetImageSparseMemoryRequirements2(device, pInfo, pSparseMemoryRequirementCount, pSparseMemoryRequirements);
|
|
vkb_enc_u8(e, pSparseMemoryRequirementCount != NULL);
|
|
if (pSparseMemoryRequirementCount) vkb_enc_raw(e, pSparseMemoryRequirementCount, sizeof(*pSparseMemoryRequirementCount));
|
|
{
|
|
uint32_t rn_ = (pSparseMemoryRequirementCount ? *pSparseMemoryRequirementCount : 0);
|
|
uint32_t has_ = pSparseMemoryRequirements ? (rn_ < n_pSparseMemoryRequirements ? rn_ : n_pSparseMemoryRequirements) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_out_struct(e, &pSparseMemoryRequirements[i_], sizeof(VkSparseImageMemoryRequirements2));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetImageSubresourceLayout(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage image;
|
|
vkb_dec_bytes(d, &image, sizeof(image));
|
|
const VkImageSubresource *pSubresource;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pSubresource = (const VkImageSubresource *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkImageSubresource));
|
|
} else {
|
|
pSubresource = NULL;
|
|
}
|
|
uint8_t has_pLayout = vkb_dec_u8(d);
|
|
VkSubresourceLayout pLayout_v;
|
|
memset(&pLayout_v, 0, sizeof(pLayout_v));
|
|
VkSubresourceLayout *pLayout = has_pLayout ? &pLayout_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetImageSubresourceLayout) { vkb_srv_missing(c, "vkGetImageSubresourceLayout"); return; }
|
|
c->dt->vkGetImageSubresourceLayout(device, image, pSubresource, pLayout);
|
|
vkb_enc_u8(e, pLayout != NULL);
|
|
if (pLayout) vkb_enc_raw(e, pLayout, sizeof(*pLayout));
|
|
}
|
|
|
|
void vkb_sv_vkGetImageSubresourceLayout2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkImage image;
|
|
vkb_dec_bytes(d, &image, sizeof(image));
|
|
const VkImageSubresource2 *pSubresource;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkImageSubresource2 *a_ = (VkImageSubresource2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkImageSubresource2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkImageSubresource2(d, &a_[i_]);
|
|
pSubresource = a_;
|
|
} else {
|
|
pSubresource = NULL;
|
|
}
|
|
uint8_t has_pLayout = vkb_dec_u8(d);
|
|
VkSubresourceLayout2 pLayout_v;
|
|
memset(&pLayout_v, 0, sizeof(pLayout_v));
|
|
if (has_pLayout) vkb_dec_out_template(d, &pLayout_v, sizeof(VkSubresourceLayout2));
|
|
VkSubresourceLayout2 *pLayout = has_pLayout ? &pLayout_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetImageSubresourceLayout2) { vkb_srv_missing(c, "vkGetImageSubresourceLayout2"); return; }
|
|
c->dt->vkGetImageSubresourceLayout2(device, image, pSubresource, pLayout);
|
|
vkb_enc_u8(e, pLayout != NULL);
|
|
if (pLayout) vkb_enc_out_struct(e, pLayout, sizeof(VkSubresourceLayout2));
|
|
}
|
|
|
|
void vkb_sv_vkGetMemoryFdKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkMemoryGetFdInfoKHR *pGetFdInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkMemoryGetFdInfoKHR *a_ = (VkMemoryGetFdInfoKHR *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkMemoryGetFdInfoKHR));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkMemoryGetFdInfoKHR(d, &a_[i_]);
|
|
pGetFdInfo = a_;
|
|
} else {
|
|
pGetFdInfo = NULL;
|
|
}
|
|
int pFd_v = -1; int *pFd = vkb_dec_u8(d) ? &pFd_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetMemoryFdKHR) { vkb_srv_missing(c, "vkGetMemoryFdKHR"); return; }
|
|
VkResult r_ = c->dt->vkGetMemoryFdKHR(device, pGetFdInfo, pFd);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_fd(e, pFd ? *pFd : -1);
|
|
if (pFd && *pFd >= 0) vkb_srv_close_after_send(c, *pFd);
|
|
}
|
|
|
|
void vkb_sv_vkGetMemoryFdPropertiesKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkExternalMemoryHandleTypeFlagBits handleType;
|
|
vkb_dec_bytes(d, &handleType, sizeof(handleType));
|
|
int fd = vkb_dec_fd(d);
|
|
uint8_t has_pMemoryFdProperties = vkb_dec_u8(d);
|
|
VkMemoryFdPropertiesKHR pMemoryFdProperties_v;
|
|
memset(&pMemoryFdProperties_v, 0, sizeof(pMemoryFdProperties_v));
|
|
if (has_pMemoryFdProperties) vkb_dec_out_template(d, &pMemoryFdProperties_v, sizeof(VkMemoryFdPropertiesKHR));
|
|
VkMemoryFdPropertiesKHR *pMemoryFdProperties = has_pMemoryFdProperties ? &pMemoryFdProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetMemoryFdPropertiesKHR) { vkb_srv_missing(c, "vkGetMemoryFdPropertiesKHR"); return; }
|
|
VkResult r_ = c->dt->vkGetMemoryFdPropertiesKHR(device, handleType, fd, pMemoryFdProperties);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
if (fd >= 0) vkb_close_fd(fd);
|
|
vkb_enc_u8(e, pMemoryFdProperties != NULL);
|
|
if (pMemoryFdProperties) vkb_enc_out_struct(e, pMemoryFdProperties, sizeof(VkMemoryFdPropertiesKHR));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceCalibrateableTimeDomainsKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pTimeDomainCount = vkb_dec_u8(d);
|
|
uint32_t pTimeDomainCount_v;
|
|
memset(&pTimeDomainCount_v, 0, sizeof(pTimeDomainCount_v));
|
|
if (has_pTimeDomainCount) vkb_dec_bytes(d, &pTimeDomainCount_v, sizeof(pTimeDomainCount_v));
|
|
uint32_t *pTimeDomainCount = has_pTimeDomainCount ? &pTimeDomainCount_v : NULL;
|
|
uint8_t has_pTimeDomains = vkb_dec_u8(d); uint32_t n_pTimeDomains = vkb_dec_u32(d);
|
|
VkTimeDomainKHR *pTimeDomains = has_pTimeDomains ? (VkTimeDomainKHR *)vkb_dec_alloc_zero(d, (size_t)n_pTimeDomains * sizeof(VkTimeDomainKHR)) : NULL;
|
|
if (pTimeDomains && pTimeDomainCount) *pTimeDomainCount = n_pTimeDomains;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceCalibrateableTimeDomainsKHR) { vkb_srv_missing(c, "vkGetPhysicalDeviceCalibrateableTimeDomainsKHR"); return; }
|
|
VkResult r_ = c->dt->vkGetPhysicalDeviceCalibrateableTimeDomainsKHR(physicalDevice, pTimeDomainCount, pTimeDomains);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pTimeDomainCount != NULL);
|
|
if (pTimeDomainCount) vkb_enc_raw(e, pTimeDomainCount, sizeof(*pTimeDomainCount));
|
|
{
|
|
uint32_t rn_ = (pTimeDomainCount ? *pTimeDomainCount : 0);
|
|
uint32_t has_ = pTimeDomains ? (rn_ < n_pTimeDomains ? rn_ : n_pTimeDomains) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pTimeDomains[i_], sizeof(VkTimeDomainKHR));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pPropertyCount = vkb_dec_u8(d);
|
|
uint32_t pPropertyCount_v;
|
|
memset(&pPropertyCount_v, 0, sizeof(pPropertyCount_v));
|
|
if (has_pPropertyCount) vkb_dec_bytes(d, &pPropertyCount_v, sizeof(pPropertyCount_v));
|
|
uint32_t *pPropertyCount = has_pPropertyCount ? &pPropertyCount_v : NULL;
|
|
uint8_t has_pProperties = vkb_dec_u8(d); uint32_t n_pProperties = vkb_dec_u32(d);
|
|
VkCooperativeMatrixPropertiesKHR *pProperties = has_pProperties ? (VkCooperativeMatrixPropertiesKHR *)vkb_dec_alloc_zero(d, (size_t)n_pProperties * sizeof(VkCooperativeMatrixPropertiesKHR)) : NULL;
|
|
for (uint32_t i_ = 0; pProperties && i_ < n_pProperties; i_++) vkb_dec_out_template(d, &pProperties[i_], sizeof(VkCooperativeMatrixPropertiesKHR));
|
|
if (pProperties && pPropertyCount) *pPropertyCount = n_pProperties;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR) { vkb_srv_missing(c, "vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR"); return; }
|
|
VkResult r_ = c->dt->vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR(physicalDevice, pPropertyCount, pProperties);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pPropertyCount != NULL);
|
|
if (pPropertyCount) vkb_enc_raw(e, pPropertyCount, sizeof(*pPropertyCount));
|
|
{
|
|
uint32_t rn_ = (pPropertyCount ? *pPropertyCount : 0);
|
|
uint32_t has_ = pProperties ? (rn_ < n_pProperties ? rn_ : n_pProperties) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_out_struct(e, &pProperties[i_], sizeof(VkCooperativeMatrixPropertiesKHR));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceExternalBufferProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkPhysicalDeviceExternalBufferInfo *pExternalBufferInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkPhysicalDeviceExternalBufferInfo *a_ = (VkPhysicalDeviceExternalBufferInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkPhysicalDeviceExternalBufferInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkPhysicalDeviceExternalBufferInfo(d, &a_[i_]);
|
|
pExternalBufferInfo = a_;
|
|
} else {
|
|
pExternalBufferInfo = NULL;
|
|
}
|
|
uint8_t has_pExternalBufferProperties = vkb_dec_u8(d);
|
|
VkExternalBufferProperties pExternalBufferProperties_v;
|
|
memset(&pExternalBufferProperties_v, 0, sizeof(pExternalBufferProperties_v));
|
|
if (has_pExternalBufferProperties) vkb_dec_out_template(d, &pExternalBufferProperties_v, sizeof(VkExternalBufferProperties));
|
|
VkExternalBufferProperties *pExternalBufferProperties = has_pExternalBufferProperties ? &pExternalBufferProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceExternalBufferProperties) { vkb_srv_missing(c, "vkGetPhysicalDeviceExternalBufferProperties"); return; }
|
|
c->dt->vkGetPhysicalDeviceExternalBufferProperties(physicalDevice, pExternalBufferInfo, pExternalBufferProperties);
|
|
vkb_enc_u8(e, pExternalBufferProperties != NULL);
|
|
if (pExternalBufferProperties) vkb_enc_out_struct(e, pExternalBufferProperties, sizeof(VkExternalBufferProperties));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceExternalFenceProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkPhysicalDeviceExternalFenceInfo *pExternalFenceInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkPhysicalDeviceExternalFenceInfo *a_ = (VkPhysicalDeviceExternalFenceInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkPhysicalDeviceExternalFenceInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkPhysicalDeviceExternalFenceInfo(d, &a_[i_]);
|
|
pExternalFenceInfo = a_;
|
|
} else {
|
|
pExternalFenceInfo = NULL;
|
|
}
|
|
uint8_t has_pExternalFenceProperties = vkb_dec_u8(d);
|
|
VkExternalFenceProperties pExternalFenceProperties_v;
|
|
memset(&pExternalFenceProperties_v, 0, sizeof(pExternalFenceProperties_v));
|
|
if (has_pExternalFenceProperties) vkb_dec_out_template(d, &pExternalFenceProperties_v, sizeof(VkExternalFenceProperties));
|
|
VkExternalFenceProperties *pExternalFenceProperties = has_pExternalFenceProperties ? &pExternalFenceProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceExternalFenceProperties) { vkb_srv_missing(c, "vkGetPhysicalDeviceExternalFenceProperties"); return; }
|
|
c->dt->vkGetPhysicalDeviceExternalFenceProperties(physicalDevice, pExternalFenceInfo, pExternalFenceProperties);
|
|
vkb_enc_u8(e, pExternalFenceProperties != NULL);
|
|
if (pExternalFenceProperties) vkb_enc_out_struct(e, pExternalFenceProperties, sizeof(VkExternalFenceProperties));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceExternalSemaphoreProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkPhysicalDeviceExternalSemaphoreInfo *pExternalSemaphoreInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkPhysicalDeviceExternalSemaphoreInfo *a_ = (VkPhysicalDeviceExternalSemaphoreInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkPhysicalDeviceExternalSemaphoreInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkPhysicalDeviceExternalSemaphoreInfo(d, &a_[i_]);
|
|
pExternalSemaphoreInfo = a_;
|
|
} else {
|
|
pExternalSemaphoreInfo = NULL;
|
|
}
|
|
uint8_t has_pExternalSemaphoreProperties = vkb_dec_u8(d);
|
|
VkExternalSemaphoreProperties pExternalSemaphoreProperties_v;
|
|
memset(&pExternalSemaphoreProperties_v, 0, sizeof(pExternalSemaphoreProperties_v));
|
|
if (has_pExternalSemaphoreProperties) vkb_dec_out_template(d, &pExternalSemaphoreProperties_v, sizeof(VkExternalSemaphoreProperties));
|
|
VkExternalSemaphoreProperties *pExternalSemaphoreProperties = has_pExternalSemaphoreProperties ? &pExternalSemaphoreProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceExternalSemaphoreProperties) { vkb_srv_missing(c, "vkGetPhysicalDeviceExternalSemaphoreProperties"); return; }
|
|
c->dt->vkGetPhysicalDeviceExternalSemaphoreProperties(physicalDevice, pExternalSemaphoreInfo, pExternalSemaphoreProperties);
|
|
vkb_enc_u8(e, pExternalSemaphoreProperties != NULL);
|
|
if (pExternalSemaphoreProperties) vkb_enc_out_struct(e, pExternalSemaphoreProperties, sizeof(VkExternalSemaphoreProperties));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceExternalTensorPropertiesARM(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkPhysicalDeviceExternalTensorInfoARM *pExternalTensorInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkPhysicalDeviceExternalTensorInfoARM *a_ = (VkPhysicalDeviceExternalTensorInfoARM *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkPhysicalDeviceExternalTensorInfoARM));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkPhysicalDeviceExternalTensorInfoARM(d, &a_[i_]);
|
|
pExternalTensorInfo = a_;
|
|
} else {
|
|
pExternalTensorInfo = NULL;
|
|
}
|
|
uint8_t has_pExternalTensorProperties = vkb_dec_u8(d);
|
|
VkExternalTensorPropertiesARM pExternalTensorProperties_v;
|
|
memset(&pExternalTensorProperties_v, 0, sizeof(pExternalTensorProperties_v));
|
|
if (has_pExternalTensorProperties) vkb_dec_out_template(d, &pExternalTensorProperties_v, sizeof(VkExternalTensorPropertiesARM));
|
|
VkExternalTensorPropertiesARM *pExternalTensorProperties = has_pExternalTensorProperties ? &pExternalTensorProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceExternalTensorPropertiesARM) { vkb_srv_missing(c, "vkGetPhysicalDeviceExternalTensorPropertiesARM"); return; }
|
|
c->dt->vkGetPhysicalDeviceExternalTensorPropertiesARM(physicalDevice, pExternalTensorInfo, pExternalTensorProperties);
|
|
vkb_enc_u8(e, pExternalTensorProperties != NULL);
|
|
if (pExternalTensorProperties) vkb_enc_out_struct(e, pExternalTensorProperties, sizeof(VkExternalTensorPropertiesARM));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceFeatures(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pFeatures = vkb_dec_u8(d);
|
|
VkPhysicalDeviceFeatures pFeatures_v;
|
|
memset(&pFeatures_v, 0, sizeof(pFeatures_v));
|
|
VkPhysicalDeviceFeatures *pFeatures = has_pFeatures ? &pFeatures_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceFeatures) { vkb_srv_missing(c, "vkGetPhysicalDeviceFeatures"); return; }
|
|
c->dt->vkGetPhysicalDeviceFeatures(physicalDevice, pFeatures);
|
|
vkb_enc_u8(e, pFeatures != NULL);
|
|
if (pFeatures) vkb_enc_raw(e, pFeatures, sizeof(*pFeatures));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceFeatures2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pFeatures = vkb_dec_u8(d);
|
|
VkPhysicalDeviceFeatures2 pFeatures_v;
|
|
memset(&pFeatures_v, 0, sizeof(pFeatures_v));
|
|
if (has_pFeatures) vkb_dec_out_template(d, &pFeatures_v, sizeof(VkPhysicalDeviceFeatures2));
|
|
VkPhysicalDeviceFeatures2 *pFeatures = has_pFeatures ? &pFeatures_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceFeatures2) { vkb_srv_missing(c, "vkGetPhysicalDeviceFeatures2"); return; }
|
|
c->dt->vkGetPhysicalDeviceFeatures2(physicalDevice, pFeatures);
|
|
vkb_enc_u8(e, pFeatures != NULL);
|
|
if (pFeatures) vkb_enc_out_struct(e, pFeatures, sizeof(VkPhysicalDeviceFeatures2));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceFormatProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkFormat format;
|
|
vkb_dec_bytes(d, &format, sizeof(format));
|
|
uint8_t has_pFormatProperties = vkb_dec_u8(d);
|
|
VkFormatProperties pFormatProperties_v;
|
|
memset(&pFormatProperties_v, 0, sizeof(pFormatProperties_v));
|
|
VkFormatProperties *pFormatProperties = has_pFormatProperties ? &pFormatProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceFormatProperties) { vkb_srv_missing(c, "vkGetPhysicalDeviceFormatProperties"); return; }
|
|
c->dt->vkGetPhysicalDeviceFormatProperties(physicalDevice, format, pFormatProperties);
|
|
vkb_enc_u8(e, pFormatProperties != NULL);
|
|
if (pFormatProperties) vkb_enc_raw(e, pFormatProperties, sizeof(*pFormatProperties));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceFormatProperties2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkFormat format;
|
|
vkb_dec_bytes(d, &format, sizeof(format));
|
|
uint8_t has_pFormatProperties = vkb_dec_u8(d);
|
|
VkFormatProperties2 pFormatProperties_v;
|
|
memset(&pFormatProperties_v, 0, sizeof(pFormatProperties_v));
|
|
if (has_pFormatProperties) vkb_dec_out_template(d, &pFormatProperties_v, sizeof(VkFormatProperties2));
|
|
VkFormatProperties2 *pFormatProperties = has_pFormatProperties ? &pFormatProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceFormatProperties2) { vkb_srv_missing(c, "vkGetPhysicalDeviceFormatProperties2"); return; }
|
|
c->dt->vkGetPhysicalDeviceFormatProperties2(physicalDevice, format, pFormatProperties);
|
|
vkb_enc_u8(e, pFormatProperties != NULL);
|
|
if (pFormatProperties) vkb_enc_out_struct(e, pFormatProperties, sizeof(VkFormatProperties2));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceFragmentShadingRatesKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pFragmentShadingRateCount = vkb_dec_u8(d);
|
|
uint32_t pFragmentShadingRateCount_v;
|
|
memset(&pFragmentShadingRateCount_v, 0, sizeof(pFragmentShadingRateCount_v));
|
|
if (has_pFragmentShadingRateCount) vkb_dec_bytes(d, &pFragmentShadingRateCount_v, sizeof(pFragmentShadingRateCount_v));
|
|
uint32_t *pFragmentShadingRateCount = has_pFragmentShadingRateCount ? &pFragmentShadingRateCount_v : NULL;
|
|
uint8_t has_pFragmentShadingRates = vkb_dec_u8(d); uint32_t n_pFragmentShadingRates = vkb_dec_u32(d);
|
|
VkPhysicalDeviceFragmentShadingRateKHR *pFragmentShadingRates = has_pFragmentShadingRates ? (VkPhysicalDeviceFragmentShadingRateKHR *)vkb_dec_alloc_zero(d, (size_t)n_pFragmentShadingRates * sizeof(VkPhysicalDeviceFragmentShadingRateKHR)) : NULL;
|
|
for (uint32_t i_ = 0; pFragmentShadingRates && i_ < n_pFragmentShadingRates; i_++) vkb_dec_out_template(d, &pFragmentShadingRates[i_], sizeof(VkPhysicalDeviceFragmentShadingRateKHR));
|
|
if (pFragmentShadingRates && pFragmentShadingRateCount) *pFragmentShadingRateCount = n_pFragmentShadingRates;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceFragmentShadingRatesKHR) { vkb_srv_missing(c, "vkGetPhysicalDeviceFragmentShadingRatesKHR"); return; }
|
|
VkResult r_ = c->dt->vkGetPhysicalDeviceFragmentShadingRatesKHR(physicalDevice, pFragmentShadingRateCount, pFragmentShadingRates);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pFragmentShadingRateCount != NULL);
|
|
if (pFragmentShadingRateCount) vkb_enc_raw(e, pFragmentShadingRateCount, sizeof(*pFragmentShadingRateCount));
|
|
{
|
|
uint32_t rn_ = (pFragmentShadingRateCount ? *pFragmentShadingRateCount : 0);
|
|
uint32_t has_ = pFragmentShadingRates ? (rn_ < n_pFragmentShadingRates ? rn_ : n_pFragmentShadingRates) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_out_struct(e, &pFragmentShadingRates[i_], sizeof(VkPhysicalDeviceFragmentShadingRateKHR));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceImageFormatProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkFormat format;
|
|
vkb_dec_bytes(d, &format, sizeof(format));
|
|
VkImageType type;
|
|
vkb_dec_bytes(d, &type, sizeof(type));
|
|
VkImageTiling tiling;
|
|
vkb_dec_bytes(d, &tiling, sizeof(tiling));
|
|
VkImageUsageFlags usage;
|
|
vkb_dec_bytes(d, &usage, sizeof(usage));
|
|
VkImageCreateFlags flags;
|
|
vkb_dec_bytes(d, &flags, sizeof(flags));
|
|
uint8_t has_pImageFormatProperties = vkb_dec_u8(d);
|
|
VkImageFormatProperties pImageFormatProperties_v;
|
|
memset(&pImageFormatProperties_v, 0, sizeof(pImageFormatProperties_v));
|
|
VkImageFormatProperties *pImageFormatProperties = has_pImageFormatProperties ? &pImageFormatProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceImageFormatProperties) { vkb_srv_missing(c, "vkGetPhysicalDeviceImageFormatProperties"); return; }
|
|
VkResult r_ = c->dt->vkGetPhysicalDeviceImageFormatProperties(physicalDevice, format, type, tiling, usage, flags, pImageFormatProperties);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pImageFormatProperties != NULL);
|
|
if (pImageFormatProperties) vkb_enc_raw(e, pImageFormatProperties, sizeof(*pImageFormatProperties));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceImageFormatProperties2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkPhysicalDeviceImageFormatInfo2 *pImageFormatInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkPhysicalDeviceImageFormatInfo2 *a_ = (VkPhysicalDeviceImageFormatInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkPhysicalDeviceImageFormatInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkPhysicalDeviceImageFormatInfo2(d, &a_[i_]);
|
|
pImageFormatInfo = a_;
|
|
} else {
|
|
pImageFormatInfo = NULL;
|
|
}
|
|
uint8_t has_pImageFormatProperties = vkb_dec_u8(d);
|
|
VkImageFormatProperties2 pImageFormatProperties_v;
|
|
memset(&pImageFormatProperties_v, 0, sizeof(pImageFormatProperties_v));
|
|
if (has_pImageFormatProperties) vkb_dec_out_template(d, &pImageFormatProperties_v, sizeof(VkImageFormatProperties2));
|
|
VkImageFormatProperties2 *pImageFormatProperties = has_pImageFormatProperties ? &pImageFormatProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceImageFormatProperties2) { vkb_srv_missing(c, "vkGetPhysicalDeviceImageFormatProperties2"); return; }
|
|
VkResult r_ = c->dt->vkGetPhysicalDeviceImageFormatProperties2(physicalDevice, pImageFormatInfo, pImageFormatProperties);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pImageFormatProperties != NULL);
|
|
if (pImageFormatProperties) vkb_enc_out_struct(e, pImageFormatProperties, sizeof(VkImageFormatProperties2));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceMemoryProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pMemoryProperties = vkb_dec_u8(d);
|
|
VkPhysicalDeviceMemoryProperties pMemoryProperties_v;
|
|
memset(&pMemoryProperties_v, 0, sizeof(pMemoryProperties_v));
|
|
VkPhysicalDeviceMemoryProperties *pMemoryProperties = has_pMemoryProperties ? &pMemoryProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceMemoryProperties) { vkb_srv_missing(c, "vkGetPhysicalDeviceMemoryProperties"); return; }
|
|
c->dt->vkGetPhysicalDeviceMemoryProperties(physicalDevice, pMemoryProperties);
|
|
vkb_enc_u8(e, pMemoryProperties != NULL);
|
|
if (pMemoryProperties) vkb_enc_raw(e, pMemoryProperties, sizeof(*pMemoryProperties));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceMemoryProperties2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pMemoryProperties = vkb_dec_u8(d);
|
|
VkPhysicalDeviceMemoryProperties2 pMemoryProperties_v;
|
|
memset(&pMemoryProperties_v, 0, sizeof(pMemoryProperties_v));
|
|
if (has_pMemoryProperties) vkb_dec_out_template(d, &pMemoryProperties_v, sizeof(VkPhysicalDeviceMemoryProperties2));
|
|
VkPhysicalDeviceMemoryProperties2 *pMemoryProperties = has_pMemoryProperties ? &pMemoryProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceMemoryProperties2) { vkb_srv_missing(c, "vkGetPhysicalDeviceMemoryProperties2"); return; }
|
|
c->dt->vkGetPhysicalDeviceMemoryProperties2(physicalDevice, pMemoryProperties);
|
|
vkb_enc_u8(e, pMemoryProperties != NULL);
|
|
if (pMemoryProperties) vkb_enc_out_struct(e, pMemoryProperties, sizeof(VkPhysicalDeviceMemoryProperties2));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceMultisamplePropertiesEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkSampleCountFlagBits samples;
|
|
vkb_dec_bytes(d, &samples, sizeof(samples));
|
|
uint8_t has_pMultisampleProperties = vkb_dec_u8(d);
|
|
VkMultisamplePropertiesEXT pMultisampleProperties_v;
|
|
memset(&pMultisampleProperties_v, 0, sizeof(pMultisampleProperties_v));
|
|
if (has_pMultisampleProperties) vkb_dec_out_template(d, &pMultisampleProperties_v, sizeof(VkMultisamplePropertiesEXT));
|
|
VkMultisamplePropertiesEXT *pMultisampleProperties = has_pMultisampleProperties ? &pMultisampleProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceMultisamplePropertiesEXT) { vkb_srv_missing(c, "vkGetPhysicalDeviceMultisamplePropertiesEXT"); return; }
|
|
c->dt->vkGetPhysicalDeviceMultisamplePropertiesEXT(physicalDevice, samples, pMultisampleProperties);
|
|
vkb_enc_u8(e, pMultisampleProperties != NULL);
|
|
if (pMultisampleProperties) vkb_enc_out_struct(e, pMultisampleProperties, sizeof(VkMultisamplePropertiesEXT));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pProperties = vkb_dec_u8(d);
|
|
VkPhysicalDeviceProperties pProperties_v;
|
|
memset(&pProperties_v, 0, sizeof(pProperties_v));
|
|
VkPhysicalDeviceProperties *pProperties = has_pProperties ? &pProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceProperties) { vkb_srv_missing(c, "vkGetPhysicalDeviceProperties"); return; }
|
|
c->dt->vkGetPhysicalDeviceProperties(physicalDevice, pProperties);
|
|
vkb_enc_u8(e, pProperties != NULL);
|
|
if (pProperties) vkb_enc_raw(e, pProperties, sizeof(*pProperties));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceProperties2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pProperties = vkb_dec_u8(d);
|
|
VkPhysicalDeviceProperties2 pProperties_v;
|
|
memset(&pProperties_v, 0, sizeof(pProperties_v));
|
|
if (has_pProperties) vkb_dec_out_template(d, &pProperties_v, sizeof(VkPhysicalDeviceProperties2));
|
|
VkPhysicalDeviceProperties2 *pProperties = has_pProperties ? &pProperties_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceProperties2) { vkb_srv_missing(c, "vkGetPhysicalDeviceProperties2"); return; }
|
|
c->dt->vkGetPhysicalDeviceProperties2(physicalDevice, pProperties);
|
|
vkb_enc_u8(e, pProperties != NULL);
|
|
if (pProperties) vkb_enc_out_struct(e, pProperties, sizeof(VkPhysicalDeviceProperties2));
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceQueueFamilyProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pQueueFamilyPropertyCount = vkb_dec_u8(d);
|
|
uint32_t pQueueFamilyPropertyCount_v;
|
|
memset(&pQueueFamilyPropertyCount_v, 0, sizeof(pQueueFamilyPropertyCount_v));
|
|
if (has_pQueueFamilyPropertyCount) vkb_dec_bytes(d, &pQueueFamilyPropertyCount_v, sizeof(pQueueFamilyPropertyCount_v));
|
|
uint32_t *pQueueFamilyPropertyCount = has_pQueueFamilyPropertyCount ? &pQueueFamilyPropertyCount_v : NULL;
|
|
uint8_t has_pQueueFamilyProperties = vkb_dec_u8(d); uint32_t n_pQueueFamilyProperties = vkb_dec_u32(d);
|
|
VkQueueFamilyProperties *pQueueFamilyProperties = has_pQueueFamilyProperties ? (VkQueueFamilyProperties *)vkb_dec_alloc_zero(d, (size_t)n_pQueueFamilyProperties * sizeof(VkQueueFamilyProperties)) : NULL;
|
|
if (pQueueFamilyProperties && pQueueFamilyPropertyCount) *pQueueFamilyPropertyCount = n_pQueueFamilyProperties;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceQueueFamilyProperties) { vkb_srv_missing(c, "vkGetPhysicalDeviceQueueFamilyProperties"); return; }
|
|
c->dt->vkGetPhysicalDeviceQueueFamilyProperties(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
|
vkb_enc_u8(e, pQueueFamilyPropertyCount != NULL);
|
|
if (pQueueFamilyPropertyCount) vkb_enc_raw(e, pQueueFamilyPropertyCount, sizeof(*pQueueFamilyPropertyCount));
|
|
{
|
|
uint32_t rn_ = (pQueueFamilyPropertyCount ? *pQueueFamilyPropertyCount : 0);
|
|
uint32_t has_ = pQueueFamilyProperties ? (rn_ < n_pQueueFamilyProperties ? rn_ : n_pQueueFamilyProperties) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pQueueFamilyProperties[i_], sizeof(VkQueueFamilyProperties));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceQueueFamilyProperties2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pQueueFamilyPropertyCount = vkb_dec_u8(d);
|
|
uint32_t pQueueFamilyPropertyCount_v;
|
|
memset(&pQueueFamilyPropertyCount_v, 0, sizeof(pQueueFamilyPropertyCount_v));
|
|
if (has_pQueueFamilyPropertyCount) vkb_dec_bytes(d, &pQueueFamilyPropertyCount_v, sizeof(pQueueFamilyPropertyCount_v));
|
|
uint32_t *pQueueFamilyPropertyCount = has_pQueueFamilyPropertyCount ? &pQueueFamilyPropertyCount_v : NULL;
|
|
uint8_t has_pQueueFamilyProperties = vkb_dec_u8(d); uint32_t n_pQueueFamilyProperties = vkb_dec_u32(d);
|
|
VkQueueFamilyProperties2 *pQueueFamilyProperties = has_pQueueFamilyProperties ? (VkQueueFamilyProperties2 *)vkb_dec_alloc_zero(d, (size_t)n_pQueueFamilyProperties * sizeof(VkQueueFamilyProperties2)) : NULL;
|
|
for (uint32_t i_ = 0; pQueueFamilyProperties && i_ < n_pQueueFamilyProperties; i_++) vkb_dec_out_template(d, &pQueueFamilyProperties[i_], sizeof(VkQueueFamilyProperties2));
|
|
if (pQueueFamilyProperties && pQueueFamilyPropertyCount) *pQueueFamilyPropertyCount = n_pQueueFamilyProperties;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceQueueFamilyProperties2) { vkb_srv_missing(c, "vkGetPhysicalDeviceQueueFamilyProperties2"); return; }
|
|
c->dt->vkGetPhysicalDeviceQueueFamilyProperties2(physicalDevice, pQueueFamilyPropertyCount, pQueueFamilyProperties);
|
|
vkb_enc_u8(e, pQueueFamilyPropertyCount != NULL);
|
|
if (pQueueFamilyPropertyCount) vkb_enc_raw(e, pQueueFamilyPropertyCount, sizeof(*pQueueFamilyPropertyCount));
|
|
{
|
|
uint32_t rn_ = (pQueueFamilyPropertyCount ? *pQueueFamilyPropertyCount : 0);
|
|
uint32_t has_ = pQueueFamilyProperties ? (rn_ < n_pQueueFamilyProperties ? rn_ : n_pQueueFamilyProperties) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_out_struct(e, &pQueueFamilyProperties[i_], sizeof(VkQueueFamilyProperties2));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceSparseImageFormatProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkFormat format;
|
|
vkb_dec_bytes(d, &format, sizeof(format));
|
|
VkImageType type;
|
|
vkb_dec_bytes(d, &type, sizeof(type));
|
|
VkSampleCountFlagBits samples;
|
|
vkb_dec_bytes(d, &samples, sizeof(samples));
|
|
VkImageUsageFlags usage;
|
|
vkb_dec_bytes(d, &usage, sizeof(usage));
|
|
VkImageTiling tiling;
|
|
vkb_dec_bytes(d, &tiling, sizeof(tiling));
|
|
uint8_t has_pPropertyCount = vkb_dec_u8(d);
|
|
uint32_t pPropertyCount_v;
|
|
memset(&pPropertyCount_v, 0, sizeof(pPropertyCount_v));
|
|
if (has_pPropertyCount) vkb_dec_bytes(d, &pPropertyCount_v, sizeof(pPropertyCount_v));
|
|
uint32_t *pPropertyCount = has_pPropertyCount ? &pPropertyCount_v : NULL;
|
|
uint8_t has_pProperties = vkb_dec_u8(d); uint32_t n_pProperties = vkb_dec_u32(d);
|
|
VkSparseImageFormatProperties *pProperties = has_pProperties ? (VkSparseImageFormatProperties *)vkb_dec_alloc_zero(d, (size_t)n_pProperties * sizeof(VkSparseImageFormatProperties)) : NULL;
|
|
if (pProperties && pPropertyCount) *pPropertyCount = n_pProperties;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceSparseImageFormatProperties) { vkb_srv_missing(c, "vkGetPhysicalDeviceSparseImageFormatProperties"); return; }
|
|
c->dt->vkGetPhysicalDeviceSparseImageFormatProperties(physicalDevice, format, type, samples, usage, tiling, pPropertyCount, pProperties);
|
|
vkb_enc_u8(e, pPropertyCount != NULL);
|
|
if (pPropertyCount) vkb_enc_raw(e, pPropertyCount, sizeof(*pPropertyCount));
|
|
{
|
|
uint32_t rn_ = (pPropertyCount ? *pPropertyCount : 0);
|
|
uint32_t has_ = pProperties ? (rn_ < n_pProperties ? rn_ : n_pProperties) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_raw(e, &pProperties[i_], sizeof(VkSparseImageFormatProperties));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceSparseImageFormatProperties2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkPhysicalDeviceSparseImageFormatInfo2 *pFormatInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkPhysicalDeviceSparseImageFormatInfo2 *a_ = (VkPhysicalDeviceSparseImageFormatInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkPhysicalDeviceSparseImageFormatInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkPhysicalDeviceSparseImageFormatInfo2(d, &a_[i_]);
|
|
pFormatInfo = a_;
|
|
} else {
|
|
pFormatInfo = NULL;
|
|
}
|
|
uint8_t has_pPropertyCount = vkb_dec_u8(d);
|
|
uint32_t pPropertyCount_v;
|
|
memset(&pPropertyCount_v, 0, sizeof(pPropertyCount_v));
|
|
if (has_pPropertyCount) vkb_dec_bytes(d, &pPropertyCount_v, sizeof(pPropertyCount_v));
|
|
uint32_t *pPropertyCount = has_pPropertyCount ? &pPropertyCount_v : NULL;
|
|
uint8_t has_pProperties = vkb_dec_u8(d); uint32_t n_pProperties = vkb_dec_u32(d);
|
|
VkSparseImageFormatProperties2 *pProperties = has_pProperties ? (VkSparseImageFormatProperties2 *)vkb_dec_alloc_zero(d, (size_t)n_pProperties * sizeof(VkSparseImageFormatProperties2)) : NULL;
|
|
for (uint32_t i_ = 0; pProperties && i_ < n_pProperties; i_++) vkb_dec_out_template(d, &pProperties[i_], sizeof(VkSparseImageFormatProperties2));
|
|
if (pProperties && pPropertyCount) *pPropertyCount = n_pProperties;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceSparseImageFormatProperties2) { vkb_srv_missing(c, "vkGetPhysicalDeviceSparseImageFormatProperties2"); return; }
|
|
c->dt->vkGetPhysicalDeviceSparseImageFormatProperties2(physicalDevice, pFormatInfo, pPropertyCount, pProperties);
|
|
vkb_enc_u8(e, pPropertyCount != NULL);
|
|
if (pPropertyCount) vkb_enc_raw(e, pPropertyCount, sizeof(*pPropertyCount));
|
|
{
|
|
uint32_t rn_ = (pPropertyCount ? *pPropertyCount : 0);
|
|
uint32_t has_ = pProperties ? (rn_ < n_pProperties ? rn_ : n_pProperties) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_out_struct(e, &pProperties[i_], sizeof(VkSparseImageFormatProperties2));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetPhysicalDeviceToolProperties(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkPhysicalDevice physicalDevice = (VkPhysicalDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint8_t has_pToolCount = vkb_dec_u8(d);
|
|
uint32_t pToolCount_v;
|
|
memset(&pToolCount_v, 0, sizeof(pToolCount_v));
|
|
if (has_pToolCount) vkb_dec_bytes(d, &pToolCount_v, sizeof(pToolCount_v));
|
|
uint32_t *pToolCount = has_pToolCount ? &pToolCount_v : NULL;
|
|
uint8_t has_pToolProperties = vkb_dec_u8(d); uint32_t n_pToolProperties = vkb_dec_u32(d);
|
|
VkPhysicalDeviceToolProperties *pToolProperties = has_pToolProperties ? (VkPhysicalDeviceToolProperties *)vkb_dec_alloc_zero(d, (size_t)n_pToolProperties * sizeof(VkPhysicalDeviceToolProperties)) : NULL;
|
|
for (uint32_t i_ = 0; pToolProperties && i_ < n_pToolProperties; i_++) vkb_dec_out_template(d, &pToolProperties[i_], sizeof(VkPhysicalDeviceToolProperties));
|
|
if (pToolProperties && pToolCount) *pToolCount = n_pToolProperties;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPhysicalDeviceToolProperties) { vkb_srv_missing(c, "vkGetPhysicalDeviceToolProperties"); return; }
|
|
VkResult r_ = c->dt->vkGetPhysicalDeviceToolProperties(physicalDevice, pToolCount, pToolProperties);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pToolCount != NULL);
|
|
if (pToolCount) vkb_enc_raw(e, pToolCount, sizeof(*pToolCount));
|
|
{
|
|
uint32_t rn_ = (pToolCount ? *pToolCount : 0);
|
|
uint32_t has_ = pToolProperties ? (rn_ < n_pToolProperties ? rn_ : n_pToolProperties) : 0;
|
|
vkb_enc_u32(e, rn_); vkb_enc_u32(e, has_);
|
|
for (uint32_t i_ = 0; i_ < has_; i_++) vkb_enc_out_struct(e, &pToolProperties[i_], sizeof(VkPhysicalDeviceToolProperties));
|
|
}
|
|
}
|
|
|
|
void vkb_sv_vkGetPipelineCacheData(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineCache pipelineCache;
|
|
vkb_dec_bytes(d, &pipelineCache, sizeof(pipelineCache));
|
|
uint8_t has_pDataSize = vkb_dec_u8(d);
|
|
size_t pDataSize_v;
|
|
memset(&pDataSize_v, 0, sizeof(pDataSize_v));
|
|
if (has_pDataSize) vkb_dec_bytes(d, &pDataSize_v, sizeof(pDataSize_v));
|
|
size_t *pDataSize = has_pDataSize ? &pDataSize_v : NULL;
|
|
uint8_t has_pData = vkb_dec_u8(d); uint64_t n_pData = vkb_dec_u64(d);
|
|
void *pData = has_pData ? vkb_dec_alloc(d, (size_t)n_pData) : NULL;
|
|
if (pDataSize && pData) *pDataSize = (size_t)n_pData;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetPipelineCacheData) { vkb_srv_missing(c, "vkGetPipelineCacheData"); return; }
|
|
VkResult r_ = c->dt->vkGetPipelineCacheData(device, pipelineCache, pDataSize, pData);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pDataSize != NULL);
|
|
if (pDataSize) vkb_enc_raw(e, pDataSize, sizeof(*pDataSize));
|
|
vkb_enc_u64(e, pDataSize ? (uint64_t)*pDataSize : 0); vkb_enc_blob(e, pData, pData && pDataSize ? (size_t)*pDataSize : 0);
|
|
}
|
|
|
|
void vkb_sv_vkGetQueryPoolResults(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
uint32_t firstQuery;
|
|
vkb_dec_bytes(d, &firstQuery, sizeof(firstQuery));
|
|
uint32_t queryCount;
|
|
vkb_dec_bytes(d, &queryCount, sizeof(queryCount));
|
|
size_t dataSize;
|
|
vkb_dec_bytes(d, &dataSize, sizeof(dataSize));
|
|
uint8_t has_pData = vkb_dec_u8(d); uint64_t n_pData = vkb_dec_u64(d);
|
|
void *pData = has_pData ? vkb_dec_alloc(d, (size_t)n_pData) : NULL;
|
|
VkDeviceSize stride;
|
|
vkb_dec_bytes(d, &stride, sizeof(stride));
|
|
VkQueryResultFlags flags;
|
|
vkb_dec_bytes(d, &flags, sizeof(flags));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetQueryPoolResults) { vkb_srv_missing(c, "vkGetQueryPoolResults"); return; }
|
|
VkResult r_ = c->dt->vkGetQueryPoolResults(device, queryPool, firstQuery, queryCount, dataSize, pData, stride, flags);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_blob(e, pData, (size_t)n_pData);
|
|
}
|
|
|
|
void vkb_sv_vkGetRenderAreaGranularity(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkRenderPass renderPass;
|
|
vkb_dec_bytes(d, &renderPass, sizeof(renderPass));
|
|
uint8_t has_pGranularity = vkb_dec_u8(d);
|
|
VkExtent2D pGranularity_v;
|
|
memset(&pGranularity_v, 0, sizeof(pGranularity_v));
|
|
VkExtent2D *pGranularity = has_pGranularity ? &pGranularity_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetRenderAreaGranularity) { vkb_srv_missing(c, "vkGetRenderAreaGranularity"); return; }
|
|
c->dt->vkGetRenderAreaGranularity(device, renderPass, pGranularity);
|
|
vkb_enc_u8(e, pGranularity != NULL);
|
|
if (pGranularity) vkb_enc_raw(e, pGranularity, sizeof(*pGranularity));
|
|
}
|
|
|
|
void vkb_sv_vkGetRenderingAreaGranularity(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkRenderingAreaInfo *pRenderingAreaInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkRenderingAreaInfo *a_ = (VkRenderingAreaInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkRenderingAreaInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkRenderingAreaInfo(d, &a_[i_]);
|
|
pRenderingAreaInfo = a_;
|
|
} else {
|
|
pRenderingAreaInfo = NULL;
|
|
}
|
|
uint8_t has_pGranularity = vkb_dec_u8(d);
|
|
VkExtent2D pGranularity_v;
|
|
memset(&pGranularity_v, 0, sizeof(pGranularity_v));
|
|
VkExtent2D *pGranularity = has_pGranularity ? &pGranularity_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetRenderingAreaGranularity) { vkb_srv_missing(c, "vkGetRenderingAreaGranularity"); return; }
|
|
c->dt->vkGetRenderingAreaGranularity(device, pRenderingAreaInfo, pGranularity);
|
|
vkb_enc_u8(e, pGranularity != NULL);
|
|
if (pGranularity) vkb_enc_raw(e, pGranularity, sizeof(*pGranularity));
|
|
}
|
|
|
|
void vkb_sv_vkGetSemaphoreCounterValue(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkSemaphore semaphore;
|
|
vkb_dec_bytes(d, &semaphore, sizeof(semaphore));
|
|
uint8_t has_pValue = vkb_dec_u8(d);
|
|
uint64_t pValue_v;
|
|
memset(&pValue_v, 0, sizeof(pValue_v));
|
|
if (has_pValue) vkb_dec_bytes(d, &pValue_v, sizeof(pValue_v));
|
|
uint64_t *pValue = has_pValue ? &pValue_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetSemaphoreCounterValue) { vkb_srv_missing(c, "vkGetSemaphoreCounterValue"); return; }
|
|
VkResult r_ = c->dt->vkGetSemaphoreCounterValue(device, semaphore, pValue);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_u8(e, pValue != NULL);
|
|
if (pValue) vkb_enc_raw(e, pValue, sizeof(*pValue));
|
|
}
|
|
|
|
void vkb_sv_vkGetSemaphoreFdKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkSemaphoreGetFdInfoKHR *pGetFdInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSemaphoreGetFdInfoKHR *a_ = (VkSemaphoreGetFdInfoKHR *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSemaphoreGetFdInfoKHR));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSemaphoreGetFdInfoKHR(d, &a_[i_]);
|
|
pGetFdInfo = a_;
|
|
} else {
|
|
pGetFdInfo = NULL;
|
|
}
|
|
int pFd_v = -1; int *pFd = vkb_dec_u8(d) ? &pFd_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetSemaphoreFdKHR) { vkb_srv_missing(c, "vkGetSemaphoreFdKHR"); return; }
|
|
VkResult r_ = c->dt->vkGetSemaphoreFdKHR(device, pGetFdInfo, pFd);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
vkb_enc_fd(e, pFd ? *pFd : -1);
|
|
if (pFd && *pFd >= 0) vkb_srv_close_after_send(c, *pFd);
|
|
}
|
|
|
|
void vkb_sv_vkGetShaderModuleCreateInfoIdentifierEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkShaderModuleCreateInfo *pCreateInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkShaderModuleCreateInfo *a_ = (VkShaderModuleCreateInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkShaderModuleCreateInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkShaderModuleCreateInfo(d, &a_[i_]);
|
|
pCreateInfo = a_;
|
|
} else {
|
|
pCreateInfo = NULL;
|
|
}
|
|
uint8_t has_pIdentifier = vkb_dec_u8(d);
|
|
VkShaderModuleIdentifierEXT pIdentifier_v;
|
|
memset(&pIdentifier_v, 0, sizeof(pIdentifier_v));
|
|
if (has_pIdentifier) vkb_dec_out_template(d, &pIdentifier_v, sizeof(VkShaderModuleIdentifierEXT));
|
|
VkShaderModuleIdentifierEXT *pIdentifier = has_pIdentifier ? &pIdentifier_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetShaderModuleCreateInfoIdentifierEXT) { vkb_srv_missing(c, "vkGetShaderModuleCreateInfoIdentifierEXT"); return; }
|
|
c->dt->vkGetShaderModuleCreateInfoIdentifierEXT(device, pCreateInfo, pIdentifier);
|
|
vkb_enc_u8(e, pIdentifier != NULL);
|
|
if (pIdentifier) vkb_enc_out_struct(e, pIdentifier, sizeof(VkShaderModuleIdentifierEXT));
|
|
}
|
|
|
|
void vkb_sv_vkGetShaderModuleIdentifierEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkShaderModule shaderModule;
|
|
vkb_dec_bytes(d, &shaderModule, sizeof(shaderModule));
|
|
uint8_t has_pIdentifier = vkb_dec_u8(d);
|
|
VkShaderModuleIdentifierEXT pIdentifier_v;
|
|
memset(&pIdentifier_v, 0, sizeof(pIdentifier_v));
|
|
if (has_pIdentifier) vkb_dec_out_template(d, &pIdentifier_v, sizeof(VkShaderModuleIdentifierEXT));
|
|
VkShaderModuleIdentifierEXT *pIdentifier = has_pIdentifier ? &pIdentifier_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetShaderModuleIdentifierEXT) { vkb_srv_missing(c, "vkGetShaderModuleIdentifierEXT"); return; }
|
|
c->dt->vkGetShaderModuleIdentifierEXT(device, shaderModule, pIdentifier);
|
|
vkb_enc_u8(e, pIdentifier != NULL);
|
|
if (pIdentifier) vkb_enc_out_struct(e, pIdentifier, sizeof(VkShaderModuleIdentifierEXT));
|
|
}
|
|
|
|
void vkb_sv_vkGetTensorMemoryRequirementsARM(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkTensorMemoryRequirementsInfoARM *pInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkTensorMemoryRequirementsInfoARM *a_ = (VkTensorMemoryRequirementsInfoARM *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkTensorMemoryRequirementsInfoARM));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkTensorMemoryRequirementsInfoARM(d, &a_[i_]);
|
|
pInfo = a_;
|
|
} else {
|
|
pInfo = NULL;
|
|
}
|
|
uint8_t has_pMemoryRequirements = vkb_dec_u8(d);
|
|
VkMemoryRequirements2 pMemoryRequirements_v;
|
|
memset(&pMemoryRequirements_v, 0, sizeof(pMemoryRequirements_v));
|
|
if (has_pMemoryRequirements) vkb_dec_out_template(d, &pMemoryRequirements_v, sizeof(VkMemoryRequirements2));
|
|
VkMemoryRequirements2 *pMemoryRequirements = has_pMemoryRequirements ? &pMemoryRequirements_v : NULL;
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkGetTensorMemoryRequirementsARM) { vkb_srv_missing(c, "vkGetTensorMemoryRequirementsARM"); return; }
|
|
c->dt->vkGetTensorMemoryRequirementsARM(device, pInfo, pMemoryRequirements);
|
|
vkb_enc_u8(e, pMemoryRequirements != NULL);
|
|
if (pMemoryRequirements) vkb_enc_out_struct(e, pMemoryRequirements, sizeof(VkMemoryRequirements2));
|
|
}
|
|
|
|
void vkb_sv_vkImportFenceFdKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkImportFenceFdInfoKHR *pImportFenceFdInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkImportFenceFdInfoKHR *a_ = (VkImportFenceFdInfoKHR *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkImportFenceFdInfoKHR));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkImportFenceFdInfoKHR(d, &a_[i_]);
|
|
pImportFenceFdInfo = a_;
|
|
} else {
|
|
pImportFenceFdInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkImportFenceFdKHR) { vkb_srv_missing(c, "vkImportFenceFdKHR"); return; }
|
|
VkResult r_ = c->dt->vkImportFenceFdKHR(device, pImportFenceFdInfo);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkImportSemaphoreFdKHR(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkImportSemaphoreFdInfoKHR *pImportSemaphoreFdInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkImportSemaphoreFdInfoKHR *a_ = (VkImportSemaphoreFdInfoKHR *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkImportSemaphoreFdInfoKHR));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkImportSemaphoreFdInfoKHR(d, &a_[i_]);
|
|
pImportSemaphoreFdInfo = a_;
|
|
} else {
|
|
pImportSemaphoreFdInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkImportSemaphoreFdKHR) { vkb_srv_missing(c, "vkImportSemaphoreFdKHR"); return; }
|
|
VkResult r_ = c->dt->vkImportSemaphoreFdKHR(device, pImportSemaphoreFdInfo);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkMergePipelineCaches(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkPipelineCache dstCache;
|
|
vkb_dec_bytes(d, &dstCache, sizeof(dstCache));
|
|
uint32_t srcCacheCount;
|
|
vkb_dec_bytes(d, &srcCacheCount, sizeof(srcCacheCount));
|
|
const VkPipelineCache *pSrcCaches;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pSrcCaches = (const VkPipelineCache *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkPipelineCache));
|
|
} else {
|
|
pSrcCaches = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkMergePipelineCaches) { vkb_srv_missing(c, "vkMergePipelineCaches"); return; }
|
|
VkResult r_ = c->dt->vkMergePipelineCaches(device, dstCache, srcCacheCount, pSrcCaches);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkQueueBindSparse(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkQueue queue = (VkQueue)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t bindInfoCount;
|
|
vkb_dec_bytes(d, &bindInfoCount, sizeof(bindInfoCount));
|
|
const VkBindSparseInfo *pBindInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkBindSparseInfo *a_ = (VkBindSparseInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkBindSparseInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkBindSparseInfo(d, &a_[i_]);
|
|
pBindInfo = a_;
|
|
} else {
|
|
pBindInfo = NULL;
|
|
}
|
|
VkFence fence;
|
|
vkb_dec_bytes(d, &fence, sizeof(fence));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkQueueBindSparse) { vkb_srv_missing(c, "vkQueueBindSparse"); return; }
|
|
VkResult r_ = c->dt->vkQueueBindSparse(queue, bindInfoCount, pBindInfo, fence);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkQueueSubmit(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkQueue queue = (VkQueue)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t submitCount;
|
|
vkb_dec_bytes(d, &submitCount, sizeof(submitCount));
|
|
const VkSubmitInfo *pSubmits;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSubmitInfo *a_ = (VkSubmitInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSubmitInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSubmitInfo(d, &a_[i_]);
|
|
pSubmits = a_;
|
|
} else {
|
|
pSubmits = NULL;
|
|
}
|
|
VkFence fence;
|
|
vkb_dec_bytes(d, &fence, sizeof(fence));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkQueueSubmit) { vkb_srv_missing(c, "vkQueueSubmit"); return; }
|
|
VkResult r_ = c->dt->vkQueueSubmit(queue, submitCount, pSubmits, fence);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkQueueSubmit2(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkQueue queue = (VkQueue)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t submitCount;
|
|
vkb_dec_bytes(d, &submitCount, sizeof(submitCount));
|
|
const VkSubmitInfo2 *pSubmits;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSubmitInfo2 *a_ = (VkSubmitInfo2 *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSubmitInfo2));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSubmitInfo2(d, &a_[i_]);
|
|
pSubmits = a_;
|
|
} else {
|
|
pSubmits = NULL;
|
|
}
|
|
VkFence fence;
|
|
vkb_dec_bytes(d, &fence, sizeof(fence));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkQueueSubmit2) { vkb_srv_missing(c, "vkQueueSubmit2"); return; }
|
|
VkResult r_ = c->dt->vkQueueSubmit2(queue, submitCount, pSubmits, fence);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkQueueWaitIdle(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkQueue queue = (VkQueue)(uintptr_t)vkb_dec_u64(d);
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkQueueWaitIdle) { vkb_srv_missing(c, "vkQueueWaitIdle"); return; }
|
|
VkResult r_ = c->dt->vkQueueWaitIdle(queue);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkResetCommandBuffer(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkCommandBuffer commandBuffer = (VkCommandBuffer)(uintptr_t)vkb_dec_u64(d);
|
|
VkCommandBufferResetFlags flags;
|
|
vkb_dec_bytes(d, &flags, sizeof(flags));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkResetCommandBuffer) { vkb_srv_missing(c, "vkResetCommandBuffer"); return; }
|
|
VkResult r_ = c->dt->vkResetCommandBuffer(commandBuffer, flags);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkResetCommandPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkCommandPool commandPool;
|
|
vkb_dec_bytes(d, &commandPool, sizeof(commandPool));
|
|
VkCommandPoolResetFlags flags;
|
|
vkb_dec_bytes(d, &flags, sizeof(flags));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkResetCommandPool) { vkb_srv_missing(c, "vkResetCommandPool"); return; }
|
|
VkResult r_ = c->dt->vkResetCommandPool(device, commandPool, flags);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkResetDescriptorPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkDescriptorPool descriptorPool;
|
|
vkb_dec_bytes(d, &descriptorPool, sizeof(descriptorPool));
|
|
VkDescriptorPoolResetFlags flags;
|
|
vkb_dec_bytes(d, &flags, sizeof(flags));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkResetDescriptorPool) { vkb_srv_missing(c, "vkResetDescriptorPool"); return; }
|
|
VkResult r_ = c->dt->vkResetDescriptorPool(device, descriptorPool, flags);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkResetEvent(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkEvent event;
|
|
vkb_dec_bytes(d, &event, sizeof(event));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkResetEvent) { vkb_srv_missing(c, "vkResetEvent"); return; }
|
|
VkResult r_ = c->dt->vkResetEvent(device, event);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkResetFences(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t fenceCount;
|
|
vkb_dec_bytes(d, &fenceCount, sizeof(fenceCount));
|
|
const VkFence *pFences;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pFences = (const VkFence *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkFence));
|
|
} else {
|
|
pFences = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkResetFences) { vkb_srv_missing(c, "vkResetFences"); return; }
|
|
VkResult r_ = c->dt->vkResetFences(device, fenceCount, pFences);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkResetQueryPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkQueryPool queryPool;
|
|
vkb_dec_bytes(d, &queryPool, sizeof(queryPool));
|
|
uint32_t firstQuery;
|
|
vkb_dec_bytes(d, &firstQuery, sizeof(firstQuery));
|
|
uint32_t queryCount;
|
|
vkb_dec_bytes(d, &queryCount, sizeof(queryCount));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkResetQueryPool) { vkb_srv_missing(c, "vkResetQueryPool"); return; }
|
|
c->dt->vkResetQueryPool(device, queryPool, firstQuery, queryCount);
|
|
}
|
|
|
|
void vkb_sv_vkSetDeviceMemoryPriorityEXT(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkDeviceMemory memory;
|
|
vkb_dec_bytes(d, &memory, sizeof(memory));
|
|
float priority;
|
|
vkb_dec_bytes(d, &priority, sizeof(priority));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkSetDeviceMemoryPriorityEXT) { vkb_srv_missing(c, "vkSetDeviceMemoryPriorityEXT"); return; }
|
|
c->dt->vkSetDeviceMemoryPriorityEXT(device, memory, priority);
|
|
}
|
|
|
|
void vkb_sv_vkSetEvent(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkEvent event;
|
|
vkb_dec_bytes(d, &event, sizeof(event));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkSetEvent) { vkb_srv_missing(c, "vkSetEvent"); return; }
|
|
VkResult r_ = c->dt->vkSetEvent(device, event);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkSignalSemaphore(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkSemaphoreSignalInfo *pSignalInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSemaphoreSignalInfo *a_ = (VkSemaphoreSignalInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSemaphoreSignalInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSemaphoreSignalInfo(d, &a_[i_]);
|
|
pSignalInfo = a_;
|
|
} else {
|
|
pSignalInfo = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkSignalSemaphore) { vkb_srv_missing(c, "vkSignalSemaphore"); return; }
|
|
VkResult r_ = c->dt->vkSignalSemaphore(device, pSignalInfo);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkTrimCommandPool(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
VkCommandPool commandPool;
|
|
vkb_dec_bytes(d, &commandPool, sizeof(commandPool));
|
|
VkCommandPoolTrimFlags flags;
|
|
vkb_dec_bytes(d, &flags, sizeof(flags));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkTrimCommandPool) { vkb_srv_missing(c, "vkTrimCommandPool"); return; }
|
|
c->dt->vkTrimCommandPool(device, commandPool, flags);
|
|
}
|
|
|
|
void vkb_sv_vkUpdateDescriptorSets(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t descriptorWriteCount;
|
|
vkb_dec_bytes(d, &descriptorWriteCount, sizeof(descriptorWriteCount));
|
|
const VkWriteDescriptorSet *pDescriptorWrites;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkWriteDescriptorSet *a_ = (VkWriteDescriptorSet *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkWriteDescriptorSet));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkWriteDescriptorSet(d, &a_[i_]);
|
|
pDescriptorWrites = a_;
|
|
} else {
|
|
pDescriptorWrites = NULL;
|
|
}
|
|
uint32_t descriptorCopyCount;
|
|
vkb_dec_bytes(d, &descriptorCopyCount, sizeof(descriptorCopyCount));
|
|
const VkCopyDescriptorSet *pDescriptorCopies;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkCopyDescriptorSet *a_ = (VkCopyDescriptorSet *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkCopyDescriptorSet));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkCopyDescriptorSet(d, &a_[i_]);
|
|
pDescriptorCopies = a_;
|
|
} else {
|
|
pDescriptorCopies = NULL;
|
|
}
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkUpdateDescriptorSets) { vkb_srv_missing(c, "vkUpdateDescriptorSets"); return; }
|
|
c->dt->vkUpdateDescriptorSets(device, descriptorWriteCount, pDescriptorWrites, descriptorCopyCount, pDescriptorCopies);
|
|
}
|
|
|
|
void vkb_sv_vkWaitForFences(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
uint32_t fenceCount;
|
|
vkb_dec_bytes(d, &fenceCount, sizeof(fenceCount));
|
|
const VkFence *pFences;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
pFences = (const VkFence *)vkb_dec_raw_view(d, (size_t)n_ * sizeof(VkFence));
|
|
} else {
|
|
pFences = NULL;
|
|
}
|
|
VkBool32 waitAll;
|
|
vkb_dec_bytes(d, &waitAll, sizeof(waitAll));
|
|
uint64_t timeout;
|
|
vkb_dec_bytes(d, &timeout, sizeof(timeout));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkWaitForFences) { vkb_srv_missing(c, "vkWaitForFences"); return; }
|
|
VkResult r_ = c->dt->vkWaitForFences(device, fenceCount, pFences, waitAll, timeout);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
void vkb_sv_vkWaitSemaphores(vkb_srv_call *c)
|
|
{
|
|
vkb_dec *d = &c->d;
|
|
vkb_enc *e = &c->r;
|
|
(void)e;
|
|
VkDevice device = (VkDevice)(uintptr_t)vkb_dec_u64(d);
|
|
const VkSemaphoreWaitInfo *pWaitInfo;
|
|
if (vkb_dec_u8(d)) {
|
|
uint32_t n_ = vkb_dec_u32(d);
|
|
VkSemaphoreWaitInfo *a_ = (VkSemaphoreWaitInfo *)vkb_dec_alloc(d, (size_t)n_ * sizeof(VkSemaphoreWaitInfo));
|
|
for (uint32_t i_ = 0; a_ && i_ < n_; i_++) vkb_dec_VkSemaphoreWaitInfo(d, &a_[i_]);
|
|
pWaitInfo = a_;
|
|
} else {
|
|
pWaitInfo = NULL;
|
|
}
|
|
uint64_t timeout;
|
|
vkb_dec_bytes(d, &timeout, sizeof(timeout));
|
|
if (d->err) { vkb_srv_bad_message(c); return; }
|
|
if (!c->dt->vkWaitSemaphores) { vkb_srv_missing(c, "vkWaitSemaphores"); return; }
|
|
VkResult r_ = c->dt->vkWaitSemaphores(device, pWaitInfo, timeout);
|
|
vkb_enc_bytes(e, &r_, sizeof(r_));
|
|
}
|
|
|
|
const vkb_srv_handler vkb_srv_handlers[VKB_CMD_COUNT] = {
|
|
[VKB_CMD_vkbHello] = vkb_sv_vkbHello,
|
|
[VKB_CMD_vkbQueryServer] = vkb_sv_vkbQueryServer,
|
|
[VKB_CMD_vkbDescUpdateRaw] = vkb_sv_vkbDescUpdateRaw,
|
|
[VKB_CMD_vkbPushDescRaw] = vkb_sv_vkbPushDescRaw,
|
|
[VKB_CMD_vkbAllocDescSets] = vkb_sv_vkbAllocDescSets,
|
|
[VKB_CMD_vkAllocateCommandBuffers] = vkb_sv_vkAllocateCommandBuffers,
|
|
[VKB_CMD_vkAllocateDescriptorSets] = vkb_sv_vkAllocateDescriptorSets,
|
|
[VKB_CMD_vkAllocateMemory] = vkb_sv_vkAllocateMemory,
|
|
[VKB_CMD_vkBeginCommandBuffer] = vkb_sv_vkBeginCommandBuffer,
|
|
[VKB_CMD_vkBindBufferMemory] = vkb_sv_vkBindBufferMemory,
|
|
[VKB_CMD_vkBindBufferMemory2] = vkb_sv_vkBindBufferMemory2,
|
|
[VKB_CMD_vkBindImageMemory] = vkb_sv_vkBindImageMemory,
|
|
[VKB_CMD_vkBindImageMemory2] = vkb_sv_vkBindImageMemory2,
|
|
[VKB_CMD_vkBindTensorMemoryARM] = vkb_sv_vkBindTensorMemoryARM,
|
|
[VKB_CMD_vkCmdBeginConditionalRenderingEXT] = vkb_sv_vkCmdBeginConditionalRenderingEXT,
|
|
[VKB_CMD_vkCmdBeginCustomResolveEXT] = vkb_sv_vkCmdBeginCustomResolveEXT,
|
|
[VKB_CMD_vkCmdBeginQuery] = vkb_sv_vkCmdBeginQuery,
|
|
[VKB_CMD_vkCmdBeginQueryIndexedEXT] = vkb_sv_vkCmdBeginQueryIndexedEXT,
|
|
[VKB_CMD_vkCmdBeginRenderPass] = vkb_sv_vkCmdBeginRenderPass,
|
|
[VKB_CMD_vkCmdBeginRenderPass2] = vkb_sv_vkCmdBeginRenderPass2,
|
|
[VKB_CMD_vkCmdBeginRendering] = vkb_sv_vkCmdBeginRendering,
|
|
[VKB_CMD_vkCmdBeginTransformFeedbackEXT] = vkb_sv_vkCmdBeginTransformFeedbackEXT,
|
|
[VKB_CMD_vkCmdBindDescriptorSets] = vkb_sv_vkCmdBindDescriptorSets,
|
|
[VKB_CMD_vkCmdBindDescriptorSets2] = vkb_sv_vkCmdBindDescriptorSets2,
|
|
[VKB_CMD_vkCmdBindIndexBuffer] = vkb_sv_vkCmdBindIndexBuffer,
|
|
[VKB_CMD_vkCmdBindIndexBuffer2] = vkb_sv_vkCmdBindIndexBuffer2,
|
|
[VKB_CMD_vkCmdBindPipeline] = vkb_sv_vkCmdBindPipeline,
|
|
[VKB_CMD_vkCmdBindTransformFeedbackBuffersEXT] = vkb_sv_vkCmdBindTransformFeedbackBuffersEXT,
|
|
[VKB_CMD_vkCmdBindVertexBuffers] = vkb_sv_vkCmdBindVertexBuffers,
|
|
[VKB_CMD_vkCmdBindVertexBuffers2] = vkb_sv_vkCmdBindVertexBuffers2,
|
|
[VKB_CMD_vkCmdBlitImage] = vkb_sv_vkCmdBlitImage,
|
|
[VKB_CMD_vkCmdBlitImage2] = vkb_sv_vkCmdBlitImage2,
|
|
[VKB_CMD_vkCmdClearAttachments] = vkb_sv_vkCmdClearAttachments,
|
|
[VKB_CMD_vkCmdClearColorImage] = vkb_sv_vkCmdClearColorImage,
|
|
[VKB_CMD_vkCmdClearDepthStencilImage] = vkb_sv_vkCmdClearDepthStencilImage,
|
|
[VKB_CMD_vkCmdCopyBuffer] = vkb_sv_vkCmdCopyBuffer,
|
|
[VKB_CMD_vkCmdCopyBuffer2] = vkb_sv_vkCmdCopyBuffer2,
|
|
[VKB_CMD_vkCmdCopyBufferToImage] = vkb_sv_vkCmdCopyBufferToImage,
|
|
[VKB_CMD_vkCmdCopyBufferToImage2] = vkb_sv_vkCmdCopyBufferToImage2,
|
|
[VKB_CMD_vkCmdCopyImage] = vkb_sv_vkCmdCopyImage,
|
|
[VKB_CMD_vkCmdCopyImage2] = vkb_sv_vkCmdCopyImage2,
|
|
[VKB_CMD_vkCmdCopyImageToBuffer] = vkb_sv_vkCmdCopyImageToBuffer,
|
|
[VKB_CMD_vkCmdCopyImageToBuffer2] = vkb_sv_vkCmdCopyImageToBuffer2,
|
|
[VKB_CMD_vkCmdCopyQueryPoolResults] = vkb_sv_vkCmdCopyQueryPoolResults,
|
|
[VKB_CMD_vkCmdCopyTensorARM] = vkb_sv_vkCmdCopyTensorARM,
|
|
[VKB_CMD_vkCmdDispatch] = vkb_sv_vkCmdDispatch,
|
|
[VKB_CMD_vkCmdDispatchBase] = vkb_sv_vkCmdDispatchBase,
|
|
[VKB_CMD_vkCmdDispatchIndirect] = vkb_sv_vkCmdDispatchIndirect,
|
|
[VKB_CMD_vkCmdDraw] = vkb_sv_vkCmdDraw,
|
|
[VKB_CMD_vkCmdDrawIndexed] = vkb_sv_vkCmdDrawIndexed,
|
|
[VKB_CMD_vkCmdDrawIndexedIndirect] = vkb_sv_vkCmdDrawIndexedIndirect,
|
|
[VKB_CMD_vkCmdDrawIndexedIndirectCount] = vkb_sv_vkCmdDrawIndexedIndirectCount,
|
|
[VKB_CMD_vkCmdDrawIndirect] = vkb_sv_vkCmdDrawIndirect,
|
|
[VKB_CMD_vkCmdDrawIndirectByteCountEXT] = vkb_sv_vkCmdDrawIndirectByteCountEXT,
|
|
[VKB_CMD_vkCmdDrawIndirectCount] = vkb_sv_vkCmdDrawIndirectCount,
|
|
[VKB_CMD_vkCmdDrawMultiEXT] = vkb_sv_vkCmdDrawMultiEXT,
|
|
[VKB_CMD_vkCmdDrawMultiIndexedEXT] = vkb_sv_vkCmdDrawMultiIndexedEXT,
|
|
[VKB_CMD_vkCmdEndConditionalRenderingEXT] = vkb_sv_vkCmdEndConditionalRenderingEXT,
|
|
[VKB_CMD_vkCmdEndQuery] = vkb_sv_vkCmdEndQuery,
|
|
[VKB_CMD_vkCmdEndQueryIndexedEXT] = vkb_sv_vkCmdEndQueryIndexedEXT,
|
|
[VKB_CMD_vkCmdEndRenderPass] = vkb_sv_vkCmdEndRenderPass,
|
|
[VKB_CMD_vkCmdEndRenderPass2] = vkb_sv_vkCmdEndRenderPass2,
|
|
[VKB_CMD_vkCmdEndRendering] = vkb_sv_vkCmdEndRendering,
|
|
[VKB_CMD_vkCmdEndRendering2KHR] = vkb_sv_vkCmdEndRendering2KHR,
|
|
[VKB_CMD_vkCmdEndTransformFeedbackEXT] = vkb_sv_vkCmdEndTransformFeedbackEXT,
|
|
[VKB_CMD_vkCmdExecuteCommands] = vkb_sv_vkCmdExecuteCommands,
|
|
[VKB_CMD_vkCmdFillBuffer] = vkb_sv_vkCmdFillBuffer,
|
|
[VKB_CMD_vkCmdNextSubpass] = vkb_sv_vkCmdNextSubpass,
|
|
[VKB_CMD_vkCmdNextSubpass2] = vkb_sv_vkCmdNextSubpass2,
|
|
[VKB_CMD_vkCmdPipelineBarrier] = vkb_sv_vkCmdPipelineBarrier,
|
|
[VKB_CMD_vkCmdPipelineBarrier2] = vkb_sv_vkCmdPipelineBarrier2,
|
|
[VKB_CMD_vkCmdPushConstants] = vkb_sv_vkCmdPushConstants,
|
|
[VKB_CMD_vkCmdPushConstants2] = vkb_sv_vkCmdPushConstants2,
|
|
[VKB_CMD_vkCmdPushDescriptorSet] = vkb_sv_vkCmdPushDescriptorSet,
|
|
[VKB_CMD_vkCmdPushDescriptorSet2] = vkb_sv_vkCmdPushDescriptorSet2,
|
|
[VKB_CMD_vkCmdResetEvent] = vkb_sv_vkCmdResetEvent,
|
|
[VKB_CMD_vkCmdResetEvent2] = vkb_sv_vkCmdResetEvent2,
|
|
[VKB_CMD_vkCmdResetQueryPool] = vkb_sv_vkCmdResetQueryPool,
|
|
[VKB_CMD_vkCmdResolveImage] = vkb_sv_vkCmdResolveImage,
|
|
[VKB_CMD_vkCmdResolveImage2] = vkb_sv_vkCmdResolveImage2,
|
|
[VKB_CMD_vkCmdSetAlphaToCoverageEnableEXT] = vkb_sv_vkCmdSetAlphaToCoverageEnableEXT,
|
|
[VKB_CMD_vkCmdSetAlphaToOneEnableEXT] = vkb_sv_vkCmdSetAlphaToOneEnableEXT,
|
|
[VKB_CMD_vkCmdSetAttachmentFeedbackLoopEnableEXT] = vkb_sv_vkCmdSetAttachmentFeedbackLoopEnableEXT,
|
|
[VKB_CMD_vkCmdSetBlendConstants] = vkb_sv_vkCmdSetBlendConstants,
|
|
[VKB_CMD_vkCmdSetColorBlendAdvancedEXT] = vkb_sv_vkCmdSetColorBlendAdvancedEXT,
|
|
[VKB_CMD_vkCmdSetColorBlendEnableEXT] = vkb_sv_vkCmdSetColorBlendEnableEXT,
|
|
[VKB_CMD_vkCmdSetColorBlendEquationEXT] = vkb_sv_vkCmdSetColorBlendEquationEXT,
|
|
[VKB_CMD_vkCmdSetColorWriteEnableEXT] = vkb_sv_vkCmdSetColorWriteEnableEXT,
|
|
[VKB_CMD_vkCmdSetColorWriteMaskEXT] = vkb_sv_vkCmdSetColorWriteMaskEXT,
|
|
[VKB_CMD_vkCmdSetConservativeRasterizationModeEXT] = vkb_sv_vkCmdSetConservativeRasterizationModeEXT,
|
|
[VKB_CMD_vkCmdSetCullMode] = vkb_sv_vkCmdSetCullMode,
|
|
[VKB_CMD_vkCmdSetDepthBias] = vkb_sv_vkCmdSetDepthBias,
|
|
[VKB_CMD_vkCmdSetDepthBias2EXT] = vkb_sv_vkCmdSetDepthBias2EXT,
|
|
[VKB_CMD_vkCmdSetDepthBiasEnable] = vkb_sv_vkCmdSetDepthBiasEnable,
|
|
[VKB_CMD_vkCmdSetDepthBounds] = vkb_sv_vkCmdSetDepthBounds,
|
|
[VKB_CMD_vkCmdSetDepthBoundsTestEnable] = vkb_sv_vkCmdSetDepthBoundsTestEnable,
|
|
[VKB_CMD_vkCmdSetDepthClampEnableEXT] = vkb_sv_vkCmdSetDepthClampEnableEXT,
|
|
[VKB_CMD_vkCmdSetDepthClampRangeEXT] = vkb_sv_vkCmdSetDepthClampRangeEXT,
|
|
[VKB_CMD_vkCmdSetDepthClipEnableEXT] = vkb_sv_vkCmdSetDepthClipEnableEXT,
|
|
[VKB_CMD_vkCmdSetDepthClipNegativeOneToOneEXT] = vkb_sv_vkCmdSetDepthClipNegativeOneToOneEXT,
|
|
[VKB_CMD_vkCmdSetDepthCompareOp] = vkb_sv_vkCmdSetDepthCompareOp,
|
|
[VKB_CMD_vkCmdSetDepthTestEnable] = vkb_sv_vkCmdSetDepthTestEnable,
|
|
[VKB_CMD_vkCmdSetDepthWriteEnable] = vkb_sv_vkCmdSetDepthWriteEnable,
|
|
[VKB_CMD_vkCmdSetDeviceMask] = vkb_sv_vkCmdSetDeviceMask,
|
|
[VKB_CMD_vkCmdSetDiscardRectangleEXT] = vkb_sv_vkCmdSetDiscardRectangleEXT,
|
|
[VKB_CMD_vkCmdSetDiscardRectangleEnableEXT] = vkb_sv_vkCmdSetDiscardRectangleEnableEXT,
|
|
[VKB_CMD_vkCmdSetDiscardRectangleModeEXT] = vkb_sv_vkCmdSetDiscardRectangleModeEXT,
|
|
[VKB_CMD_vkCmdSetEvent] = vkb_sv_vkCmdSetEvent,
|
|
[VKB_CMD_vkCmdSetEvent2] = vkb_sv_vkCmdSetEvent2,
|
|
[VKB_CMD_vkCmdSetExtraPrimitiveOverestimationSizeEXT] = vkb_sv_vkCmdSetExtraPrimitiveOverestimationSizeEXT,
|
|
[VKB_CMD_vkCmdSetFragmentShadingRateKHR] = vkb_sv_vkCmdSetFragmentShadingRateKHR,
|
|
[VKB_CMD_vkCmdSetFrontFace] = vkb_sv_vkCmdSetFrontFace,
|
|
[VKB_CMD_vkCmdSetLineRasterizationModeEXT] = vkb_sv_vkCmdSetLineRasterizationModeEXT,
|
|
[VKB_CMD_vkCmdSetLineStipple] = vkb_sv_vkCmdSetLineStipple,
|
|
[VKB_CMD_vkCmdSetLineStippleEnableEXT] = vkb_sv_vkCmdSetLineStippleEnableEXT,
|
|
[VKB_CMD_vkCmdSetLineWidth] = vkb_sv_vkCmdSetLineWidth,
|
|
[VKB_CMD_vkCmdSetLogicOpEXT] = vkb_sv_vkCmdSetLogicOpEXT,
|
|
[VKB_CMD_vkCmdSetLogicOpEnableEXT] = vkb_sv_vkCmdSetLogicOpEnableEXT,
|
|
[VKB_CMD_vkCmdSetPatchControlPointsEXT] = vkb_sv_vkCmdSetPatchControlPointsEXT,
|
|
[VKB_CMD_vkCmdSetPolygonModeEXT] = vkb_sv_vkCmdSetPolygonModeEXT,
|
|
[VKB_CMD_vkCmdSetPrimitiveRestartEnable] = vkb_sv_vkCmdSetPrimitiveRestartEnable,
|
|
[VKB_CMD_vkCmdSetPrimitiveTopology] = vkb_sv_vkCmdSetPrimitiveTopology,
|
|
[VKB_CMD_vkCmdSetProvokingVertexModeEXT] = vkb_sv_vkCmdSetProvokingVertexModeEXT,
|
|
[VKB_CMD_vkCmdSetRasterizationSamplesEXT] = vkb_sv_vkCmdSetRasterizationSamplesEXT,
|
|
[VKB_CMD_vkCmdSetRasterizationStreamEXT] = vkb_sv_vkCmdSetRasterizationStreamEXT,
|
|
[VKB_CMD_vkCmdSetRasterizerDiscardEnable] = vkb_sv_vkCmdSetRasterizerDiscardEnable,
|
|
[VKB_CMD_vkCmdSetRenderingAttachmentLocations] = vkb_sv_vkCmdSetRenderingAttachmentLocations,
|
|
[VKB_CMD_vkCmdSetRenderingInputAttachmentIndices] = vkb_sv_vkCmdSetRenderingInputAttachmentIndices,
|
|
[VKB_CMD_vkCmdSetSampleLocationsEXT] = vkb_sv_vkCmdSetSampleLocationsEXT,
|
|
[VKB_CMD_vkCmdSetSampleLocationsEnableEXT] = vkb_sv_vkCmdSetSampleLocationsEnableEXT,
|
|
[VKB_CMD_vkCmdSetSampleMaskEXT] = vkb_sv_vkCmdSetSampleMaskEXT,
|
|
[VKB_CMD_vkCmdSetScissor] = vkb_sv_vkCmdSetScissor,
|
|
[VKB_CMD_vkCmdSetScissorWithCount] = vkb_sv_vkCmdSetScissorWithCount,
|
|
[VKB_CMD_vkCmdSetStencilCompareMask] = vkb_sv_vkCmdSetStencilCompareMask,
|
|
[VKB_CMD_vkCmdSetStencilOp] = vkb_sv_vkCmdSetStencilOp,
|
|
[VKB_CMD_vkCmdSetStencilReference] = vkb_sv_vkCmdSetStencilReference,
|
|
[VKB_CMD_vkCmdSetStencilTestEnable] = vkb_sv_vkCmdSetStencilTestEnable,
|
|
[VKB_CMD_vkCmdSetStencilWriteMask] = vkb_sv_vkCmdSetStencilWriteMask,
|
|
[VKB_CMD_vkCmdSetTessellationDomainOriginEXT] = vkb_sv_vkCmdSetTessellationDomainOriginEXT,
|
|
[VKB_CMD_vkCmdSetVertexInputEXT] = vkb_sv_vkCmdSetVertexInputEXT,
|
|
[VKB_CMD_vkCmdSetViewport] = vkb_sv_vkCmdSetViewport,
|
|
[VKB_CMD_vkCmdSetViewportWithCount] = vkb_sv_vkCmdSetViewportWithCount,
|
|
[VKB_CMD_vkCmdUpdateBuffer] = vkb_sv_vkCmdUpdateBuffer,
|
|
[VKB_CMD_vkCmdWaitEvents] = vkb_sv_vkCmdWaitEvents,
|
|
[VKB_CMD_vkCmdWaitEvents2] = vkb_sv_vkCmdWaitEvents2,
|
|
[VKB_CMD_vkCmdWriteTimestamp] = vkb_sv_vkCmdWriteTimestamp,
|
|
[VKB_CMD_vkCmdWriteTimestamp2] = vkb_sv_vkCmdWriteTimestamp2,
|
|
[VKB_CMD_vkCreateBuffer] = vkb_sv_vkCreateBuffer,
|
|
[VKB_CMD_vkCreateBufferView] = vkb_sv_vkCreateBufferView,
|
|
[VKB_CMD_vkCreateCommandPool] = vkb_sv_vkCreateCommandPool,
|
|
[VKB_CMD_vkCreateComputePipelines] = vkb_sv_vkCreateComputePipelines,
|
|
[VKB_CMD_vkCreateDescriptorPool] = vkb_sv_vkCreateDescriptorPool,
|
|
[VKB_CMD_vkCreateDescriptorSetLayout] = vkb_sv_vkCreateDescriptorSetLayout,
|
|
[VKB_CMD_vkCreateDescriptorUpdateTemplate] = vkb_sv_vkCreateDescriptorUpdateTemplate,
|
|
[VKB_CMD_vkCreateDevice] = vkb_sv_vkCreateDevice,
|
|
[VKB_CMD_vkCreateEvent] = vkb_sv_vkCreateEvent,
|
|
[VKB_CMD_vkCreateFence] = vkb_sv_vkCreateFence,
|
|
[VKB_CMD_vkCreateFramebuffer] = vkb_sv_vkCreateFramebuffer,
|
|
[VKB_CMD_vkCreateGraphicsPipelines] = vkb_sv_vkCreateGraphicsPipelines,
|
|
[VKB_CMD_vkCreateImage] = vkb_sv_vkCreateImage,
|
|
[VKB_CMD_vkCreateImageView] = vkb_sv_vkCreateImageView,
|
|
[VKB_CMD_vkCreateInstance] = vkb_sv_vkCreateInstance,
|
|
[VKB_CMD_vkCreatePipelineCache] = vkb_sv_vkCreatePipelineCache,
|
|
[VKB_CMD_vkCreatePipelineLayout] = vkb_sv_vkCreatePipelineLayout,
|
|
[VKB_CMD_vkCreateQueryPool] = vkb_sv_vkCreateQueryPool,
|
|
[VKB_CMD_vkCreateRenderPass] = vkb_sv_vkCreateRenderPass,
|
|
[VKB_CMD_vkCreateRenderPass2] = vkb_sv_vkCreateRenderPass2,
|
|
[VKB_CMD_vkCreateSampler] = vkb_sv_vkCreateSampler,
|
|
[VKB_CMD_vkCreateSamplerYcbcrConversion] = vkb_sv_vkCreateSamplerYcbcrConversion,
|
|
[VKB_CMD_vkCreateSemaphore] = vkb_sv_vkCreateSemaphore,
|
|
[VKB_CMD_vkCreateShaderModule] = vkb_sv_vkCreateShaderModule,
|
|
[VKB_CMD_vkCreateTensorARM] = vkb_sv_vkCreateTensorARM,
|
|
[VKB_CMD_vkCreateTensorViewARM] = vkb_sv_vkCreateTensorViewARM,
|
|
[VKB_CMD_vkDestroyBuffer] = vkb_sv_vkDestroyBuffer,
|
|
[VKB_CMD_vkDestroyBufferView] = vkb_sv_vkDestroyBufferView,
|
|
[VKB_CMD_vkDestroyCommandPool] = vkb_sv_vkDestroyCommandPool,
|
|
[VKB_CMD_vkDestroyDescriptorPool] = vkb_sv_vkDestroyDescriptorPool,
|
|
[VKB_CMD_vkDestroyDescriptorSetLayout] = vkb_sv_vkDestroyDescriptorSetLayout,
|
|
[VKB_CMD_vkDestroyDescriptorUpdateTemplate] = vkb_sv_vkDestroyDescriptorUpdateTemplate,
|
|
[VKB_CMD_vkDestroyDevice] = vkb_sv_vkDestroyDevice,
|
|
[VKB_CMD_vkDestroyEvent] = vkb_sv_vkDestroyEvent,
|
|
[VKB_CMD_vkDestroyFence] = vkb_sv_vkDestroyFence,
|
|
[VKB_CMD_vkDestroyFramebuffer] = vkb_sv_vkDestroyFramebuffer,
|
|
[VKB_CMD_vkDestroyImage] = vkb_sv_vkDestroyImage,
|
|
[VKB_CMD_vkDestroyImageView] = vkb_sv_vkDestroyImageView,
|
|
[VKB_CMD_vkDestroyInstance] = vkb_sv_vkDestroyInstance,
|
|
[VKB_CMD_vkDestroyPipeline] = vkb_sv_vkDestroyPipeline,
|
|
[VKB_CMD_vkDestroyPipelineCache] = vkb_sv_vkDestroyPipelineCache,
|
|
[VKB_CMD_vkDestroyPipelineLayout] = vkb_sv_vkDestroyPipelineLayout,
|
|
[VKB_CMD_vkDestroyQueryPool] = vkb_sv_vkDestroyQueryPool,
|
|
[VKB_CMD_vkDestroyRenderPass] = vkb_sv_vkDestroyRenderPass,
|
|
[VKB_CMD_vkDestroySampler] = vkb_sv_vkDestroySampler,
|
|
[VKB_CMD_vkDestroySamplerYcbcrConversion] = vkb_sv_vkDestroySamplerYcbcrConversion,
|
|
[VKB_CMD_vkDestroySemaphore] = vkb_sv_vkDestroySemaphore,
|
|
[VKB_CMD_vkDestroyShaderModule] = vkb_sv_vkDestroyShaderModule,
|
|
[VKB_CMD_vkDestroyTensorARM] = vkb_sv_vkDestroyTensorARM,
|
|
[VKB_CMD_vkDestroyTensorViewARM] = vkb_sv_vkDestroyTensorViewARM,
|
|
[VKB_CMD_vkDeviceWaitIdle] = vkb_sv_vkDeviceWaitIdle,
|
|
[VKB_CMD_vkEndCommandBuffer] = vkb_sv_vkEndCommandBuffer,
|
|
[VKB_CMD_vkEnumerateDeviceExtensionProperties] = vkb_sv_vkEnumerateDeviceExtensionProperties,
|
|
[VKB_CMD_vkEnumerateInstanceExtensionProperties] = vkb_sv_vkEnumerateInstanceExtensionProperties,
|
|
[VKB_CMD_vkEnumerateInstanceLayerProperties] = vkb_sv_vkEnumerateInstanceLayerProperties,
|
|
[VKB_CMD_vkEnumerateInstanceVersion] = vkb_sv_vkEnumerateInstanceVersion,
|
|
[VKB_CMD_vkEnumeratePhysicalDeviceGroups] = vkb_sv_vkEnumeratePhysicalDeviceGroups,
|
|
[VKB_CMD_vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM] = vkb_sv_vkEnumeratePhysicalDeviceQueueFamilyPerformanceCountersByRegionARM,
|
|
[VKB_CMD_vkEnumeratePhysicalDevices] = vkb_sv_vkEnumeratePhysicalDevices,
|
|
[VKB_CMD_vkFlushMappedMemoryRanges] = vkb_sv_vkFlushMappedMemoryRanges,
|
|
[VKB_CMD_vkFreeCommandBuffers] = vkb_sv_vkFreeCommandBuffers,
|
|
[VKB_CMD_vkFreeDescriptorSets] = vkb_sv_vkFreeDescriptorSets,
|
|
[VKB_CMD_vkFreeMemory] = vkb_sv_vkFreeMemory,
|
|
[VKB_CMD_vkGetBufferDeviceAddress] = vkb_sv_vkGetBufferDeviceAddress,
|
|
[VKB_CMD_vkGetBufferMemoryRequirements] = vkb_sv_vkGetBufferMemoryRequirements,
|
|
[VKB_CMD_vkGetBufferMemoryRequirements2] = vkb_sv_vkGetBufferMemoryRequirements2,
|
|
[VKB_CMD_vkGetBufferOpaqueCaptureAddress] = vkb_sv_vkGetBufferOpaqueCaptureAddress,
|
|
[VKB_CMD_vkGetCalibratedTimestampsKHR] = vkb_sv_vkGetCalibratedTimestampsKHR,
|
|
[VKB_CMD_vkGetDescriptorSetLayoutSupport] = vkb_sv_vkGetDescriptorSetLayoutSupport,
|
|
[VKB_CMD_vkGetDeviceBufferMemoryRequirements] = vkb_sv_vkGetDeviceBufferMemoryRequirements,
|
|
[VKB_CMD_vkGetDeviceGroupPeerMemoryFeatures] = vkb_sv_vkGetDeviceGroupPeerMemoryFeatures,
|
|
[VKB_CMD_vkGetDeviceImageMemoryRequirements] = vkb_sv_vkGetDeviceImageMemoryRequirements,
|
|
[VKB_CMD_vkGetDeviceImageSparseMemoryRequirements] = vkb_sv_vkGetDeviceImageSparseMemoryRequirements,
|
|
[VKB_CMD_vkGetDeviceImageSubresourceLayout] = vkb_sv_vkGetDeviceImageSubresourceLayout,
|
|
[VKB_CMD_vkGetDeviceMemoryCommitment] = vkb_sv_vkGetDeviceMemoryCommitment,
|
|
[VKB_CMD_vkGetDeviceMemoryOpaqueCaptureAddress] = vkb_sv_vkGetDeviceMemoryOpaqueCaptureAddress,
|
|
[VKB_CMD_vkGetDeviceQueue] = vkb_sv_vkGetDeviceQueue,
|
|
[VKB_CMD_vkGetDeviceQueue2] = vkb_sv_vkGetDeviceQueue2,
|
|
[VKB_CMD_vkGetDeviceTensorMemoryRequirementsARM] = vkb_sv_vkGetDeviceTensorMemoryRequirementsARM,
|
|
[VKB_CMD_vkGetEventStatus] = vkb_sv_vkGetEventStatus,
|
|
[VKB_CMD_vkGetFenceFdKHR] = vkb_sv_vkGetFenceFdKHR,
|
|
[VKB_CMD_vkGetFenceStatus] = vkb_sv_vkGetFenceStatus,
|
|
[VKB_CMD_vkGetImageDrmFormatModifierPropertiesEXT] = vkb_sv_vkGetImageDrmFormatModifierPropertiesEXT,
|
|
[VKB_CMD_vkGetImageMemoryRequirements] = vkb_sv_vkGetImageMemoryRequirements,
|
|
[VKB_CMD_vkGetImageMemoryRequirements2] = vkb_sv_vkGetImageMemoryRequirements2,
|
|
[VKB_CMD_vkGetImageSparseMemoryRequirements] = vkb_sv_vkGetImageSparseMemoryRequirements,
|
|
[VKB_CMD_vkGetImageSparseMemoryRequirements2] = vkb_sv_vkGetImageSparseMemoryRequirements2,
|
|
[VKB_CMD_vkGetImageSubresourceLayout] = vkb_sv_vkGetImageSubresourceLayout,
|
|
[VKB_CMD_vkGetImageSubresourceLayout2] = vkb_sv_vkGetImageSubresourceLayout2,
|
|
[VKB_CMD_vkGetMemoryFdKHR] = vkb_sv_vkGetMemoryFdKHR,
|
|
[VKB_CMD_vkGetMemoryFdPropertiesKHR] = vkb_sv_vkGetMemoryFdPropertiesKHR,
|
|
[VKB_CMD_vkGetPhysicalDeviceCalibrateableTimeDomainsKHR] = vkb_sv_vkGetPhysicalDeviceCalibrateableTimeDomainsKHR,
|
|
[VKB_CMD_vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR] = vkb_sv_vkGetPhysicalDeviceCooperativeMatrixPropertiesKHR,
|
|
[VKB_CMD_vkGetPhysicalDeviceExternalBufferProperties] = vkb_sv_vkGetPhysicalDeviceExternalBufferProperties,
|
|
[VKB_CMD_vkGetPhysicalDeviceExternalFenceProperties] = vkb_sv_vkGetPhysicalDeviceExternalFenceProperties,
|
|
[VKB_CMD_vkGetPhysicalDeviceExternalSemaphoreProperties] = vkb_sv_vkGetPhysicalDeviceExternalSemaphoreProperties,
|
|
[VKB_CMD_vkGetPhysicalDeviceExternalTensorPropertiesARM] = vkb_sv_vkGetPhysicalDeviceExternalTensorPropertiesARM,
|
|
[VKB_CMD_vkGetPhysicalDeviceFeatures] = vkb_sv_vkGetPhysicalDeviceFeatures,
|
|
[VKB_CMD_vkGetPhysicalDeviceFeatures2] = vkb_sv_vkGetPhysicalDeviceFeatures2,
|
|
[VKB_CMD_vkGetPhysicalDeviceFormatProperties] = vkb_sv_vkGetPhysicalDeviceFormatProperties,
|
|
[VKB_CMD_vkGetPhysicalDeviceFormatProperties2] = vkb_sv_vkGetPhysicalDeviceFormatProperties2,
|
|
[VKB_CMD_vkGetPhysicalDeviceFragmentShadingRatesKHR] = vkb_sv_vkGetPhysicalDeviceFragmentShadingRatesKHR,
|
|
[VKB_CMD_vkGetPhysicalDeviceImageFormatProperties] = vkb_sv_vkGetPhysicalDeviceImageFormatProperties,
|
|
[VKB_CMD_vkGetPhysicalDeviceImageFormatProperties2] = vkb_sv_vkGetPhysicalDeviceImageFormatProperties2,
|
|
[VKB_CMD_vkGetPhysicalDeviceMemoryProperties] = vkb_sv_vkGetPhysicalDeviceMemoryProperties,
|
|
[VKB_CMD_vkGetPhysicalDeviceMemoryProperties2] = vkb_sv_vkGetPhysicalDeviceMemoryProperties2,
|
|
[VKB_CMD_vkGetPhysicalDeviceMultisamplePropertiesEXT] = vkb_sv_vkGetPhysicalDeviceMultisamplePropertiesEXT,
|
|
[VKB_CMD_vkGetPhysicalDeviceProperties] = vkb_sv_vkGetPhysicalDeviceProperties,
|
|
[VKB_CMD_vkGetPhysicalDeviceProperties2] = vkb_sv_vkGetPhysicalDeviceProperties2,
|
|
[VKB_CMD_vkGetPhysicalDeviceQueueFamilyProperties] = vkb_sv_vkGetPhysicalDeviceQueueFamilyProperties,
|
|
[VKB_CMD_vkGetPhysicalDeviceQueueFamilyProperties2] = vkb_sv_vkGetPhysicalDeviceQueueFamilyProperties2,
|
|
[VKB_CMD_vkGetPhysicalDeviceSparseImageFormatProperties] = vkb_sv_vkGetPhysicalDeviceSparseImageFormatProperties,
|
|
[VKB_CMD_vkGetPhysicalDeviceSparseImageFormatProperties2] = vkb_sv_vkGetPhysicalDeviceSparseImageFormatProperties2,
|
|
[VKB_CMD_vkGetPhysicalDeviceToolProperties] = vkb_sv_vkGetPhysicalDeviceToolProperties,
|
|
[VKB_CMD_vkGetPipelineCacheData] = vkb_sv_vkGetPipelineCacheData,
|
|
[VKB_CMD_vkGetQueryPoolResults] = vkb_sv_vkGetQueryPoolResults,
|
|
[VKB_CMD_vkGetRenderAreaGranularity] = vkb_sv_vkGetRenderAreaGranularity,
|
|
[VKB_CMD_vkGetRenderingAreaGranularity] = vkb_sv_vkGetRenderingAreaGranularity,
|
|
[VKB_CMD_vkGetSemaphoreCounterValue] = vkb_sv_vkGetSemaphoreCounterValue,
|
|
[VKB_CMD_vkGetSemaphoreFdKHR] = vkb_sv_vkGetSemaphoreFdKHR,
|
|
[VKB_CMD_vkGetShaderModuleCreateInfoIdentifierEXT] = vkb_sv_vkGetShaderModuleCreateInfoIdentifierEXT,
|
|
[VKB_CMD_vkGetShaderModuleIdentifierEXT] = vkb_sv_vkGetShaderModuleIdentifierEXT,
|
|
[VKB_CMD_vkGetTensorMemoryRequirementsARM] = vkb_sv_vkGetTensorMemoryRequirementsARM,
|
|
[VKB_CMD_vkImportFenceFdKHR] = vkb_sv_vkImportFenceFdKHR,
|
|
[VKB_CMD_vkImportSemaphoreFdKHR] = vkb_sv_vkImportSemaphoreFdKHR,
|
|
[VKB_CMD_vkInvalidateMappedMemoryRanges] = vkb_sv_vkInvalidateMappedMemoryRanges,
|
|
[VKB_CMD_vkMergePipelineCaches] = vkb_sv_vkMergePipelineCaches,
|
|
[VKB_CMD_vkQueueBindSparse] = vkb_sv_vkQueueBindSparse,
|
|
[VKB_CMD_vkQueueSubmit] = vkb_sv_vkQueueSubmit,
|
|
[VKB_CMD_vkQueueSubmit2] = vkb_sv_vkQueueSubmit2,
|
|
[VKB_CMD_vkQueueWaitIdle] = vkb_sv_vkQueueWaitIdle,
|
|
[VKB_CMD_vkResetCommandBuffer] = vkb_sv_vkResetCommandBuffer,
|
|
[VKB_CMD_vkResetCommandPool] = vkb_sv_vkResetCommandPool,
|
|
[VKB_CMD_vkResetDescriptorPool] = vkb_sv_vkResetDescriptorPool,
|
|
[VKB_CMD_vkResetEvent] = vkb_sv_vkResetEvent,
|
|
[VKB_CMD_vkResetFences] = vkb_sv_vkResetFences,
|
|
[VKB_CMD_vkResetQueryPool] = vkb_sv_vkResetQueryPool,
|
|
[VKB_CMD_vkSetDeviceMemoryPriorityEXT] = vkb_sv_vkSetDeviceMemoryPriorityEXT,
|
|
[VKB_CMD_vkSetEvent] = vkb_sv_vkSetEvent,
|
|
[VKB_CMD_vkSignalSemaphore] = vkb_sv_vkSignalSemaphore,
|
|
[VKB_CMD_vkTrimCommandPool] = vkb_sv_vkTrimCommandPool,
|
|
[VKB_CMD_vkUpdateDescriptorSets] = vkb_sv_vkUpdateDescriptorSets,
|
|
[VKB_CMD_vkWaitForFences] = vkb_sv_vkWaitForFences,
|
|
[VKB_CMD_vkWaitSemaphores] = vkb_sv_vkWaitSemaphores,
|
|
};
|