| // Copyright (C) 2018 The Android Open Source Project |
| // Copyright (C) 2018 Google Inc. |
| // |
| // Licensed under the Apache License, Version 2.0 (the "License"); |
| // you may not use this file except in compliance with the License. |
| // You may obtain a copy of the License at |
| // |
| // http://www.apache.org/licenses/LICENSE-2.0 |
| // |
| // Unless required by applicable law or agreed to in writing, software |
| // distributed under the License is distributed on an "AS IS" BASIS, |
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| // See the License for the specific language governing permissions and |
| // limitations under the License. |
| |
| // Autogenerated module goldfish_vk_marshaling_guest |
| // |
| // (impl) generated by registry/vulkan/scripts/genvk.py -registry registry/vulkan/xml/vk.xml cereal |
| // -o ../vulkan-cereal/stream-servers/vulkan/cereal |
| // |
| // Please do not modify directly; |
| // re-run gfxstream-protocols/scripts/generate-vulkan-sources.sh, |
| // or directly from Python by defining: |
| // VULKAN_REGISTRY_XML_DIR : Directory containing vk.xml |
| // VULKAN_REGISTRY_SCRIPTS_DIR : Directory containing genvk.py |
| // CEREAL_OUTPUT_DIR: Where to put the generated sources. |
| // |
| // python3 $VULKAN_REGISTRY_SCRIPTS_DIR/genvk.py -registry $VULKAN_REGISTRY_XML_DIR/vk.xml cereal -o |
| // $CEREAL_OUTPUT_DIR |
| // |
| |
| #include "goldfish_vk_marshaling_guest.h" |
| |
| #include <cstring> |
| |
| #include "goldfish_vk_extension_structs_guest.h" |
| #include "goldfish_vk_private_defs.h" |
| |
| namespace gfxstream { |
| namespace vk { |
| |
| void marshal_extension_struct(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const void* structExtension); |
| |
| void unmarshal_extension_struct(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| void* structExtension_out); |
| |
| #ifdef VK_VERSION_1_0 |
| void marshal_VkExtent2D(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExtent2D* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->width, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->height, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkExtent2D(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExtent2D* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->width, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->height, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkExtent3D(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExtent3D* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->width, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->height, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->depth, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkExtent3D(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExtent3D* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->width, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->height, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->depth, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkOffset2D(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkOffset2D* forMarshaling) { |
| (void)rootType; |
| vkStream->write((int32_t*)&forMarshaling->x, sizeof(int32_t)); |
| vkStream->write((int32_t*)&forMarshaling->y, sizeof(int32_t)); |
| } |
| |
| void unmarshal_VkOffset2D(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkOffset2D* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((int32_t*)&forUnmarshaling->x, sizeof(int32_t)); |
| vkStream->read((int32_t*)&forUnmarshaling->y, sizeof(int32_t)); |
| } |
| |
| void marshal_VkOffset3D(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkOffset3D* forMarshaling) { |
| (void)rootType; |
| vkStream->write((int32_t*)&forMarshaling->x, sizeof(int32_t)); |
| vkStream->write((int32_t*)&forMarshaling->y, sizeof(int32_t)); |
| vkStream->write((int32_t*)&forMarshaling->z, sizeof(int32_t)); |
| } |
| |
| void unmarshal_VkOffset3D(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkOffset3D* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((int32_t*)&forUnmarshaling->x, sizeof(int32_t)); |
| vkStream->read((int32_t*)&forUnmarshaling->y, sizeof(int32_t)); |
| vkStream->read((int32_t*)&forUnmarshaling->z, sizeof(int32_t)); |
| } |
| |
| void marshal_VkRect2D(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRect2D* forMarshaling) { |
| (void)rootType; |
| marshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forMarshaling->offset)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->extent)); |
| } |
| |
| void unmarshal_VkRect2D(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRect2D* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forUnmarshaling->offset)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->extent)); |
| } |
| |
| void marshal_VkBaseInStructure(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBaseInStructure* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| } |
| |
| void unmarshal_VkBaseInStructure(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBaseInStructure* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| } |
| |
| void marshal_VkBaseOutStructure(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBaseOutStructure* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| } |
| |
| void unmarshal_VkBaseOutStructure(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBaseOutStructure* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| } |
| |
| void marshal_VkBufferMemoryBarrier(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferMemoryBarrier* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkAccessFlags*)&forMarshaling->srcAccessMask, sizeof(VkAccessFlags)); |
| vkStream->write((VkAccessFlags*)&forMarshaling->dstAccessMask, sizeof(VkAccessFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->srcQueueFamilyIndex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->dstQueueFamilyIndex, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkBufferMemoryBarrier(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferMemoryBarrier* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkAccessFlags*)&forUnmarshaling->srcAccessMask, sizeof(VkAccessFlags)); |
| vkStream->read((VkAccessFlags*)&forUnmarshaling->dstAccessMask, sizeof(VkAccessFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->srcQueueFamilyIndex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstQueueFamilyIndex, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkDispatchIndirectCommand(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDispatchIndirectCommand* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->x, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->y, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->z, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDispatchIndirectCommand(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDispatchIndirectCommand* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->x, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->y, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->z, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDrawIndexedIndirectCommand(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDrawIndexedIndirectCommand* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->indexCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->instanceCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->firstIndex, sizeof(uint32_t)); |
| vkStream->write((int32_t*)&forMarshaling->vertexOffset, sizeof(int32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->firstInstance, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDrawIndexedIndirectCommand(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDrawIndexedIndirectCommand* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->indexCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->instanceCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->firstIndex, sizeof(uint32_t)); |
| vkStream->read((int32_t*)&forUnmarshaling->vertexOffset, sizeof(int32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->firstInstance, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDrawIndirectCommand(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDrawIndirectCommand* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->vertexCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->instanceCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->firstVertex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->firstInstance, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDrawIndirectCommand(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDrawIndirectCommand* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->vertexCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->instanceCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->firstVertex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->firstInstance, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkImageSubresourceRange(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageSubresourceRange* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkImageAspectFlags*)&forMarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->baseMipLevel, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->levelCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->baseArrayLayer, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->layerCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkImageSubresourceRange(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageSubresourceRange* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkImageAspectFlags*)&forUnmarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->baseMipLevel, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->levelCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->baseArrayLayer, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->layerCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkImageMemoryBarrier(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageMemoryBarrier* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkAccessFlags*)&forMarshaling->srcAccessMask, sizeof(VkAccessFlags)); |
| vkStream->write((VkAccessFlags*)&forMarshaling->dstAccessMask, sizeof(VkAccessFlags)); |
| vkStream->write((VkImageLayout*)&forMarshaling->oldLayout, sizeof(VkImageLayout)); |
| vkStream->write((VkImageLayout*)&forMarshaling->newLayout, sizeof(VkImageLayout)); |
| vkStream->write((uint32_t*)&forMarshaling->srcQueueFamilyIndex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->dstQueueFamilyIndex, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->image, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| marshal_VkImageSubresourceRange(vkStream, rootType, |
| (VkImageSubresourceRange*)(&forMarshaling->subresourceRange)); |
| } |
| |
| void unmarshal_VkImageMemoryBarrier(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageMemoryBarrier* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkAccessFlags*)&forUnmarshaling->srcAccessMask, sizeof(VkAccessFlags)); |
| vkStream->read((VkAccessFlags*)&forUnmarshaling->dstAccessMask, sizeof(VkAccessFlags)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->oldLayout, sizeof(VkImageLayout)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->newLayout, sizeof(VkImageLayout)); |
| vkStream->read((uint32_t*)&forUnmarshaling->srcQueueFamilyIndex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstQueueFamilyIndex, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->image, 1); |
| unmarshal_VkImageSubresourceRange( |
| vkStream, rootType, (VkImageSubresourceRange*)(&forUnmarshaling->subresourceRange)); |
| } |
| |
| void marshal_VkMemoryBarrier(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryBarrier* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkAccessFlags*)&forMarshaling->srcAccessMask, sizeof(VkAccessFlags)); |
| vkStream->write((VkAccessFlags*)&forMarshaling->dstAccessMask, sizeof(VkAccessFlags)); |
| } |
| |
| void unmarshal_VkMemoryBarrier(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryBarrier* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkAccessFlags*)&forUnmarshaling->srcAccessMask, sizeof(VkAccessFlags)); |
| vkStream->read((VkAccessFlags*)&forUnmarshaling->dstAccessMask, sizeof(VkAccessFlags)); |
| } |
| |
| void marshal_VkPipelineCacheHeaderVersionOne(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineCacheHeaderVersionOne* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->headerSize, sizeof(uint32_t)); |
| vkStream->write((VkPipelineCacheHeaderVersion*)&forMarshaling->headerVersion, |
| sizeof(VkPipelineCacheHeaderVersion)); |
| vkStream->write((uint32_t*)&forMarshaling->vendorID, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->deviceID, sizeof(uint32_t)); |
| vkStream->write((uint8_t*)forMarshaling->pipelineCacheUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| } |
| |
| void unmarshal_VkPipelineCacheHeaderVersionOne(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPipelineCacheHeaderVersionOne* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->headerSize, sizeof(uint32_t)); |
| vkStream->read((VkPipelineCacheHeaderVersion*)&forUnmarshaling->headerVersion, |
| sizeof(VkPipelineCacheHeaderVersion)); |
| vkStream->read((uint32_t*)&forUnmarshaling->vendorID, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceID, sizeof(uint32_t)); |
| vkStream->read((uint8_t*)forUnmarshaling->pipelineCacheUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| } |
| |
| void marshal_VkAllocationCallbacks(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAllocationCallbacks* forMarshaling) { |
| (void)rootType; |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pUserData; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pUserData) { |
| vkStream->write((void*)forMarshaling->pUserData, sizeof(uint8_t)); |
| } |
| uint64_t cgen_var_1 = (uint64_t)forMarshaling->pfnAllocation; |
| vkStream->putBe64(cgen_var_1); |
| uint64_t cgen_var_2 = (uint64_t)forMarshaling->pfnReallocation; |
| vkStream->putBe64(cgen_var_2); |
| uint64_t cgen_var_3 = (uint64_t)forMarshaling->pfnFree; |
| vkStream->putBe64(cgen_var_3); |
| uint64_t cgen_var_4 = (uint64_t)forMarshaling->pfnInternalAllocation; |
| vkStream->putBe64(cgen_var_4); |
| uint64_t cgen_var_5 = (uint64_t)forMarshaling->pfnInternalFree; |
| vkStream->putBe64(cgen_var_5); |
| } |
| |
| void unmarshal_VkAllocationCallbacks(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAllocationCallbacks* forUnmarshaling) { |
| (void)rootType; |
| // WARNING PTR CHECK |
| void* check_pUserData; |
| check_pUserData = (void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pUserData) { |
| if (!(check_pUserData)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pUserData inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pUserData, sizeof(uint8_t)); |
| } |
| forUnmarshaling->pfnAllocation = (PFN_vkAllocationFunction)vkStream->getBe64(); |
| forUnmarshaling->pfnReallocation = (PFN_vkReallocationFunction)vkStream->getBe64(); |
| forUnmarshaling->pfnFree = (PFN_vkFreeFunction)vkStream->getBe64(); |
| forUnmarshaling->pfnInternalAllocation = |
| (PFN_vkInternalAllocationNotification)vkStream->getBe64(); |
| forUnmarshaling->pfnInternalFree = (PFN_vkInternalFreeNotification)vkStream->getBe64(); |
| } |
| |
| void marshal_VkApplicationInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkApplicationInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pApplicationName; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pApplicationName) { |
| vkStream->putString(forMarshaling->pApplicationName); |
| } |
| } else { |
| vkStream->putString(forMarshaling->pApplicationName); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->applicationVersion, sizeof(uint32_t)); |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pEngineName; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pEngineName) { |
| vkStream->putString(forMarshaling->pEngineName); |
| } |
| } else { |
| vkStream->putString(forMarshaling->pEngineName); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->engineVersion, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->apiVersion, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkApplicationInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkApplicationInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| const char* check_pApplicationName; |
| check_pApplicationName = (const char*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pApplicationName) { |
| if (!(check_pApplicationName)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pApplicationName inconsistent between guest and " |
| "host\n"); |
| } |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pApplicationName); |
| } |
| } else { |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pApplicationName); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->applicationVersion, sizeof(uint32_t)); |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| const char* check_pEngineName; |
| check_pEngineName = (const char*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pEngineName) { |
| if (!(check_pEngineName)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pEngineName inconsistent between guest and host\n"); |
| } |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pEngineName); |
| } |
| } else { |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pEngineName); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->engineVersion, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->apiVersion, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkFormatProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFormatProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkFormatFeatureFlags*)&forMarshaling->linearTilingFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| vkStream->write((VkFormatFeatureFlags*)&forMarshaling->optimalTilingFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| vkStream->write((VkFormatFeatureFlags*)&forMarshaling->bufferFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| } |
| |
| void unmarshal_VkFormatProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFormatProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkFormatFeatureFlags*)&forUnmarshaling->linearTilingFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| vkStream->read((VkFormatFeatureFlags*)&forUnmarshaling->optimalTilingFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| vkStream->read((VkFormatFeatureFlags*)&forUnmarshaling->bufferFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| } |
| |
| void marshal_VkImageFormatProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageFormatProperties* forMarshaling) { |
| (void)rootType; |
| marshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forMarshaling->maxExtent)); |
| vkStream->write((uint32_t*)&forMarshaling->maxMipLevels, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxArrayLayers, sizeof(uint32_t)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->sampleCounts, sizeof(VkSampleCountFlags)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->maxResourceSize, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkImageFormatProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageFormatProperties* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forUnmarshaling->maxExtent)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMipLevels, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxArrayLayers, sizeof(uint32_t)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->sampleCounts, sizeof(VkSampleCountFlags)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->maxResourceSize, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkInstanceCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkInstanceCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkInstanceCreateFlags*)&forMarshaling->flags, sizeof(VkInstanceCreateFlags)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pApplicationInfo; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pApplicationInfo) { |
| marshal_VkApplicationInfo(vkStream, rootType, |
| (const VkApplicationInfo*)(forMarshaling->pApplicationInfo)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->enabledLayerCount, sizeof(uint32_t)); |
| saveStringArray(vkStream, forMarshaling->ppEnabledLayerNames, forMarshaling->enabledLayerCount); |
| vkStream->write((uint32_t*)&forMarshaling->enabledExtensionCount, sizeof(uint32_t)); |
| saveStringArray(vkStream, forMarshaling->ppEnabledExtensionNames, |
| forMarshaling->enabledExtensionCount); |
| } |
| |
| void unmarshal_VkInstanceCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkInstanceCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkInstanceCreateFlags*)&forUnmarshaling->flags, sizeof(VkInstanceCreateFlags)); |
| // WARNING PTR CHECK |
| const VkApplicationInfo* check_pApplicationInfo; |
| check_pApplicationInfo = (const VkApplicationInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pApplicationInfo) { |
| if (!(check_pApplicationInfo)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pApplicationInfo inconsistent between guest and host\n"); |
| } |
| unmarshal_VkApplicationInfo(vkStream, rootType, |
| (VkApplicationInfo*)(forUnmarshaling->pApplicationInfo)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->enabledLayerCount, sizeof(uint32_t)); |
| vkStream->loadStringArrayInPlace((char***)&forUnmarshaling->ppEnabledLayerNames); |
| vkStream->read((uint32_t*)&forUnmarshaling->enabledExtensionCount, sizeof(uint32_t)); |
| vkStream->loadStringArrayInPlace((char***)&forUnmarshaling->ppEnabledExtensionNames); |
| } |
| |
| void marshal_VkMemoryHeap(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryHeap* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->write((VkMemoryHeapFlags*)&forMarshaling->flags, sizeof(VkMemoryHeapFlags)); |
| } |
| |
| void unmarshal_VkMemoryHeap(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryHeap* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->read((VkMemoryHeapFlags*)&forUnmarshaling->flags, sizeof(VkMemoryHeapFlags)); |
| } |
| |
| void marshal_VkMemoryType(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryType* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkMemoryPropertyFlags*)&forMarshaling->propertyFlags, |
| sizeof(VkMemoryPropertyFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->heapIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkMemoryType(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryType* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkMemoryPropertyFlags*)&forUnmarshaling->propertyFlags, |
| sizeof(VkMemoryPropertyFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->heapIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceFeatures(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkBool32*)&forMarshaling->robustBufferAccess, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fullDrawIndexUint32, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->imageCubeArray, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->independentBlend, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->geometryShader, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->tessellationShader, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sampleRateShading, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->dualSrcBlend, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->logicOp, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->multiDrawIndirect, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->drawIndirectFirstInstance, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->depthClamp, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->depthBiasClamp, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fillModeNonSolid, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->depthBounds, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->wideLines, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->largePoints, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->alphaToOne, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->multiViewport, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->samplerAnisotropy, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->textureCompressionETC2, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->textureCompressionASTC_LDR, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->textureCompressionBC, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->occlusionQueryPrecise, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->pipelineStatisticsQuery, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->vertexPipelineStoresAndAtomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentStoresAndAtomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderTessellationAndGeometryPointSize, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderImageGatherExtended, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageImageExtendedFormats, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageImageMultisample, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageImageReadWithoutFormat, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageImageWriteWithoutFormat, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderUniformBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSampledImageArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageImageArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderClipDistance, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderCullDistance, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderFloat64, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderInt64, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderInt16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderResourceResidency, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderResourceMinLod, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseBinding, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseResidencyBuffer, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseResidencyImage2D, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseResidencyImage3D, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseResidency2Samples, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseResidency4Samples, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseResidency8Samples, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseResidency16Samples, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseResidencyAliased, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->variableMultisampleRate, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->inheritedQueries, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFeatures(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkBool32*)&forUnmarshaling->robustBufferAccess, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fullDrawIndexUint32, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->imageCubeArray, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->independentBlend, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->geometryShader, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->tessellationShader, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sampleRateShading, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->dualSrcBlend, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->logicOp, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->multiDrawIndirect, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->drawIndirectFirstInstance, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->depthClamp, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->depthBiasClamp, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fillModeNonSolid, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->depthBounds, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->wideLines, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->largePoints, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->alphaToOne, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->multiViewport, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->samplerAnisotropy, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->textureCompressionETC2, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->textureCompressionASTC_LDR, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->textureCompressionBC, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->occlusionQueryPrecise, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->pipelineStatisticsQuery, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vertexPipelineStoresAndAtomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentStoresAndAtomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderTessellationAndGeometryPointSize, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderImageGatherExtended, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageImageExtendedFormats, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageImageMultisample, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageImageReadWithoutFormat, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageImageWriteWithoutFormat, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderUniformBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSampledImageArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageImageArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderClipDistance, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderCullDistance, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderFloat64, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderInt64, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderInt16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderResourceResidency, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderResourceMinLod, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseBinding, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseResidencyBuffer, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseResidencyImage2D, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseResidencyImage3D, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseResidency2Samples, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseResidency4Samples, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseResidency8Samples, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseResidency16Samples, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseResidencyAliased, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->variableMultisampleRate, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->inheritedQueries, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceLimits(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceLimits* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->maxImageDimension1D, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxImageDimension2D, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxImageDimension3D, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxImageDimensionCube, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxImageArrayLayers, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTexelBufferElements, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxUniformBufferRange, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxStorageBufferRange, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPushConstantsSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxMemoryAllocationCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxSamplerAllocationCount, sizeof(uint32_t)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->bufferImageGranularity, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->sparseAddressSpaceSize, sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->maxBoundDescriptorSets, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorSamplers, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUniformBuffers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorStorageBuffers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorSampledImages, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorStorageImages, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorInputAttachments, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageResources, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetSamplers, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUniformBuffers, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUniformBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetStorageBuffers, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetStorageBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetSampledImages, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetStorageImages, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetInputAttachments, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxVertexInputAttributes, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxVertexInputBindings, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxVertexInputAttributeOffset, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxVertexInputBindingStride, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxVertexOutputComponents, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTessellationGenerationLevel, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTessellationPatchSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTessellationControlPerVertexInputComponents, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTessellationControlPerVertexOutputComponents, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTessellationControlPerPatchOutputComponents, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTessellationControlTotalOutputComponents, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTessellationEvaluationInputComponents, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTessellationEvaluationOutputComponents, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxGeometryShaderInvocations, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxGeometryInputComponents, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxGeometryOutputComponents, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxGeometryOutputVertices, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxGeometryTotalOutputComponents, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxFragmentInputComponents, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxFragmentOutputAttachments, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxFragmentDualSrcAttachments, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxFragmentCombinedOutputResources, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxComputeSharedMemorySize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)forMarshaling->maxComputeWorkGroupCount, 3 * sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxComputeWorkGroupInvocations, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)forMarshaling->maxComputeWorkGroupSize, 3 * sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->subPixelPrecisionBits, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->subTexelPrecisionBits, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->mipmapPrecisionBits, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDrawIndexedIndexValue, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDrawIndirectCount, sizeof(uint32_t)); |
| vkStream->write((float*)&forMarshaling->maxSamplerLodBias, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxSamplerAnisotropy, sizeof(float)); |
| vkStream->write((uint32_t*)&forMarshaling->maxViewports, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)forMarshaling->maxViewportDimensions, 2 * sizeof(uint32_t)); |
| vkStream->write((float*)forMarshaling->viewportBoundsRange, 2 * sizeof(float)); |
| vkStream->write((uint32_t*)&forMarshaling->viewportSubPixelBits, sizeof(uint32_t)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->minMemoryMapAlignment; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((VkDeviceSize*)&forMarshaling->minTexelBufferOffsetAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->minUniformBufferOffsetAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->minStorageBufferOffsetAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->write((int32_t*)&forMarshaling->minTexelOffset, sizeof(int32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTexelOffset, sizeof(uint32_t)); |
| vkStream->write((int32_t*)&forMarshaling->minTexelGatherOffset, sizeof(int32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTexelGatherOffset, sizeof(uint32_t)); |
| vkStream->write((float*)&forMarshaling->minInterpolationOffset, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxInterpolationOffset, sizeof(float)); |
| vkStream->write((uint32_t*)&forMarshaling->subPixelInterpolationOffsetBits, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxFramebufferWidth, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxFramebufferHeight, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxFramebufferLayers, sizeof(uint32_t)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->framebufferColorSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->framebufferDepthSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->framebufferStencilSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->framebufferNoAttachmentsSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->maxColorAttachments, sizeof(uint32_t)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->sampledImageColorSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->sampledImageIntegerSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->sampledImageDepthSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->sampledImageStencilSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->storageImageSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->maxSampleMaskWords, sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->timestampComputeAndGraphics, sizeof(VkBool32)); |
| vkStream->write((float*)&forMarshaling->timestampPeriod, sizeof(float)); |
| vkStream->write((uint32_t*)&forMarshaling->maxClipDistances, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxCullDistances, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxCombinedClipAndCullDistances, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->discreteQueuePriorities, sizeof(uint32_t)); |
| vkStream->write((float*)forMarshaling->pointSizeRange, 2 * sizeof(float)); |
| vkStream->write((float*)forMarshaling->lineWidthRange, 2 * sizeof(float)); |
| vkStream->write((float*)&forMarshaling->pointSizeGranularity, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->lineWidthGranularity, sizeof(float)); |
| vkStream->write((VkBool32*)&forMarshaling->strictLines, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->standardSampleLocations, sizeof(VkBool32)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->optimalBufferCopyOffsetAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->optimalBufferCopyRowPitchAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->nonCoherentAtomSize, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceLimits(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceLimits* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->maxImageDimension1D, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxImageDimension2D, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxImageDimension3D, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxImageDimensionCube, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxImageArrayLayers, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTexelBufferElements, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxUniformBufferRange, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxStorageBufferRange, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPushConstantsSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMemoryAllocationCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSamplerAllocationCount, sizeof(uint32_t)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->bufferImageGranularity, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->sparseAddressSpaceSize, sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxBoundDescriptorSets, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorSamplers, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUniformBuffers, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorStorageBuffers, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorSampledImages, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorStorageImages, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorInputAttachments, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageResources, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetSamplers, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUniformBuffers, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUniformBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetStorageBuffers, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetStorageBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetSampledImages, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetStorageImages, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetInputAttachments, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxVertexInputAttributes, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxVertexInputBindings, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxVertexInputAttributeOffset, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxVertexInputBindingStride, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxVertexOutputComponents, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTessellationGenerationLevel, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTessellationPatchSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTessellationControlPerVertexInputComponents, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTessellationControlPerVertexOutputComponents, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTessellationControlPerPatchOutputComponents, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTessellationControlTotalOutputComponents, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTessellationEvaluationInputComponents, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTessellationEvaluationOutputComponents, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxGeometryShaderInvocations, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxGeometryInputComponents, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxGeometryOutputComponents, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxGeometryOutputVertices, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxGeometryTotalOutputComponents, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxFragmentInputComponents, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxFragmentOutputAttachments, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxFragmentDualSrcAttachments, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxFragmentCombinedOutputResources, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxComputeSharedMemorySize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->maxComputeWorkGroupCount, 3 * sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxComputeWorkGroupInvocations, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->maxComputeWorkGroupSize, 3 * sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->subPixelPrecisionBits, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->subTexelPrecisionBits, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->mipmapPrecisionBits, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDrawIndexedIndexValue, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDrawIndirectCount, sizeof(uint32_t)); |
| vkStream->read((float*)&forUnmarshaling->maxSamplerLodBias, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxSamplerAnisotropy, sizeof(float)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxViewports, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->maxViewportDimensions, 2 * sizeof(uint32_t)); |
| vkStream->read((float*)forUnmarshaling->viewportBoundsRange, 2 * sizeof(float)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewportSubPixelBits, sizeof(uint32_t)); |
| forUnmarshaling->minMemoryMapAlignment = (size_t)vkStream->getBe64(); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->minTexelBufferOffsetAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->minUniformBufferOffsetAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->minStorageBufferOffsetAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->read((int32_t*)&forUnmarshaling->minTexelOffset, sizeof(int32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTexelOffset, sizeof(uint32_t)); |
| vkStream->read((int32_t*)&forUnmarshaling->minTexelGatherOffset, sizeof(int32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTexelGatherOffset, sizeof(uint32_t)); |
| vkStream->read((float*)&forUnmarshaling->minInterpolationOffset, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxInterpolationOffset, sizeof(float)); |
| vkStream->read((uint32_t*)&forUnmarshaling->subPixelInterpolationOffsetBits, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxFramebufferWidth, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxFramebufferHeight, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxFramebufferLayers, sizeof(uint32_t)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->framebufferColorSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->framebufferDepthSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->framebufferStencilSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->framebufferNoAttachmentsSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxColorAttachments, sizeof(uint32_t)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->sampledImageColorSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->sampledImageIntegerSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->sampledImageDepthSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->sampledImageStencilSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->storageImageSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSampleMaskWords, sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->timestampComputeAndGraphics, sizeof(VkBool32)); |
| vkStream->read((float*)&forUnmarshaling->timestampPeriod, sizeof(float)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxClipDistances, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxCullDistances, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxCombinedClipAndCullDistances, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->discreteQueuePriorities, sizeof(uint32_t)); |
| vkStream->read((float*)forUnmarshaling->pointSizeRange, 2 * sizeof(float)); |
| vkStream->read((float*)forUnmarshaling->lineWidthRange, 2 * sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->pointSizeGranularity, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->lineWidthGranularity, sizeof(float)); |
| vkStream->read((VkBool32*)&forUnmarshaling->strictLines, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->standardSampleLocations, sizeof(VkBool32)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->optimalBufferCopyOffsetAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->optimalBufferCopyRowPitchAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->nonCoherentAtomSize, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkPhysicalDeviceMemoryProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMemoryProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->memoryTypeCount, sizeof(uint32_t)); |
| for (uint32_t i = 0; i < (uint32_t)VK_MAX_MEMORY_TYPES; ++i) { |
| marshal_VkMemoryType(vkStream, rootType, (VkMemoryType*)(forMarshaling->memoryTypes + i)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->memoryHeapCount, sizeof(uint32_t)); |
| for (uint32_t i = 0; i < (uint32_t)VK_MAX_MEMORY_HEAPS; ++i) { |
| marshal_VkMemoryHeap(vkStream, rootType, (VkMemoryHeap*)(forMarshaling->memoryHeaps + i)); |
| } |
| } |
| |
| void unmarshal_VkPhysicalDeviceMemoryProperties(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPhysicalDeviceMemoryProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryTypeCount, sizeof(uint32_t)); |
| for (uint32_t i = 0; i < (uint32_t)VK_MAX_MEMORY_TYPES; ++i) { |
| unmarshal_VkMemoryType(vkStream, rootType, |
| (VkMemoryType*)(forUnmarshaling->memoryTypes + i)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryHeapCount, sizeof(uint32_t)); |
| for (uint32_t i = 0; i < (uint32_t)VK_MAX_MEMORY_HEAPS; ++i) { |
| unmarshal_VkMemoryHeap(vkStream, rootType, |
| (VkMemoryHeap*)(forUnmarshaling->memoryHeaps + i)); |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceSparseProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSparseProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkBool32*)&forMarshaling->residencyStandard2DBlockShape, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->residencyStandard2DMultisampleBlockShape, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->residencyStandard3DBlockShape, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->residencyAlignedMipSize, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->residencyNonResidentStrict, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSparseProperties(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPhysicalDeviceSparseProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkBool32*)&forUnmarshaling->residencyStandard2DBlockShape, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->residencyStandard2DMultisampleBlockShape, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->residencyStandard3DBlockShape, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->residencyAlignedMipSize, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->residencyNonResidentStrict, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->apiVersion, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->driverVersion, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->vendorID, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->deviceID, sizeof(uint32_t)); |
| vkStream->write((VkPhysicalDeviceType*)&forMarshaling->deviceType, |
| sizeof(VkPhysicalDeviceType)); |
| vkStream->write((char*)forMarshaling->deviceName, |
| VK_MAX_PHYSICAL_DEVICE_NAME_SIZE * sizeof(char)); |
| vkStream->write((uint8_t*)forMarshaling->pipelineCacheUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| marshal_VkPhysicalDeviceLimits(vkStream, rootType, |
| (VkPhysicalDeviceLimits*)(&forMarshaling->limits)); |
| marshal_VkPhysicalDeviceSparseProperties( |
| vkStream, rootType, (VkPhysicalDeviceSparseProperties*)(&forMarshaling->sparseProperties)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->apiVersion, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->driverVersion, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->vendorID, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceID, sizeof(uint32_t)); |
| vkStream->read((VkPhysicalDeviceType*)&forUnmarshaling->deviceType, |
| sizeof(VkPhysicalDeviceType)); |
| vkStream->read((char*)forUnmarshaling->deviceName, |
| VK_MAX_PHYSICAL_DEVICE_NAME_SIZE * sizeof(char)); |
| vkStream->read((uint8_t*)forUnmarshaling->pipelineCacheUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| unmarshal_VkPhysicalDeviceLimits(vkStream, rootType, |
| (VkPhysicalDeviceLimits*)(&forUnmarshaling->limits)); |
| unmarshal_VkPhysicalDeviceSparseProperties( |
| vkStream, rootType, |
| (VkPhysicalDeviceSparseProperties*)(&forUnmarshaling->sparseProperties)); |
| } |
| |
| void marshal_VkQueueFamilyProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkQueueFamilyProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkQueueFlags*)&forMarshaling->queueFlags, sizeof(VkQueueFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->queueCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->timestampValidBits, sizeof(uint32_t)); |
| marshal_VkExtent3D(vkStream, rootType, |
| (VkExtent3D*)(&forMarshaling->minImageTransferGranularity)); |
| } |
| |
| void unmarshal_VkQueueFamilyProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkQueueFamilyProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkQueueFlags*)&forUnmarshaling->queueFlags, sizeof(VkQueueFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->timestampValidBits, sizeof(uint32_t)); |
| unmarshal_VkExtent3D(vkStream, rootType, |
| (VkExtent3D*)(&forUnmarshaling->minImageTransferGranularity)); |
| } |
| |
| void marshal_VkDeviceQueueCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceQueueCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceQueueCreateFlags*)&forMarshaling->flags, |
| sizeof(VkDeviceQueueCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->queueFamilyIndex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->queueCount, sizeof(uint32_t)); |
| vkStream->write((const float*)forMarshaling->pQueuePriorities, |
| forMarshaling->queueCount * sizeof(const float)); |
| } |
| |
| void unmarshal_VkDeviceQueueCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceQueueCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceQueueCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkDeviceQueueCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueFamilyIndex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueCount, sizeof(uint32_t)); |
| vkStream->read((float*)forUnmarshaling->pQueuePriorities, |
| forUnmarshaling->queueCount * sizeof(const float)); |
| } |
| |
| void marshal_VkDeviceCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceCreateFlags*)&forMarshaling->flags, sizeof(VkDeviceCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->queueCreateInfoCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->queueCreateInfoCount; ++i) { |
| marshal_VkDeviceQueueCreateInfo( |
| vkStream, rootType, |
| (const VkDeviceQueueCreateInfo*)(forMarshaling->pQueueCreateInfos + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->enabledLayerCount, sizeof(uint32_t)); |
| saveStringArray(vkStream, forMarshaling->ppEnabledLayerNames, forMarshaling->enabledLayerCount); |
| vkStream->write((uint32_t*)&forMarshaling->enabledExtensionCount, sizeof(uint32_t)); |
| saveStringArray(vkStream, forMarshaling->ppEnabledExtensionNames, |
| forMarshaling->enabledExtensionCount); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pEnabledFeatures; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pEnabledFeatures) { |
| marshal_VkPhysicalDeviceFeatures( |
| vkStream, rootType, (const VkPhysicalDeviceFeatures*)(forMarshaling->pEnabledFeatures)); |
| } |
| } |
| |
| void unmarshal_VkDeviceCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceCreateFlags*)&forUnmarshaling->flags, sizeof(VkDeviceCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueCreateInfoCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->queueCreateInfoCount; ++i) { |
| unmarshal_VkDeviceQueueCreateInfo( |
| vkStream, rootType, |
| (VkDeviceQueueCreateInfo*)(forUnmarshaling->pQueueCreateInfos + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->enabledLayerCount, sizeof(uint32_t)); |
| vkStream->loadStringArrayInPlace((char***)&forUnmarshaling->ppEnabledLayerNames); |
| vkStream->read((uint32_t*)&forUnmarshaling->enabledExtensionCount, sizeof(uint32_t)); |
| vkStream->loadStringArrayInPlace((char***)&forUnmarshaling->ppEnabledExtensionNames); |
| // WARNING PTR CHECK |
| const VkPhysicalDeviceFeatures* check_pEnabledFeatures; |
| check_pEnabledFeatures = (const VkPhysicalDeviceFeatures*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pEnabledFeatures) { |
| if (!(check_pEnabledFeatures)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pEnabledFeatures inconsistent between guest and host\n"); |
| } |
| unmarshal_VkPhysicalDeviceFeatures( |
| vkStream, rootType, (VkPhysicalDeviceFeatures*)(forUnmarshaling->pEnabledFeatures)); |
| } |
| } |
| |
| void marshal_VkExtensionProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExtensionProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((char*)forMarshaling->extensionName, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| vkStream->write((uint32_t*)&forMarshaling->specVersion, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkExtensionProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExtensionProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((char*)forUnmarshaling->extensionName, |
| VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| vkStream->read((uint32_t*)&forUnmarshaling->specVersion, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkLayerProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkLayerProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((char*)forMarshaling->layerName, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| vkStream->write((uint32_t*)&forMarshaling->specVersion, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->implementationVersion, sizeof(uint32_t)); |
| vkStream->write((char*)forMarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| } |
| |
| void unmarshal_VkLayerProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkLayerProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((char*)forUnmarshaling->layerName, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| vkStream->read((uint32_t*)&forUnmarshaling->specVersion, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->implementationVersion, sizeof(uint32_t)); |
| vkStream->read((char*)forUnmarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| } |
| |
| void marshal_VkSubmitInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubmitInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->waitSemaphoreCount, sizeof(uint32_t)); |
| if (forMarshaling->waitSemaphoreCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->waitSemaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64( |
| forMarshaling->pWaitSemaphores, cgen_var_0, forMarshaling->waitSemaphoreCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->waitSemaphoreCount * 8); |
| } |
| vkStream->write((const VkPipelineStageFlags*)forMarshaling->pWaitDstStageMask, |
| forMarshaling->waitSemaphoreCount * sizeof(const VkPipelineStageFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->commandBufferCount, sizeof(uint32_t)); |
| if (forMarshaling->commandBufferCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forMarshaling->commandBufferCount * 8); |
| vkStream->handleMapping()->mapHandles_VkCommandBuffer_u64( |
| forMarshaling->pCommandBuffers, cgen_var_1, forMarshaling->commandBufferCount); |
| vkStream->write((uint64_t*)cgen_var_1, forMarshaling->commandBufferCount * 8); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->signalSemaphoreCount, sizeof(uint32_t)); |
| if (forMarshaling->signalSemaphoreCount) { |
| uint64_t* cgen_var_2; |
| vkStream->alloc((void**)&cgen_var_2, forMarshaling->signalSemaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64( |
| forMarshaling->pSignalSemaphores, cgen_var_2, forMarshaling->signalSemaphoreCount); |
| vkStream->write((uint64_t*)cgen_var_2, forMarshaling->signalSemaphoreCount * 8); |
| } |
| } |
| |
| void unmarshal_VkSubmitInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubmitInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->waitSemaphoreCount, sizeof(uint32_t)); |
| if (forUnmarshaling->waitSemaphoreCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->waitSemaphoreCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->waitSemaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| cgen_var_0, (VkSemaphore*)forUnmarshaling->pWaitSemaphores, |
| forUnmarshaling->waitSemaphoreCount); |
| } |
| vkStream->read((VkPipelineStageFlags*)forUnmarshaling->pWaitDstStageMask, |
| forUnmarshaling->waitSemaphoreCount * sizeof(const VkPipelineStageFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->commandBufferCount, sizeof(uint32_t)); |
| if (forUnmarshaling->commandBufferCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forUnmarshaling->commandBufferCount * 8); |
| vkStream->read((uint64_t*)cgen_var_1, forUnmarshaling->commandBufferCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkCommandBuffer( |
| cgen_var_1, (VkCommandBuffer*)forUnmarshaling->pCommandBuffers, |
| forUnmarshaling->commandBufferCount); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->signalSemaphoreCount, sizeof(uint32_t)); |
| if (forUnmarshaling->signalSemaphoreCount) { |
| uint64_t* cgen_var_2; |
| vkStream->alloc((void**)&cgen_var_2, forUnmarshaling->signalSemaphoreCount * 8); |
| vkStream->read((uint64_t*)cgen_var_2, forUnmarshaling->signalSemaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| cgen_var_2, (VkSemaphore*)forUnmarshaling->pSignalSemaphores, |
| forUnmarshaling->signalSemaphoreCount); |
| } |
| } |
| |
| void marshal_VkMappedMemoryRange(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMappedMemoryRange* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkMappedMemoryRange(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMappedMemoryRange* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_0, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkMemoryAllocateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryAllocateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)&forMarshaling->allocationSize, sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->memoryTypeIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkMemoryAllocateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryAllocateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->allocationSize, sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryTypeIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkMemoryRequirements(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryRequirements* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->alignment, sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkMemoryRequirements(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryRequirements* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->alignment, sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkSparseMemoryBind(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSparseMemoryBind* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceSize*)&forMarshaling->resourceOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkSparseMemoryBindFlags*)&forMarshaling->flags, |
| sizeof(VkSparseMemoryBindFlags)); |
| } |
| |
| void unmarshal_VkSparseMemoryBind(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSparseMemoryBind* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->resourceOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_0, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkSparseMemoryBindFlags*)&forUnmarshaling->flags, |
| sizeof(VkSparseMemoryBindFlags)); |
| } |
| |
| void marshal_VkSparseBufferMemoryBindInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSparseBufferMemoryBindInfo* forMarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->bindCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->bindCount; ++i) { |
| marshal_VkSparseMemoryBind(vkStream, rootType, |
| (const VkSparseMemoryBind*)(forMarshaling->pBinds + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkSparseBufferMemoryBindInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSparseBufferMemoryBindInfo* forUnmarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->bindCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->bindCount; ++i) { |
| unmarshal_VkSparseMemoryBind(vkStream, rootType, |
| (VkSparseMemoryBind*)(forUnmarshaling->pBinds + i)); |
| } |
| } |
| } |
| |
| void marshal_VkSparseImageOpaqueMemoryBindInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSparseImageOpaqueMemoryBindInfo* forMarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->image, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->bindCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->bindCount; ++i) { |
| marshal_VkSparseMemoryBind(vkStream, rootType, |
| (const VkSparseMemoryBind*)(forMarshaling->pBinds + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkSparseImageOpaqueMemoryBindInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSparseImageOpaqueMemoryBindInfo* forUnmarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->image, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->bindCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->bindCount; ++i) { |
| unmarshal_VkSparseMemoryBind(vkStream, rootType, |
| (VkSparseMemoryBind*)(forUnmarshaling->pBinds + i)); |
| } |
| } |
| } |
| |
| void marshal_VkImageSubresource(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageSubresource* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkImageAspectFlags*)&forMarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->mipLevel, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->arrayLayer, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkImageSubresource(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageSubresource* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkImageAspectFlags*)&forUnmarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->mipLevel, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->arrayLayer, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkSparseImageMemoryBind(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSparseImageMemoryBind* forMarshaling) { |
| (void)rootType; |
| marshal_VkImageSubresource(vkStream, rootType, |
| (VkImageSubresource*)(&forMarshaling->subresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->offset)); |
| marshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forMarshaling->extent)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkSparseMemoryBindFlags*)&forMarshaling->flags, |
| sizeof(VkSparseMemoryBindFlags)); |
| } |
| |
| void unmarshal_VkSparseImageMemoryBind(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSparseImageMemoryBind* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkImageSubresource(vkStream, rootType, |
| (VkImageSubresource*)(&forUnmarshaling->subresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->offset)); |
| unmarshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forUnmarshaling->extent)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_0, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkSparseMemoryBindFlags*)&forUnmarshaling->flags, |
| sizeof(VkSparseMemoryBindFlags)); |
| } |
| |
| void marshal_VkSparseImageMemoryBindInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSparseImageMemoryBindInfo* forMarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->image, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->bindCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->bindCount; ++i) { |
| marshal_VkSparseImageMemoryBind( |
| vkStream, rootType, (const VkSparseImageMemoryBind*)(forMarshaling->pBinds + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkSparseImageMemoryBindInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSparseImageMemoryBindInfo* forUnmarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->image, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->bindCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->bindCount; ++i) { |
| unmarshal_VkSparseImageMemoryBind( |
| vkStream, rootType, (VkSparseImageMemoryBind*)(forUnmarshaling->pBinds + i)); |
| } |
| } |
| } |
| |
| void marshal_VkBindSparseInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindSparseInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->waitSemaphoreCount, sizeof(uint32_t)); |
| if (forMarshaling->waitSemaphoreCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->waitSemaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64( |
| forMarshaling->pWaitSemaphores, cgen_var_0, forMarshaling->waitSemaphoreCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->waitSemaphoreCount * 8); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->bufferBindCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->bufferBindCount; ++i) { |
| marshal_VkSparseBufferMemoryBindInfo( |
| vkStream, rootType, |
| (const VkSparseBufferMemoryBindInfo*)(forMarshaling->pBufferBinds + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->imageOpaqueBindCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->imageOpaqueBindCount; ++i) { |
| marshal_VkSparseImageOpaqueMemoryBindInfo( |
| vkStream, rootType, |
| (const VkSparseImageOpaqueMemoryBindInfo*)(forMarshaling->pImageOpaqueBinds + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->imageBindCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->imageBindCount; ++i) { |
| marshal_VkSparseImageMemoryBindInfo( |
| vkStream, rootType, |
| (const VkSparseImageMemoryBindInfo*)(forMarshaling->pImageBinds + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->signalSemaphoreCount, sizeof(uint32_t)); |
| if (forMarshaling->signalSemaphoreCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forMarshaling->signalSemaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64( |
| forMarshaling->pSignalSemaphores, cgen_var_1, forMarshaling->signalSemaphoreCount); |
| vkStream->write((uint64_t*)cgen_var_1, forMarshaling->signalSemaphoreCount * 8); |
| } |
| } |
| |
| void unmarshal_VkBindSparseInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBindSparseInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->waitSemaphoreCount, sizeof(uint32_t)); |
| if (forUnmarshaling->waitSemaphoreCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->waitSemaphoreCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->waitSemaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| cgen_var_0, (VkSemaphore*)forUnmarshaling->pWaitSemaphores, |
| forUnmarshaling->waitSemaphoreCount); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->bufferBindCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->bufferBindCount; ++i) { |
| unmarshal_VkSparseBufferMemoryBindInfo( |
| vkStream, rootType, |
| (VkSparseBufferMemoryBindInfo*)(forUnmarshaling->pBufferBinds + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->imageOpaqueBindCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->imageOpaqueBindCount; ++i) { |
| unmarshal_VkSparseImageOpaqueMemoryBindInfo( |
| vkStream, rootType, |
| (VkSparseImageOpaqueMemoryBindInfo*)(forUnmarshaling->pImageOpaqueBinds + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->imageBindCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->imageBindCount; ++i) { |
| unmarshal_VkSparseImageMemoryBindInfo( |
| vkStream, rootType, |
| (VkSparseImageMemoryBindInfo*)(forUnmarshaling->pImageBinds + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->signalSemaphoreCount, sizeof(uint32_t)); |
| if (forUnmarshaling->signalSemaphoreCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forUnmarshaling->signalSemaphoreCount * 8); |
| vkStream->read((uint64_t*)cgen_var_1, forUnmarshaling->signalSemaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| cgen_var_1, (VkSemaphore*)forUnmarshaling->pSignalSemaphores, |
| forUnmarshaling->signalSemaphoreCount); |
| } |
| } |
| |
| void marshal_VkSparseImageFormatProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSparseImageFormatProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkImageAspectFlags*)&forMarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| marshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forMarshaling->imageGranularity)); |
| vkStream->write((VkSparseImageFormatFlags*)&forMarshaling->flags, |
| sizeof(VkSparseImageFormatFlags)); |
| } |
| |
| void unmarshal_VkSparseImageFormatProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSparseImageFormatProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkImageAspectFlags*)&forUnmarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| unmarshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forUnmarshaling->imageGranularity)); |
| vkStream->read((VkSparseImageFormatFlags*)&forUnmarshaling->flags, |
| sizeof(VkSparseImageFormatFlags)); |
| } |
| |
| void marshal_VkSparseImageMemoryRequirements(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSparseImageMemoryRequirements* forMarshaling) { |
| (void)rootType; |
| marshal_VkSparseImageFormatProperties( |
| vkStream, rootType, (VkSparseImageFormatProperties*)(&forMarshaling->formatProperties)); |
| vkStream->write((uint32_t*)&forMarshaling->imageMipTailFirstLod, sizeof(uint32_t)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->imageMipTailSize, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->imageMipTailOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->imageMipTailStride, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkSparseImageMemoryRequirements(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkSparseImageMemoryRequirements* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkSparseImageFormatProperties( |
| vkStream, rootType, (VkSparseImageFormatProperties*)(&forUnmarshaling->formatProperties)); |
| vkStream->read((uint32_t*)&forUnmarshaling->imageMipTailFirstLod, sizeof(uint32_t)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->imageMipTailSize, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->imageMipTailOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->imageMipTailStride, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkFenceCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFenceCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFenceCreateFlags*)&forMarshaling->flags, sizeof(VkFenceCreateFlags)); |
| } |
| |
| void unmarshal_VkFenceCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFenceCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFenceCreateFlags*)&forUnmarshaling->flags, sizeof(VkFenceCreateFlags)); |
| } |
| |
| void marshal_VkSemaphoreCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSemaphoreCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSemaphoreCreateFlags*)&forMarshaling->flags, sizeof(VkSemaphoreCreateFlags)); |
| } |
| |
| void unmarshal_VkSemaphoreCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSemaphoreCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSemaphoreCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkSemaphoreCreateFlags)); |
| } |
| |
| void marshal_VkEventCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkEventCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkEventCreateFlags*)&forMarshaling->flags, sizeof(VkEventCreateFlags)); |
| } |
| |
| void unmarshal_VkEventCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkEventCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkEventCreateFlags*)&forUnmarshaling->flags, sizeof(VkEventCreateFlags)); |
| } |
| |
| void marshal_VkQueryPoolCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkQueryPoolCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkQueryPoolCreateFlags*)&forMarshaling->flags, sizeof(VkQueryPoolCreateFlags)); |
| vkStream->write((VkQueryType*)&forMarshaling->queryType, sizeof(VkQueryType)); |
| vkStream->write((uint32_t*)&forMarshaling->queryCount, sizeof(uint32_t)); |
| vkStream->write((VkQueryPipelineStatisticFlags*)&forMarshaling->pipelineStatistics, |
| sizeof(VkQueryPipelineStatisticFlags)); |
| } |
| |
| void unmarshal_VkQueryPoolCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkQueryPoolCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkQueryPoolCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkQueryPoolCreateFlags)); |
| vkStream->read((VkQueryType*)&forUnmarshaling->queryType, sizeof(VkQueryType)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queryCount, sizeof(uint32_t)); |
| vkStream->read((VkQueryPipelineStatisticFlags*)&forUnmarshaling->pipelineStatistics, |
| sizeof(VkQueryPipelineStatisticFlags)); |
| } |
| |
| void marshal_VkBufferCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBufferCreateFlags*)&forMarshaling->flags, sizeof(VkBufferCreateFlags)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->write((VkBufferUsageFlags*)&forMarshaling->usage, sizeof(VkBufferUsageFlags)); |
| vkStream->write((VkSharingMode*)&forMarshaling->sharingMode, sizeof(VkSharingMode)); |
| vkStream->write((uint32_t*)&forMarshaling->queueFamilyIndexCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pQueueFamilyIndices; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pQueueFamilyIndices) { |
| vkStream->write((const uint32_t*)forMarshaling->pQueueFamilyIndices, |
| forMarshaling->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void unmarshal_VkBufferCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBufferCreateFlags*)&forUnmarshaling->flags, sizeof(VkBufferCreateFlags)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->read((VkBufferUsageFlags*)&forUnmarshaling->usage, sizeof(VkBufferUsageFlags)); |
| vkStream->read((VkSharingMode*)&forUnmarshaling->sharingMode, sizeof(VkSharingMode)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueFamilyIndexCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const uint32_t* check_pQueueFamilyIndices; |
| check_pQueueFamilyIndices = (const uint32_t*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pQueueFamilyIndices) { |
| if (!(check_pQueueFamilyIndices)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pQueueFamilyIndices inconsistent between guest and " |
| "host\n"); |
| } |
| vkStream->read((uint32_t*)forUnmarshaling->pQueueFamilyIndices, |
| forUnmarshaling->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void marshal_VkBufferViewCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferViewCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBufferViewCreateFlags*)&forMarshaling->flags, |
| sizeof(VkBufferViewCreateFlags)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->range, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkBufferViewCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferViewCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBufferViewCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkBufferViewCreateFlags)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->range, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkImageCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageCreateFlags*)&forMarshaling->flags, sizeof(VkImageCreateFlags)); |
| vkStream->write((VkImageType*)&forMarshaling->imageType, sizeof(VkImageType)); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| marshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forMarshaling->extent)); |
| vkStream->write((uint32_t*)&forMarshaling->mipLevels, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->arrayLayers, sizeof(uint32_t)); |
| vkStream->write((VkSampleCountFlagBits*)&forMarshaling->samples, sizeof(VkSampleCountFlagBits)); |
| vkStream->write((VkImageTiling*)&forMarshaling->tiling, sizeof(VkImageTiling)); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->usage, sizeof(VkImageUsageFlags)); |
| vkStream->write((VkSharingMode*)&forMarshaling->sharingMode, sizeof(VkSharingMode)); |
| vkStream->write((uint32_t*)&forMarshaling->queueFamilyIndexCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pQueueFamilyIndices; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pQueueFamilyIndices) { |
| vkStream->write((const uint32_t*)forMarshaling->pQueueFamilyIndices, |
| forMarshaling->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| vkStream->write((VkImageLayout*)&forMarshaling->initialLayout, sizeof(VkImageLayout)); |
| } |
| |
| void unmarshal_VkImageCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageCreateFlags*)&forUnmarshaling->flags, sizeof(VkImageCreateFlags)); |
| vkStream->read((VkImageType*)&forUnmarshaling->imageType, sizeof(VkImageType)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| unmarshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forUnmarshaling->extent)); |
| vkStream->read((uint32_t*)&forUnmarshaling->mipLevels, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->arrayLayers, sizeof(uint32_t)); |
| vkStream->read((VkSampleCountFlagBits*)&forUnmarshaling->samples, |
| sizeof(VkSampleCountFlagBits)); |
| vkStream->read((VkImageTiling*)&forUnmarshaling->tiling, sizeof(VkImageTiling)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->usage, sizeof(VkImageUsageFlags)); |
| vkStream->read((VkSharingMode*)&forUnmarshaling->sharingMode, sizeof(VkSharingMode)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueFamilyIndexCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const uint32_t* check_pQueueFamilyIndices; |
| check_pQueueFamilyIndices = (const uint32_t*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pQueueFamilyIndices) { |
| if (!(check_pQueueFamilyIndices)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pQueueFamilyIndices inconsistent between guest and " |
| "host\n"); |
| } |
| vkStream->read((uint32_t*)forUnmarshaling->pQueueFamilyIndices, |
| forUnmarshaling->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| vkStream->read((VkImageLayout*)&forUnmarshaling->initialLayout, sizeof(VkImageLayout)); |
| } |
| |
| void marshal_VkSubresourceLayout(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubresourceLayout* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceSize*)&forMarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->rowPitch, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->arrayPitch, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->depthPitch, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkSubresourceLayout(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubresourceLayout* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->rowPitch, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->arrayPitch, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->depthPitch, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkComponentMapping(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkComponentMapping* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkComponentSwizzle*)&forMarshaling->r, sizeof(VkComponentSwizzle)); |
| vkStream->write((VkComponentSwizzle*)&forMarshaling->g, sizeof(VkComponentSwizzle)); |
| vkStream->write((VkComponentSwizzle*)&forMarshaling->b, sizeof(VkComponentSwizzle)); |
| vkStream->write((VkComponentSwizzle*)&forMarshaling->a, sizeof(VkComponentSwizzle)); |
| } |
| |
| void unmarshal_VkComponentMapping(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkComponentMapping* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkComponentSwizzle*)&forUnmarshaling->r, sizeof(VkComponentSwizzle)); |
| vkStream->read((VkComponentSwizzle*)&forUnmarshaling->g, sizeof(VkComponentSwizzle)); |
| vkStream->read((VkComponentSwizzle*)&forUnmarshaling->b, sizeof(VkComponentSwizzle)); |
| vkStream->read((VkComponentSwizzle*)&forUnmarshaling->a, sizeof(VkComponentSwizzle)); |
| } |
| |
| void marshal_VkImageViewCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageViewCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageViewCreateFlags*)&forMarshaling->flags, sizeof(VkImageViewCreateFlags)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->image, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkImageViewType*)&forMarshaling->viewType, sizeof(VkImageViewType)); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| marshal_VkComponentMapping(vkStream, rootType, |
| (VkComponentMapping*)(&forMarshaling->components)); |
| marshal_VkImageSubresourceRange(vkStream, rootType, |
| (VkImageSubresourceRange*)(&forMarshaling->subresourceRange)); |
| } |
| |
| void unmarshal_VkImageViewCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageViewCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageViewCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkImageViewCreateFlags)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->image, 1); |
| vkStream->read((VkImageViewType*)&forUnmarshaling->viewType, sizeof(VkImageViewType)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| unmarshal_VkComponentMapping(vkStream, rootType, |
| (VkComponentMapping*)(&forUnmarshaling->components)); |
| unmarshal_VkImageSubresourceRange( |
| vkStream, rootType, (VkImageSubresourceRange*)(&forUnmarshaling->subresourceRange)); |
| } |
| |
| void marshal_VkShaderModuleCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkShaderModuleCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkShaderModuleCreateFlags*)&forMarshaling->flags, |
| sizeof(VkShaderModuleCreateFlags)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->codeSize; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((const uint32_t*)forMarshaling->pCode, |
| (forMarshaling->codeSize / 4) * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkShaderModuleCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkShaderModuleCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkShaderModuleCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkShaderModuleCreateFlags)); |
| forUnmarshaling->codeSize = (size_t)vkStream->getBe64(); |
| vkStream->read((uint32_t*)forUnmarshaling->pCode, |
| (forUnmarshaling->codeSize / 4) * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkPipelineCacheCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineCacheCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineCacheCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineCacheCreateFlags)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->initialDataSize; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((const void*)forMarshaling->pInitialData, |
| forMarshaling->initialDataSize * sizeof(const uint8_t)); |
| } |
| |
| void unmarshal_VkPipelineCacheCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineCacheCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineCacheCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineCacheCreateFlags)); |
| forUnmarshaling->initialDataSize = (size_t)vkStream->getBe64(); |
| vkStream->read((void*)forUnmarshaling->pInitialData, |
| forUnmarshaling->initialDataSize * sizeof(const uint8_t)); |
| } |
| |
| void marshal_VkSpecializationMapEntry(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSpecializationMapEntry* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->constantID, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->offset, sizeof(uint32_t)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->size; |
| vkStream->putBe64(cgen_var_0); |
| } |
| |
| void unmarshal_VkSpecializationMapEntry(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSpecializationMapEntry* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->constantID, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->offset, sizeof(uint32_t)); |
| forUnmarshaling->size = (size_t)vkStream->getBe64(); |
| } |
| |
| void marshal_VkSpecializationInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSpecializationInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->mapEntryCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->mapEntryCount; ++i) { |
| marshal_VkSpecializationMapEntry( |
| vkStream, rootType, |
| (const VkSpecializationMapEntry*)(forMarshaling->pMapEntries + i)); |
| } |
| } |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->dataSize; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((const void*)forMarshaling->pData, |
| forMarshaling->dataSize * sizeof(const uint8_t)); |
| } |
| |
| void unmarshal_VkSpecializationInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSpecializationInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->mapEntryCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->mapEntryCount; ++i) { |
| unmarshal_VkSpecializationMapEntry( |
| vkStream, rootType, (VkSpecializationMapEntry*)(forUnmarshaling->pMapEntries + i)); |
| } |
| } |
| forUnmarshaling->dataSize = (size_t)vkStream->getBe64(); |
| vkStream->read((void*)forUnmarshaling->pData, |
| forUnmarshaling->dataSize * sizeof(const uint8_t)); |
| } |
| |
| void marshal_VkPipelineShaderStageCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineShaderStageCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineShaderStageCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineShaderStageCreateFlags)); |
| vkStream->write((VkShaderStageFlagBits*)&forMarshaling->stage, sizeof(VkShaderStageFlagBits)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkShaderModule_u64(&forMarshaling->module, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->putString(forMarshaling->pName); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pSpecializationInfo; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pSpecializationInfo) { |
| marshal_VkSpecializationInfo( |
| vkStream, rootType, (const VkSpecializationInfo*)(forMarshaling->pSpecializationInfo)); |
| } |
| } |
| |
| void unmarshal_VkPipelineShaderStageCreateInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPipelineShaderStageCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineShaderStageCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineShaderStageCreateFlags)); |
| vkStream->read((VkShaderStageFlagBits*)&forUnmarshaling->stage, sizeof(VkShaderStageFlagBits)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkShaderModule( |
| &cgen_var_0, (VkShaderModule*)&forUnmarshaling->module, 1); |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pName); |
| // WARNING PTR CHECK |
| const VkSpecializationInfo* check_pSpecializationInfo; |
| check_pSpecializationInfo = (const VkSpecializationInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pSpecializationInfo) { |
| if (!(check_pSpecializationInfo)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pSpecializationInfo inconsistent between guest and " |
| "host\n"); |
| } |
| unmarshal_VkSpecializationInfo( |
| vkStream, rootType, (VkSpecializationInfo*)(forUnmarshaling->pSpecializationInfo)); |
| } |
| } |
| |
| void marshal_VkComputePipelineCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkComputePipelineCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineCreateFlags*)&forMarshaling->flags, sizeof(VkPipelineCreateFlags)); |
| marshal_VkPipelineShaderStageCreateInfo( |
| vkStream, rootType, (VkPipelineShaderStageCreateInfo*)(&forMarshaling->stage)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkPipelineLayout_u64(&forMarshaling->layout, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkPipeline_u64(&forMarshaling->basePipelineHandle, |
| &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((int32_t*)&forMarshaling->basePipelineIndex, sizeof(int32_t)); |
| } |
| |
| void unmarshal_VkComputePipelineCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkComputePipelineCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineCreateFlags*)&forUnmarshaling->flags, sizeof(VkPipelineCreateFlags)); |
| unmarshal_VkPipelineShaderStageCreateInfo( |
| vkStream, rootType, (VkPipelineShaderStageCreateInfo*)(&forUnmarshaling->stage)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipelineLayout( |
| &cgen_var_0, (VkPipelineLayout*)&forUnmarshaling->layout, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipeline( |
| &cgen_var_1, (VkPipeline*)&forUnmarshaling->basePipelineHandle, 1); |
| vkStream->read((int32_t*)&forUnmarshaling->basePipelineIndex, sizeof(int32_t)); |
| } |
| |
| void marshal_VkVertexInputBindingDescription(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVertexInputBindingDescription* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->binding, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->stride, sizeof(uint32_t)); |
| vkStream->write((VkVertexInputRate*)&forMarshaling->inputRate, sizeof(VkVertexInputRate)); |
| } |
| |
| void unmarshal_VkVertexInputBindingDescription(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVertexInputBindingDescription* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->binding, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->stride, sizeof(uint32_t)); |
| vkStream->read((VkVertexInputRate*)&forUnmarshaling->inputRate, sizeof(VkVertexInputRate)); |
| } |
| |
| void marshal_VkVertexInputAttributeDescription( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVertexInputAttributeDescription* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->location, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->binding, sizeof(uint32_t)); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((uint32_t*)&forMarshaling->offset, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkVertexInputAttributeDescription( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVertexInputAttributeDescription* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->location, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->binding, sizeof(uint32_t)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((uint32_t*)&forUnmarshaling->offset, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPipelineVertexInputStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineVertexInputStateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineVertexInputStateCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineVertexInputStateCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->vertexBindingDescriptionCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->vertexBindingDescriptionCount; ++i) { |
| marshal_VkVertexInputBindingDescription( |
| vkStream, rootType, |
| (const VkVertexInputBindingDescription*)(forMarshaling->pVertexBindingDescriptions + |
| i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->vertexAttributeDescriptionCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->vertexAttributeDescriptionCount; ++i) { |
| marshal_VkVertexInputAttributeDescription( |
| vkStream, rootType, |
| (const VkVertexInputAttributeDescription*)(forMarshaling |
| ->pVertexAttributeDescriptions + |
| i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineVertexInputStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineVertexInputStateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineVertexInputStateCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineVertexInputStateCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->vertexBindingDescriptionCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->vertexBindingDescriptionCount; ++i) { |
| unmarshal_VkVertexInputBindingDescription( |
| vkStream, rootType, |
| (VkVertexInputBindingDescription*)(forUnmarshaling->pVertexBindingDescriptions + |
| i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->vertexAttributeDescriptionCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->vertexAttributeDescriptionCount; ++i) { |
| unmarshal_VkVertexInputAttributeDescription( |
| vkStream, rootType, |
| (VkVertexInputAttributeDescription*)(forUnmarshaling->pVertexAttributeDescriptions + |
| i)); |
| } |
| } |
| } |
| |
| void marshal_VkPipelineInputAssemblyStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineInputAssemblyStateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineInputAssemblyStateCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineInputAssemblyStateCreateFlags)); |
| vkStream->write((VkPrimitiveTopology*)&forMarshaling->topology, sizeof(VkPrimitiveTopology)); |
| vkStream->write((VkBool32*)&forMarshaling->primitiveRestartEnable, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPipelineInputAssemblyStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineInputAssemblyStateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineInputAssemblyStateCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineInputAssemblyStateCreateFlags)); |
| vkStream->read((VkPrimitiveTopology*)&forUnmarshaling->topology, sizeof(VkPrimitiveTopology)); |
| vkStream->read((VkBool32*)&forUnmarshaling->primitiveRestartEnable, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineTessellationStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineTessellationStateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineTessellationStateCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineTessellationStateCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->patchControlPoints, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPipelineTessellationStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineTessellationStateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineTessellationStateCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineTessellationStateCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->patchControlPoints, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkViewport(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkViewport* forMarshaling) { |
| (void)rootType; |
| vkStream->write((float*)&forMarshaling->x, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->y, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->width, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->height, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->minDepth, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxDepth, sizeof(float)); |
| } |
| |
| void unmarshal_VkViewport(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkViewport* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((float*)&forUnmarshaling->x, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->y, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->width, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->height, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->minDepth, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxDepth, sizeof(float)); |
| } |
| |
| void marshal_VkPipelineViewportStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineViewportStateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineViewportStateCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineViewportStateCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->viewportCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pViewports; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pViewports) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->viewportCount; ++i) { |
| marshal_VkViewport(vkStream, rootType, |
| (const VkViewport*)(forMarshaling->pViewports + i)); |
| } |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->scissorCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pScissors; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pScissors) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->scissorCount; ++i) { |
| marshal_VkRect2D(vkStream, rootType, |
| (const VkRect2D*)(forMarshaling->pScissors + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineViewportStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineViewportStateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineViewportStateCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineViewportStateCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewportCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkViewport* check_pViewports; |
| check_pViewports = (const VkViewport*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pViewports) { |
| if (!(check_pViewports)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pViewports inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->viewportCount; ++i) { |
| unmarshal_VkViewport(vkStream, rootType, |
| (VkViewport*)(forUnmarshaling->pViewports + i)); |
| } |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->scissorCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkRect2D* check_pScissors; |
| check_pScissors = (const VkRect2D*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pScissors) { |
| if (!(check_pScissors)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pScissors inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->scissorCount; ++i) { |
| unmarshal_VkRect2D(vkStream, rootType, (VkRect2D*)(forUnmarshaling->pScissors + i)); |
| } |
| } |
| } |
| } |
| |
| void marshal_VkPipelineRasterizationStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineRasterizationStateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineRasterizationStateCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineRasterizationStateCreateFlags)); |
| vkStream->write((VkBool32*)&forMarshaling->depthClampEnable, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->rasterizerDiscardEnable, sizeof(VkBool32)); |
| vkStream->write((VkPolygonMode*)&forMarshaling->polygonMode, sizeof(VkPolygonMode)); |
| vkStream->write((VkCullModeFlags*)&forMarshaling->cullMode, sizeof(VkCullModeFlags)); |
| vkStream->write((VkFrontFace*)&forMarshaling->frontFace, sizeof(VkFrontFace)); |
| vkStream->write((VkBool32*)&forMarshaling->depthBiasEnable, sizeof(VkBool32)); |
| vkStream->write((float*)&forMarshaling->depthBiasConstantFactor, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->depthBiasClamp, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->depthBiasSlopeFactor, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->lineWidth, sizeof(float)); |
| } |
| |
| void unmarshal_VkPipelineRasterizationStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineRasterizationStateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineRasterizationStateCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineRasterizationStateCreateFlags)); |
| vkStream->read((VkBool32*)&forUnmarshaling->depthClampEnable, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->rasterizerDiscardEnable, sizeof(VkBool32)); |
| vkStream->read((VkPolygonMode*)&forUnmarshaling->polygonMode, sizeof(VkPolygonMode)); |
| vkStream->read((VkCullModeFlags*)&forUnmarshaling->cullMode, sizeof(VkCullModeFlags)); |
| vkStream->read((VkFrontFace*)&forUnmarshaling->frontFace, sizeof(VkFrontFace)); |
| vkStream->read((VkBool32*)&forUnmarshaling->depthBiasEnable, sizeof(VkBool32)); |
| vkStream->read((float*)&forUnmarshaling->depthBiasConstantFactor, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->depthBiasClamp, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->depthBiasSlopeFactor, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->lineWidth, sizeof(float)); |
| } |
| |
| void marshal_VkPipelineMultisampleStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineMultisampleStateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineMultisampleStateCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineMultisampleStateCreateFlags)); |
| vkStream->write((VkSampleCountFlagBits*)&forMarshaling->rasterizationSamples, |
| sizeof(VkSampleCountFlagBits)); |
| vkStream->write((VkBool32*)&forMarshaling->sampleShadingEnable, sizeof(VkBool32)); |
| vkStream->write((float*)&forMarshaling->minSampleShading, sizeof(float)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pSampleMask; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pSampleMask) { |
| vkStream->write( |
| (const VkSampleMask*)forMarshaling->pSampleMask, |
| (((forMarshaling->rasterizationSamples) + 31) / 32) * sizeof(const VkSampleMask)); |
| } |
| vkStream->write((VkBool32*)&forMarshaling->alphaToCoverageEnable, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->alphaToOneEnable, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPipelineMultisampleStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineMultisampleStateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineMultisampleStateCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineMultisampleStateCreateFlags)); |
| vkStream->read((VkSampleCountFlagBits*)&forUnmarshaling->rasterizationSamples, |
| sizeof(VkSampleCountFlagBits)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sampleShadingEnable, sizeof(VkBool32)); |
| vkStream->read((float*)&forUnmarshaling->minSampleShading, sizeof(float)); |
| // WARNING PTR CHECK |
| const VkSampleMask* check_pSampleMask; |
| check_pSampleMask = (const VkSampleMask*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pSampleMask) { |
| if (!(check_pSampleMask)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pSampleMask inconsistent between guest and host\n"); |
| } |
| vkStream->read( |
| (VkSampleMask*)forUnmarshaling->pSampleMask, |
| (((forUnmarshaling->rasterizationSamples) + 31) / 32) * sizeof(const VkSampleMask)); |
| } |
| vkStream->read((VkBool32*)&forUnmarshaling->alphaToCoverageEnable, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->alphaToOneEnable, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkStencilOpState(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkStencilOpState* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStencilOp*)&forMarshaling->failOp, sizeof(VkStencilOp)); |
| vkStream->write((VkStencilOp*)&forMarshaling->passOp, sizeof(VkStencilOp)); |
| vkStream->write((VkStencilOp*)&forMarshaling->depthFailOp, sizeof(VkStencilOp)); |
| vkStream->write((VkCompareOp*)&forMarshaling->compareOp, sizeof(VkCompareOp)); |
| vkStream->write((uint32_t*)&forMarshaling->compareMask, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->writeMask, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->reference, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkStencilOpState(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkStencilOpState* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStencilOp*)&forUnmarshaling->failOp, sizeof(VkStencilOp)); |
| vkStream->read((VkStencilOp*)&forUnmarshaling->passOp, sizeof(VkStencilOp)); |
| vkStream->read((VkStencilOp*)&forUnmarshaling->depthFailOp, sizeof(VkStencilOp)); |
| vkStream->read((VkCompareOp*)&forUnmarshaling->compareOp, sizeof(VkCompareOp)); |
| vkStream->read((uint32_t*)&forUnmarshaling->compareMask, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->writeMask, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->reference, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPipelineDepthStencilStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineDepthStencilStateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineDepthStencilStateCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineDepthStencilStateCreateFlags)); |
| vkStream->write((VkBool32*)&forMarshaling->depthTestEnable, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->depthWriteEnable, sizeof(VkBool32)); |
| vkStream->write((VkCompareOp*)&forMarshaling->depthCompareOp, sizeof(VkCompareOp)); |
| vkStream->write((VkBool32*)&forMarshaling->depthBoundsTestEnable, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->stencilTestEnable, sizeof(VkBool32)); |
| marshal_VkStencilOpState(vkStream, rootType, (VkStencilOpState*)(&forMarshaling->front)); |
| marshal_VkStencilOpState(vkStream, rootType, (VkStencilOpState*)(&forMarshaling->back)); |
| vkStream->write((float*)&forMarshaling->minDepthBounds, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxDepthBounds, sizeof(float)); |
| } |
| |
| void unmarshal_VkPipelineDepthStencilStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineDepthStencilStateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineDepthStencilStateCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineDepthStencilStateCreateFlags)); |
| vkStream->read((VkBool32*)&forUnmarshaling->depthTestEnable, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->depthWriteEnable, sizeof(VkBool32)); |
| vkStream->read((VkCompareOp*)&forUnmarshaling->depthCompareOp, sizeof(VkCompareOp)); |
| vkStream->read((VkBool32*)&forUnmarshaling->depthBoundsTestEnable, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->stencilTestEnable, sizeof(VkBool32)); |
| unmarshal_VkStencilOpState(vkStream, rootType, (VkStencilOpState*)(&forUnmarshaling->front)); |
| unmarshal_VkStencilOpState(vkStream, rootType, (VkStencilOpState*)(&forUnmarshaling->back)); |
| vkStream->read((float*)&forUnmarshaling->minDepthBounds, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxDepthBounds, sizeof(float)); |
| } |
| |
| void marshal_VkPipelineColorBlendAttachmentState( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineColorBlendAttachmentState* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkBool32*)&forMarshaling->blendEnable, sizeof(VkBool32)); |
| vkStream->write((VkBlendFactor*)&forMarshaling->srcColorBlendFactor, sizeof(VkBlendFactor)); |
| vkStream->write((VkBlendFactor*)&forMarshaling->dstColorBlendFactor, sizeof(VkBlendFactor)); |
| vkStream->write((VkBlendOp*)&forMarshaling->colorBlendOp, sizeof(VkBlendOp)); |
| vkStream->write((VkBlendFactor*)&forMarshaling->srcAlphaBlendFactor, sizeof(VkBlendFactor)); |
| vkStream->write((VkBlendFactor*)&forMarshaling->dstAlphaBlendFactor, sizeof(VkBlendFactor)); |
| vkStream->write((VkBlendOp*)&forMarshaling->alphaBlendOp, sizeof(VkBlendOp)); |
| vkStream->write((VkColorComponentFlags*)&forMarshaling->colorWriteMask, |
| sizeof(VkColorComponentFlags)); |
| } |
| |
| void unmarshal_VkPipelineColorBlendAttachmentState( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineColorBlendAttachmentState* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkBool32*)&forUnmarshaling->blendEnable, sizeof(VkBool32)); |
| vkStream->read((VkBlendFactor*)&forUnmarshaling->srcColorBlendFactor, sizeof(VkBlendFactor)); |
| vkStream->read((VkBlendFactor*)&forUnmarshaling->dstColorBlendFactor, sizeof(VkBlendFactor)); |
| vkStream->read((VkBlendOp*)&forUnmarshaling->colorBlendOp, sizeof(VkBlendOp)); |
| vkStream->read((VkBlendFactor*)&forUnmarshaling->srcAlphaBlendFactor, sizeof(VkBlendFactor)); |
| vkStream->read((VkBlendFactor*)&forUnmarshaling->dstAlphaBlendFactor, sizeof(VkBlendFactor)); |
| vkStream->read((VkBlendOp*)&forUnmarshaling->alphaBlendOp, sizeof(VkBlendOp)); |
| vkStream->read((VkColorComponentFlags*)&forUnmarshaling->colorWriteMask, |
| sizeof(VkColorComponentFlags)); |
| } |
| |
| void marshal_VkPipelineColorBlendStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineColorBlendStateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineColorBlendStateCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineColorBlendStateCreateFlags)); |
| vkStream->write((VkBool32*)&forMarshaling->logicOpEnable, sizeof(VkBool32)); |
| vkStream->write((VkLogicOp*)&forMarshaling->logicOp, sizeof(VkLogicOp)); |
| vkStream->write((uint32_t*)&forMarshaling->attachmentCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->attachmentCount; ++i) { |
| marshal_VkPipelineColorBlendAttachmentState( |
| vkStream, rootType, |
| (const VkPipelineColorBlendAttachmentState*)(forMarshaling->pAttachments + i)); |
| } |
| } |
| vkStream->write((float*)forMarshaling->blendConstants, 4 * sizeof(float)); |
| } |
| |
| void unmarshal_VkPipelineColorBlendStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineColorBlendStateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineColorBlendStateCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineColorBlendStateCreateFlags)); |
| vkStream->read((VkBool32*)&forUnmarshaling->logicOpEnable, sizeof(VkBool32)); |
| vkStream->read((VkLogicOp*)&forUnmarshaling->logicOp, sizeof(VkLogicOp)); |
| vkStream->read((uint32_t*)&forUnmarshaling->attachmentCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->attachmentCount; ++i) { |
| unmarshal_VkPipelineColorBlendAttachmentState( |
| vkStream, rootType, |
| (VkPipelineColorBlendAttachmentState*)(forUnmarshaling->pAttachments + i)); |
| } |
| } |
| vkStream->read((float*)forUnmarshaling->blendConstants, 4 * sizeof(float)); |
| } |
| |
| void marshal_VkPipelineDynamicStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineDynamicStateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineDynamicStateCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineDynamicStateCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->dynamicStateCount, sizeof(uint32_t)); |
| vkStream->write((const VkDynamicState*)forMarshaling->pDynamicStates, |
| forMarshaling->dynamicStateCount * sizeof(const VkDynamicState)); |
| } |
| |
| void unmarshal_VkPipelineDynamicStateCreateInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPipelineDynamicStateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineDynamicStateCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineDynamicStateCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dynamicStateCount, sizeof(uint32_t)); |
| vkStream->read((VkDynamicState*)forUnmarshaling->pDynamicStates, |
| forUnmarshaling->dynamicStateCount * sizeof(const VkDynamicState)); |
| } |
| |
| void marshal_VkGraphicsPipelineCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkGraphicsPipelineCreateInfo* forMarshaling) { |
| (void)rootType; |
| uint32_t hasRasterization = 1; |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| hasRasterization = |
| (((0 == forMarshaling->pRasterizationState)) |
| ? (0) |
| : (!((*(forMarshaling->pRasterizationState)).rasterizerDiscardEnable))); |
| uint32_t cgen_var_0 = (uint32_t)hasRasterization; |
| vkStream->putBe32(cgen_var_0); |
| } |
| uint32_t hasTessellation = 1; |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| hasTessellation = |
| arrayany(forMarshaling->pStages, 0, forMarshaling->stageCount, |
| [](VkPipelineShaderStageCreateInfo s) { |
| return ((s.stage == VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT) || |
| (s.stage == VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT)); |
| }); |
| uint32_t cgen_var_0 = (uint32_t)hasTessellation; |
| vkStream->putBe32(cgen_var_0); |
| } |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineCreateFlags*)&forMarshaling->flags, sizeof(VkPipelineCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->stageCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->stageCount; ++i) { |
| marshal_VkPipelineShaderStageCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineShaderStageCreateInfo*)(forMarshaling->pStages + i)); |
| } |
| } |
| // WARNING PTR CHECK |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pVertexInputState; |
| vkStream->putBe64(cgen_var_0); |
| } |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| forMarshaling->pVertexInputState)) { |
| marshal_VkPipelineVertexInputStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineVertexInputStateCreateInfo*)(forMarshaling->pVertexInputState)); |
| } |
| // WARNING PTR CHECK |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pInputAssemblyState; |
| vkStream->putBe64(cgen_var_0); |
| } |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| forMarshaling->pInputAssemblyState)) { |
| marshal_VkPipelineInputAssemblyStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineInputAssemblyStateCreateInfo*)(forMarshaling->pInputAssemblyState)); |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pTessellationState; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pTessellationState) { |
| if (hasTessellation) { |
| marshal_VkPipelineTessellationStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineTessellationStateCreateInfo*)(forMarshaling->pTessellationState)); |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pViewportState; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pViewportState) { |
| if (hasRasterization) { |
| marshal_VkPipelineViewportStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineViewportStateCreateInfo*)(forMarshaling->pViewportState)); |
| } |
| } |
| // WARNING PTR CHECK |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| uint64_t cgen_var_1_0 = (uint64_t)(uintptr_t)forMarshaling->pRasterizationState; |
| vkStream->putBe64(cgen_var_1_0); |
| } |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| forMarshaling->pRasterizationState)) { |
| marshal_VkPipelineRasterizationStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineRasterizationStateCreateInfo*)(forMarshaling->pRasterizationState)); |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_2 = (uint64_t)(uintptr_t)forMarshaling->pMultisampleState; |
| vkStream->putBe64(cgen_var_2); |
| if (forMarshaling->pMultisampleState) { |
| if (hasRasterization) { |
| marshal_VkPipelineMultisampleStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineMultisampleStateCreateInfo*)(forMarshaling->pMultisampleState)); |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_3 = (uint64_t)(uintptr_t)forMarshaling->pDepthStencilState; |
| vkStream->putBe64(cgen_var_3); |
| if (forMarshaling->pDepthStencilState) { |
| if (hasRasterization) { |
| marshal_VkPipelineDepthStencilStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineDepthStencilStateCreateInfo*)(forMarshaling->pDepthStencilState)); |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_4 = (uint64_t)(uintptr_t)forMarshaling->pColorBlendState; |
| vkStream->putBe64(cgen_var_4); |
| if (forMarshaling->pColorBlendState) { |
| if (hasRasterization) { |
| marshal_VkPipelineColorBlendStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineColorBlendStateCreateInfo*)(forMarshaling->pColorBlendState)); |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_5 = (uint64_t)(uintptr_t)forMarshaling->pDynamicState; |
| vkStream->putBe64(cgen_var_5); |
| if (forMarshaling->pDynamicState) { |
| marshal_VkPipelineDynamicStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineDynamicStateCreateInfo*)(forMarshaling->pDynamicState)); |
| } |
| uint64_t cgen_var_6; |
| vkStream->handleMapping()->mapHandles_VkPipelineLayout_u64(&forMarshaling->layout, &cgen_var_6, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_6, 1 * 8); |
| uint64_t cgen_var_7; |
| vkStream->handleMapping()->mapHandles_VkRenderPass_u64(&forMarshaling->renderPass, &cgen_var_7, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_7, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->subpass, sizeof(uint32_t)); |
| uint64_t cgen_var_8; |
| vkStream->handleMapping()->mapHandles_VkPipeline_u64(&forMarshaling->basePipelineHandle, |
| &cgen_var_8, 1); |
| vkStream->write((uint64_t*)&cgen_var_8, 1 * 8); |
| vkStream->write((int32_t*)&forMarshaling->basePipelineIndex, sizeof(int32_t)); |
| } |
| |
| void unmarshal_VkGraphicsPipelineCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkGraphicsPipelineCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| uint32_t hasRasterization = 1; |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| hasRasterization = (const uint32_t)vkStream->getBe32(); |
| } |
| uint32_t hasTessellation = 1; |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| hasTessellation = (const uint32_t)vkStream->getBe32(); |
| } |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineCreateFlags*)&forUnmarshaling->flags, sizeof(VkPipelineCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->stageCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->stageCount; ++i) { |
| unmarshal_VkPipelineShaderStageCreateInfo( |
| vkStream, rootType, |
| (VkPipelineShaderStageCreateInfo*)(forUnmarshaling->pStages + i)); |
| } |
| } |
| // WARNING PTR CHECK |
| const VkPipelineVertexInputStateCreateInfo* check_pVertexInputState; |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| check_pVertexInputState = |
| (const VkPipelineVertexInputStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| } |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| forUnmarshaling->pVertexInputState)) { |
| unmarshal_VkPipelineVertexInputStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineVertexInputStateCreateInfo*)(forUnmarshaling->pVertexInputState)); |
| } |
| // WARNING PTR CHECK |
| const VkPipelineInputAssemblyStateCreateInfo* check_pInputAssemblyState; |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| check_pInputAssemblyState = |
| (const VkPipelineInputAssemblyStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| } |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| forUnmarshaling->pInputAssemblyState)) { |
| unmarshal_VkPipelineInputAssemblyStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineInputAssemblyStateCreateInfo*)(forUnmarshaling->pInputAssemblyState)); |
| } |
| // WARNING PTR CHECK |
| const VkPipelineTessellationStateCreateInfo* check_pTessellationState; |
| check_pTessellationState = |
| (const VkPipelineTessellationStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pTessellationState) { |
| if (!(check_pTessellationState)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pTessellationState inconsistent between guest and host\n"); |
| } |
| if (hasTessellation) { |
| unmarshal_VkPipelineTessellationStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineTessellationStateCreateInfo*)(forUnmarshaling->pTessellationState)); |
| } else { |
| forUnmarshaling->pTessellationState = 0; |
| } |
| } |
| // WARNING PTR CHECK |
| const VkPipelineViewportStateCreateInfo* check_pViewportState; |
| check_pViewportState = (const VkPipelineViewportStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pViewportState) { |
| if (!(check_pViewportState)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pViewportState inconsistent between guest and host\n"); |
| } |
| if (hasRasterization) { |
| unmarshal_VkPipelineViewportStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineViewportStateCreateInfo*)(forUnmarshaling->pViewportState)); |
| } else { |
| forUnmarshaling->pViewportState = 0; |
| } |
| } |
| // WARNING PTR CHECK |
| const VkPipelineRasterizationStateCreateInfo* check_pRasterizationState; |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| check_pRasterizationState = |
| (const VkPipelineRasterizationStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| } |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| forUnmarshaling->pRasterizationState)) { |
| unmarshal_VkPipelineRasterizationStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineRasterizationStateCreateInfo*)(forUnmarshaling->pRasterizationState)); |
| } |
| // WARNING PTR CHECK |
| const VkPipelineMultisampleStateCreateInfo* check_pMultisampleState; |
| check_pMultisampleState = |
| (const VkPipelineMultisampleStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pMultisampleState) { |
| if (!(check_pMultisampleState)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pMultisampleState inconsistent between guest and host\n"); |
| } |
| if (hasRasterization) { |
| unmarshal_VkPipelineMultisampleStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineMultisampleStateCreateInfo*)(forUnmarshaling->pMultisampleState)); |
| } else { |
| forUnmarshaling->pMultisampleState = 0; |
| } |
| } |
| // WARNING PTR CHECK |
| const VkPipelineDepthStencilStateCreateInfo* check_pDepthStencilState; |
| check_pDepthStencilState = |
| (const VkPipelineDepthStencilStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pDepthStencilState) { |
| if (!(check_pDepthStencilState)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pDepthStencilState inconsistent between guest and host\n"); |
| } |
| if (hasRasterization) { |
| unmarshal_VkPipelineDepthStencilStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineDepthStencilStateCreateInfo*)(forUnmarshaling->pDepthStencilState)); |
| } else { |
| forUnmarshaling->pDepthStencilState = 0; |
| } |
| } |
| // WARNING PTR CHECK |
| const VkPipelineColorBlendStateCreateInfo* check_pColorBlendState; |
| check_pColorBlendState = |
| (const VkPipelineColorBlendStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pColorBlendState) { |
| if (!(check_pColorBlendState)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pColorBlendState inconsistent between guest and host\n"); |
| } |
| if (hasRasterization) { |
| unmarshal_VkPipelineColorBlendStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineColorBlendStateCreateInfo*)(forUnmarshaling->pColorBlendState)); |
| } else { |
| forUnmarshaling->pColorBlendState = 0; |
| } |
| } |
| // WARNING PTR CHECK |
| const VkPipelineDynamicStateCreateInfo* check_pDynamicState; |
| check_pDynamicState = (const VkPipelineDynamicStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pDynamicState) { |
| if (!(check_pDynamicState)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pDynamicState inconsistent between guest and host\n"); |
| } |
| unmarshal_VkPipelineDynamicStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineDynamicStateCreateInfo*)(forUnmarshaling->pDynamicState)); |
| } |
| uint64_t cgen_var_6; |
| vkStream->read((uint64_t*)&cgen_var_6, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipelineLayout( |
| &cgen_var_6, (VkPipelineLayout*)&forUnmarshaling->layout, 1); |
| uint64_t cgen_var_7; |
| vkStream->read((uint64_t*)&cgen_var_7, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkRenderPass( |
| &cgen_var_7, (VkRenderPass*)&forUnmarshaling->renderPass, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->subpass, sizeof(uint32_t)); |
| uint64_t cgen_var_8; |
| vkStream->read((uint64_t*)&cgen_var_8, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipeline( |
| &cgen_var_8, (VkPipeline*)&forUnmarshaling->basePipelineHandle, 1); |
| vkStream->read((int32_t*)&forUnmarshaling->basePipelineIndex, sizeof(int32_t)); |
| } |
| |
| void marshal_VkPushConstantRange(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPushConstantRange* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkShaderStageFlags*)&forMarshaling->stageFlags, sizeof(VkShaderStageFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->offset, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->size, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPushConstantRange(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPushConstantRange* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkShaderStageFlags*)&forUnmarshaling->stageFlags, sizeof(VkShaderStageFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->offset, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->size, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPipelineLayoutCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineLayoutCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineLayoutCreateFlags*)&forMarshaling->flags, |
| sizeof(VkPipelineLayoutCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->setLayoutCount, sizeof(uint32_t)); |
| if (forMarshaling->setLayoutCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->setLayoutCount * 8); |
| vkStream->handleMapping()->mapHandles_VkDescriptorSetLayout_u64( |
| forMarshaling->pSetLayouts, cgen_var_0, forMarshaling->setLayoutCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->setLayoutCount * 8); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->pushConstantRangeCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->pushConstantRangeCount; ++i) { |
| marshal_VkPushConstantRange( |
| vkStream, rootType, |
| (const VkPushConstantRange*)(forMarshaling->pPushConstantRanges + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineLayoutCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineLayoutCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineLayoutCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkPipelineLayoutCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->setLayoutCount, sizeof(uint32_t)); |
| if (forUnmarshaling->setLayoutCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->setLayoutCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->setLayoutCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDescriptorSetLayout( |
| cgen_var_0, (VkDescriptorSetLayout*)forUnmarshaling->pSetLayouts, |
| forUnmarshaling->setLayoutCount); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->pushConstantRangeCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->pushConstantRangeCount; ++i) { |
| unmarshal_VkPushConstantRange( |
| vkStream, rootType, |
| (VkPushConstantRange*)(forUnmarshaling->pPushConstantRanges + i)); |
| } |
| } |
| } |
| |
| void marshal_VkSamplerCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSamplerCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSamplerCreateFlags*)&forMarshaling->flags, sizeof(VkSamplerCreateFlags)); |
| vkStream->write((VkFilter*)&forMarshaling->magFilter, sizeof(VkFilter)); |
| vkStream->write((VkFilter*)&forMarshaling->minFilter, sizeof(VkFilter)); |
| vkStream->write((VkSamplerMipmapMode*)&forMarshaling->mipmapMode, sizeof(VkSamplerMipmapMode)); |
| vkStream->write((VkSamplerAddressMode*)&forMarshaling->addressModeU, |
| sizeof(VkSamplerAddressMode)); |
| vkStream->write((VkSamplerAddressMode*)&forMarshaling->addressModeV, |
| sizeof(VkSamplerAddressMode)); |
| vkStream->write((VkSamplerAddressMode*)&forMarshaling->addressModeW, |
| sizeof(VkSamplerAddressMode)); |
| vkStream->write((float*)&forMarshaling->mipLodBias, sizeof(float)); |
| vkStream->write((VkBool32*)&forMarshaling->anisotropyEnable, sizeof(VkBool32)); |
| vkStream->write((float*)&forMarshaling->maxAnisotropy, sizeof(float)); |
| vkStream->write((VkBool32*)&forMarshaling->compareEnable, sizeof(VkBool32)); |
| vkStream->write((VkCompareOp*)&forMarshaling->compareOp, sizeof(VkCompareOp)); |
| vkStream->write((float*)&forMarshaling->minLod, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxLod, sizeof(float)); |
| vkStream->write((VkBorderColor*)&forMarshaling->borderColor, sizeof(VkBorderColor)); |
| vkStream->write((VkBool32*)&forMarshaling->unnormalizedCoordinates, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkSamplerCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSamplerCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSamplerCreateFlags*)&forUnmarshaling->flags, sizeof(VkSamplerCreateFlags)); |
| vkStream->read((VkFilter*)&forUnmarshaling->magFilter, sizeof(VkFilter)); |
| vkStream->read((VkFilter*)&forUnmarshaling->minFilter, sizeof(VkFilter)); |
| vkStream->read((VkSamplerMipmapMode*)&forUnmarshaling->mipmapMode, sizeof(VkSamplerMipmapMode)); |
| vkStream->read((VkSamplerAddressMode*)&forUnmarshaling->addressModeU, |
| sizeof(VkSamplerAddressMode)); |
| vkStream->read((VkSamplerAddressMode*)&forUnmarshaling->addressModeV, |
| sizeof(VkSamplerAddressMode)); |
| vkStream->read((VkSamplerAddressMode*)&forUnmarshaling->addressModeW, |
| sizeof(VkSamplerAddressMode)); |
| vkStream->read((float*)&forUnmarshaling->mipLodBias, sizeof(float)); |
| vkStream->read((VkBool32*)&forUnmarshaling->anisotropyEnable, sizeof(VkBool32)); |
| vkStream->read((float*)&forUnmarshaling->maxAnisotropy, sizeof(float)); |
| vkStream->read((VkBool32*)&forUnmarshaling->compareEnable, sizeof(VkBool32)); |
| vkStream->read((VkCompareOp*)&forUnmarshaling->compareOp, sizeof(VkCompareOp)); |
| vkStream->read((float*)&forUnmarshaling->minLod, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxLod, sizeof(float)); |
| vkStream->read((VkBorderColor*)&forUnmarshaling->borderColor, sizeof(VkBorderColor)); |
| vkStream->read((VkBool32*)&forUnmarshaling->unnormalizedCoordinates, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkCopyDescriptorSet(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCopyDescriptorSet* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDescriptorSet_u64(&forMarshaling->srcSet, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->srcBinding, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->srcArrayElement, sizeof(uint32_t)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkDescriptorSet_u64(&forMarshaling->dstSet, &cgen_var_1, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->dstBinding, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->dstArrayElement, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->descriptorCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkCopyDescriptorSet(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCopyDescriptorSet* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDescriptorSet( |
| &cgen_var_0, (VkDescriptorSet*)&forUnmarshaling->srcSet, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->srcBinding, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->srcArrayElement, sizeof(uint32_t)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDescriptorSet( |
| &cgen_var_1, (VkDescriptorSet*)&forUnmarshaling->dstSet, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstBinding, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstArrayElement, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->descriptorCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDescriptorBufferInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorBufferInfo* forMarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->range, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkDescriptorBufferInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorBufferInfo* forUnmarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->range, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkDescriptorImageInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorImageInfo* forMarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSampler_u64(&forMarshaling->sampler, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkImageView_u64(&forMarshaling->imageView, &cgen_var_1, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->imageLayout, sizeof(VkImageLayout)); |
| } |
| |
| void unmarshal_VkDescriptorImageInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorImageInfo* forUnmarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSampler(&cgen_var_0, |
| (VkSampler*)&forUnmarshaling->sampler, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImageView( |
| &cgen_var_1, (VkImageView*)&forUnmarshaling->imageView, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->imageLayout, sizeof(VkImageLayout)); |
| } |
| |
| void marshal_VkDescriptorPoolSize(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorPoolSize* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDescriptorType*)&forMarshaling->type, sizeof(VkDescriptorType)); |
| vkStream->write((uint32_t*)&forMarshaling->descriptorCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDescriptorPoolSize(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorPoolSize* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDescriptorType*)&forUnmarshaling->type, sizeof(VkDescriptorType)); |
| vkStream->read((uint32_t*)&forUnmarshaling->descriptorCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDescriptorPoolCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorPoolCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDescriptorPoolCreateFlags*)&forMarshaling->flags, |
| sizeof(VkDescriptorPoolCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->maxSets, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->poolSizeCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->poolSizeCount; ++i) { |
| marshal_VkDescriptorPoolSize( |
| vkStream, rootType, (const VkDescriptorPoolSize*)(forMarshaling->pPoolSizes + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkDescriptorPoolCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorPoolCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDescriptorPoolCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkDescriptorPoolCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSets, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->poolSizeCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->poolSizeCount; ++i) { |
| unmarshal_VkDescriptorPoolSize( |
| vkStream, rootType, (VkDescriptorPoolSize*)(forUnmarshaling->pPoolSizes + i)); |
| } |
| } |
| } |
| |
| void marshal_VkDescriptorSetAllocateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorSetAllocateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDescriptorPool_u64(&forMarshaling->descriptorPool, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->descriptorSetCount, sizeof(uint32_t)); |
| if (forMarshaling->descriptorSetCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forMarshaling->descriptorSetCount * 8); |
| vkStream->handleMapping()->mapHandles_VkDescriptorSetLayout_u64( |
| forMarshaling->pSetLayouts, cgen_var_1, forMarshaling->descriptorSetCount); |
| vkStream->write((uint64_t*)cgen_var_1, forMarshaling->descriptorSetCount * 8); |
| } |
| } |
| |
| void unmarshal_VkDescriptorSetAllocateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorSetAllocateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDescriptorPool( |
| &cgen_var_0, (VkDescriptorPool*)&forUnmarshaling->descriptorPool, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->descriptorSetCount, sizeof(uint32_t)); |
| if (forUnmarshaling->descriptorSetCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forUnmarshaling->descriptorSetCount * 8); |
| vkStream->read((uint64_t*)cgen_var_1, forUnmarshaling->descriptorSetCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDescriptorSetLayout( |
| cgen_var_1, (VkDescriptorSetLayout*)forUnmarshaling->pSetLayouts, |
| forUnmarshaling->descriptorSetCount); |
| } |
| } |
| |
| void marshal_VkDescriptorSetLayoutBinding(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorSetLayoutBinding* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->binding, sizeof(uint32_t)); |
| vkStream->write((VkDescriptorType*)&forMarshaling->descriptorType, sizeof(VkDescriptorType)); |
| vkStream->write((uint32_t*)&forMarshaling->descriptorCount, sizeof(uint32_t)); |
| vkStream->write((VkShaderStageFlags*)&forMarshaling->stageFlags, sizeof(VkShaderStageFlags)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pImmutableSamplers; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pImmutableSamplers) { |
| if (forMarshaling->descriptorCount) { |
| uint64_t* cgen_var_0_0; |
| vkStream->alloc((void**)&cgen_var_0_0, forMarshaling->descriptorCount * 8); |
| vkStream->handleMapping()->mapHandles_VkSampler_u64( |
| forMarshaling->pImmutableSamplers, cgen_var_0_0, forMarshaling->descriptorCount); |
| vkStream->write((uint64_t*)cgen_var_0_0, forMarshaling->descriptorCount * 8); |
| } |
| } |
| } |
| |
| void unmarshal_VkDescriptorSetLayoutBinding(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorSetLayoutBinding* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->binding, sizeof(uint32_t)); |
| vkStream->read((VkDescriptorType*)&forUnmarshaling->descriptorType, sizeof(VkDescriptorType)); |
| vkStream->read((uint32_t*)&forUnmarshaling->descriptorCount, sizeof(uint32_t)); |
| vkStream->read((VkShaderStageFlags*)&forUnmarshaling->stageFlags, sizeof(VkShaderStageFlags)); |
| // WARNING PTR CHECK |
| const VkSampler* check_pImmutableSamplers; |
| check_pImmutableSamplers = (const VkSampler*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pImmutableSamplers) { |
| if (!(check_pImmutableSamplers)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pImmutableSamplers inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling->descriptorCount) { |
| uint64_t* cgen_var_0_0; |
| vkStream->alloc((void**)&cgen_var_0_0, forUnmarshaling->descriptorCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0_0, forUnmarshaling->descriptorCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSampler( |
| cgen_var_0_0, (VkSampler*)forUnmarshaling->pImmutableSamplers, |
| forUnmarshaling->descriptorCount); |
| } |
| } |
| } |
| |
| void marshal_VkDescriptorSetLayoutCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorSetLayoutCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDescriptorSetLayoutCreateFlags*)&forMarshaling->flags, |
| sizeof(VkDescriptorSetLayoutCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->bindingCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->bindingCount; ++i) { |
| marshal_VkDescriptorSetLayoutBinding( |
| vkStream, rootType, |
| (const VkDescriptorSetLayoutBinding*)(forMarshaling->pBindings + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkDescriptorSetLayoutCreateInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkDescriptorSetLayoutCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDescriptorSetLayoutCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkDescriptorSetLayoutCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->bindingCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->bindingCount; ++i) { |
| unmarshal_VkDescriptorSetLayoutBinding( |
| vkStream, rootType, |
| (VkDescriptorSetLayoutBinding*)(forUnmarshaling->pBindings + i)); |
| } |
| } |
| } |
| |
| void marshal_VkWriteDescriptorSet(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkWriteDescriptorSet* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDescriptorSet_u64(&forMarshaling->dstSet, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->dstBinding, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->dstArrayElement, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->descriptorCount, sizeof(uint32_t)); |
| vkStream->write((VkDescriptorType*)&forMarshaling->descriptorType, sizeof(VkDescriptorType)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pImageInfo; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pImageInfo) { |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| ((VK_DESCRIPTOR_TYPE_SAMPLER == forMarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER == forMarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE == forMarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_IMAGE == forMarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT == forMarshaling->descriptorType)))) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->descriptorCount; ++i) { |
| marshal_VkDescriptorImageInfo( |
| vkStream, rootType, |
| (const VkDescriptorImageInfo*)(forMarshaling->pImageInfo + i)); |
| } |
| } |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_2 = (uint64_t)(uintptr_t)forMarshaling->pBufferInfo; |
| vkStream->putBe64(cgen_var_2); |
| if (forMarshaling->pBufferInfo) { |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| ((VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER == forMarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC == forMarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_BUFFER == forMarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC == forMarshaling->descriptorType)))) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->descriptorCount; ++i) { |
| marshal_VkDescriptorBufferInfo( |
| vkStream, rootType, |
| (const VkDescriptorBufferInfo*)(forMarshaling->pBufferInfo + i)); |
| } |
| } |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_3 = (uint64_t)(uintptr_t)forMarshaling->pTexelBufferView; |
| vkStream->putBe64(cgen_var_3); |
| if (forMarshaling->pTexelBufferView) { |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| ((VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER == forMarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER == forMarshaling->descriptorType)))) { |
| if (forMarshaling->descriptorCount) { |
| uint64_t* cgen_var_3_0; |
| vkStream->alloc((void**)&cgen_var_3_0, forMarshaling->descriptorCount * 8); |
| vkStream->handleMapping()->mapHandles_VkBufferView_u64( |
| forMarshaling->pTexelBufferView, cgen_var_3_0, forMarshaling->descriptorCount); |
| vkStream->write((uint64_t*)cgen_var_3_0, forMarshaling->descriptorCount * 8); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkWriteDescriptorSet(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkWriteDescriptorSet* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDescriptorSet( |
| &cgen_var_0, (VkDescriptorSet*)&forUnmarshaling->dstSet, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstBinding, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstArrayElement, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->descriptorCount, sizeof(uint32_t)); |
| vkStream->read((VkDescriptorType*)&forUnmarshaling->descriptorType, sizeof(VkDescriptorType)); |
| // WARNING PTR CHECK |
| const VkDescriptorImageInfo* check_pImageInfo; |
| check_pImageInfo = (const VkDescriptorImageInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pImageInfo) { |
| if (!(check_pImageInfo)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pImageInfo inconsistent between guest and host\n"); |
| } |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| ((VK_DESCRIPTOR_TYPE_SAMPLER == forUnmarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER == forUnmarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE == forUnmarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_IMAGE == forUnmarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT == forUnmarshaling->descriptorType)))) { |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->descriptorCount; ++i) { |
| unmarshal_VkDescriptorImageInfo( |
| vkStream, rootType, |
| (VkDescriptorImageInfo*)(forUnmarshaling->pImageInfo + i)); |
| } |
| } |
| } else { |
| forUnmarshaling->pImageInfo = 0; |
| } |
| } |
| // WARNING PTR CHECK |
| const VkDescriptorBufferInfo* check_pBufferInfo; |
| check_pBufferInfo = (const VkDescriptorBufferInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pBufferInfo) { |
| if (!(check_pBufferInfo)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pBufferInfo inconsistent between guest and host\n"); |
| } |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| ((VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER == forUnmarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC == forUnmarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_BUFFER == forUnmarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC == forUnmarshaling->descriptorType)))) { |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->descriptorCount; ++i) { |
| unmarshal_VkDescriptorBufferInfo( |
| vkStream, rootType, |
| (VkDescriptorBufferInfo*)(forUnmarshaling->pBufferInfo + i)); |
| } |
| } |
| } else { |
| forUnmarshaling->pBufferInfo = 0; |
| } |
| } |
| // WARNING PTR CHECK |
| const VkBufferView* check_pTexelBufferView; |
| check_pTexelBufferView = (const VkBufferView*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pTexelBufferView) { |
| if (!(check_pTexelBufferView)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pTexelBufferView inconsistent between guest and host\n"); |
| } |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| ((VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER == forUnmarshaling->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER == forUnmarshaling->descriptorType)))) { |
| if (forUnmarshaling->descriptorCount) { |
| uint64_t* cgen_var_3_0; |
| vkStream->alloc((void**)&cgen_var_3_0, forUnmarshaling->descriptorCount * 8); |
| vkStream->read((uint64_t*)cgen_var_3_0, forUnmarshaling->descriptorCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBufferView( |
| cgen_var_3_0, (VkBufferView*)forUnmarshaling->pTexelBufferView, |
| forUnmarshaling->descriptorCount); |
| } |
| } else { |
| forUnmarshaling->pTexelBufferView = 0; |
| } |
| } |
| } |
| |
| void marshal_VkAttachmentDescription(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAttachmentDescription* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkAttachmentDescriptionFlags*)&forMarshaling->flags, |
| sizeof(VkAttachmentDescriptionFlags)); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((VkSampleCountFlagBits*)&forMarshaling->samples, sizeof(VkSampleCountFlagBits)); |
| vkStream->write((VkAttachmentLoadOp*)&forMarshaling->loadOp, sizeof(VkAttachmentLoadOp)); |
| vkStream->write((VkAttachmentStoreOp*)&forMarshaling->storeOp, sizeof(VkAttachmentStoreOp)); |
| vkStream->write((VkAttachmentLoadOp*)&forMarshaling->stencilLoadOp, sizeof(VkAttachmentLoadOp)); |
| vkStream->write((VkAttachmentStoreOp*)&forMarshaling->stencilStoreOp, |
| sizeof(VkAttachmentStoreOp)); |
| vkStream->write((VkImageLayout*)&forMarshaling->initialLayout, sizeof(VkImageLayout)); |
| vkStream->write((VkImageLayout*)&forMarshaling->finalLayout, sizeof(VkImageLayout)); |
| } |
| |
| void unmarshal_VkAttachmentDescription(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAttachmentDescription* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkAttachmentDescriptionFlags*)&forUnmarshaling->flags, |
| sizeof(VkAttachmentDescriptionFlags)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((VkSampleCountFlagBits*)&forUnmarshaling->samples, |
| sizeof(VkSampleCountFlagBits)); |
| vkStream->read((VkAttachmentLoadOp*)&forUnmarshaling->loadOp, sizeof(VkAttachmentLoadOp)); |
| vkStream->read((VkAttachmentStoreOp*)&forUnmarshaling->storeOp, sizeof(VkAttachmentStoreOp)); |
| vkStream->read((VkAttachmentLoadOp*)&forUnmarshaling->stencilLoadOp, |
| sizeof(VkAttachmentLoadOp)); |
| vkStream->read((VkAttachmentStoreOp*)&forUnmarshaling->stencilStoreOp, |
| sizeof(VkAttachmentStoreOp)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->initialLayout, sizeof(VkImageLayout)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->finalLayout, sizeof(VkImageLayout)); |
| } |
| |
| void marshal_VkAttachmentReference(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAttachmentReference* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->attachment, sizeof(uint32_t)); |
| vkStream->write((VkImageLayout*)&forMarshaling->layout, sizeof(VkImageLayout)); |
| } |
| |
| void unmarshal_VkAttachmentReference(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAttachmentReference* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->attachment, sizeof(uint32_t)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->layout, sizeof(VkImageLayout)); |
| } |
| |
| void marshal_VkFramebufferCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFramebufferCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFramebufferCreateFlags*)&forMarshaling->flags, |
| sizeof(VkFramebufferCreateFlags)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkRenderPass_u64(&forMarshaling->renderPass, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->attachmentCount, sizeof(uint32_t)); |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| (((forMarshaling->flags & VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT) == 0)))) { |
| if (forMarshaling->attachmentCount) { |
| uint64_t* cgen_var_0_0; |
| vkStream->alloc((void**)&cgen_var_0_0, forMarshaling->attachmentCount * 8); |
| vkStream->handleMapping()->mapHandles_VkImageView_u64( |
| forMarshaling->pAttachments, cgen_var_0_0, forMarshaling->attachmentCount); |
| vkStream->write((uint64_t*)cgen_var_0_0, forMarshaling->attachmentCount * 8); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->width, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->height, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->layers, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkFramebufferCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFramebufferCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFramebufferCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkFramebufferCreateFlags)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkRenderPass( |
| &cgen_var_0, (VkRenderPass*)&forUnmarshaling->renderPass, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->attachmentCount, sizeof(uint32_t)); |
| if ((!(vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| (((forUnmarshaling->flags & VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT) == 0)))) { |
| if (forUnmarshaling->attachmentCount) { |
| uint64_t* cgen_var_0_0; |
| vkStream->alloc((void**)&cgen_var_0_0, forUnmarshaling->attachmentCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0_0, forUnmarshaling->attachmentCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImageView( |
| cgen_var_0_0, (VkImageView*)forUnmarshaling->pAttachments, |
| forUnmarshaling->attachmentCount); |
| } |
| } else { |
| forUnmarshaling->pAttachments = 0; |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->width, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->height, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->layers, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkSubpassDescription(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubpassDescription* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkSubpassDescriptionFlags*)&forMarshaling->flags, |
| sizeof(VkSubpassDescriptionFlags)); |
| vkStream->write((VkPipelineBindPoint*)&forMarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| vkStream->write((uint32_t*)&forMarshaling->inputAttachmentCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->inputAttachmentCount; ++i) { |
| marshal_VkAttachmentReference( |
| vkStream, rootType, |
| (const VkAttachmentReference*)(forMarshaling->pInputAttachments + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->colorAttachmentCount; ++i) { |
| marshal_VkAttachmentReference( |
| vkStream, rootType, |
| (const VkAttachmentReference*)(forMarshaling->pColorAttachments + i)); |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pResolveAttachments; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pResolveAttachments) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->colorAttachmentCount; ++i) { |
| marshal_VkAttachmentReference( |
| vkStream, rootType, |
| (const VkAttachmentReference*)(forMarshaling->pResolveAttachments + i)); |
| } |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pDepthStencilAttachment; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pDepthStencilAttachment) { |
| marshal_VkAttachmentReference( |
| vkStream, rootType, |
| (const VkAttachmentReference*)(forMarshaling->pDepthStencilAttachment)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->preserveAttachmentCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pPreserveAttachments, |
| forMarshaling->preserveAttachmentCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkSubpassDescription(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubpassDescription* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkSubpassDescriptionFlags*)&forUnmarshaling->flags, |
| sizeof(VkSubpassDescriptionFlags)); |
| vkStream->read((VkPipelineBindPoint*)&forUnmarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| vkStream->read((uint32_t*)&forUnmarshaling->inputAttachmentCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->inputAttachmentCount; ++i) { |
| unmarshal_VkAttachmentReference( |
| vkStream, rootType, |
| (VkAttachmentReference*)(forUnmarshaling->pInputAttachments + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->colorAttachmentCount; ++i) { |
| unmarshal_VkAttachmentReference( |
| vkStream, rootType, |
| (VkAttachmentReference*)(forUnmarshaling->pColorAttachments + i)); |
| } |
| } |
| // WARNING PTR CHECK |
| const VkAttachmentReference* check_pResolveAttachments; |
| check_pResolveAttachments = (const VkAttachmentReference*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pResolveAttachments) { |
| if (!(check_pResolveAttachments)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pResolveAttachments inconsistent between guest and " |
| "host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->colorAttachmentCount; ++i) { |
| unmarshal_VkAttachmentReference( |
| vkStream, rootType, |
| (VkAttachmentReference*)(forUnmarshaling->pResolveAttachments + i)); |
| } |
| } |
| } |
| // WARNING PTR CHECK |
| const VkAttachmentReference* check_pDepthStencilAttachment; |
| check_pDepthStencilAttachment = (const VkAttachmentReference*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pDepthStencilAttachment) { |
| if (!(check_pDepthStencilAttachment)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pDepthStencilAttachment inconsistent between guest " |
| "and host\n"); |
| } |
| unmarshal_VkAttachmentReference( |
| vkStream, rootType, (VkAttachmentReference*)(forUnmarshaling->pDepthStencilAttachment)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->preserveAttachmentCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pPreserveAttachments, |
| forUnmarshaling->preserveAttachmentCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkSubpassDependency(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubpassDependency* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->srcSubpass, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->dstSubpass, sizeof(uint32_t)); |
| vkStream->write((VkPipelineStageFlags*)&forMarshaling->srcStageMask, |
| sizeof(VkPipelineStageFlags)); |
| vkStream->write((VkPipelineStageFlags*)&forMarshaling->dstStageMask, |
| sizeof(VkPipelineStageFlags)); |
| vkStream->write((VkAccessFlags*)&forMarshaling->srcAccessMask, sizeof(VkAccessFlags)); |
| vkStream->write((VkAccessFlags*)&forMarshaling->dstAccessMask, sizeof(VkAccessFlags)); |
| vkStream->write((VkDependencyFlags*)&forMarshaling->dependencyFlags, sizeof(VkDependencyFlags)); |
| } |
| |
| void unmarshal_VkSubpassDependency(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubpassDependency* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->srcSubpass, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstSubpass, sizeof(uint32_t)); |
| vkStream->read((VkPipelineStageFlags*)&forUnmarshaling->srcStageMask, |
| sizeof(VkPipelineStageFlags)); |
| vkStream->read((VkPipelineStageFlags*)&forUnmarshaling->dstStageMask, |
| sizeof(VkPipelineStageFlags)); |
| vkStream->read((VkAccessFlags*)&forUnmarshaling->srcAccessMask, sizeof(VkAccessFlags)); |
| vkStream->read((VkAccessFlags*)&forUnmarshaling->dstAccessMask, sizeof(VkAccessFlags)); |
| vkStream->read((VkDependencyFlags*)&forUnmarshaling->dependencyFlags, |
| sizeof(VkDependencyFlags)); |
| } |
| |
| void marshal_VkRenderPassCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderPassCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkRenderPassCreateFlags*)&forMarshaling->flags, |
| sizeof(VkRenderPassCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->attachmentCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->attachmentCount; ++i) { |
| marshal_VkAttachmentDescription( |
| vkStream, rootType, |
| (const VkAttachmentDescription*)(forMarshaling->pAttachments + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->subpassCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->subpassCount; ++i) { |
| marshal_VkSubpassDescription( |
| vkStream, rootType, (const VkSubpassDescription*)(forMarshaling->pSubpasses + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->dependencyCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->dependencyCount; ++i) { |
| marshal_VkSubpassDependency( |
| vkStream, rootType, (const VkSubpassDependency*)(forMarshaling->pDependencies + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkRenderPassCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderPassCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkRenderPassCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkRenderPassCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->attachmentCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->attachmentCount; ++i) { |
| unmarshal_VkAttachmentDescription( |
| vkStream, rootType, (VkAttachmentDescription*)(forUnmarshaling->pAttachments + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->subpassCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->subpassCount; ++i) { |
| unmarshal_VkSubpassDescription( |
| vkStream, rootType, (VkSubpassDescription*)(forUnmarshaling->pSubpasses + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->dependencyCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->dependencyCount; ++i) { |
| unmarshal_VkSubpassDependency( |
| vkStream, rootType, (VkSubpassDependency*)(forUnmarshaling->pDependencies + i)); |
| } |
| } |
| } |
| |
| void marshal_VkCommandPoolCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCommandPoolCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkCommandPoolCreateFlags*)&forMarshaling->flags, |
| sizeof(VkCommandPoolCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->queueFamilyIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkCommandPoolCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCommandPoolCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkCommandPoolCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkCommandPoolCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueFamilyIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkCommandBufferAllocateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCommandBufferAllocateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkCommandPool_u64(&forMarshaling->commandPool, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkCommandBufferLevel*)&forMarshaling->level, sizeof(VkCommandBufferLevel)); |
| vkStream->write((uint32_t*)&forMarshaling->commandBufferCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkCommandBufferAllocateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCommandBufferAllocateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkCommandPool( |
| &cgen_var_0, (VkCommandPool*)&forUnmarshaling->commandPool, 1); |
| vkStream->read((VkCommandBufferLevel*)&forUnmarshaling->level, sizeof(VkCommandBufferLevel)); |
| vkStream->read((uint32_t*)&forUnmarshaling->commandBufferCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkCommandBufferInheritanceInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCommandBufferInheritanceInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkRenderPass_u64(&forMarshaling->renderPass, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->subpass, sizeof(uint32_t)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkFramebuffer_u64(&forMarshaling->framebuffer, |
| &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkBool32*)&forMarshaling->occlusionQueryEnable, sizeof(VkBool32)); |
| vkStream->write((VkQueryControlFlags*)&forMarshaling->queryFlags, sizeof(VkQueryControlFlags)); |
| vkStream->write((VkQueryPipelineStatisticFlags*)&forMarshaling->pipelineStatistics, |
| sizeof(VkQueryPipelineStatisticFlags)); |
| } |
| |
| void unmarshal_VkCommandBufferInheritanceInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCommandBufferInheritanceInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkRenderPass( |
| &cgen_var_0, (VkRenderPass*)&forUnmarshaling->renderPass, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->subpass, sizeof(uint32_t)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkFramebuffer( |
| &cgen_var_1, (VkFramebuffer*)&forUnmarshaling->framebuffer, 1); |
| vkStream->read((VkBool32*)&forUnmarshaling->occlusionQueryEnable, sizeof(VkBool32)); |
| vkStream->read((VkQueryControlFlags*)&forUnmarshaling->queryFlags, sizeof(VkQueryControlFlags)); |
| vkStream->read((VkQueryPipelineStatisticFlags*)&forUnmarshaling->pipelineStatistics, |
| sizeof(VkQueryPipelineStatisticFlags)); |
| } |
| |
| void marshal_VkCommandBufferBeginInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCommandBufferBeginInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkCommandBufferUsageFlags*)&forMarshaling->flags, |
| sizeof(VkCommandBufferUsageFlags)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pInheritanceInfo; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pInheritanceInfo) { |
| marshal_VkCommandBufferInheritanceInfo( |
| vkStream, rootType, |
| (const VkCommandBufferInheritanceInfo*)(forMarshaling->pInheritanceInfo)); |
| } |
| } |
| |
| void unmarshal_VkCommandBufferBeginInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCommandBufferBeginInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkCommandBufferUsageFlags*)&forUnmarshaling->flags, |
| sizeof(VkCommandBufferUsageFlags)); |
| // WARNING PTR CHECK |
| const VkCommandBufferInheritanceInfo* check_pInheritanceInfo; |
| check_pInheritanceInfo = (const VkCommandBufferInheritanceInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pInheritanceInfo) { |
| if (!(check_pInheritanceInfo)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pInheritanceInfo inconsistent between guest and host\n"); |
| } |
| unmarshal_VkCommandBufferInheritanceInfo( |
| vkStream, rootType, |
| (VkCommandBufferInheritanceInfo*)(forUnmarshaling->pInheritanceInfo)); |
| } |
| } |
| |
| void marshal_VkBufferCopy(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferCopy* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceSize*)&forMarshaling->srcOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->dstOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkBufferCopy(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferCopy* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->srcOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->dstOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkImageSubresourceLayers(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageSubresourceLayers* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkImageAspectFlags*)&forMarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->mipLevel, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->baseArrayLayer, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->layerCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkImageSubresourceLayers(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageSubresourceLayers* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkImageAspectFlags*)&forUnmarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->mipLevel, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->baseArrayLayer, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->layerCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkBufferImageCopy(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferImageCopy* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceSize*)&forMarshaling->bufferOffset, sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->bufferRowLength, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->bufferImageHeight, sizeof(uint32_t)); |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->imageSubresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->imageOffset)); |
| marshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forMarshaling->imageExtent)); |
| } |
| |
| void unmarshal_VkBufferImageCopy(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferImageCopy* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->bufferOffset, sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->bufferRowLength, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->bufferImageHeight, sizeof(uint32_t)); |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->imageSubresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->imageOffset)); |
| unmarshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forUnmarshaling->imageExtent)); |
| } |
| |
| void marshal_VkClearColorValue(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkClearColorValue* forMarshaling) { |
| (void)rootType; |
| vkStream->write((float*)forMarshaling->float32, 4 * sizeof(float)); |
| } |
| |
| void unmarshal_VkClearColorValue(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkClearColorValue* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((float*)forUnmarshaling->float32, 4 * sizeof(float)); |
| } |
| |
| void marshal_VkClearDepthStencilValue(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkClearDepthStencilValue* forMarshaling) { |
| (void)rootType; |
| vkStream->write((float*)&forMarshaling->depth, sizeof(float)); |
| vkStream->write((uint32_t*)&forMarshaling->stencil, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkClearDepthStencilValue(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkClearDepthStencilValue* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((float*)&forUnmarshaling->depth, sizeof(float)); |
| vkStream->read((uint32_t*)&forUnmarshaling->stencil, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkClearValue(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkClearValue* forMarshaling) { |
| (void)rootType; |
| marshal_VkClearColorValue(vkStream, rootType, (VkClearColorValue*)(&forMarshaling->color)); |
| } |
| |
| void unmarshal_VkClearValue(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkClearValue* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkClearColorValue(vkStream, rootType, (VkClearColorValue*)(&forUnmarshaling->color)); |
| } |
| |
| void marshal_VkClearAttachment(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkClearAttachment* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkImageAspectFlags*)&forMarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->colorAttachment, sizeof(uint32_t)); |
| marshal_VkClearValue(vkStream, rootType, (VkClearValue*)(&forMarshaling->clearValue)); |
| } |
| |
| void unmarshal_VkClearAttachment(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkClearAttachment* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkImageAspectFlags*)&forUnmarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->colorAttachment, sizeof(uint32_t)); |
| unmarshal_VkClearValue(vkStream, rootType, (VkClearValue*)(&forUnmarshaling->clearValue)); |
| } |
| |
| void marshal_VkClearRect(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkClearRect* forMarshaling) { |
| (void)rootType; |
| marshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forMarshaling->rect)); |
| vkStream->write((uint32_t*)&forMarshaling->baseArrayLayer, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->layerCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkClearRect(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkClearRect* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forUnmarshaling->rect)); |
| vkStream->read((uint32_t*)&forUnmarshaling->baseArrayLayer, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->layerCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkImageBlit(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageBlit* forMarshaling) { |
| (void)rootType; |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->srcSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(forMarshaling->srcOffsets + i)); |
| } |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->dstSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(forMarshaling->dstOffsets + i)); |
| } |
| } |
| |
| void unmarshal_VkImageBlit(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageBlit* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->srcSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(forUnmarshaling->srcOffsets + i)); |
| } |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->dstSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(forUnmarshaling->dstOffsets + i)); |
| } |
| } |
| |
| void marshal_VkImageCopy(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageCopy* forMarshaling) { |
| (void)rootType; |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->srcSubresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->srcOffset)); |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->dstSubresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->dstOffset)); |
| marshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forMarshaling->extent)); |
| } |
| |
| void unmarshal_VkImageCopy(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageCopy* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->srcSubresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->srcOffset)); |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->dstSubresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->dstOffset)); |
| unmarshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forUnmarshaling->extent)); |
| } |
| |
| void marshal_VkImageResolve(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageResolve* forMarshaling) { |
| (void)rootType; |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->srcSubresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->srcOffset)); |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->dstSubresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->dstOffset)); |
| marshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forMarshaling->extent)); |
| } |
| |
| void unmarshal_VkImageResolve(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageResolve* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->srcSubresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->srcOffset)); |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->dstSubresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->dstOffset)); |
| unmarshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forUnmarshaling->extent)); |
| } |
| |
| void marshal_VkRenderPassBeginInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderPassBeginInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkRenderPass_u64(&forMarshaling->renderPass, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkFramebuffer_u64(&forMarshaling->framebuffer, |
| &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| marshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forMarshaling->renderArea)); |
| vkStream->write((uint32_t*)&forMarshaling->clearValueCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_2 = (uint64_t)(uintptr_t)forMarshaling->pClearValues; |
| vkStream->putBe64(cgen_var_2); |
| if (forMarshaling->pClearValues) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->clearValueCount; ++i) { |
| marshal_VkClearValue(vkStream, rootType, |
| (const VkClearValue*)(forMarshaling->pClearValues + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkRenderPassBeginInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderPassBeginInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkRenderPass( |
| &cgen_var_0, (VkRenderPass*)&forUnmarshaling->renderPass, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkFramebuffer( |
| &cgen_var_1, (VkFramebuffer*)&forUnmarshaling->framebuffer, 1); |
| unmarshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forUnmarshaling->renderArea)); |
| vkStream->read((uint32_t*)&forUnmarshaling->clearValueCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkClearValue* check_pClearValues; |
| check_pClearValues = (const VkClearValue*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pClearValues) { |
| if (!(check_pClearValues)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pClearValues inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->clearValueCount; ++i) { |
| unmarshal_VkClearValue(vkStream, rootType, |
| (VkClearValue*)(forUnmarshaling->pClearValues + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_VERSION_1_1 |
| void marshal_VkPhysicalDeviceSubgroupProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSubgroupProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->subgroupSize, sizeof(uint32_t)); |
| vkStream->write((VkShaderStageFlags*)&forMarshaling->supportedStages, |
| sizeof(VkShaderStageFlags)); |
| vkStream->write((VkSubgroupFeatureFlags*)&forMarshaling->supportedOperations, |
| sizeof(VkSubgroupFeatureFlags)); |
| vkStream->write((VkBool32*)&forMarshaling->quadOperationsInAllStages, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSubgroupProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSubgroupProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->subgroupSize, sizeof(uint32_t)); |
| vkStream->read((VkShaderStageFlags*)&forUnmarshaling->supportedStages, |
| sizeof(VkShaderStageFlags)); |
| vkStream->read((VkSubgroupFeatureFlags*)&forUnmarshaling->supportedOperations, |
| sizeof(VkSubgroupFeatureFlags)); |
| vkStream->read((VkBool32*)&forUnmarshaling->quadOperationsInAllStages, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkBindBufferMemoryInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindBufferMemoryInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_1, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkBindBufferMemoryInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBindBufferMemoryInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_1, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkBindImageMemoryInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindImageMemoryInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->image, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_1, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkBindImageMemoryInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBindImageMemoryInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->image, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_1, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkPhysicalDevice16BitStorageFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevice16BitStorageFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->storageBuffer16BitAccess, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->uniformAndStorageBuffer16BitAccess, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->storagePushConstant16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->storageInputOutput16, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevice16BitStorageFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevice16BitStorageFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storageBuffer16BitAccess, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->uniformAndStorageBuffer16BitAccess, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storagePushConstant16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storageInputOutput16, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkMemoryDedicatedRequirements(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryDedicatedRequirements* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->prefersDedicatedAllocation, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->requiresDedicatedAllocation, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkMemoryDedicatedRequirements(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryDedicatedRequirements* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->prefersDedicatedAllocation, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->requiresDedicatedAllocation, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkMemoryDedicatedAllocateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryDedicatedAllocateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->image, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| } |
| |
| void unmarshal_VkMemoryDedicatedAllocateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryDedicatedAllocateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->image, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_1, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| } |
| |
| void marshal_VkMemoryAllocateFlagsInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryAllocateFlagsInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkMemoryAllocateFlags*)&forMarshaling->flags, sizeof(VkMemoryAllocateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->deviceMask, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkMemoryAllocateFlagsInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryAllocateFlagsInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkMemoryAllocateFlags*)&forUnmarshaling->flags, sizeof(VkMemoryAllocateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceMask, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDeviceGroupRenderPassBeginInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceGroupRenderPassBeginInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->deviceMask, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->deviceRenderAreaCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->deviceRenderAreaCount; ++i) { |
| marshal_VkRect2D(vkStream, rootType, |
| (const VkRect2D*)(forMarshaling->pDeviceRenderAreas + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkDeviceGroupRenderPassBeginInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkDeviceGroupRenderPassBeginInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceMask, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceRenderAreaCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->deviceRenderAreaCount; ++i) { |
| unmarshal_VkRect2D(vkStream, rootType, |
| (VkRect2D*)(forUnmarshaling->pDeviceRenderAreas + i)); |
| } |
| } |
| } |
| |
| void marshal_VkDeviceGroupCommandBufferBeginInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceGroupCommandBufferBeginInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->deviceMask, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDeviceGroupCommandBufferBeginInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceGroupCommandBufferBeginInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceMask, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDeviceGroupSubmitInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceGroupSubmitInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->waitSemaphoreCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pWaitSemaphoreDeviceIndices, |
| forMarshaling->waitSemaphoreCount * sizeof(const uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->commandBufferCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pCommandBufferDeviceMasks, |
| forMarshaling->commandBufferCount * sizeof(const uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->signalSemaphoreCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pSignalSemaphoreDeviceIndices, |
| forMarshaling->signalSemaphoreCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkDeviceGroupSubmitInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceGroupSubmitInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->waitSemaphoreCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pWaitSemaphoreDeviceIndices, |
| forUnmarshaling->waitSemaphoreCount * sizeof(const uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->commandBufferCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pCommandBufferDeviceMasks, |
| forUnmarshaling->commandBufferCount * sizeof(const uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->signalSemaphoreCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pSignalSemaphoreDeviceIndices, |
| forUnmarshaling->signalSemaphoreCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkDeviceGroupBindSparseInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceGroupBindSparseInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->resourceDeviceIndex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->memoryDeviceIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDeviceGroupBindSparseInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceGroupBindSparseInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->resourceDeviceIndex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryDeviceIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkBindBufferMemoryDeviceGroupInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindBufferMemoryDeviceGroupInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->deviceIndexCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pDeviceIndices, |
| forMarshaling->deviceIndexCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkBindBufferMemoryDeviceGroupInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBindBufferMemoryDeviceGroupInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceIndexCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pDeviceIndices, |
| forUnmarshaling->deviceIndexCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkBindImageMemoryDeviceGroupInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindImageMemoryDeviceGroupInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->deviceIndexCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pDeviceIndices, |
| forMarshaling->deviceIndexCount * sizeof(const uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->splitInstanceBindRegionCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->splitInstanceBindRegionCount; ++i) { |
| marshal_VkRect2D(vkStream, rootType, |
| (const VkRect2D*)(forMarshaling->pSplitInstanceBindRegions + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkBindImageMemoryDeviceGroupInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkBindImageMemoryDeviceGroupInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceIndexCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pDeviceIndices, |
| forUnmarshaling->deviceIndexCount * sizeof(const uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->splitInstanceBindRegionCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->splitInstanceBindRegionCount; ++i) { |
| unmarshal_VkRect2D(vkStream, rootType, |
| (VkRect2D*)(forUnmarshaling->pSplitInstanceBindRegions + i)); |
| } |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceGroupProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceGroupProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->physicalDeviceCount, sizeof(uint32_t)); |
| vkStream->write((VkPhysicalDevice*)forMarshaling->physicalDevices, |
| VK_MAX_DEVICE_GROUP_SIZE * sizeof(VkPhysicalDevice)); |
| vkStream->write((VkBool32*)&forMarshaling->subsetAllocation, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceGroupProperties(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPhysicalDeviceGroupProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->physicalDeviceCount, sizeof(uint32_t)); |
| vkStream->read((VkPhysicalDevice*)forUnmarshaling->physicalDevices, |
| VK_MAX_DEVICE_GROUP_SIZE * sizeof(VkPhysicalDevice)); |
| vkStream->read((VkBool32*)&forUnmarshaling->subsetAllocation, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkDeviceGroupDeviceCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceGroupDeviceCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->physicalDeviceCount, sizeof(uint32_t)); |
| if (forMarshaling->physicalDeviceCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->physicalDeviceCount * 8); |
| vkStream->handleMapping()->mapHandles_VkPhysicalDevice_u64( |
| forMarshaling->pPhysicalDevices, cgen_var_0, forMarshaling->physicalDeviceCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->physicalDeviceCount * 8); |
| } |
| } |
| |
| void unmarshal_VkDeviceGroupDeviceCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceGroupDeviceCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->physicalDeviceCount, sizeof(uint32_t)); |
| if (forUnmarshaling->physicalDeviceCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->physicalDeviceCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->physicalDeviceCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPhysicalDevice( |
| cgen_var_0, (VkPhysicalDevice*)forUnmarshaling->pPhysicalDevices, |
| forUnmarshaling->physicalDeviceCount); |
| } |
| } |
| |
| void marshal_VkBufferMemoryRequirementsInfo2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferMemoryRequirementsInfo2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkBufferMemoryRequirementsInfo2(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkBufferMemoryRequirementsInfo2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| } |
| |
| void marshal_VkImageMemoryRequirementsInfo2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageMemoryRequirementsInfo2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->image, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkImageMemoryRequirementsInfo2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageMemoryRequirementsInfo2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->image, 1); |
| } |
| |
| void marshal_VkImageSparseMemoryRequirementsInfo2( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageSparseMemoryRequirementsInfo2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->image, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkImageSparseMemoryRequirementsInfo2( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageSparseMemoryRequirementsInfo2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->image, 1); |
| } |
| |
| void marshal_VkMemoryRequirements2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryRequirements2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkMemoryRequirements(vkStream, rootType, |
| (VkMemoryRequirements*)(&forMarshaling->memoryRequirements)); |
| } |
| |
| void unmarshal_VkMemoryRequirements2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryRequirements2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkMemoryRequirements(vkStream, rootType, |
| (VkMemoryRequirements*)(&forUnmarshaling->memoryRequirements)); |
| } |
| |
| void marshal_VkSparseImageMemoryRequirements2( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSparseImageMemoryRequirements2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkSparseImageMemoryRequirements( |
| vkStream, rootType, (VkSparseImageMemoryRequirements*)(&forMarshaling->memoryRequirements)); |
| } |
| |
| void unmarshal_VkSparseImageMemoryRequirements2(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkSparseImageMemoryRequirements2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkSparseImageMemoryRequirements( |
| vkStream, rootType, |
| (VkSparseImageMemoryRequirements*)(&forUnmarshaling->memoryRequirements)); |
| } |
| |
| void marshal_VkPhysicalDeviceFeatures2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFeatures2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkPhysicalDeviceFeatures(vkStream, rootType, |
| (VkPhysicalDeviceFeatures*)(&forMarshaling->features)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFeatures2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFeatures2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkPhysicalDeviceFeatures(vkStream, rootType, |
| (VkPhysicalDeviceFeatures*)(&forUnmarshaling->features)); |
| } |
| |
| void marshal_VkPhysicalDeviceProperties2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceProperties2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkPhysicalDeviceProperties(vkStream, rootType, |
| (VkPhysicalDeviceProperties*)(&forMarshaling->properties)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceProperties2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceProperties2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkPhysicalDeviceProperties( |
| vkStream, rootType, (VkPhysicalDeviceProperties*)(&forUnmarshaling->properties)); |
| } |
| |
| void marshal_VkFormatProperties2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFormatProperties2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkFormatProperties(vkStream, rootType, |
| (VkFormatProperties*)(&forMarshaling->formatProperties)); |
| } |
| |
| void unmarshal_VkFormatProperties2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFormatProperties2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkFormatProperties(vkStream, rootType, |
| (VkFormatProperties*)(&forUnmarshaling->formatProperties)); |
| } |
| |
| void marshal_VkImageFormatProperties2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageFormatProperties2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkImageFormatProperties( |
| vkStream, rootType, (VkImageFormatProperties*)(&forMarshaling->imageFormatProperties)); |
| } |
| |
| void unmarshal_VkImageFormatProperties2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageFormatProperties2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkImageFormatProperties( |
| vkStream, rootType, (VkImageFormatProperties*)(&forUnmarshaling->imageFormatProperties)); |
| } |
| |
| void marshal_VkPhysicalDeviceImageFormatInfo2( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceImageFormatInfo2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((VkImageType*)&forMarshaling->type, sizeof(VkImageType)); |
| vkStream->write((VkImageTiling*)&forMarshaling->tiling, sizeof(VkImageTiling)); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->usage, sizeof(VkImageUsageFlags)); |
| vkStream->write((VkImageCreateFlags*)&forMarshaling->flags, sizeof(VkImageCreateFlags)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceImageFormatInfo2(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPhysicalDeviceImageFormatInfo2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((VkImageType*)&forUnmarshaling->type, sizeof(VkImageType)); |
| vkStream->read((VkImageTiling*)&forUnmarshaling->tiling, sizeof(VkImageTiling)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->usage, sizeof(VkImageUsageFlags)); |
| vkStream->read((VkImageCreateFlags*)&forUnmarshaling->flags, sizeof(VkImageCreateFlags)); |
| } |
| |
| void marshal_VkQueueFamilyProperties2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkQueueFamilyProperties2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkQueueFamilyProperties( |
| vkStream, rootType, (VkQueueFamilyProperties*)(&forMarshaling->queueFamilyProperties)); |
| } |
| |
| void unmarshal_VkQueueFamilyProperties2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkQueueFamilyProperties2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkQueueFamilyProperties( |
| vkStream, rootType, (VkQueueFamilyProperties*)(&forUnmarshaling->queueFamilyProperties)); |
| } |
| |
| void marshal_VkPhysicalDeviceMemoryProperties2( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMemoryProperties2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkPhysicalDeviceMemoryProperties( |
| vkStream, rootType, (VkPhysicalDeviceMemoryProperties*)(&forMarshaling->memoryProperties)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMemoryProperties2( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMemoryProperties2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkPhysicalDeviceMemoryProperties( |
| vkStream, rootType, |
| (VkPhysicalDeviceMemoryProperties*)(&forUnmarshaling->memoryProperties)); |
| } |
| |
| void marshal_VkSparseImageFormatProperties2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSparseImageFormatProperties2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkSparseImageFormatProperties( |
| vkStream, rootType, (VkSparseImageFormatProperties*)(&forMarshaling->properties)); |
| } |
| |
| void unmarshal_VkSparseImageFormatProperties2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSparseImageFormatProperties2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkSparseImageFormatProperties( |
| vkStream, rootType, (VkSparseImageFormatProperties*)(&forUnmarshaling->properties)); |
| } |
| |
| void marshal_VkPhysicalDeviceSparseImageFormatInfo2( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSparseImageFormatInfo2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((VkImageType*)&forMarshaling->type, sizeof(VkImageType)); |
| vkStream->write((VkSampleCountFlagBits*)&forMarshaling->samples, sizeof(VkSampleCountFlagBits)); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->usage, sizeof(VkImageUsageFlags)); |
| vkStream->write((VkImageTiling*)&forMarshaling->tiling, sizeof(VkImageTiling)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSparseImageFormatInfo2( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSparseImageFormatInfo2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((VkImageType*)&forUnmarshaling->type, sizeof(VkImageType)); |
| vkStream->read((VkSampleCountFlagBits*)&forUnmarshaling->samples, |
| sizeof(VkSampleCountFlagBits)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->usage, sizeof(VkImageUsageFlags)); |
| vkStream->read((VkImageTiling*)&forUnmarshaling->tiling, sizeof(VkImageTiling)); |
| } |
| |
| void marshal_VkPhysicalDevicePointClippingProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePointClippingProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPointClippingBehavior*)&forMarshaling->pointClippingBehavior, |
| sizeof(VkPointClippingBehavior)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePointClippingProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePointClippingProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPointClippingBehavior*)&forUnmarshaling->pointClippingBehavior, |
| sizeof(VkPointClippingBehavior)); |
| } |
| |
| void marshal_VkInputAttachmentAspectReference( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkInputAttachmentAspectReference* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->subpass, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->inputAttachmentIndex, sizeof(uint32_t)); |
| vkStream->write((VkImageAspectFlags*)&forMarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| } |
| |
| void unmarshal_VkInputAttachmentAspectReference(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkInputAttachmentAspectReference* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->subpass, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->inputAttachmentIndex, sizeof(uint32_t)); |
| vkStream->read((VkImageAspectFlags*)&forUnmarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| } |
| |
| void marshal_VkRenderPassInputAttachmentAspectCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderPassInputAttachmentAspectCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->aspectReferenceCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->aspectReferenceCount; ++i) { |
| marshal_VkInputAttachmentAspectReference( |
| vkStream, rootType, |
| (const VkInputAttachmentAspectReference*)(forMarshaling->pAspectReferences + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkRenderPassInputAttachmentAspectCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderPassInputAttachmentAspectCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->aspectReferenceCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->aspectReferenceCount; ++i) { |
| unmarshal_VkInputAttachmentAspectReference( |
| vkStream, rootType, |
| (VkInputAttachmentAspectReference*)(forUnmarshaling->pAspectReferences + i)); |
| } |
| } |
| } |
| |
| void marshal_VkImageViewUsageCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageViewUsageCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->usage, sizeof(VkImageUsageFlags)); |
| } |
| |
| void unmarshal_VkImageViewUsageCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageViewUsageCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->usage, sizeof(VkImageUsageFlags)); |
| } |
| |
| void marshal_VkPipelineTessellationDomainOriginStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineTessellationDomainOriginStateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkTessellationDomainOrigin*)&forMarshaling->domainOrigin, |
| sizeof(VkTessellationDomainOrigin)); |
| } |
| |
| void unmarshal_VkPipelineTessellationDomainOriginStateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineTessellationDomainOriginStateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkTessellationDomainOrigin*)&forUnmarshaling->domainOrigin, |
| sizeof(VkTessellationDomainOrigin)); |
| } |
| |
| void marshal_VkRenderPassMultiviewCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderPassMultiviewCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->subpassCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pViewMasks, |
| forMarshaling->subpassCount * sizeof(const uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->dependencyCount, sizeof(uint32_t)); |
| vkStream->write((const int32_t*)forMarshaling->pViewOffsets, |
| forMarshaling->dependencyCount * sizeof(const int32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->correlationMaskCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pCorrelationMasks, |
| forMarshaling->correlationMaskCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkRenderPassMultiviewCreateInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkRenderPassMultiviewCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->subpassCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pViewMasks, |
| forUnmarshaling->subpassCount * sizeof(const uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dependencyCount, sizeof(uint32_t)); |
| vkStream->read((int32_t*)forUnmarshaling->pViewOffsets, |
| forUnmarshaling->dependencyCount * sizeof(const int32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->correlationMaskCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pCorrelationMasks, |
| forUnmarshaling->correlationMaskCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceMultiviewFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMultiviewFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->multiview, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->multiviewGeometryShader, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->multiviewTessellationShader, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMultiviewFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMultiviewFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->multiview, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->multiviewGeometryShader, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->multiviewTessellationShader, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceMultiviewProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMultiviewProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxMultiviewViewCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxMultiviewInstanceIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMultiviewProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMultiviewProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMultiviewViewCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMultiviewInstanceIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceVariablePointersFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceVariablePointersFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->variablePointersStorageBuffer, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->variablePointers, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceVariablePointersFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceVariablePointersFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->variablePointersStorageBuffer, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->variablePointers, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceProtectedMemoryFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceProtectedMemoryFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->protectedMemory, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceProtectedMemoryFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceProtectedMemoryFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->protectedMemory, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceProtectedMemoryProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceProtectedMemoryProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->protectedNoFault, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceProtectedMemoryProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceProtectedMemoryProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->protectedNoFault, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkDeviceQueueInfo2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceQueueInfo2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceQueueCreateFlags*)&forMarshaling->flags, |
| sizeof(VkDeviceQueueCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->queueFamilyIndex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->queueIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDeviceQueueInfo2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceQueueInfo2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceQueueCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkDeviceQueueCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueFamilyIndex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkProtectedSubmitInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkProtectedSubmitInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->protectedSubmit, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkProtectedSubmitInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkProtectedSubmitInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->protectedSubmit, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkSamplerYcbcrConversionCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSamplerYcbcrConversionCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((VkSamplerYcbcrModelConversion*)&forMarshaling->ycbcrModel, |
| sizeof(VkSamplerYcbcrModelConversion)); |
| vkStream->write((VkSamplerYcbcrRange*)&forMarshaling->ycbcrRange, sizeof(VkSamplerYcbcrRange)); |
| marshal_VkComponentMapping(vkStream, rootType, |
| (VkComponentMapping*)(&forMarshaling->components)); |
| vkStream->write((VkChromaLocation*)&forMarshaling->xChromaOffset, sizeof(VkChromaLocation)); |
| vkStream->write((VkChromaLocation*)&forMarshaling->yChromaOffset, sizeof(VkChromaLocation)); |
| vkStream->write((VkFilter*)&forMarshaling->chromaFilter, sizeof(VkFilter)); |
| vkStream->write((VkBool32*)&forMarshaling->forceExplicitReconstruction, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkSamplerYcbcrConversionCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSamplerYcbcrConversionCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((VkSamplerYcbcrModelConversion*)&forUnmarshaling->ycbcrModel, |
| sizeof(VkSamplerYcbcrModelConversion)); |
| vkStream->read((VkSamplerYcbcrRange*)&forUnmarshaling->ycbcrRange, sizeof(VkSamplerYcbcrRange)); |
| unmarshal_VkComponentMapping(vkStream, rootType, |
| (VkComponentMapping*)(&forUnmarshaling->components)); |
| vkStream->read((VkChromaLocation*)&forUnmarshaling->xChromaOffset, sizeof(VkChromaLocation)); |
| vkStream->read((VkChromaLocation*)&forUnmarshaling->yChromaOffset, sizeof(VkChromaLocation)); |
| vkStream->read((VkFilter*)&forUnmarshaling->chromaFilter, sizeof(VkFilter)); |
| vkStream->read((VkBool32*)&forUnmarshaling->forceExplicitReconstruction, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkSamplerYcbcrConversionInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSamplerYcbcrConversionInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSamplerYcbcrConversion_u64(&forMarshaling->conversion, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkSamplerYcbcrConversionInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSamplerYcbcrConversionInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSamplerYcbcrConversion( |
| &cgen_var_0, (VkSamplerYcbcrConversion*)&forUnmarshaling->conversion, 1); |
| } |
| |
| void marshal_VkBindImagePlaneMemoryInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindImagePlaneMemoryInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageAspectFlagBits*)&forMarshaling->planeAspect, |
| sizeof(VkImageAspectFlagBits)); |
| } |
| |
| void unmarshal_VkBindImagePlaneMemoryInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBindImagePlaneMemoryInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageAspectFlagBits*)&forUnmarshaling->planeAspect, |
| sizeof(VkImageAspectFlagBits)); |
| } |
| |
| void marshal_VkImagePlaneMemoryRequirementsInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImagePlaneMemoryRequirementsInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageAspectFlagBits*)&forMarshaling->planeAspect, |
| sizeof(VkImageAspectFlagBits)); |
| } |
| |
| void unmarshal_VkImagePlaneMemoryRequirementsInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImagePlaneMemoryRequirementsInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageAspectFlagBits*)&forUnmarshaling->planeAspect, |
| sizeof(VkImageAspectFlagBits)); |
| } |
| |
| void marshal_VkPhysicalDeviceSamplerYcbcrConversionFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSamplerYcbcrConversionFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->samplerYcbcrConversion, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSamplerYcbcrConversionFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSamplerYcbcrConversionFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->samplerYcbcrConversion, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkSamplerYcbcrConversionImageFormatProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSamplerYcbcrConversionImageFormatProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->combinedImageSamplerDescriptorCount, |
| sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkSamplerYcbcrConversionImageFormatProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSamplerYcbcrConversionImageFormatProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->combinedImageSamplerDescriptorCount, |
| sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDescriptorUpdateTemplateEntry(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorUpdateTemplateEntry* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->dstBinding, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->dstArrayElement, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->descriptorCount, sizeof(uint32_t)); |
| vkStream->write((VkDescriptorType*)&forMarshaling->descriptorType, sizeof(VkDescriptorType)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->offset; |
| vkStream->putBe64(cgen_var_0); |
| uint64_t cgen_var_1 = (uint64_t)forMarshaling->stride; |
| vkStream->putBe64(cgen_var_1); |
| } |
| |
| void unmarshal_VkDescriptorUpdateTemplateEntry(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkDescriptorUpdateTemplateEntry* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->dstBinding, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstArrayElement, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->descriptorCount, sizeof(uint32_t)); |
| vkStream->read((VkDescriptorType*)&forUnmarshaling->descriptorType, sizeof(VkDescriptorType)); |
| forUnmarshaling->offset = (size_t)vkStream->getBe64(); |
| forUnmarshaling->stride = (size_t)vkStream->getBe64(); |
| } |
| |
| void marshal_VkDescriptorUpdateTemplateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorUpdateTemplateCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDescriptorUpdateTemplateCreateFlags*)&forMarshaling->flags, |
| sizeof(VkDescriptorUpdateTemplateCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->descriptorUpdateEntryCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->descriptorUpdateEntryCount; ++i) { |
| marshal_VkDescriptorUpdateTemplateEntry( |
| vkStream, rootType, |
| (const VkDescriptorUpdateTemplateEntry*)(forMarshaling->pDescriptorUpdateEntries + |
| i)); |
| } |
| } |
| vkStream->write((VkDescriptorUpdateTemplateType*)&forMarshaling->templateType, |
| sizeof(VkDescriptorUpdateTemplateType)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDescriptorSetLayout_u64( |
| &forMarshaling->descriptorSetLayout, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkPipelineBindPoint*)&forMarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkPipelineLayout_u64(&forMarshaling->pipelineLayout, |
| &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->set, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDescriptorUpdateTemplateCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorUpdateTemplateCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDescriptorUpdateTemplateCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkDescriptorUpdateTemplateCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->descriptorUpdateEntryCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->descriptorUpdateEntryCount; ++i) { |
| unmarshal_VkDescriptorUpdateTemplateEntry( |
| vkStream, rootType, |
| (VkDescriptorUpdateTemplateEntry*)(forUnmarshaling->pDescriptorUpdateEntries + i)); |
| } |
| } |
| vkStream->read((VkDescriptorUpdateTemplateType*)&forUnmarshaling->templateType, |
| sizeof(VkDescriptorUpdateTemplateType)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDescriptorSetLayout( |
| &cgen_var_0, (VkDescriptorSetLayout*)&forUnmarshaling->descriptorSetLayout, 1); |
| vkStream->read((VkPipelineBindPoint*)&forUnmarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipelineLayout( |
| &cgen_var_1, (VkPipelineLayout*)&forUnmarshaling->pipelineLayout, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->set, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkExternalMemoryProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExternalMemoryProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkExternalMemoryFeatureFlags*)&forMarshaling->externalMemoryFeatures, |
| sizeof(VkExternalMemoryFeatureFlags)); |
| vkStream->write((VkExternalMemoryHandleTypeFlags*)&forMarshaling->exportFromImportedHandleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlags)); |
| vkStream->write((VkExternalMemoryHandleTypeFlags*)&forMarshaling->compatibleHandleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlags)); |
| } |
| |
| void unmarshal_VkExternalMemoryProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExternalMemoryProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkExternalMemoryFeatureFlags*)&forUnmarshaling->externalMemoryFeatures, |
| sizeof(VkExternalMemoryFeatureFlags)); |
| vkStream->read( |
| (VkExternalMemoryHandleTypeFlags*)&forUnmarshaling->exportFromImportedHandleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlags)); |
| vkStream->read((VkExternalMemoryHandleTypeFlags*)&forUnmarshaling->compatibleHandleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlags)); |
| } |
| |
| void marshal_VkPhysicalDeviceExternalImageFormatInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceExternalImageFormatInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceExternalImageFormatInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceExternalImageFormatInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| void marshal_VkExternalImageFormatProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExternalImageFormatProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkExternalMemoryProperties( |
| vkStream, rootType, |
| (VkExternalMemoryProperties*)(&forMarshaling->externalMemoryProperties)); |
| } |
| |
| void unmarshal_VkExternalImageFormatProperties(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkExternalImageFormatProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkExternalMemoryProperties( |
| vkStream, rootType, |
| (VkExternalMemoryProperties*)(&forUnmarshaling->externalMemoryProperties)); |
| } |
| |
| void marshal_VkPhysicalDeviceExternalBufferInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceExternalBufferInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBufferCreateFlags*)&forMarshaling->flags, sizeof(VkBufferCreateFlags)); |
| vkStream->write((VkBufferUsageFlags*)&forMarshaling->usage, sizeof(VkBufferUsageFlags)); |
| vkStream->write((VkExternalMemoryHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceExternalBufferInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceExternalBufferInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBufferCreateFlags*)&forUnmarshaling->flags, sizeof(VkBufferCreateFlags)); |
| vkStream->read((VkBufferUsageFlags*)&forUnmarshaling->usage, sizeof(VkBufferUsageFlags)); |
| vkStream->read((VkExternalMemoryHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| void marshal_VkExternalBufferProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExternalBufferProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkExternalMemoryProperties( |
| vkStream, rootType, |
| (VkExternalMemoryProperties*)(&forMarshaling->externalMemoryProperties)); |
| } |
| |
| void unmarshal_VkExternalBufferProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExternalBufferProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkExternalMemoryProperties( |
| vkStream, rootType, |
| (VkExternalMemoryProperties*)(&forUnmarshaling->externalMemoryProperties)); |
| } |
| |
| void marshal_VkPhysicalDeviceIDProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceIDProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint8_t*)forMarshaling->deviceUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| vkStream->write((uint8_t*)forMarshaling->driverUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| vkStream->write((uint8_t*)forMarshaling->deviceLUID, VK_LUID_SIZE * sizeof(uint8_t)); |
| vkStream->write((uint32_t*)&forMarshaling->deviceNodeMask, sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->deviceLUIDValid, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceIDProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceIDProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint8_t*)forUnmarshaling->deviceUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| vkStream->read((uint8_t*)forUnmarshaling->driverUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| vkStream->read((uint8_t*)forUnmarshaling->deviceLUID, VK_LUID_SIZE * sizeof(uint8_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceNodeMask, sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->deviceLUIDValid, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkExternalMemoryImageCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExternalMemoryImageCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlags*)&forMarshaling->handleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlags)); |
| } |
| |
| void unmarshal_VkExternalMemoryImageCreateInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkExternalMemoryImageCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlags*)&forUnmarshaling->handleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlags)); |
| } |
| |
| void marshal_VkExternalMemoryBufferCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExternalMemoryBufferCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlags*)&forMarshaling->handleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlags)); |
| } |
| |
| void unmarshal_VkExternalMemoryBufferCreateInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkExternalMemoryBufferCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlags*)&forUnmarshaling->handleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlags)); |
| } |
| |
| void marshal_VkExportMemoryAllocateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExportMemoryAllocateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlags*)&forMarshaling->handleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlags)); |
| } |
| |
| void unmarshal_VkExportMemoryAllocateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExportMemoryAllocateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlags*)&forUnmarshaling->handleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlags)); |
| } |
| |
| void marshal_VkPhysicalDeviceExternalFenceInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceExternalFenceInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalFenceHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalFenceHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceExternalFenceInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceExternalFenceInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalFenceHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalFenceHandleTypeFlagBits)); |
| } |
| |
| void marshal_VkExternalFenceProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExternalFenceProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalFenceHandleTypeFlags*)&forMarshaling->exportFromImportedHandleTypes, |
| sizeof(VkExternalFenceHandleTypeFlags)); |
| vkStream->write((VkExternalFenceHandleTypeFlags*)&forMarshaling->compatibleHandleTypes, |
| sizeof(VkExternalFenceHandleTypeFlags)); |
| vkStream->write((VkExternalFenceFeatureFlags*)&forMarshaling->externalFenceFeatures, |
| sizeof(VkExternalFenceFeatureFlags)); |
| } |
| |
| void unmarshal_VkExternalFenceProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExternalFenceProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalFenceHandleTypeFlags*)&forUnmarshaling->exportFromImportedHandleTypes, |
| sizeof(VkExternalFenceHandleTypeFlags)); |
| vkStream->read((VkExternalFenceHandleTypeFlags*)&forUnmarshaling->compatibleHandleTypes, |
| sizeof(VkExternalFenceHandleTypeFlags)); |
| vkStream->read((VkExternalFenceFeatureFlags*)&forUnmarshaling->externalFenceFeatures, |
| sizeof(VkExternalFenceFeatureFlags)); |
| } |
| |
| void marshal_VkExportFenceCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExportFenceCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalFenceHandleTypeFlags*)&forMarshaling->handleTypes, |
| sizeof(VkExternalFenceHandleTypeFlags)); |
| } |
| |
| void unmarshal_VkExportFenceCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExportFenceCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalFenceHandleTypeFlags*)&forUnmarshaling->handleTypes, |
| sizeof(VkExternalFenceHandleTypeFlags)); |
| } |
| |
| void marshal_VkExportSemaphoreCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExportSemaphoreCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalSemaphoreHandleTypeFlags*)&forMarshaling->handleTypes, |
| sizeof(VkExternalSemaphoreHandleTypeFlags)); |
| } |
| |
| void unmarshal_VkExportSemaphoreCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExportSemaphoreCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalSemaphoreHandleTypeFlags*)&forUnmarshaling->handleTypes, |
| sizeof(VkExternalSemaphoreHandleTypeFlags)); |
| } |
| |
| void marshal_VkPhysicalDeviceExternalSemaphoreInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceExternalSemaphoreInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalSemaphoreHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceExternalSemaphoreInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceExternalSemaphoreInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalSemaphoreHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| } |
| |
| void marshal_VkExternalSemaphoreProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExternalSemaphoreProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write( |
| (VkExternalSemaphoreHandleTypeFlags*)&forMarshaling->exportFromImportedHandleTypes, |
| sizeof(VkExternalSemaphoreHandleTypeFlags)); |
| vkStream->write((VkExternalSemaphoreHandleTypeFlags*)&forMarshaling->compatibleHandleTypes, |
| sizeof(VkExternalSemaphoreHandleTypeFlags)); |
| vkStream->write((VkExternalSemaphoreFeatureFlags*)&forMarshaling->externalSemaphoreFeatures, |
| sizeof(VkExternalSemaphoreFeatureFlags)); |
| } |
| |
| void unmarshal_VkExternalSemaphoreProperties(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExternalSemaphoreProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read( |
| (VkExternalSemaphoreHandleTypeFlags*)&forUnmarshaling->exportFromImportedHandleTypes, |
| sizeof(VkExternalSemaphoreHandleTypeFlags)); |
| vkStream->read((VkExternalSemaphoreHandleTypeFlags*)&forUnmarshaling->compatibleHandleTypes, |
| sizeof(VkExternalSemaphoreHandleTypeFlags)); |
| vkStream->read((VkExternalSemaphoreFeatureFlags*)&forUnmarshaling->externalSemaphoreFeatures, |
| sizeof(VkExternalSemaphoreFeatureFlags)); |
| } |
| |
| void marshal_VkPhysicalDeviceMaintenance3Properties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMaintenance3Properties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerSetDescriptors, sizeof(uint32_t)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->maxMemoryAllocationSize, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMaintenance3Properties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMaintenance3Properties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerSetDescriptors, sizeof(uint32_t)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->maxMemoryAllocationSize, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkDescriptorSetLayoutSupport(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorSetLayoutSupport* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->supported, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkDescriptorSetLayoutSupport(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorSetLayoutSupport* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->supported, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceShaderDrawParametersFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderDrawParametersFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDrawParameters, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderDrawParametersFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderDrawParametersFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDrawParameters, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_VERSION_1_2 |
| void marshal_VkPhysicalDeviceVulkan11Features( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan11Features* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->storageBuffer16BitAccess, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->uniformAndStorageBuffer16BitAccess, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->storagePushConstant16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->storageInputOutput16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->multiview, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->multiviewGeometryShader, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->multiviewTessellationShader, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->variablePointersStorageBuffer, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->variablePointers, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->protectedMemory, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->samplerYcbcrConversion, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDrawParameters, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceVulkan11Features(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPhysicalDeviceVulkan11Features* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storageBuffer16BitAccess, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->uniformAndStorageBuffer16BitAccess, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storagePushConstant16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storageInputOutput16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->multiview, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->multiviewGeometryShader, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->multiviewTessellationShader, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->variablePointersStorageBuffer, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->variablePointers, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->protectedMemory, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->samplerYcbcrConversion, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDrawParameters, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceVulkan11Properties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan11Properties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint8_t*)forMarshaling->deviceUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| vkStream->write((uint8_t*)forMarshaling->driverUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| vkStream->write((uint8_t*)forMarshaling->deviceLUID, VK_LUID_SIZE * sizeof(uint8_t)); |
| vkStream->write((uint32_t*)&forMarshaling->deviceNodeMask, sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->deviceLUIDValid, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->subgroupSize, sizeof(uint32_t)); |
| vkStream->write((VkShaderStageFlags*)&forMarshaling->subgroupSupportedStages, |
| sizeof(VkShaderStageFlags)); |
| vkStream->write((VkSubgroupFeatureFlags*)&forMarshaling->subgroupSupportedOperations, |
| sizeof(VkSubgroupFeatureFlags)); |
| vkStream->write((VkBool32*)&forMarshaling->subgroupQuadOperationsInAllStages, sizeof(VkBool32)); |
| vkStream->write((VkPointClippingBehavior*)&forMarshaling->pointClippingBehavior, |
| sizeof(VkPointClippingBehavior)); |
| vkStream->write((uint32_t*)&forMarshaling->maxMultiviewViewCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxMultiviewInstanceIndex, sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->protectedNoFault, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerSetDescriptors, sizeof(uint32_t)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->maxMemoryAllocationSize, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceVulkan11Properties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceVulkan11Properties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint8_t*)forUnmarshaling->deviceUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| vkStream->read((uint8_t*)forUnmarshaling->driverUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| vkStream->read((uint8_t*)forUnmarshaling->deviceLUID, VK_LUID_SIZE * sizeof(uint8_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceNodeMask, sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->deviceLUIDValid, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->subgroupSize, sizeof(uint32_t)); |
| vkStream->read((VkShaderStageFlags*)&forUnmarshaling->subgroupSupportedStages, |
| sizeof(VkShaderStageFlags)); |
| vkStream->read((VkSubgroupFeatureFlags*)&forUnmarshaling->subgroupSupportedOperations, |
| sizeof(VkSubgroupFeatureFlags)); |
| vkStream->read((VkBool32*)&forUnmarshaling->subgroupQuadOperationsInAllStages, |
| sizeof(VkBool32)); |
| vkStream->read((VkPointClippingBehavior*)&forUnmarshaling->pointClippingBehavior, |
| sizeof(VkPointClippingBehavior)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMultiviewViewCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMultiviewInstanceIndex, sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->protectedNoFault, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerSetDescriptors, sizeof(uint32_t)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->maxMemoryAllocationSize, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkPhysicalDeviceVulkan12Features( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan12Features* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->samplerMirrorClampToEdge, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->drawIndirectCount, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->storageBuffer8BitAccess, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->uniformAndStorageBuffer8BitAccess, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->storagePushConstant8, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferInt64Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedInt64Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderFloat16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderInt8, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorIndexing, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderInputAttachmentArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderUniformTexelBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageTexelBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderUniformBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSampledImageArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageImageArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderInputAttachmentArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderUniformTexelBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageTexelBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingUniformBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingSampledImageUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingStorageImageUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingStorageBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingUniformTexelBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingStorageTexelBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingUpdateUnusedWhilePending, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingPartiallyBound, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingVariableDescriptorCount, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->runtimeDescriptorArray, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->samplerFilterMinmax, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->scalarBlockLayout, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->imagelessFramebuffer, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->uniformBufferStandardLayout, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSubgroupExtendedTypes, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->separateDepthStencilLayouts, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->hostQueryReset, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->timelineSemaphore, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->bufferDeviceAddress, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->bufferDeviceAddressCaptureReplay, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->bufferDeviceAddressMultiDevice, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->vulkanMemoryModel, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->vulkanMemoryModelDeviceScope, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->vulkanMemoryModelAvailabilityVisibilityChains, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderOutputViewportIndex, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderOutputLayer, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->subgroupBroadcastDynamicId, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceVulkan12Features(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPhysicalDeviceVulkan12Features* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->samplerMirrorClampToEdge, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->drawIndirectCount, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storageBuffer8BitAccess, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->uniformAndStorageBuffer8BitAccess, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storagePushConstant8, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferInt64Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedInt64Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderFloat16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderInt8, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorIndexing, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderInputAttachmentArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderUniformTexelBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageTexelBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderUniformBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSampledImageArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageImageArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderInputAttachmentArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderUniformTexelBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageTexelBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingUniformBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingSampledImageUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingStorageImageUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingStorageBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingUniformTexelBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingStorageTexelBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingUpdateUnusedWhilePending, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingPartiallyBound, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingVariableDescriptorCount, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->runtimeDescriptorArray, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->samplerFilterMinmax, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->scalarBlockLayout, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->imagelessFramebuffer, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->uniformBufferStandardLayout, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSubgroupExtendedTypes, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->separateDepthStencilLayouts, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->hostQueryReset, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->timelineSemaphore, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->bufferDeviceAddress, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->bufferDeviceAddressCaptureReplay, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->bufferDeviceAddressMultiDevice, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vulkanMemoryModel, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vulkanMemoryModelDeviceScope, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vulkanMemoryModelAvailabilityVisibilityChains, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderOutputViewportIndex, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderOutputLayer, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->subgroupBroadcastDynamicId, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkConformanceVersion(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkConformanceVersion* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint8_t*)&forMarshaling->major, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->minor, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->subminor, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->patch, sizeof(uint8_t)); |
| } |
| |
| void unmarshal_VkConformanceVersion(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkConformanceVersion* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint8_t*)&forUnmarshaling->major, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->minor, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->subminor, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->patch, sizeof(uint8_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceVulkan12Properties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan12Properties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDriverId*)&forMarshaling->driverID, sizeof(VkDriverId)); |
| vkStream->write((char*)forMarshaling->driverName, VK_MAX_DRIVER_NAME_SIZE * sizeof(char)); |
| vkStream->write((char*)forMarshaling->driverInfo, VK_MAX_DRIVER_INFO_SIZE * sizeof(char)); |
| marshal_VkConformanceVersion(vkStream, rootType, |
| (VkConformanceVersion*)(&forMarshaling->conformanceVersion)); |
| vkStream->write((VkShaderFloatControlsIndependence*)&forMarshaling->denormBehaviorIndependence, |
| sizeof(VkShaderFloatControlsIndependence)); |
| vkStream->write((VkShaderFloatControlsIndependence*)&forMarshaling->roundingModeIndependence, |
| sizeof(VkShaderFloatControlsIndependence)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSignedZeroInfNanPreserveFloat16, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSignedZeroInfNanPreserveFloat32, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSignedZeroInfNanPreserveFloat64, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormPreserveFloat16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormPreserveFloat32, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormPreserveFloat64, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormFlushToZeroFloat16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormFlushToZeroFloat32, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormFlushToZeroFloat64, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTEFloat16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTEFloat32, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTEFloat64, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTZFloat16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTZFloat32, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTZFloat64, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->maxUpdateAfterBindDescriptorsInAllPools, |
| sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderUniformBufferArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSampledImageArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageBufferArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageImageArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderInputAttachmentArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->robustBufferAccessUpdateAfterBind, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->quadDivergentImplicitLod, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindSamplers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindUniformBuffers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindStorageBuffers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindSampledImages, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindStorageImages, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindInputAttachments, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageUpdateAfterBindResources, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindSamplers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindUniformBuffers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindUniformBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindStorageBuffers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindStorageBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindSampledImages, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindStorageImages, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindInputAttachments, |
| sizeof(uint32_t)); |
| vkStream->write((VkResolveModeFlags*)&forMarshaling->supportedDepthResolveModes, |
| sizeof(VkResolveModeFlags)); |
| vkStream->write((VkResolveModeFlags*)&forMarshaling->supportedStencilResolveModes, |
| sizeof(VkResolveModeFlags)); |
| vkStream->write((VkBool32*)&forMarshaling->independentResolveNone, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->independentResolve, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->filterMinmaxSingleComponentFormats, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->filterMinmaxImageComponentMapping, sizeof(VkBool32)); |
| vkStream->write((uint64_t*)&forMarshaling->maxTimelineSemaphoreValueDifference, |
| sizeof(uint64_t)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->framebufferIntegerColorSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceVulkan12Properties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceVulkan12Properties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDriverId*)&forUnmarshaling->driverID, sizeof(VkDriverId)); |
| vkStream->read((char*)forUnmarshaling->driverName, VK_MAX_DRIVER_NAME_SIZE * sizeof(char)); |
| vkStream->read((char*)forUnmarshaling->driverInfo, VK_MAX_DRIVER_INFO_SIZE * sizeof(char)); |
| unmarshal_VkConformanceVersion(vkStream, rootType, |
| (VkConformanceVersion*)(&forUnmarshaling->conformanceVersion)); |
| vkStream->read((VkShaderFloatControlsIndependence*)&forUnmarshaling->denormBehaviorIndependence, |
| sizeof(VkShaderFloatControlsIndependence)); |
| vkStream->read((VkShaderFloatControlsIndependence*)&forUnmarshaling->roundingModeIndependence, |
| sizeof(VkShaderFloatControlsIndependence)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSignedZeroInfNanPreserveFloat16, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSignedZeroInfNanPreserveFloat32, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSignedZeroInfNanPreserveFloat64, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormPreserveFloat16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormPreserveFloat32, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormPreserveFloat64, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormFlushToZeroFloat16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormFlushToZeroFloat32, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormFlushToZeroFloat64, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTEFloat16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTEFloat32, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTEFloat64, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTZFloat16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTZFloat32, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTZFloat64, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxUpdateAfterBindDescriptorsInAllPools, |
| sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderUniformBufferArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSampledImageArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageBufferArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageImageArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderInputAttachmentArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->robustBufferAccessUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->quadDivergentImplicitLod, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindSamplers, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindUniformBuffers, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindStorageBuffers, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindSampledImages, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindStorageImages, |
| sizeof(uint32_t)); |
| vkStream->read( |
| (uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindInputAttachments, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageUpdateAfterBindResources, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindSamplers, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindUniformBuffers, |
| sizeof(uint32_t)); |
| vkStream->read( |
| (uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindUniformBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindStorageBuffers, |
| sizeof(uint32_t)); |
| vkStream->read( |
| (uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindStorageBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindSampledImages, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindStorageImages, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindInputAttachments, |
| sizeof(uint32_t)); |
| vkStream->read((VkResolveModeFlags*)&forUnmarshaling->supportedDepthResolveModes, |
| sizeof(VkResolveModeFlags)); |
| vkStream->read((VkResolveModeFlags*)&forUnmarshaling->supportedStencilResolveModes, |
| sizeof(VkResolveModeFlags)); |
| vkStream->read((VkBool32*)&forUnmarshaling->independentResolveNone, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->independentResolve, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->filterMinmaxSingleComponentFormats, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->filterMinmaxImageComponentMapping, |
| sizeof(VkBool32)); |
| vkStream->read((uint64_t*)&forUnmarshaling->maxTimelineSemaphoreValueDifference, |
| sizeof(uint64_t)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->framebufferIntegerColorSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| } |
| |
| void marshal_VkImageFormatListCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageFormatListCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->viewFormatCount, sizeof(uint32_t)); |
| vkStream->write((const VkFormat*)forMarshaling->pViewFormats, |
| forMarshaling->viewFormatCount * sizeof(const VkFormat)); |
| } |
| |
| void unmarshal_VkImageFormatListCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageFormatListCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewFormatCount, sizeof(uint32_t)); |
| vkStream->read((VkFormat*)forUnmarshaling->pViewFormats, |
| forUnmarshaling->viewFormatCount * sizeof(const VkFormat)); |
| } |
| |
| void marshal_VkAttachmentDescription2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAttachmentDescription2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkAttachmentDescriptionFlags*)&forMarshaling->flags, |
| sizeof(VkAttachmentDescriptionFlags)); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((VkSampleCountFlagBits*)&forMarshaling->samples, sizeof(VkSampleCountFlagBits)); |
| vkStream->write((VkAttachmentLoadOp*)&forMarshaling->loadOp, sizeof(VkAttachmentLoadOp)); |
| vkStream->write((VkAttachmentStoreOp*)&forMarshaling->storeOp, sizeof(VkAttachmentStoreOp)); |
| vkStream->write((VkAttachmentLoadOp*)&forMarshaling->stencilLoadOp, sizeof(VkAttachmentLoadOp)); |
| vkStream->write((VkAttachmentStoreOp*)&forMarshaling->stencilStoreOp, |
| sizeof(VkAttachmentStoreOp)); |
| vkStream->write((VkImageLayout*)&forMarshaling->initialLayout, sizeof(VkImageLayout)); |
| vkStream->write((VkImageLayout*)&forMarshaling->finalLayout, sizeof(VkImageLayout)); |
| } |
| |
| void unmarshal_VkAttachmentDescription2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAttachmentDescription2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkAttachmentDescriptionFlags*)&forUnmarshaling->flags, |
| sizeof(VkAttachmentDescriptionFlags)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((VkSampleCountFlagBits*)&forUnmarshaling->samples, |
| sizeof(VkSampleCountFlagBits)); |
| vkStream->read((VkAttachmentLoadOp*)&forUnmarshaling->loadOp, sizeof(VkAttachmentLoadOp)); |
| vkStream->read((VkAttachmentStoreOp*)&forUnmarshaling->storeOp, sizeof(VkAttachmentStoreOp)); |
| vkStream->read((VkAttachmentLoadOp*)&forUnmarshaling->stencilLoadOp, |
| sizeof(VkAttachmentLoadOp)); |
| vkStream->read((VkAttachmentStoreOp*)&forUnmarshaling->stencilStoreOp, |
| sizeof(VkAttachmentStoreOp)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->initialLayout, sizeof(VkImageLayout)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->finalLayout, sizeof(VkImageLayout)); |
| } |
| |
| void marshal_VkAttachmentReference2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAttachmentReference2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->attachment, sizeof(uint32_t)); |
| vkStream->write((VkImageLayout*)&forMarshaling->layout, sizeof(VkImageLayout)); |
| vkStream->write((VkImageAspectFlags*)&forMarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| } |
| |
| void unmarshal_VkAttachmentReference2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAttachmentReference2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->attachment, sizeof(uint32_t)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->layout, sizeof(VkImageLayout)); |
| vkStream->read((VkImageAspectFlags*)&forUnmarshaling->aspectMask, sizeof(VkImageAspectFlags)); |
| } |
| |
| void marshal_VkSubpassDescription2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubpassDescription2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSubpassDescriptionFlags*)&forMarshaling->flags, |
| sizeof(VkSubpassDescriptionFlags)); |
| vkStream->write((VkPipelineBindPoint*)&forMarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| vkStream->write((uint32_t*)&forMarshaling->viewMask, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->inputAttachmentCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->inputAttachmentCount; ++i) { |
| marshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (const VkAttachmentReference2*)(forMarshaling->pInputAttachments + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->colorAttachmentCount; ++i) { |
| marshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (const VkAttachmentReference2*)(forMarshaling->pColorAttachments + i)); |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pResolveAttachments; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pResolveAttachments) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->colorAttachmentCount; ++i) { |
| marshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (const VkAttachmentReference2*)(forMarshaling->pResolveAttachments + i)); |
| } |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pDepthStencilAttachment; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pDepthStencilAttachment) { |
| marshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (const VkAttachmentReference2*)(forMarshaling->pDepthStencilAttachment)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->preserveAttachmentCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pPreserveAttachments, |
| forMarshaling->preserveAttachmentCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkSubpassDescription2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubpassDescription2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSubpassDescriptionFlags*)&forUnmarshaling->flags, |
| sizeof(VkSubpassDescriptionFlags)); |
| vkStream->read((VkPipelineBindPoint*)&forUnmarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewMask, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->inputAttachmentCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->inputAttachmentCount; ++i) { |
| unmarshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (VkAttachmentReference2*)(forUnmarshaling->pInputAttachments + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->colorAttachmentCount; ++i) { |
| unmarshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (VkAttachmentReference2*)(forUnmarshaling->pColorAttachments + i)); |
| } |
| } |
| // WARNING PTR CHECK |
| const VkAttachmentReference2* check_pResolveAttachments; |
| check_pResolveAttachments = (const VkAttachmentReference2*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pResolveAttachments) { |
| if (!(check_pResolveAttachments)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pResolveAttachments inconsistent between guest and " |
| "host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->colorAttachmentCount; ++i) { |
| unmarshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (VkAttachmentReference2*)(forUnmarshaling->pResolveAttachments + i)); |
| } |
| } |
| } |
| // WARNING PTR CHECK |
| const VkAttachmentReference2* check_pDepthStencilAttachment; |
| check_pDepthStencilAttachment = (const VkAttachmentReference2*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pDepthStencilAttachment) { |
| if (!(check_pDepthStencilAttachment)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pDepthStencilAttachment inconsistent between guest " |
| "and host\n"); |
| } |
| unmarshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (VkAttachmentReference2*)(forUnmarshaling->pDepthStencilAttachment)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->preserveAttachmentCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pPreserveAttachments, |
| forUnmarshaling->preserveAttachmentCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkSubpassDependency2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubpassDependency2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->srcSubpass, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->dstSubpass, sizeof(uint32_t)); |
| vkStream->write((VkPipelineStageFlags*)&forMarshaling->srcStageMask, |
| sizeof(VkPipelineStageFlags)); |
| vkStream->write((VkPipelineStageFlags*)&forMarshaling->dstStageMask, |
| sizeof(VkPipelineStageFlags)); |
| vkStream->write((VkAccessFlags*)&forMarshaling->srcAccessMask, sizeof(VkAccessFlags)); |
| vkStream->write((VkAccessFlags*)&forMarshaling->dstAccessMask, sizeof(VkAccessFlags)); |
| vkStream->write((VkDependencyFlags*)&forMarshaling->dependencyFlags, sizeof(VkDependencyFlags)); |
| vkStream->write((int32_t*)&forMarshaling->viewOffset, sizeof(int32_t)); |
| } |
| |
| void unmarshal_VkSubpassDependency2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubpassDependency2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->srcSubpass, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstSubpass, sizeof(uint32_t)); |
| vkStream->read((VkPipelineStageFlags*)&forUnmarshaling->srcStageMask, |
| sizeof(VkPipelineStageFlags)); |
| vkStream->read((VkPipelineStageFlags*)&forUnmarshaling->dstStageMask, |
| sizeof(VkPipelineStageFlags)); |
| vkStream->read((VkAccessFlags*)&forUnmarshaling->srcAccessMask, sizeof(VkAccessFlags)); |
| vkStream->read((VkAccessFlags*)&forUnmarshaling->dstAccessMask, sizeof(VkAccessFlags)); |
| vkStream->read((VkDependencyFlags*)&forUnmarshaling->dependencyFlags, |
| sizeof(VkDependencyFlags)); |
| vkStream->read((int32_t*)&forUnmarshaling->viewOffset, sizeof(int32_t)); |
| } |
| |
| void marshal_VkRenderPassCreateInfo2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderPassCreateInfo2* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkRenderPassCreateFlags*)&forMarshaling->flags, |
| sizeof(VkRenderPassCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->attachmentCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->attachmentCount; ++i) { |
| marshal_VkAttachmentDescription2( |
| vkStream, rootType, |
| (const VkAttachmentDescription2*)(forMarshaling->pAttachments + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->subpassCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->subpassCount; ++i) { |
| marshal_VkSubpassDescription2( |
| vkStream, rootType, (const VkSubpassDescription2*)(forMarshaling->pSubpasses + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->dependencyCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->dependencyCount; ++i) { |
| marshal_VkSubpassDependency2( |
| vkStream, rootType, |
| (const VkSubpassDependency2*)(forMarshaling->pDependencies + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->correlatedViewMaskCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pCorrelatedViewMasks, |
| forMarshaling->correlatedViewMaskCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkRenderPassCreateInfo2(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderPassCreateInfo2* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkRenderPassCreateFlags*)&forUnmarshaling->flags, |
| sizeof(VkRenderPassCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->attachmentCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->attachmentCount; ++i) { |
| unmarshal_VkAttachmentDescription2( |
| vkStream, rootType, (VkAttachmentDescription2*)(forUnmarshaling->pAttachments + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->subpassCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->subpassCount; ++i) { |
| unmarshal_VkSubpassDescription2( |
| vkStream, rootType, (VkSubpassDescription2*)(forUnmarshaling->pSubpasses + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->dependencyCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->dependencyCount; ++i) { |
| unmarshal_VkSubpassDependency2( |
| vkStream, rootType, (VkSubpassDependency2*)(forUnmarshaling->pDependencies + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->correlatedViewMaskCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pCorrelatedViewMasks, |
| forUnmarshaling->correlatedViewMaskCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkSubpassBeginInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubpassBeginInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSubpassContents*)&forMarshaling->contents, sizeof(VkSubpassContents)); |
| } |
| |
| void unmarshal_VkSubpassBeginInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubpassBeginInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSubpassContents*)&forUnmarshaling->contents, sizeof(VkSubpassContents)); |
| } |
| |
| void marshal_VkSubpassEndInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubpassEndInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| } |
| |
| void unmarshal_VkSubpassEndInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubpassEndInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| } |
| |
| void marshal_VkPhysicalDevice8BitStorageFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevice8BitStorageFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->storageBuffer8BitAccess, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->uniformAndStorageBuffer8BitAccess, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->storagePushConstant8, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevice8BitStorageFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevice8BitStorageFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storageBuffer8BitAccess, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->uniformAndStorageBuffer8BitAccess, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storagePushConstant8, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceDriverProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDriverProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDriverId*)&forMarshaling->driverID, sizeof(VkDriverId)); |
| vkStream->write((char*)forMarshaling->driverName, VK_MAX_DRIVER_NAME_SIZE * sizeof(char)); |
| vkStream->write((char*)forMarshaling->driverInfo, VK_MAX_DRIVER_INFO_SIZE * sizeof(char)); |
| marshal_VkConformanceVersion(vkStream, rootType, |
| (VkConformanceVersion*)(&forMarshaling->conformanceVersion)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDriverProperties(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPhysicalDeviceDriverProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDriverId*)&forUnmarshaling->driverID, sizeof(VkDriverId)); |
| vkStream->read((char*)forUnmarshaling->driverName, VK_MAX_DRIVER_NAME_SIZE * sizeof(char)); |
| vkStream->read((char*)forUnmarshaling->driverInfo, VK_MAX_DRIVER_INFO_SIZE * sizeof(char)); |
| unmarshal_VkConformanceVersion(vkStream, rootType, |
| (VkConformanceVersion*)(&forUnmarshaling->conformanceVersion)); |
| } |
| |
| void marshal_VkPhysicalDeviceShaderAtomicInt64Features( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderAtomicInt64Features* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferInt64Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedInt64Atomics, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderAtomicInt64Features( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderAtomicInt64Features* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferInt64Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedInt64Atomics, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceShaderFloat16Int8Features( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderFloat16Int8Features* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderFloat16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderInt8, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderFloat16Int8Features( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderFloat16Int8Features* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderFloat16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderInt8, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceFloatControlsProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFloatControlsProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkShaderFloatControlsIndependence*)&forMarshaling->denormBehaviorIndependence, |
| sizeof(VkShaderFloatControlsIndependence)); |
| vkStream->write((VkShaderFloatControlsIndependence*)&forMarshaling->roundingModeIndependence, |
| sizeof(VkShaderFloatControlsIndependence)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSignedZeroInfNanPreserveFloat16, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSignedZeroInfNanPreserveFloat32, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSignedZeroInfNanPreserveFloat64, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormPreserveFloat16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormPreserveFloat32, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormPreserveFloat64, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormFlushToZeroFloat16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormFlushToZeroFloat32, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDenormFlushToZeroFloat64, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTEFloat16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTEFloat32, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTEFloat64, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTZFloat16, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTZFloat32, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderRoundingModeRTZFloat64, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFloatControlsProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFloatControlsProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkShaderFloatControlsIndependence*)&forUnmarshaling->denormBehaviorIndependence, |
| sizeof(VkShaderFloatControlsIndependence)); |
| vkStream->read((VkShaderFloatControlsIndependence*)&forUnmarshaling->roundingModeIndependence, |
| sizeof(VkShaderFloatControlsIndependence)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSignedZeroInfNanPreserveFloat16, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSignedZeroInfNanPreserveFloat32, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSignedZeroInfNanPreserveFloat64, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormPreserveFloat16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormPreserveFloat32, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormPreserveFloat64, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormFlushToZeroFloat16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormFlushToZeroFloat32, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDenormFlushToZeroFloat64, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTEFloat16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTEFloat32, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTEFloat64, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTZFloat16, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTZFloat32, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderRoundingModeRTZFloat64, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkDescriptorSetLayoutBindingFlagsCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorSetLayoutBindingFlagsCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->bindingCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pBindingFlags; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pBindingFlags) { |
| vkStream->write((const VkDescriptorBindingFlags*)forMarshaling->pBindingFlags, |
| forMarshaling->bindingCount * sizeof(const VkDescriptorBindingFlags)); |
| } |
| } |
| |
| void unmarshal_VkDescriptorSetLayoutBindingFlagsCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorSetLayoutBindingFlagsCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->bindingCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkDescriptorBindingFlags* check_pBindingFlags; |
| check_pBindingFlags = (const VkDescriptorBindingFlags*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pBindingFlags) { |
| if (!(check_pBindingFlags)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pBindingFlags inconsistent between guest and host\n"); |
| } |
| vkStream->read((VkDescriptorBindingFlags*)forUnmarshaling->pBindingFlags, |
| forUnmarshaling->bindingCount * sizeof(const VkDescriptorBindingFlags)); |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceDescriptorIndexingFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDescriptorIndexingFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderInputAttachmentArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderUniformTexelBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageTexelBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderUniformBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSampledImageArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageImageArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderInputAttachmentArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderUniformTexelBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageTexelBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingUniformBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingSampledImageUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingStorageImageUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingStorageBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingUniformTexelBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingStorageTexelBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingUpdateUnusedWhilePending, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingPartiallyBound, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingVariableDescriptorCount, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->runtimeDescriptorArray, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDescriptorIndexingFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDescriptorIndexingFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderInputAttachmentArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderUniformTexelBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageTexelBufferArrayDynamicIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderUniformBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSampledImageArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageImageArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderInputAttachmentArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderUniformTexelBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageTexelBufferArrayNonUniformIndexing, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingUniformBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingSampledImageUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingStorageImageUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingStorageBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingUniformTexelBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingStorageTexelBufferUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingUpdateUnusedWhilePending, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingPartiallyBound, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingVariableDescriptorCount, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->runtimeDescriptorArray, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceDescriptorIndexingProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDescriptorIndexingProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxUpdateAfterBindDescriptorsInAllPools, |
| sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderUniformBufferArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSampledImageArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageBufferArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderStorageImageArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderInputAttachmentArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->robustBufferAccessUpdateAfterBind, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->quadDivergentImplicitLod, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindSamplers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindUniformBuffers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindStorageBuffers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindSampledImages, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindStorageImages, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindInputAttachments, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageUpdateAfterBindResources, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindSamplers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindUniformBuffers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindUniformBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindStorageBuffers, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindStorageBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindSampledImages, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindStorageImages, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindInputAttachments, |
| sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDescriptorIndexingProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDescriptorIndexingProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxUpdateAfterBindDescriptorsInAllPools, |
| sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderUniformBufferArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSampledImageArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageBufferArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderStorageImageArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderInputAttachmentArrayNonUniformIndexingNative, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->robustBufferAccessUpdateAfterBind, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->quadDivergentImplicitLod, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindSamplers, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindUniformBuffers, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindStorageBuffers, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindSampledImages, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindStorageImages, |
| sizeof(uint32_t)); |
| vkStream->read( |
| (uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindInputAttachments, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageUpdateAfterBindResources, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindSamplers, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindUniformBuffers, |
| sizeof(uint32_t)); |
| vkStream->read( |
| (uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindUniformBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindStorageBuffers, |
| sizeof(uint32_t)); |
| vkStream->read( |
| (uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindStorageBuffersDynamic, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindSampledImages, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindStorageImages, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindInputAttachments, |
| sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDescriptorSetVariableDescriptorCountAllocateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorSetVariableDescriptorCountAllocateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->descriptorSetCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pDescriptorCounts, |
| forMarshaling->descriptorSetCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkDescriptorSetVariableDescriptorCountAllocateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorSetVariableDescriptorCountAllocateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->descriptorSetCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pDescriptorCounts, |
| forUnmarshaling->descriptorSetCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkDescriptorSetVariableDescriptorCountLayoutSupport( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorSetVariableDescriptorCountLayoutSupport* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxVariableDescriptorCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDescriptorSetVariableDescriptorCountLayoutSupport( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorSetVariableDescriptorCountLayoutSupport* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxVariableDescriptorCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkSubpassDescriptionDepthStencilResolve( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubpassDescriptionDepthStencilResolve* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkResolveModeFlagBits*)&forMarshaling->depthResolveMode, |
| sizeof(VkResolveModeFlagBits)); |
| vkStream->write((VkResolveModeFlagBits*)&forMarshaling->stencilResolveMode, |
| sizeof(VkResolveModeFlagBits)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pDepthStencilResolveAttachment; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pDepthStencilResolveAttachment) { |
| marshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (const VkAttachmentReference2*)(forMarshaling->pDepthStencilResolveAttachment)); |
| } |
| } |
| |
| void unmarshal_VkSubpassDescriptionDepthStencilResolve( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubpassDescriptionDepthStencilResolve* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkResolveModeFlagBits*)&forUnmarshaling->depthResolveMode, |
| sizeof(VkResolveModeFlagBits)); |
| vkStream->read((VkResolveModeFlagBits*)&forUnmarshaling->stencilResolveMode, |
| sizeof(VkResolveModeFlagBits)); |
| // WARNING PTR CHECK |
| const VkAttachmentReference2* check_pDepthStencilResolveAttachment; |
| check_pDepthStencilResolveAttachment = |
| (const VkAttachmentReference2*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pDepthStencilResolveAttachment) { |
| if (!(check_pDepthStencilResolveAttachment)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pDepthStencilResolveAttachment inconsistent between " |
| "guest and host\n"); |
| } |
| unmarshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (VkAttachmentReference2*)(forUnmarshaling->pDepthStencilResolveAttachment)); |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceDepthStencilResolveProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDepthStencilResolveProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkResolveModeFlags*)&forMarshaling->supportedDepthResolveModes, |
| sizeof(VkResolveModeFlags)); |
| vkStream->write((VkResolveModeFlags*)&forMarshaling->supportedStencilResolveModes, |
| sizeof(VkResolveModeFlags)); |
| vkStream->write((VkBool32*)&forMarshaling->independentResolveNone, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->independentResolve, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDepthStencilResolveProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDepthStencilResolveProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkResolveModeFlags*)&forUnmarshaling->supportedDepthResolveModes, |
| sizeof(VkResolveModeFlags)); |
| vkStream->read((VkResolveModeFlags*)&forUnmarshaling->supportedStencilResolveModes, |
| sizeof(VkResolveModeFlags)); |
| vkStream->read((VkBool32*)&forUnmarshaling->independentResolveNone, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->independentResolve, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceScalarBlockLayoutFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceScalarBlockLayoutFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->scalarBlockLayout, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceScalarBlockLayoutFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceScalarBlockLayoutFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->scalarBlockLayout, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkImageStencilUsageCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageStencilUsageCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->stencilUsage, sizeof(VkImageUsageFlags)); |
| } |
| |
| void unmarshal_VkImageStencilUsageCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageStencilUsageCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->stencilUsage, sizeof(VkImageUsageFlags)); |
| } |
| |
| void marshal_VkSamplerReductionModeCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSamplerReductionModeCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSamplerReductionMode*)&forMarshaling->reductionMode, |
| sizeof(VkSamplerReductionMode)); |
| } |
| |
| void unmarshal_VkSamplerReductionModeCreateInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkSamplerReductionModeCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSamplerReductionMode*)&forUnmarshaling->reductionMode, |
| sizeof(VkSamplerReductionMode)); |
| } |
| |
| void marshal_VkPhysicalDeviceSamplerFilterMinmaxProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSamplerFilterMinmaxProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->filterMinmaxSingleComponentFormats, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->filterMinmaxImageComponentMapping, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSamplerFilterMinmaxProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSamplerFilterMinmaxProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->filterMinmaxSingleComponentFormats, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->filterMinmaxImageComponentMapping, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceVulkanMemoryModelFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceVulkanMemoryModelFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->vulkanMemoryModel, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->vulkanMemoryModelDeviceScope, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->vulkanMemoryModelAvailabilityVisibilityChains, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceVulkanMemoryModelFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceVulkanMemoryModelFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vulkanMemoryModel, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vulkanMemoryModelDeviceScope, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vulkanMemoryModelAvailabilityVisibilityChains, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceImagelessFramebufferFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceImagelessFramebufferFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->imagelessFramebuffer, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceImagelessFramebufferFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceImagelessFramebufferFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->imagelessFramebuffer, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkFramebufferAttachmentImageInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFramebufferAttachmentImageInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageCreateFlags*)&forMarshaling->flags, sizeof(VkImageCreateFlags)); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->usage, sizeof(VkImageUsageFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->width, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->height, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->layerCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->viewFormatCount, sizeof(uint32_t)); |
| vkStream->write((const VkFormat*)forMarshaling->pViewFormats, |
| forMarshaling->viewFormatCount * sizeof(const VkFormat)); |
| } |
| |
| void unmarshal_VkFramebufferAttachmentImageInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkFramebufferAttachmentImageInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageCreateFlags*)&forUnmarshaling->flags, sizeof(VkImageCreateFlags)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->usage, sizeof(VkImageUsageFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->width, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->height, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->layerCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewFormatCount, sizeof(uint32_t)); |
| vkStream->read((VkFormat*)forUnmarshaling->pViewFormats, |
| forUnmarshaling->viewFormatCount * sizeof(const VkFormat)); |
| } |
| |
| void marshal_VkFramebufferAttachmentsCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFramebufferAttachmentsCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->attachmentImageInfoCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->attachmentImageInfoCount; ++i) { |
| marshal_VkFramebufferAttachmentImageInfo( |
| vkStream, rootType, |
| (const VkFramebufferAttachmentImageInfo*)(forMarshaling->pAttachmentImageInfos + |
| i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkFramebufferAttachmentsCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFramebufferAttachmentsCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->attachmentImageInfoCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->attachmentImageInfoCount; ++i) { |
| unmarshal_VkFramebufferAttachmentImageInfo( |
| vkStream, rootType, |
| (VkFramebufferAttachmentImageInfo*)(forUnmarshaling->pAttachmentImageInfos + i)); |
| } |
| } |
| } |
| |
| void marshal_VkRenderPassAttachmentBeginInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderPassAttachmentBeginInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->attachmentCount, sizeof(uint32_t)); |
| if (forMarshaling->attachmentCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->attachmentCount * 8); |
| vkStream->handleMapping()->mapHandles_VkImageView_u64( |
| forMarshaling->pAttachments, cgen_var_0, forMarshaling->attachmentCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->attachmentCount * 8); |
| } |
| } |
| |
| void unmarshal_VkRenderPassAttachmentBeginInfo(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkRenderPassAttachmentBeginInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->attachmentCount, sizeof(uint32_t)); |
| if (forUnmarshaling->attachmentCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->attachmentCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->attachmentCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImageView( |
| cgen_var_0, (VkImageView*)forUnmarshaling->pAttachments, |
| forUnmarshaling->attachmentCount); |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceUniformBufferStandardLayoutFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceUniformBufferStandardLayoutFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->uniformBufferStandardLayout, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceUniformBufferStandardLayoutFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceUniformBufferStandardLayoutFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->uniformBufferStandardLayout, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSubgroupExtendedTypes, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSubgroupExtendedTypes, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->separateDepthStencilLayouts, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->separateDepthStencilLayouts, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkAttachmentReferenceStencilLayout( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAttachmentReferenceStencilLayout* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageLayout*)&forMarshaling->stencilLayout, sizeof(VkImageLayout)); |
| } |
| |
| void unmarshal_VkAttachmentReferenceStencilLayout( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAttachmentReferenceStencilLayout* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->stencilLayout, sizeof(VkImageLayout)); |
| } |
| |
| void marshal_VkAttachmentDescriptionStencilLayout( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAttachmentDescriptionStencilLayout* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageLayout*)&forMarshaling->stencilInitialLayout, sizeof(VkImageLayout)); |
| vkStream->write((VkImageLayout*)&forMarshaling->stencilFinalLayout, sizeof(VkImageLayout)); |
| } |
| |
| void unmarshal_VkAttachmentDescriptionStencilLayout( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAttachmentDescriptionStencilLayout* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->stencilInitialLayout, sizeof(VkImageLayout)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->stencilFinalLayout, sizeof(VkImageLayout)); |
| } |
| |
| void marshal_VkPhysicalDeviceHostQueryResetFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceHostQueryResetFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->hostQueryReset, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceHostQueryResetFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceHostQueryResetFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->hostQueryReset, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceTimelineSemaphoreFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceTimelineSemaphoreFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->timelineSemaphore, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceTimelineSemaphoreFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceTimelineSemaphoreFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->timelineSemaphore, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceTimelineSemaphoreProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceTimelineSemaphoreProperties* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint64_t*)&forMarshaling->maxTimelineSemaphoreValueDifference, |
| sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceTimelineSemaphoreProperties( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceTimelineSemaphoreProperties* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint64_t*)&forUnmarshaling->maxTimelineSemaphoreValueDifference, |
| sizeof(uint64_t)); |
| } |
| |
| void marshal_VkSemaphoreTypeCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSemaphoreTypeCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSemaphoreType*)&forMarshaling->semaphoreType, sizeof(VkSemaphoreType)); |
| vkStream->write((uint64_t*)&forMarshaling->initialValue, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkSemaphoreTypeCreateInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSemaphoreTypeCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSemaphoreType*)&forUnmarshaling->semaphoreType, sizeof(VkSemaphoreType)); |
| vkStream->read((uint64_t*)&forUnmarshaling->initialValue, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkTimelineSemaphoreSubmitInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkTimelineSemaphoreSubmitInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->waitSemaphoreValueCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pWaitSemaphoreValues; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pWaitSemaphoreValues) { |
| vkStream->write((const uint64_t*)forMarshaling->pWaitSemaphoreValues, |
| forMarshaling->waitSemaphoreValueCount * sizeof(const uint64_t)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->signalSemaphoreValueCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pSignalSemaphoreValues; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pSignalSemaphoreValues) { |
| vkStream->write((const uint64_t*)forMarshaling->pSignalSemaphoreValues, |
| forMarshaling->signalSemaphoreValueCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| void unmarshal_VkTimelineSemaphoreSubmitInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkTimelineSemaphoreSubmitInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->waitSemaphoreValueCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const uint64_t* check_pWaitSemaphoreValues; |
| check_pWaitSemaphoreValues = (const uint64_t*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pWaitSemaphoreValues) { |
| if (!(check_pWaitSemaphoreValues)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pWaitSemaphoreValues inconsistent between guest and " |
| "host\n"); |
| } |
| vkStream->read((uint64_t*)forUnmarshaling->pWaitSemaphoreValues, |
| forUnmarshaling->waitSemaphoreValueCount * sizeof(const uint64_t)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->signalSemaphoreValueCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const uint64_t* check_pSignalSemaphoreValues; |
| check_pSignalSemaphoreValues = (const uint64_t*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pSignalSemaphoreValues) { |
| if (!(check_pSignalSemaphoreValues)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pSignalSemaphoreValues inconsistent between guest and " |
| "host\n"); |
| } |
| vkStream->read((uint64_t*)forUnmarshaling->pSignalSemaphoreValues, |
| forUnmarshaling->signalSemaphoreValueCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| void marshal_VkSemaphoreWaitInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSemaphoreWaitInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSemaphoreWaitFlags*)&forMarshaling->flags, sizeof(VkSemaphoreWaitFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->semaphoreCount, sizeof(uint32_t)); |
| if (forMarshaling->semaphoreCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->semaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64( |
| forMarshaling->pSemaphores, cgen_var_0, forMarshaling->semaphoreCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->semaphoreCount * 8); |
| } |
| vkStream->write((const uint64_t*)forMarshaling->pValues, |
| forMarshaling->semaphoreCount * sizeof(const uint64_t)); |
| } |
| |
| void unmarshal_VkSemaphoreWaitInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSemaphoreWaitInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSemaphoreWaitFlags*)&forUnmarshaling->flags, sizeof(VkSemaphoreWaitFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->semaphoreCount, sizeof(uint32_t)); |
| if (forUnmarshaling->semaphoreCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->semaphoreCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->semaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| cgen_var_0, (VkSemaphore*)forUnmarshaling->pSemaphores, |
| forUnmarshaling->semaphoreCount); |
| } |
| vkStream->read((uint64_t*)forUnmarshaling->pValues, |
| forUnmarshaling->semaphoreCount * sizeof(const uint64_t)); |
| } |
| |
| void marshal_VkSemaphoreSignalInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSemaphoreSignalInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64(&forMarshaling->semaphore, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint64_t*)&forMarshaling->value, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkSemaphoreSignalInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSemaphoreSignalInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| &cgen_var_0, (VkSemaphore*)&forUnmarshaling->semaphore, 1); |
| vkStream->read((uint64_t*)&forUnmarshaling->value, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceBufferDeviceAddressFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceBufferDeviceAddressFeatures* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->bufferDeviceAddress, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->bufferDeviceAddressCaptureReplay, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->bufferDeviceAddressMultiDevice, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceBufferDeviceAddressFeatures( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceBufferDeviceAddressFeatures* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->bufferDeviceAddress, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->bufferDeviceAddressCaptureReplay, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->bufferDeviceAddressMultiDevice, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkBufferDeviceAddressInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferDeviceAddressInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkBufferDeviceAddressInfo(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferDeviceAddressInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| } |
| |
| void marshal_VkBufferOpaqueCaptureAddressCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferOpaqueCaptureAddressCreateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint64_t*)&forMarshaling->opaqueCaptureAddress, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkBufferOpaqueCaptureAddressCreateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferOpaqueCaptureAddressCreateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint64_t*)&forUnmarshaling->opaqueCaptureAddress, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkMemoryOpaqueCaptureAddressAllocateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryOpaqueCaptureAddressAllocateInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint64_t*)&forMarshaling->opaqueCaptureAddress, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkMemoryOpaqueCaptureAddressAllocateInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryOpaqueCaptureAddressAllocateInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint64_t*)&forUnmarshaling->opaqueCaptureAddress, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkDeviceMemoryOpaqueCaptureAddressInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceMemoryOpaqueCaptureAddressInfo* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkDeviceMemoryOpaqueCaptureAddressInfo( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceMemoryOpaqueCaptureAddressInfo* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_0, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| } |
| |
| #endif |
| #ifdef VK_KHR_surface |
| void marshal_VkSurfaceCapabilitiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSurfaceCapabilitiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->minImageCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxImageCount, sizeof(uint32_t)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->currentExtent)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->minImageExtent)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->maxImageExtent)); |
| vkStream->write((uint32_t*)&forMarshaling->maxImageArrayLayers, sizeof(uint32_t)); |
| vkStream->write((VkSurfaceTransformFlagsKHR*)&forMarshaling->supportedTransforms, |
| sizeof(VkSurfaceTransformFlagsKHR)); |
| vkStream->write((VkSurfaceTransformFlagBitsKHR*)&forMarshaling->currentTransform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| vkStream->write((VkCompositeAlphaFlagsKHR*)&forMarshaling->supportedCompositeAlpha, |
| sizeof(VkCompositeAlphaFlagsKHR)); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->supportedUsageFlags, |
| sizeof(VkImageUsageFlags)); |
| } |
| |
| void unmarshal_VkSurfaceCapabilitiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSurfaceCapabilitiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->minImageCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxImageCount, sizeof(uint32_t)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->currentExtent)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->minImageExtent)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->maxImageExtent)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxImageArrayLayers, sizeof(uint32_t)); |
| vkStream->read((VkSurfaceTransformFlagsKHR*)&forUnmarshaling->supportedTransforms, |
| sizeof(VkSurfaceTransformFlagsKHR)); |
| vkStream->read((VkSurfaceTransformFlagBitsKHR*)&forUnmarshaling->currentTransform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| vkStream->read((VkCompositeAlphaFlagsKHR*)&forUnmarshaling->supportedCompositeAlpha, |
| sizeof(VkCompositeAlphaFlagsKHR)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->supportedUsageFlags, |
| sizeof(VkImageUsageFlags)); |
| } |
| |
| void marshal_VkSurfaceFormatKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSurfaceFormatKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((VkColorSpaceKHR*)&forMarshaling->colorSpace, sizeof(VkColorSpaceKHR)); |
| } |
| |
| void unmarshal_VkSurfaceFormatKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSurfaceFormatKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((VkColorSpaceKHR*)&forUnmarshaling->colorSpace, sizeof(VkColorSpaceKHR)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_swapchain |
| void marshal_VkSwapchainCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSwapchainCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSwapchainCreateFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkSwapchainCreateFlagsKHR)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSurfaceKHR_u64(&forMarshaling->surface, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->minImageCount, sizeof(uint32_t)); |
| vkStream->write((VkFormat*)&forMarshaling->imageFormat, sizeof(VkFormat)); |
| vkStream->write((VkColorSpaceKHR*)&forMarshaling->imageColorSpace, sizeof(VkColorSpaceKHR)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->imageExtent)); |
| vkStream->write((uint32_t*)&forMarshaling->imageArrayLayers, sizeof(uint32_t)); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->imageUsage, sizeof(VkImageUsageFlags)); |
| vkStream->write((VkSharingMode*)&forMarshaling->imageSharingMode, sizeof(VkSharingMode)); |
| vkStream->write((uint32_t*)&forMarshaling->queueFamilyIndexCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pQueueFamilyIndices; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pQueueFamilyIndices) { |
| vkStream->write((const uint32_t*)forMarshaling->pQueueFamilyIndices, |
| forMarshaling->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| vkStream->write((VkSurfaceTransformFlagBitsKHR*)&forMarshaling->preTransform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| vkStream->write((VkCompositeAlphaFlagBitsKHR*)&forMarshaling->compositeAlpha, |
| sizeof(VkCompositeAlphaFlagBitsKHR)); |
| vkStream->write((VkPresentModeKHR*)&forMarshaling->presentMode, sizeof(VkPresentModeKHR)); |
| vkStream->write((VkBool32*)&forMarshaling->clipped, sizeof(VkBool32)); |
| uint64_t cgen_var_2; |
| vkStream->handleMapping()->mapHandles_VkSwapchainKHR_u64(&forMarshaling->oldSwapchain, |
| &cgen_var_2, 1); |
| vkStream->write((uint64_t*)&cgen_var_2, 1 * 8); |
| } |
| |
| void unmarshal_VkSwapchainCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSwapchainCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSwapchainCreateFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkSwapchainCreateFlagsKHR)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSurfaceKHR( |
| &cgen_var_0, (VkSurfaceKHR*)&forUnmarshaling->surface, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->minImageCount, sizeof(uint32_t)); |
| vkStream->read((VkFormat*)&forUnmarshaling->imageFormat, sizeof(VkFormat)); |
| vkStream->read((VkColorSpaceKHR*)&forUnmarshaling->imageColorSpace, sizeof(VkColorSpaceKHR)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->imageExtent)); |
| vkStream->read((uint32_t*)&forUnmarshaling->imageArrayLayers, sizeof(uint32_t)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->imageUsage, sizeof(VkImageUsageFlags)); |
| vkStream->read((VkSharingMode*)&forUnmarshaling->imageSharingMode, sizeof(VkSharingMode)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueFamilyIndexCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const uint32_t* check_pQueueFamilyIndices; |
| check_pQueueFamilyIndices = (const uint32_t*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pQueueFamilyIndices) { |
| if (!(check_pQueueFamilyIndices)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pQueueFamilyIndices inconsistent between guest and " |
| "host\n"); |
| } |
| vkStream->read((uint32_t*)forUnmarshaling->pQueueFamilyIndices, |
| forUnmarshaling->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| vkStream->read((VkSurfaceTransformFlagBitsKHR*)&forUnmarshaling->preTransform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| vkStream->read((VkCompositeAlphaFlagBitsKHR*)&forUnmarshaling->compositeAlpha, |
| sizeof(VkCompositeAlphaFlagBitsKHR)); |
| vkStream->read((VkPresentModeKHR*)&forUnmarshaling->presentMode, sizeof(VkPresentModeKHR)); |
| vkStream->read((VkBool32*)&forUnmarshaling->clipped, sizeof(VkBool32)); |
| uint64_t cgen_var_2; |
| vkStream->read((uint64_t*)&cgen_var_2, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSwapchainKHR( |
| &cgen_var_2, (VkSwapchainKHR*)&forUnmarshaling->oldSwapchain, 1); |
| } |
| |
| void marshal_VkPresentInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPresentInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->waitSemaphoreCount, sizeof(uint32_t)); |
| if (forMarshaling->waitSemaphoreCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->waitSemaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64( |
| forMarshaling->pWaitSemaphores, cgen_var_0, forMarshaling->waitSemaphoreCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->waitSemaphoreCount * 8); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->swapchainCount, sizeof(uint32_t)); |
| if (forMarshaling->swapchainCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forMarshaling->swapchainCount * 8); |
| vkStream->handleMapping()->mapHandles_VkSwapchainKHR_u64( |
| forMarshaling->pSwapchains, cgen_var_1, forMarshaling->swapchainCount); |
| vkStream->write((uint64_t*)cgen_var_1, forMarshaling->swapchainCount * 8); |
| } |
| vkStream->write((const uint32_t*)forMarshaling->pImageIndices, |
| forMarshaling->swapchainCount * sizeof(const uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_2 = (uint64_t)(uintptr_t)forMarshaling->pResults; |
| vkStream->putBe64(cgen_var_2); |
| if (forMarshaling->pResults) { |
| vkStream->write((VkResult*)forMarshaling->pResults, |
| forMarshaling->swapchainCount * sizeof(VkResult)); |
| } |
| } |
| |
| void unmarshal_VkPresentInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPresentInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->waitSemaphoreCount, sizeof(uint32_t)); |
| if (forUnmarshaling->waitSemaphoreCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->waitSemaphoreCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->waitSemaphoreCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| cgen_var_0, (VkSemaphore*)forUnmarshaling->pWaitSemaphores, |
| forUnmarshaling->waitSemaphoreCount); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->swapchainCount, sizeof(uint32_t)); |
| if (forUnmarshaling->swapchainCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forUnmarshaling->swapchainCount * 8); |
| vkStream->read((uint64_t*)cgen_var_1, forUnmarshaling->swapchainCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSwapchainKHR( |
| cgen_var_1, (VkSwapchainKHR*)forUnmarshaling->pSwapchains, |
| forUnmarshaling->swapchainCount); |
| } |
| vkStream->read((uint32_t*)forUnmarshaling->pImageIndices, |
| forUnmarshaling->swapchainCount * sizeof(const uint32_t)); |
| // WARNING PTR CHECK |
| VkResult* check_pResults; |
| check_pResults = (VkResult*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pResults) { |
| if (!(check_pResults)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pResults inconsistent between guest and host\n"); |
| } |
| vkStream->read((VkResult*)forUnmarshaling->pResults, |
| forUnmarshaling->swapchainCount * sizeof(VkResult)); |
| } |
| } |
| |
| void marshal_VkImageSwapchainCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageSwapchainCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSwapchainKHR_u64(&forMarshaling->swapchain, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkImageSwapchainCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageSwapchainCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSwapchainKHR( |
| &cgen_var_0, (VkSwapchainKHR*)&forUnmarshaling->swapchain, 1); |
| } |
| |
| void marshal_VkBindImageMemorySwapchainInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindImageMemorySwapchainInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSwapchainKHR_u64(&forMarshaling->swapchain, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->imageIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkBindImageMemorySwapchainInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBindImageMemorySwapchainInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSwapchainKHR( |
| &cgen_var_0, (VkSwapchainKHR*)&forUnmarshaling->swapchain, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->imageIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkAcquireNextImageInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAcquireNextImageInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSwapchainKHR_u64(&forMarshaling->swapchain, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint64_t*)&forMarshaling->timeout, sizeof(uint64_t)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64(&forMarshaling->semaphore, &cgen_var_1, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| uint64_t cgen_var_2; |
| vkStream->handleMapping()->mapHandles_VkFence_u64(&forMarshaling->fence, &cgen_var_2, 1); |
| vkStream->write((uint64_t*)&cgen_var_2, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->deviceMask, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkAcquireNextImageInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAcquireNextImageInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSwapchainKHR( |
| &cgen_var_0, (VkSwapchainKHR*)&forUnmarshaling->swapchain, 1); |
| vkStream->read((uint64_t*)&forUnmarshaling->timeout, sizeof(uint64_t)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| &cgen_var_1, (VkSemaphore*)&forUnmarshaling->semaphore, 1); |
| uint64_t cgen_var_2; |
| vkStream->read((uint64_t*)&cgen_var_2, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkFence(&cgen_var_2, |
| (VkFence*)&forUnmarshaling->fence, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceMask, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDeviceGroupPresentCapabilitiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceGroupPresentCapabilitiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)forMarshaling->presentMask, |
| VK_MAX_DEVICE_GROUP_SIZE * sizeof(uint32_t)); |
| vkStream->write((VkDeviceGroupPresentModeFlagsKHR*)&forMarshaling->modes, |
| sizeof(VkDeviceGroupPresentModeFlagsKHR)); |
| } |
| |
| void unmarshal_VkDeviceGroupPresentCapabilitiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceGroupPresentCapabilitiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)forUnmarshaling->presentMask, |
| VK_MAX_DEVICE_GROUP_SIZE * sizeof(uint32_t)); |
| vkStream->read((VkDeviceGroupPresentModeFlagsKHR*)&forUnmarshaling->modes, |
| sizeof(VkDeviceGroupPresentModeFlagsKHR)); |
| } |
| |
| void marshal_VkDeviceGroupPresentInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceGroupPresentInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->swapchainCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pDeviceMasks, |
| forMarshaling->swapchainCount * sizeof(const uint32_t)); |
| vkStream->write((VkDeviceGroupPresentModeFlagBitsKHR*)&forMarshaling->mode, |
| sizeof(VkDeviceGroupPresentModeFlagBitsKHR)); |
| } |
| |
| void unmarshal_VkDeviceGroupPresentInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceGroupPresentInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->swapchainCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pDeviceMasks, |
| forUnmarshaling->swapchainCount * sizeof(const uint32_t)); |
| vkStream->read((VkDeviceGroupPresentModeFlagBitsKHR*)&forUnmarshaling->mode, |
| sizeof(VkDeviceGroupPresentModeFlagBitsKHR)); |
| } |
| |
| void marshal_VkDeviceGroupSwapchainCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceGroupSwapchainCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceGroupPresentModeFlagsKHR*)&forMarshaling->modes, |
| sizeof(VkDeviceGroupPresentModeFlagsKHR)); |
| } |
| |
| void unmarshal_VkDeviceGroupSwapchainCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceGroupSwapchainCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceGroupPresentModeFlagsKHR*)&forUnmarshaling->modes, |
| sizeof(VkDeviceGroupPresentModeFlagsKHR)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_display |
| void marshal_VkDisplayModeParametersKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayModeParametersKHR* forMarshaling) { |
| (void)rootType; |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->visibleRegion)); |
| vkStream->write((uint32_t*)&forMarshaling->refreshRate, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDisplayModeParametersKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayModeParametersKHR* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->visibleRegion)); |
| vkStream->read((uint32_t*)&forUnmarshaling->refreshRate, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDisplayModeCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayModeCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDisplayModeCreateFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkDisplayModeCreateFlagsKHR)); |
| marshal_VkDisplayModeParametersKHR(vkStream, rootType, |
| (VkDisplayModeParametersKHR*)(&forMarshaling->parameters)); |
| } |
| |
| void unmarshal_VkDisplayModeCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayModeCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDisplayModeCreateFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkDisplayModeCreateFlagsKHR)); |
| unmarshal_VkDisplayModeParametersKHR( |
| vkStream, rootType, (VkDisplayModeParametersKHR*)(&forUnmarshaling->parameters)); |
| } |
| |
| void marshal_VkDisplayModePropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayModePropertiesKHR* forMarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDisplayModeKHR_u64(&forMarshaling->displayMode, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| marshal_VkDisplayModeParametersKHR(vkStream, rootType, |
| (VkDisplayModeParametersKHR*)(&forMarshaling->parameters)); |
| } |
| |
| void unmarshal_VkDisplayModePropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayModePropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDisplayModeKHR( |
| &cgen_var_0, (VkDisplayModeKHR*)&forUnmarshaling->displayMode, 1); |
| unmarshal_VkDisplayModeParametersKHR( |
| vkStream, rootType, (VkDisplayModeParametersKHR*)(&forUnmarshaling->parameters)); |
| } |
| |
| void marshal_VkDisplayPlaneCapabilitiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayPlaneCapabilitiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDisplayPlaneAlphaFlagsKHR*)&forMarshaling->supportedAlpha, |
| sizeof(VkDisplayPlaneAlphaFlagsKHR)); |
| marshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forMarshaling->minSrcPosition)); |
| marshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forMarshaling->maxSrcPosition)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->minSrcExtent)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->maxSrcExtent)); |
| marshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forMarshaling->minDstPosition)); |
| marshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forMarshaling->maxDstPosition)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->minDstExtent)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->maxDstExtent)); |
| } |
| |
| void unmarshal_VkDisplayPlaneCapabilitiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayPlaneCapabilitiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDisplayPlaneAlphaFlagsKHR*)&forUnmarshaling->supportedAlpha, |
| sizeof(VkDisplayPlaneAlphaFlagsKHR)); |
| unmarshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forUnmarshaling->minSrcPosition)); |
| unmarshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forUnmarshaling->maxSrcPosition)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->minSrcExtent)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->maxSrcExtent)); |
| unmarshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forUnmarshaling->minDstPosition)); |
| unmarshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forUnmarshaling->maxDstPosition)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->minDstExtent)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->maxDstExtent)); |
| } |
| |
| void marshal_VkDisplayPlanePropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayPlanePropertiesKHR* forMarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDisplayKHR_u64(&forMarshaling->currentDisplay, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->currentStackIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDisplayPlanePropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayPlanePropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDisplayKHR( |
| &cgen_var_0, (VkDisplayKHR*)&forUnmarshaling->currentDisplay, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->currentStackIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDisplayPropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayPropertiesKHR* forMarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDisplayKHR_u64(&forMarshaling->display, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->putString(forMarshaling->displayName); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->physicalDimensions)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->physicalResolution)); |
| vkStream->write((VkSurfaceTransformFlagsKHR*)&forMarshaling->supportedTransforms, |
| sizeof(VkSurfaceTransformFlagsKHR)); |
| vkStream->write((VkBool32*)&forMarshaling->planeReorderPossible, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->persistentContent, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkDisplayPropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayPropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDisplayKHR( |
| &cgen_var_0, (VkDisplayKHR*)&forUnmarshaling->display, 1); |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->displayName); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->physicalDimensions)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->physicalResolution)); |
| vkStream->read((VkSurfaceTransformFlagsKHR*)&forUnmarshaling->supportedTransforms, |
| sizeof(VkSurfaceTransformFlagsKHR)); |
| vkStream->read((VkBool32*)&forUnmarshaling->planeReorderPossible, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->persistentContent, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkDisplaySurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplaySurfaceCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDisplaySurfaceCreateFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkDisplaySurfaceCreateFlagsKHR)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDisplayModeKHR_u64(&forMarshaling->displayMode, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->planeIndex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->planeStackIndex, sizeof(uint32_t)); |
| vkStream->write((VkSurfaceTransformFlagBitsKHR*)&forMarshaling->transform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| vkStream->write((float*)&forMarshaling->globalAlpha, sizeof(float)); |
| vkStream->write((VkDisplayPlaneAlphaFlagBitsKHR*)&forMarshaling->alphaMode, |
| sizeof(VkDisplayPlaneAlphaFlagBitsKHR)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->imageExtent)); |
| } |
| |
| void unmarshal_VkDisplaySurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplaySurfaceCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDisplaySurfaceCreateFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkDisplaySurfaceCreateFlagsKHR)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDisplayModeKHR( |
| &cgen_var_0, (VkDisplayModeKHR*)&forUnmarshaling->displayMode, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->planeIndex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->planeStackIndex, sizeof(uint32_t)); |
| vkStream->read((VkSurfaceTransformFlagBitsKHR*)&forUnmarshaling->transform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| vkStream->read((float*)&forUnmarshaling->globalAlpha, sizeof(float)); |
| vkStream->read((VkDisplayPlaneAlphaFlagBitsKHR*)&forUnmarshaling->alphaMode, |
| sizeof(VkDisplayPlaneAlphaFlagBitsKHR)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->imageExtent)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_display_swapchain |
| void marshal_VkDisplayPresentInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayPresentInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forMarshaling->srcRect)); |
| marshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forMarshaling->dstRect)); |
| vkStream->write((VkBool32*)&forMarshaling->persistent, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkDisplayPresentInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayPresentInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forUnmarshaling->srcRect)); |
| unmarshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forUnmarshaling->dstRect)); |
| vkStream->read((VkBool32*)&forUnmarshaling->persistent, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_xlib_surface |
| void marshal_VkXlibSurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkXlibSurfaceCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkXlibSurfaceCreateFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkXlibSurfaceCreateFlagsKHR)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->dpy; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->dpy) { |
| vkStream->write((Display*)forMarshaling->dpy, sizeof(Display)); |
| } |
| vkStream->write((Window*)&forMarshaling->window, sizeof(Window)); |
| } |
| |
| void unmarshal_VkXlibSurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkXlibSurfaceCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkXlibSurfaceCreateFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkXlibSurfaceCreateFlagsKHR)); |
| // WARNING PTR CHECK |
| Display* check_dpy; |
| check_dpy = (Display*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->dpy) { |
| if (!(check_dpy)) { |
| fprintf(stderr, "fatal: forUnmarshaling->dpy inconsistent between guest and host\n"); |
| } |
| vkStream->read((Display*)forUnmarshaling->dpy, sizeof(Display)); |
| } |
| vkStream->read((Window*)&forUnmarshaling->window, sizeof(Window)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_xcb_surface |
| void marshal_VkXcbSurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkXcbSurfaceCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| |
| // This struct should never be marshaled / unmarshaled. |
| __builtin_trap(); |
| } |
| |
| void unmarshal_VkXcbSurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkXcbSurfaceCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| |
| // This struct should never be marshaled / unmarshaled. |
| __builtin_trap(); |
| } |
| |
| #endif |
| #ifdef VK_KHR_wayland_surface |
| void marshal_VkWaylandSurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkWaylandSurfaceCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkWaylandSurfaceCreateFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkWaylandSurfaceCreateFlagsKHR)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->display; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->display) { |
| vkStream->write((wl_display*)forMarshaling->display, sizeof(wl_display)); |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->surface; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->surface) { |
| vkStream->write((wl_surface*)forMarshaling->surface, sizeof(wl_surface)); |
| } |
| } |
| |
| void unmarshal_VkWaylandSurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkWaylandSurfaceCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkWaylandSurfaceCreateFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkWaylandSurfaceCreateFlagsKHR)); |
| // WARNING PTR CHECK |
| wl_display* check_display; |
| check_display = (wl_display*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->display) { |
| if (!(check_display)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->display inconsistent between guest and host\n"); |
| } |
| vkStream->read((wl_display*)forUnmarshaling->display, sizeof(wl_display)); |
| } |
| // WARNING PTR CHECK |
| wl_surface* check_surface; |
| check_surface = (wl_surface*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->surface) { |
| if (!(check_surface)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->surface inconsistent between guest and host\n"); |
| } |
| vkStream->read((wl_surface*)forUnmarshaling->surface, sizeof(wl_surface)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_android_surface |
| void marshal_VkAndroidSurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAndroidSurfaceCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkAndroidSurfaceCreateFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkAndroidSurfaceCreateFlagsKHR)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->window; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->window) { |
| vkStream->write((ANativeWindow*)forMarshaling->window, sizeof(ANativeWindow)); |
| } |
| } |
| |
| void unmarshal_VkAndroidSurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAndroidSurfaceCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkAndroidSurfaceCreateFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkAndroidSurfaceCreateFlagsKHR)); |
| // WARNING PTR CHECK |
| ANativeWindow* check_window; |
| check_window = (ANativeWindow*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->window) { |
| if (!(check_window)) { |
| fprintf(stderr, "fatal: forUnmarshaling->window inconsistent between guest and host\n"); |
| } |
| vkStream->read((ANativeWindow*)forUnmarshaling->window, sizeof(ANativeWindow)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_win32_surface |
| void marshal_VkWin32SurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkWin32SurfaceCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkWin32SurfaceCreateFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkWin32SurfaceCreateFlagsKHR)); |
| vkStream->write((HINSTANCE*)&forMarshaling->hinstance, sizeof(HINSTANCE)); |
| vkStream->write((HWND*)&forMarshaling->hwnd, sizeof(HWND)); |
| } |
| |
| void unmarshal_VkWin32SurfaceCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkWin32SurfaceCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkWin32SurfaceCreateFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkWin32SurfaceCreateFlagsKHR)); |
| vkStream->read((HINSTANCE*)&forUnmarshaling->hinstance, sizeof(HINSTANCE)); |
| vkStream->read((HWND*)&forUnmarshaling->hwnd, sizeof(HWND)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_sampler_mirror_clamp_to_edge |
| #endif |
| #ifdef VK_KHR_video_queue |
| void marshal_VkVideoQueueFamilyProperties2KHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoQueueFamilyProperties2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoCodecOperationFlagsKHR*)&forMarshaling->videoCodecOperations, |
| sizeof(VkVideoCodecOperationFlagsKHR)); |
| } |
| |
| void unmarshal_VkVideoQueueFamilyProperties2KHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoQueueFamilyProperties2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoCodecOperationFlagsKHR*)&forUnmarshaling->videoCodecOperations, |
| sizeof(VkVideoCodecOperationFlagsKHR)); |
| } |
| |
| void marshal_VkVideoProfileKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoProfileKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoCodecOperationFlagBitsKHR*)&forMarshaling->videoCodecOperation, |
| sizeof(VkVideoCodecOperationFlagBitsKHR)); |
| vkStream->write((VkVideoChromaSubsamplingFlagsKHR*)&forMarshaling->chromaSubsampling, |
| sizeof(VkVideoChromaSubsamplingFlagsKHR)); |
| vkStream->write((VkVideoComponentBitDepthFlagsKHR*)&forMarshaling->lumaBitDepth, |
| sizeof(VkVideoComponentBitDepthFlagsKHR)); |
| vkStream->write((VkVideoComponentBitDepthFlagsKHR*)&forMarshaling->chromaBitDepth, |
| sizeof(VkVideoComponentBitDepthFlagsKHR)); |
| } |
| |
| void unmarshal_VkVideoProfileKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoProfileKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoCodecOperationFlagBitsKHR*)&forUnmarshaling->videoCodecOperation, |
| sizeof(VkVideoCodecOperationFlagBitsKHR)); |
| vkStream->read((VkVideoChromaSubsamplingFlagsKHR*)&forUnmarshaling->chromaSubsampling, |
| sizeof(VkVideoChromaSubsamplingFlagsKHR)); |
| vkStream->read((VkVideoComponentBitDepthFlagsKHR*)&forUnmarshaling->lumaBitDepth, |
| sizeof(VkVideoComponentBitDepthFlagsKHR)); |
| vkStream->read((VkVideoComponentBitDepthFlagsKHR*)&forUnmarshaling->chromaBitDepth, |
| sizeof(VkVideoComponentBitDepthFlagsKHR)); |
| } |
| |
| void marshal_VkVideoProfilesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoProfilesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->profileCount, sizeof(uint32_t)); |
| marshal_VkVideoProfileKHR(vkStream, rootType, |
| (const VkVideoProfileKHR*)(forMarshaling->pProfiles)); |
| } |
| |
| void unmarshal_VkVideoProfilesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoProfilesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->profileCount, sizeof(uint32_t)); |
| unmarshal_VkVideoProfileKHR(vkStream, rootType, |
| (VkVideoProfileKHR*)(forUnmarshaling->pProfiles)); |
| } |
| |
| void marshal_VkVideoCapabilitiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoCapabilitiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoCapabilityFlagsKHR*)&forMarshaling->capabilityFlags, |
| sizeof(VkVideoCapabilityFlagsKHR)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->minBitstreamBufferOffsetAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->minBitstreamBufferSizeAlignment, |
| sizeof(VkDeviceSize)); |
| marshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forMarshaling->videoPictureExtentGranularity)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->minExtent)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->maxExtent)); |
| vkStream->write((uint32_t*)&forMarshaling->maxReferencePicturesSlotsCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxReferencePicturesActiveCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkVideoCapabilitiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoCapabilitiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoCapabilityFlagsKHR*)&forUnmarshaling->capabilityFlags, |
| sizeof(VkVideoCapabilityFlagsKHR)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->minBitstreamBufferOffsetAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->minBitstreamBufferSizeAlignment, |
| sizeof(VkDeviceSize)); |
| unmarshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->videoPictureExtentGranularity)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->minExtent)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->maxExtent)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxReferencePicturesSlotsCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxReferencePicturesActiveCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceVideoFormatInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceVideoFormatInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->imageUsage, sizeof(VkImageUsageFlags)); |
| marshal_VkVideoProfilesKHR(vkStream, rootType, |
| (const VkVideoProfilesKHR*)(forMarshaling->pVideoProfiles)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceVideoFormatInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceVideoFormatInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->imageUsage, sizeof(VkImageUsageFlags)); |
| unmarshal_VkVideoProfilesKHR(vkStream, rootType, |
| (VkVideoProfilesKHR*)(forUnmarshaling->pVideoProfiles)); |
| } |
| |
| void marshal_VkVideoFormatPropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoFormatPropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| } |
| |
| void unmarshal_VkVideoFormatPropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoFormatPropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| } |
| |
| void marshal_VkVideoPictureResourceKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoPictureResourceKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forMarshaling->codedOffset)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->codedExtent)); |
| vkStream->write((uint32_t*)&forMarshaling->baseArrayLayer, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImageView_u64(&forMarshaling->imageViewBinding, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkVideoPictureResourceKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoPictureResourceKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forUnmarshaling->codedOffset)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->codedExtent)); |
| vkStream->read((uint32_t*)&forUnmarshaling->baseArrayLayer, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImageView( |
| &cgen_var_0, (VkImageView*)&forUnmarshaling->imageViewBinding, 1); |
| } |
| |
| void marshal_VkVideoReferenceSlotKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoReferenceSlotKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((int8_t*)&forMarshaling->slotIndex, sizeof(int8_t)); |
| marshal_VkVideoPictureResourceKHR( |
| vkStream, rootType, (const VkVideoPictureResourceKHR*)(forMarshaling->pPictureResource)); |
| } |
| |
| void unmarshal_VkVideoReferenceSlotKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoReferenceSlotKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((int8_t*)&forUnmarshaling->slotIndex, sizeof(int8_t)); |
| unmarshal_VkVideoPictureResourceKHR( |
| vkStream, rootType, (VkVideoPictureResourceKHR*)(forUnmarshaling->pPictureResource)); |
| } |
| |
| void marshal_VkVideoGetMemoryPropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoGetMemoryPropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->memoryBindIndex, sizeof(uint32_t)); |
| marshal_VkMemoryRequirements2(vkStream, rootType, |
| (VkMemoryRequirements2*)(forMarshaling->pMemoryRequirements)); |
| } |
| |
| void unmarshal_VkVideoGetMemoryPropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoGetMemoryPropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryBindIndex, sizeof(uint32_t)); |
| unmarshal_VkMemoryRequirements2(vkStream, rootType, |
| (VkMemoryRequirements2*)(forUnmarshaling->pMemoryRequirements)); |
| } |
| |
| void marshal_VkVideoBindMemoryKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoBindMemoryKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->memoryBindIndex, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->memorySize, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkVideoBindMemoryKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoBindMemoryKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryBindIndex, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_0, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->memorySize, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkVideoSessionCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoSessionCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->queueFamilyIndex, sizeof(uint32_t)); |
| vkStream->write((VkVideoSessionCreateFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkVideoSessionCreateFlagsKHR)); |
| marshal_VkVideoProfileKHR(vkStream, rootType, |
| (const VkVideoProfileKHR*)(forMarshaling->pVideoProfile)); |
| vkStream->write((VkFormat*)&forMarshaling->pictureFormat, sizeof(VkFormat)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->maxCodedExtent)); |
| vkStream->write((VkFormat*)&forMarshaling->referencePicturesFormat, sizeof(VkFormat)); |
| vkStream->write((uint32_t*)&forMarshaling->maxReferencePicturesSlotsCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxReferencePicturesActiveCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkVideoSessionCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoSessionCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueFamilyIndex, sizeof(uint32_t)); |
| vkStream->read((VkVideoSessionCreateFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkVideoSessionCreateFlagsKHR)); |
| unmarshal_VkVideoProfileKHR(vkStream, rootType, |
| (VkVideoProfileKHR*)(forUnmarshaling->pVideoProfile)); |
| vkStream->read((VkFormat*)&forUnmarshaling->pictureFormat, sizeof(VkFormat)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->maxCodedExtent)); |
| vkStream->read((VkFormat*)&forUnmarshaling->referencePicturesFormat, sizeof(VkFormat)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxReferencePicturesSlotsCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxReferencePicturesActiveCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkVideoSessionParametersCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoSessionParametersCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->videoSessionParametersTemplate; |
| vkStream->putBe64(cgen_var_0); |
| uint64_t cgen_var_1 = (uint64_t)forMarshaling->videoSession; |
| vkStream->putBe64(cgen_var_1); |
| } |
| |
| void unmarshal_VkVideoSessionParametersCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoSessionParametersCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| forUnmarshaling->videoSessionParametersTemplate = |
| (VkVideoSessionParametersKHR)vkStream->getBe64(); |
| forUnmarshaling->videoSession = (VkVideoSessionKHR)vkStream->getBe64(); |
| } |
| |
| void marshal_VkVideoSessionParametersUpdateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoSessionParametersUpdateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->updateSequenceCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkVideoSessionParametersUpdateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoSessionParametersUpdateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->updateSequenceCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkVideoBeginCodingInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoBeginCodingInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoBeginCodingFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkVideoBeginCodingFlagsKHR)); |
| vkStream->write((VkVideoCodingQualityPresetFlagsKHR*)&forMarshaling->codecQualityPreset, |
| sizeof(VkVideoCodingQualityPresetFlagsKHR)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->videoSession; |
| vkStream->putBe64(cgen_var_0); |
| uint64_t cgen_var_1 = (uint64_t)forMarshaling->videoSessionParameters; |
| vkStream->putBe64(cgen_var_1); |
| vkStream->write((uint32_t*)&forMarshaling->referenceSlotCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->referenceSlotCount; ++i) { |
| marshal_VkVideoReferenceSlotKHR( |
| vkStream, rootType, |
| (const VkVideoReferenceSlotKHR*)(forMarshaling->pReferenceSlots + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkVideoBeginCodingInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoBeginCodingInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoBeginCodingFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkVideoBeginCodingFlagsKHR)); |
| vkStream->read((VkVideoCodingQualityPresetFlagsKHR*)&forUnmarshaling->codecQualityPreset, |
| sizeof(VkVideoCodingQualityPresetFlagsKHR)); |
| forUnmarshaling->videoSession = (VkVideoSessionKHR)vkStream->getBe64(); |
| forUnmarshaling->videoSessionParameters = (VkVideoSessionParametersKHR)vkStream->getBe64(); |
| vkStream->read((uint32_t*)&forUnmarshaling->referenceSlotCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->referenceSlotCount; ++i) { |
| unmarshal_VkVideoReferenceSlotKHR( |
| vkStream, rootType, |
| (VkVideoReferenceSlotKHR*)(forUnmarshaling->pReferenceSlots + i)); |
| } |
| } |
| } |
| |
| void marshal_VkVideoEndCodingInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEndCodingInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoEndCodingFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkVideoEndCodingFlagsKHR)); |
| } |
| |
| void unmarshal_VkVideoEndCodingInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEndCodingInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoEndCodingFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkVideoEndCodingFlagsKHR)); |
| } |
| |
| void marshal_VkVideoCodingControlInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoCodingControlInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoCodingControlFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkVideoCodingControlFlagsKHR)); |
| } |
| |
| void unmarshal_VkVideoCodingControlInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoCodingControlInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoCodingControlFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkVideoCodingControlFlagsKHR)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_video_decode_queue |
| void marshal_VkVideoDecodeInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoDecodeFlagsKHR*)&forMarshaling->flags, sizeof(VkVideoDecodeFlagsKHR)); |
| marshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forMarshaling->codedOffset)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->codedExtent)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->srcBuffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->srcBufferOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->srcBufferRange, sizeof(VkDeviceSize)); |
| marshal_VkVideoPictureResourceKHR( |
| vkStream, rootType, (VkVideoPictureResourceKHR*)(&forMarshaling->dstPictureResource)); |
| marshal_VkVideoReferenceSlotKHR( |
| vkStream, rootType, (const VkVideoReferenceSlotKHR*)(forMarshaling->pSetupReferenceSlot)); |
| vkStream->write((uint32_t*)&forMarshaling->referenceSlotCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->referenceSlotCount; ++i) { |
| marshal_VkVideoReferenceSlotKHR( |
| vkStream, rootType, |
| (const VkVideoReferenceSlotKHR*)(forMarshaling->pReferenceSlots + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkVideoDecodeInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoDecodeInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoDecodeFlagsKHR*)&forUnmarshaling->flags, sizeof(VkVideoDecodeFlagsKHR)); |
| unmarshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forUnmarshaling->codedOffset)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->codedExtent)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->srcBuffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->srcBufferOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->srcBufferRange, sizeof(VkDeviceSize)); |
| unmarshal_VkVideoPictureResourceKHR( |
| vkStream, rootType, (VkVideoPictureResourceKHR*)(&forUnmarshaling->dstPictureResource)); |
| unmarshal_VkVideoReferenceSlotKHR( |
| vkStream, rootType, (VkVideoReferenceSlotKHR*)(forUnmarshaling->pSetupReferenceSlot)); |
| vkStream->read((uint32_t*)&forUnmarshaling->referenceSlotCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->referenceSlotCount; ++i) { |
| unmarshal_VkVideoReferenceSlotKHR( |
| vkStream, rootType, |
| (VkVideoReferenceSlotKHR*)(forUnmarshaling->pReferenceSlots + i)); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_dynamic_rendering |
| void marshal_VkRenderingAttachmentInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderingAttachmentInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImageView_u64(&forMarshaling->imageView, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->imageLayout, sizeof(VkImageLayout)); |
| vkStream->write((VkResolveModeFlagBits*)&forMarshaling->resolveMode, |
| sizeof(VkResolveModeFlagBits)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkImageView_u64(&forMarshaling->resolveImageView, |
| &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->resolveImageLayout, sizeof(VkImageLayout)); |
| vkStream->write((VkAttachmentLoadOp*)&forMarshaling->loadOp, sizeof(VkAttachmentLoadOp)); |
| vkStream->write((VkAttachmentStoreOp*)&forMarshaling->storeOp, sizeof(VkAttachmentStoreOp)); |
| marshal_VkClearValue(vkStream, rootType, (VkClearValue*)(&forMarshaling->clearValue)); |
| } |
| |
| void unmarshal_VkRenderingAttachmentInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderingAttachmentInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImageView( |
| &cgen_var_0, (VkImageView*)&forUnmarshaling->imageView, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->imageLayout, sizeof(VkImageLayout)); |
| vkStream->read((VkResolveModeFlagBits*)&forUnmarshaling->resolveMode, |
| sizeof(VkResolveModeFlagBits)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImageView( |
| &cgen_var_1, (VkImageView*)&forUnmarshaling->resolveImageView, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->resolveImageLayout, sizeof(VkImageLayout)); |
| vkStream->read((VkAttachmentLoadOp*)&forUnmarshaling->loadOp, sizeof(VkAttachmentLoadOp)); |
| vkStream->read((VkAttachmentStoreOp*)&forUnmarshaling->storeOp, sizeof(VkAttachmentStoreOp)); |
| unmarshal_VkClearValue(vkStream, rootType, (VkClearValue*)(&forUnmarshaling->clearValue)); |
| } |
| |
| void marshal_VkRenderingInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderingInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkRenderingFlagsKHR*)&forMarshaling->flags, sizeof(VkRenderingFlagsKHR)); |
| marshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forMarshaling->renderArea)); |
| vkStream->write((uint32_t*)&forMarshaling->layerCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->viewMask, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->colorAttachmentCount; ++i) { |
| marshal_VkRenderingAttachmentInfoKHR( |
| vkStream, rootType, |
| (const VkRenderingAttachmentInfoKHR*)(forMarshaling->pColorAttachments + i)); |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pDepthAttachment; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pDepthAttachment) { |
| marshal_VkRenderingAttachmentInfoKHR( |
| vkStream, rootType, |
| (const VkRenderingAttachmentInfoKHR*)(forMarshaling->pDepthAttachment)); |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pStencilAttachment; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pStencilAttachment) { |
| marshal_VkRenderingAttachmentInfoKHR( |
| vkStream, rootType, |
| (const VkRenderingAttachmentInfoKHR*)(forMarshaling->pStencilAttachment)); |
| } |
| } |
| |
| void unmarshal_VkRenderingInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderingInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkRenderingFlagsKHR*)&forUnmarshaling->flags, sizeof(VkRenderingFlagsKHR)); |
| unmarshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forUnmarshaling->renderArea)); |
| vkStream->read((uint32_t*)&forUnmarshaling->layerCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewMask, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->colorAttachmentCount; ++i) { |
| unmarshal_VkRenderingAttachmentInfoKHR( |
| vkStream, rootType, |
| (VkRenderingAttachmentInfoKHR*)(forUnmarshaling->pColorAttachments + i)); |
| } |
| } |
| // WARNING PTR CHECK |
| const VkRenderingAttachmentInfoKHR* check_pDepthAttachment; |
| check_pDepthAttachment = (const VkRenderingAttachmentInfoKHR*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pDepthAttachment) { |
| if (!(check_pDepthAttachment)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pDepthAttachment inconsistent between guest and host\n"); |
| } |
| unmarshal_VkRenderingAttachmentInfoKHR( |
| vkStream, rootType, (VkRenderingAttachmentInfoKHR*)(forUnmarshaling->pDepthAttachment)); |
| } |
| // WARNING PTR CHECK |
| const VkRenderingAttachmentInfoKHR* check_pStencilAttachment; |
| check_pStencilAttachment = (const VkRenderingAttachmentInfoKHR*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pStencilAttachment) { |
| if (!(check_pStencilAttachment)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pStencilAttachment inconsistent between guest and host\n"); |
| } |
| unmarshal_VkRenderingAttachmentInfoKHR( |
| vkStream, rootType, |
| (VkRenderingAttachmentInfoKHR*)(forUnmarshaling->pStencilAttachment)); |
| } |
| } |
| |
| void marshal_VkPipelineRenderingCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineRenderingCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->viewMask, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| vkStream->write((const VkFormat*)forMarshaling->pColorAttachmentFormats, |
| forMarshaling->colorAttachmentCount * sizeof(const VkFormat)); |
| vkStream->write((VkFormat*)&forMarshaling->depthAttachmentFormat, sizeof(VkFormat)); |
| vkStream->write((VkFormat*)&forMarshaling->stencilAttachmentFormat, sizeof(VkFormat)); |
| } |
| |
| void unmarshal_VkPipelineRenderingCreateInfoKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPipelineRenderingCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewMask, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| vkStream->read((VkFormat*)forUnmarshaling->pColorAttachmentFormats, |
| forUnmarshaling->colorAttachmentCount * sizeof(const VkFormat)); |
| vkStream->read((VkFormat*)&forUnmarshaling->depthAttachmentFormat, sizeof(VkFormat)); |
| vkStream->read((VkFormat*)&forUnmarshaling->stencilAttachmentFormat, sizeof(VkFormat)); |
| } |
| |
| void marshal_VkPhysicalDeviceDynamicRenderingFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDynamicRenderingFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->dynamicRendering, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDynamicRenderingFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDynamicRenderingFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->dynamicRendering, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkCommandBufferInheritanceRenderingInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCommandBufferInheritanceRenderingInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkRenderingFlagsKHR*)&forMarshaling->flags, sizeof(VkRenderingFlagsKHR)); |
| vkStream->write((uint32_t*)&forMarshaling->viewMask, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| vkStream->write((const VkFormat*)forMarshaling->pColorAttachmentFormats, |
| forMarshaling->colorAttachmentCount * sizeof(const VkFormat)); |
| vkStream->write((VkFormat*)&forMarshaling->depthAttachmentFormat, sizeof(VkFormat)); |
| vkStream->write((VkFormat*)&forMarshaling->stencilAttachmentFormat, sizeof(VkFormat)); |
| vkStream->write((VkSampleCountFlagBits*)&forMarshaling->rasterizationSamples, |
| sizeof(VkSampleCountFlagBits)); |
| } |
| |
| void unmarshal_VkCommandBufferInheritanceRenderingInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCommandBufferInheritanceRenderingInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkRenderingFlagsKHR*)&forUnmarshaling->flags, sizeof(VkRenderingFlagsKHR)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewMask, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| vkStream->read((VkFormat*)forUnmarshaling->pColorAttachmentFormats, |
| forUnmarshaling->colorAttachmentCount * sizeof(const VkFormat)); |
| vkStream->read((VkFormat*)&forUnmarshaling->depthAttachmentFormat, sizeof(VkFormat)); |
| vkStream->read((VkFormat*)&forUnmarshaling->stencilAttachmentFormat, sizeof(VkFormat)); |
| vkStream->read((VkSampleCountFlagBits*)&forUnmarshaling->rasterizationSamples, |
| sizeof(VkSampleCountFlagBits)); |
| } |
| |
| void marshal_VkRenderingFragmentShadingRateAttachmentInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderingFragmentShadingRateAttachmentInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImageView_u64(&forMarshaling->imageView, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->imageLayout, sizeof(VkImageLayout)); |
| marshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forMarshaling->shadingRateAttachmentTexelSize)); |
| } |
| |
| void unmarshal_VkRenderingFragmentShadingRateAttachmentInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderingFragmentShadingRateAttachmentInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImageView( |
| &cgen_var_0, (VkImageView*)&forUnmarshaling->imageView, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->imageLayout, sizeof(VkImageLayout)); |
| unmarshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->shadingRateAttachmentTexelSize)); |
| } |
| |
| void marshal_VkRenderingFragmentDensityMapAttachmentInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderingFragmentDensityMapAttachmentInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImageView_u64(&forMarshaling->imageView, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->imageLayout, sizeof(VkImageLayout)); |
| } |
| |
| void unmarshal_VkRenderingFragmentDensityMapAttachmentInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderingFragmentDensityMapAttachmentInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImageView( |
| &cgen_var_0, (VkImageView*)&forUnmarshaling->imageView, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->imageLayout, sizeof(VkImageLayout)); |
| } |
| |
| void marshal_VkAttachmentSampleCountInfoAMD(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAttachmentSampleCountInfoAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pColorAttachmentSamples; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pColorAttachmentSamples) { |
| vkStream->write((const VkSampleCountFlagBits*)forMarshaling->pColorAttachmentSamples, |
| forMarshaling->colorAttachmentCount * sizeof(const VkSampleCountFlagBits)); |
| } |
| vkStream->write((VkSampleCountFlagBits*)&forMarshaling->depthStencilAttachmentSamples, |
| sizeof(VkSampleCountFlagBits)); |
| } |
| |
| void unmarshal_VkAttachmentSampleCountInfoAMD(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAttachmentSampleCountInfoAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->colorAttachmentCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkSampleCountFlagBits* check_pColorAttachmentSamples; |
| check_pColorAttachmentSamples = (const VkSampleCountFlagBits*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pColorAttachmentSamples) { |
| if (!(check_pColorAttachmentSamples)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pColorAttachmentSamples inconsistent between guest " |
| "and host\n"); |
| } |
| vkStream->read((VkSampleCountFlagBits*)forUnmarshaling->pColorAttachmentSamples, |
| forUnmarshaling->colorAttachmentCount * sizeof(const VkSampleCountFlagBits)); |
| } |
| vkStream->read((VkSampleCountFlagBits*)&forUnmarshaling->depthStencilAttachmentSamples, |
| sizeof(VkSampleCountFlagBits)); |
| } |
| |
| void marshal_VkMultiviewPerViewAttributesInfoNVX( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMultiviewPerViewAttributesInfoNVX* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->perViewAttributes, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->perViewAttributesPositionXOnly, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkMultiviewPerViewAttributesInfoNVX( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMultiviewPerViewAttributesInfoNVX* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->perViewAttributes, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->perViewAttributesPositionXOnly, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_multiview |
| #endif |
| #ifdef VK_KHR_get_physical_device_properties2 |
| #endif |
| #ifdef VK_KHR_device_group |
| #endif |
| #ifdef VK_KHR_shader_draw_parameters |
| #endif |
| #ifdef VK_KHR_maintenance1 |
| #endif |
| #ifdef VK_KHR_device_group_creation |
| #endif |
| #ifdef VK_KHR_external_memory_capabilities |
| #endif |
| #ifdef VK_KHR_external_memory |
| #endif |
| #ifdef VK_KHR_external_memory_win32 |
| void marshal_VkImportMemoryWin32HandleInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportMemoryWin32HandleInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| vkStream->write((HANDLE*)&forMarshaling->handle, sizeof(HANDLE)); |
| vkStream->write((LPCWSTR*)&forMarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void unmarshal_VkImportMemoryWin32HandleInfoKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkImportMemoryWin32HandleInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| vkStream->read((HANDLE*)&forUnmarshaling->handle, sizeof(HANDLE)); |
| vkStream->read((LPCWSTR*)&forUnmarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void marshal_VkExportMemoryWin32HandleInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExportMemoryWin32HandleInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pAttributes; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pAttributes) { |
| vkStream->write((const SECURITY_ATTRIBUTES*)forMarshaling->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| vkStream->write((DWORD*)&forMarshaling->dwAccess, sizeof(DWORD)); |
| vkStream->write((LPCWSTR*)&forMarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void unmarshal_VkExportMemoryWin32HandleInfoKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkExportMemoryWin32HandleInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| // WARNING PTR CHECK |
| const SECURITY_ATTRIBUTES* check_pAttributes; |
| check_pAttributes = (const SECURITY_ATTRIBUTES*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pAttributes) { |
| if (!(check_pAttributes)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pAttributes inconsistent between guest and host\n"); |
| } |
| vkStream->read((SECURITY_ATTRIBUTES*)forUnmarshaling->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| vkStream->read((DWORD*)&forUnmarshaling->dwAccess, sizeof(DWORD)); |
| vkStream->read((LPCWSTR*)&forUnmarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void marshal_VkMemoryWin32HandlePropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryWin32HandlePropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkMemoryWin32HandlePropertiesKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkMemoryWin32HandlePropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkMemoryGetWin32HandleInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryGetWin32HandleInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkExternalMemoryHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkMemoryGetWin32HandleInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryGetWin32HandleInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_0, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkExternalMemoryHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_memory_fd |
| void marshal_VkImportMemoryFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportMemoryFdInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| vkStream->write((int*)&forMarshaling->fd, sizeof(int)); |
| } |
| |
| void unmarshal_VkImportMemoryFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImportMemoryFdInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| vkStream->read((int*)&forUnmarshaling->fd, sizeof(int)); |
| } |
| |
| void marshal_VkMemoryFdPropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryFdPropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkMemoryFdPropertiesKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryFdPropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkMemoryGetFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryGetFdInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkExternalMemoryHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkMemoryGetFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryGetFdInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_0, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkExternalMemoryHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_win32_keyed_mutex |
| void marshal_VkWin32KeyedMutexAcquireReleaseInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkWin32KeyedMutexAcquireReleaseInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->acquireCount, sizeof(uint32_t)); |
| if (forMarshaling->acquireCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->acquireCount * 8); |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64( |
| forMarshaling->pAcquireSyncs, cgen_var_0, forMarshaling->acquireCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->acquireCount * 8); |
| } |
| vkStream->write((const uint64_t*)forMarshaling->pAcquireKeys, |
| forMarshaling->acquireCount * sizeof(const uint64_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pAcquireTimeouts, |
| forMarshaling->acquireCount * sizeof(const uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->releaseCount, sizeof(uint32_t)); |
| if (forMarshaling->releaseCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forMarshaling->releaseCount * 8); |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64( |
| forMarshaling->pReleaseSyncs, cgen_var_1, forMarshaling->releaseCount); |
| vkStream->write((uint64_t*)cgen_var_1, forMarshaling->releaseCount * 8); |
| } |
| vkStream->write((const uint64_t*)forMarshaling->pReleaseKeys, |
| forMarshaling->releaseCount * sizeof(const uint64_t)); |
| } |
| |
| void unmarshal_VkWin32KeyedMutexAcquireReleaseInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkWin32KeyedMutexAcquireReleaseInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->acquireCount, sizeof(uint32_t)); |
| if (forUnmarshaling->acquireCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->acquireCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->acquireCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| cgen_var_0, (VkDeviceMemory*)forUnmarshaling->pAcquireSyncs, |
| forUnmarshaling->acquireCount); |
| } |
| vkStream->read((uint64_t*)forUnmarshaling->pAcquireKeys, |
| forUnmarshaling->acquireCount * sizeof(const uint64_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pAcquireTimeouts, |
| forUnmarshaling->acquireCount * sizeof(const uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->releaseCount, sizeof(uint32_t)); |
| if (forUnmarshaling->releaseCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forUnmarshaling->releaseCount * 8); |
| vkStream->read((uint64_t*)cgen_var_1, forUnmarshaling->releaseCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| cgen_var_1, (VkDeviceMemory*)forUnmarshaling->pReleaseSyncs, |
| forUnmarshaling->releaseCount); |
| } |
| vkStream->read((uint64_t*)forUnmarshaling->pReleaseKeys, |
| forUnmarshaling->releaseCount * sizeof(const uint64_t)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_semaphore_capabilities |
| #endif |
| #ifdef VK_KHR_external_semaphore |
| #endif |
| #ifdef VK_KHR_external_semaphore_win32 |
| void marshal_VkImportSemaphoreWin32HandleInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportSemaphoreWin32HandleInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64(&forMarshaling->semaphore, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkSemaphoreImportFlags*)&forMarshaling->flags, sizeof(VkSemaphoreImportFlags)); |
| vkStream->write((VkExternalSemaphoreHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| vkStream->write((HANDLE*)&forMarshaling->handle, sizeof(HANDLE)); |
| vkStream->write((LPCWSTR*)&forMarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void unmarshal_VkImportSemaphoreWin32HandleInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImportSemaphoreWin32HandleInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| &cgen_var_0, (VkSemaphore*)&forUnmarshaling->semaphore, 1); |
| vkStream->read((VkSemaphoreImportFlags*)&forUnmarshaling->flags, |
| sizeof(VkSemaphoreImportFlags)); |
| vkStream->read((VkExternalSemaphoreHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| vkStream->read((HANDLE*)&forUnmarshaling->handle, sizeof(HANDLE)); |
| vkStream->read((LPCWSTR*)&forUnmarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void marshal_VkExportSemaphoreWin32HandleInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExportSemaphoreWin32HandleInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pAttributes; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pAttributes) { |
| vkStream->write((const SECURITY_ATTRIBUTES*)forMarshaling->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| vkStream->write((DWORD*)&forMarshaling->dwAccess, sizeof(DWORD)); |
| vkStream->write((LPCWSTR*)&forMarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void unmarshal_VkExportSemaphoreWin32HandleInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExportSemaphoreWin32HandleInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| // WARNING PTR CHECK |
| const SECURITY_ATTRIBUTES* check_pAttributes; |
| check_pAttributes = (const SECURITY_ATTRIBUTES*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pAttributes) { |
| if (!(check_pAttributes)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pAttributes inconsistent between guest and host\n"); |
| } |
| vkStream->read((SECURITY_ATTRIBUTES*)forUnmarshaling->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| vkStream->read((DWORD*)&forUnmarshaling->dwAccess, sizeof(DWORD)); |
| vkStream->read((LPCWSTR*)&forUnmarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void marshal_VkD3D12FenceSubmitInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkD3D12FenceSubmitInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->waitSemaphoreValuesCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pWaitSemaphoreValues; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pWaitSemaphoreValues) { |
| vkStream->write((const uint64_t*)forMarshaling->pWaitSemaphoreValues, |
| forMarshaling->waitSemaphoreValuesCount * sizeof(const uint64_t)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->signalSemaphoreValuesCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pSignalSemaphoreValues; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pSignalSemaphoreValues) { |
| vkStream->write((const uint64_t*)forMarshaling->pSignalSemaphoreValues, |
| forMarshaling->signalSemaphoreValuesCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| void unmarshal_VkD3D12FenceSubmitInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkD3D12FenceSubmitInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->waitSemaphoreValuesCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const uint64_t* check_pWaitSemaphoreValues; |
| check_pWaitSemaphoreValues = (const uint64_t*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pWaitSemaphoreValues) { |
| if (!(check_pWaitSemaphoreValues)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pWaitSemaphoreValues inconsistent between guest and " |
| "host\n"); |
| } |
| vkStream->read((uint64_t*)forUnmarshaling->pWaitSemaphoreValues, |
| forUnmarshaling->waitSemaphoreValuesCount * sizeof(const uint64_t)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->signalSemaphoreValuesCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const uint64_t* check_pSignalSemaphoreValues; |
| check_pSignalSemaphoreValues = (const uint64_t*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pSignalSemaphoreValues) { |
| if (!(check_pSignalSemaphoreValues)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pSignalSemaphoreValues inconsistent between guest and " |
| "host\n"); |
| } |
| vkStream->read((uint64_t*)forUnmarshaling->pSignalSemaphoreValues, |
| forUnmarshaling->signalSemaphoreValuesCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| void marshal_VkSemaphoreGetWin32HandleInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSemaphoreGetWin32HandleInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64(&forMarshaling->semaphore, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkExternalSemaphoreHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkSemaphoreGetWin32HandleInfoKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkSemaphoreGetWin32HandleInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| &cgen_var_0, (VkSemaphore*)&forUnmarshaling->semaphore, 1); |
| vkStream->read((VkExternalSemaphoreHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_semaphore_fd |
| void marshal_VkImportSemaphoreFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportSemaphoreFdInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64(&forMarshaling->semaphore, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkSemaphoreImportFlags*)&forMarshaling->flags, sizeof(VkSemaphoreImportFlags)); |
| vkStream->write((VkExternalSemaphoreHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| vkStream->write((int*)&forMarshaling->fd, sizeof(int)); |
| } |
| |
| void unmarshal_VkImportSemaphoreFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImportSemaphoreFdInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| &cgen_var_0, (VkSemaphore*)&forUnmarshaling->semaphore, 1); |
| vkStream->read((VkSemaphoreImportFlags*)&forUnmarshaling->flags, |
| sizeof(VkSemaphoreImportFlags)); |
| vkStream->read((VkExternalSemaphoreHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| vkStream->read((int*)&forUnmarshaling->fd, sizeof(int)); |
| } |
| |
| void marshal_VkSemaphoreGetFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSemaphoreGetFdInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64(&forMarshaling->semaphore, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkExternalSemaphoreHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkSemaphoreGetFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSemaphoreGetFdInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| &cgen_var_0, (VkSemaphore*)&forUnmarshaling->semaphore, 1); |
| vkStream->read((VkExternalSemaphoreHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_push_descriptor |
| void marshal_VkPhysicalDevicePushDescriptorPropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePushDescriptorPropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxPushDescriptors, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePushDescriptorPropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePushDescriptorPropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPushDescriptors, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_float16_int8 |
| #endif |
| #ifdef VK_KHR_16bit_storage |
| #endif |
| #ifdef VK_KHR_incremental_present |
| void marshal_VkRectLayerKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRectLayerKHR* forMarshaling) { |
| (void)rootType; |
| marshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forMarshaling->offset)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->extent)); |
| vkStream->write((uint32_t*)&forMarshaling->layer, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkRectLayerKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRectLayerKHR* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forUnmarshaling->offset)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->extent)); |
| vkStream->read((uint32_t*)&forUnmarshaling->layer, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPresentRegionKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPresentRegionKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->rectangleCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pRectangles; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pRectangles) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->rectangleCount; ++i) { |
| marshal_VkRectLayerKHR(vkStream, rootType, |
| (const VkRectLayerKHR*)(forMarshaling->pRectangles + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkPresentRegionKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPresentRegionKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->rectangleCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkRectLayerKHR* check_pRectangles; |
| check_pRectangles = (const VkRectLayerKHR*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pRectangles) { |
| if (!(check_pRectangles)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pRectangles inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->rectangleCount; ++i) { |
| unmarshal_VkRectLayerKHR(vkStream, rootType, |
| (VkRectLayerKHR*)(forUnmarshaling->pRectangles + i)); |
| } |
| } |
| } |
| } |
| |
| void marshal_VkPresentRegionsKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPresentRegionsKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->swapchainCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pRegions; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pRegions) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->swapchainCount; ++i) { |
| marshal_VkPresentRegionKHR( |
| vkStream, rootType, (const VkPresentRegionKHR*)(forMarshaling->pRegions + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkPresentRegionsKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPresentRegionsKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->swapchainCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkPresentRegionKHR* check_pRegions; |
| check_pRegions = (const VkPresentRegionKHR*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pRegions) { |
| if (!(check_pRegions)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pRegions inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->swapchainCount; ++i) { |
| unmarshal_VkPresentRegionKHR(vkStream, rootType, |
| (VkPresentRegionKHR*)(forUnmarshaling->pRegions + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_descriptor_update_template |
| #endif |
| #ifdef VK_KHR_imageless_framebuffer |
| #endif |
| #ifdef VK_KHR_create_renderpass2 |
| #endif |
| #ifdef VK_KHR_shared_presentable_image |
| void marshal_VkSharedPresentSurfaceCapabilitiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSharedPresentSurfaceCapabilitiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->sharedPresentSupportedUsageFlags, |
| sizeof(VkImageUsageFlags)); |
| } |
| |
| void unmarshal_VkSharedPresentSurfaceCapabilitiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSharedPresentSurfaceCapabilitiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->sharedPresentSupportedUsageFlags, |
| sizeof(VkImageUsageFlags)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_fence_capabilities |
| #endif |
| #ifdef VK_KHR_external_fence |
| #endif |
| #ifdef VK_KHR_external_fence_win32 |
| void marshal_VkImportFenceWin32HandleInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportFenceWin32HandleInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkFence_u64(&forMarshaling->fence, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkFenceImportFlags*)&forMarshaling->flags, sizeof(VkFenceImportFlags)); |
| vkStream->write((VkExternalFenceHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalFenceHandleTypeFlagBits)); |
| vkStream->write((HANDLE*)&forMarshaling->handle, sizeof(HANDLE)); |
| vkStream->write((LPCWSTR*)&forMarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void unmarshal_VkImportFenceWin32HandleInfoKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkImportFenceWin32HandleInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkFence(&cgen_var_0, |
| (VkFence*)&forUnmarshaling->fence, 1); |
| vkStream->read((VkFenceImportFlags*)&forUnmarshaling->flags, sizeof(VkFenceImportFlags)); |
| vkStream->read((VkExternalFenceHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalFenceHandleTypeFlagBits)); |
| vkStream->read((HANDLE*)&forUnmarshaling->handle, sizeof(HANDLE)); |
| vkStream->read((LPCWSTR*)&forUnmarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void marshal_VkExportFenceWin32HandleInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExportFenceWin32HandleInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pAttributes; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pAttributes) { |
| vkStream->write((const SECURITY_ATTRIBUTES*)forMarshaling->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| vkStream->write((DWORD*)&forMarshaling->dwAccess, sizeof(DWORD)); |
| vkStream->write((LPCWSTR*)&forMarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void unmarshal_VkExportFenceWin32HandleInfoKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkExportFenceWin32HandleInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| // WARNING PTR CHECK |
| const SECURITY_ATTRIBUTES* check_pAttributes; |
| check_pAttributes = (const SECURITY_ATTRIBUTES*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pAttributes) { |
| if (!(check_pAttributes)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pAttributes inconsistent between guest and host\n"); |
| } |
| vkStream->read((SECURITY_ATTRIBUTES*)forUnmarshaling->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| vkStream->read((DWORD*)&forUnmarshaling->dwAccess, sizeof(DWORD)); |
| vkStream->read((LPCWSTR*)&forUnmarshaling->name, sizeof(LPCWSTR)); |
| } |
| |
| void marshal_VkFenceGetWin32HandleInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFenceGetWin32HandleInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkFence_u64(&forMarshaling->fence, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkExternalFenceHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalFenceHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkFenceGetWin32HandleInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFenceGetWin32HandleInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkFence(&cgen_var_0, |
| (VkFence*)&forUnmarshaling->fence, 1); |
| vkStream->read((VkExternalFenceHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalFenceHandleTypeFlagBits)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_fence_fd |
| void marshal_VkImportFenceFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportFenceFdInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkFence_u64(&forMarshaling->fence, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkFenceImportFlags*)&forMarshaling->flags, sizeof(VkFenceImportFlags)); |
| vkStream->write((VkExternalFenceHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalFenceHandleTypeFlagBits)); |
| vkStream->write((int*)&forMarshaling->fd, sizeof(int)); |
| } |
| |
| void unmarshal_VkImportFenceFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImportFenceFdInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkFence(&cgen_var_0, |
| (VkFence*)&forUnmarshaling->fence, 1); |
| vkStream->read((VkFenceImportFlags*)&forUnmarshaling->flags, sizeof(VkFenceImportFlags)); |
| vkStream->read((VkExternalFenceHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalFenceHandleTypeFlagBits)); |
| vkStream->read((int*)&forUnmarshaling->fd, sizeof(int)); |
| } |
| |
| void marshal_VkFenceGetFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFenceGetFdInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkFence_u64(&forMarshaling->fence, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkExternalFenceHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalFenceHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkFenceGetFdInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFenceGetFdInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkFence(&cgen_var_0, |
| (VkFence*)&forUnmarshaling->fence, 1); |
| vkStream->read((VkExternalFenceHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalFenceHandleTypeFlagBits)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_performance_query |
| void marshal_VkPhysicalDevicePerformanceQueryFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePerformanceQueryFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->performanceCounterQueryPools, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->performanceCounterMultipleQueryPools, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePerformanceQueryFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePerformanceQueryFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->performanceCounterQueryPools, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->performanceCounterMultipleQueryPools, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDevicePerformanceQueryPropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePerformanceQueryPropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->allowCommandBufferQueryCopies, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePerformanceQueryPropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePerformanceQueryPropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->allowCommandBufferQueryCopies, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPerformanceCounterKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPerformanceCounterKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPerformanceCounterUnitKHR*)&forMarshaling->unit, |
| sizeof(VkPerformanceCounterUnitKHR)); |
| vkStream->write((VkPerformanceCounterScopeKHR*)&forMarshaling->scope, |
| sizeof(VkPerformanceCounterScopeKHR)); |
| vkStream->write((VkPerformanceCounterStorageKHR*)&forMarshaling->storage, |
| sizeof(VkPerformanceCounterStorageKHR)); |
| vkStream->write((uint8_t*)forMarshaling->uuid, VK_UUID_SIZE * sizeof(uint8_t)); |
| } |
| |
| void unmarshal_VkPerformanceCounterKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPerformanceCounterKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPerformanceCounterUnitKHR*)&forUnmarshaling->unit, |
| sizeof(VkPerformanceCounterUnitKHR)); |
| vkStream->read((VkPerformanceCounterScopeKHR*)&forUnmarshaling->scope, |
| sizeof(VkPerformanceCounterScopeKHR)); |
| vkStream->read((VkPerformanceCounterStorageKHR*)&forUnmarshaling->storage, |
| sizeof(VkPerformanceCounterStorageKHR)); |
| vkStream->read((uint8_t*)forUnmarshaling->uuid, VK_UUID_SIZE * sizeof(uint8_t)); |
| } |
| |
| void marshal_VkPerformanceCounterDescriptionKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPerformanceCounterDescriptionKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPerformanceCounterDescriptionFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkPerformanceCounterDescriptionFlagsKHR)); |
| vkStream->write((char*)forMarshaling->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->write((char*)forMarshaling->category, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->write((char*)forMarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| } |
| |
| void unmarshal_VkPerformanceCounterDescriptionKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPerformanceCounterDescriptionKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPerformanceCounterDescriptionFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkPerformanceCounterDescriptionFlagsKHR)); |
| vkStream->read((char*)forUnmarshaling->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->read((char*)forUnmarshaling->category, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->read((char*)forUnmarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| } |
| |
| void marshal_VkQueryPoolPerformanceCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkQueryPoolPerformanceCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->queueFamilyIndex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->counterIndexCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pCounterIndices, |
| forMarshaling->counterIndexCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkQueryPoolPerformanceCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkQueryPoolPerformanceCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueFamilyIndex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->counterIndexCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pCounterIndices, |
| forUnmarshaling->counterIndexCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkPerformanceCounterResultKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPerformanceCounterResultKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((int32_t*)&forMarshaling->int32, sizeof(int32_t)); |
| } |
| |
| void unmarshal_VkPerformanceCounterResultKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPerformanceCounterResultKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((int32_t*)&forUnmarshaling->int32, sizeof(int32_t)); |
| } |
| |
| void marshal_VkAcquireProfilingLockInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAcquireProfilingLockInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkAcquireProfilingLockFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkAcquireProfilingLockFlagsKHR)); |
| vkStream->write((uint64_t*)&forMarshaling->timeout, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkAcquireProfilingLockInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAcquireProfilingLockInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkAcquireProfilingLockFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkAcquireProfilingLockFlagsKHR)); |
| vkStream->read((uint64_t*)&forUnmarshaling->timeout, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkPerformanceQuerySubmitInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPerformanceQuerySubmitInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->counterPassIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPerformanceQuerySubmitInfoKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPerformanceQuerySubmitInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->counterPassIndex, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_maintenance2 |
| #endif |
| #ifdef VK_KHR_get_surface_capabilities2 |
| void marshal_VkPhysicalDeviceSurfaceInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSurfaceInfo2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSurfaceKHR_u64(&forMarshaling->surface, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSurfaceInfo2KHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPhysicalDeviceSurfaceInfo2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSurfaceKHR( |
| &cgen_var_0, (VkSurfaceKHR*)&forUnmarshaling->surface, 1); |
| } |
| |
| void marshal_VkSurfaceCapabilities2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSurfaceCapabilities2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkSurfaceCapabilitiesKHR( |
| vkStream, rootType, (VkSurfaceCapabilitiesKHR*)(&forMarshaling->surfaceCapabilities)); |
| } |
| |
| void unmarshal_VkSurfaceCapabilities2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSurfaceCapabilities2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkSurfaceCapabilitiesKHR( |
| vkStream, rootType, (VkSurfaceCapabilitiesKHR*)(&forUnmarshaling->surfaceCapabilities)); |
| } |
| |
| void marshal_VkSurfaceFormat2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSurfaceFormat2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkSurfaceFormatKHR(vkStream, rootType, |
| (VkSurfaceFormatKHR*)(&forMarshaling->surfaceFormat)); |
| } |
| |
| void unmarshal_VkSurfaceFormat2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSurfaceFormat2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkSurfaceFormatKHR(vkStream, rootType, |
| (VkSurfaceFormatKHR*)(&forUnmarshaling->surfaceFormat)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_variable_pointers |
| #endif |
| #ifdef VK_KHR_get_display_properties2 |
| void marshal_VkDisplayProperties2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayProperties2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkDisplayPropertiesKHR(vkStream, rootType, |
| (VkDisplayPropertiesKHR*)(&forMarshaling->displayProperties)); |
| } |
| |
| void unmarshal_VkDisplayProperties2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayProperties2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkDisplayPropertiesKHR( |
| vkStream, rootType, (VkDisplayPropertiesKHR*)(&forUnmarshaling->displayProperties)); |
| } |
| |
| void marshal_VkDisplayPlaneProperties2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayPlaneProperties2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkDisplayPlanePropertiesKHR( |
| vkStream, rootType, (VkDisplayPlanePropertiesKHR*)(&forMarshaling->displayPlaneProperties)); |
| } |
| |
| void unmarshal_VkDisplayPlaneProperties2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayPlaneProperties2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkDisplayPlanePropertiesKHR( |
| vkStream, rootType, |
| (VkDisplayPlanePropertiesKHR*)(&forUnmarshaling->displayPlaneProperties)); |
| } |
| |
| void marshal_VkDisplayModeProperties2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayModeProperties2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkDisplayModePropertiesKHR( |
| vkStream, rootType, (VkDisplayModePropertiesKHR*)(&forMarshaling->displayModeProperties)); |
| } |
| |
| void unmarshal_VkDisplayModeProperties2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayModeProperties2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkDisplayModePropertiesKHR( |
| vkStream, rootType, (VkDisplayModePropertiesKHR*)(&forUnmarshaling->displayModeProperties)); |
| } |
| |
| void marshal_VkDisplayPlaneInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayPlaneInfo2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDisplayModeKHR_u64(&forMarshaling->mode, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->planeIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDisplayPlaneInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayPlaneInfo2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDisplayModeKHR( |
| &cgen_var_0, (VkDisplayModeKHR*)&forUnmarshaling->mode, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->planeIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDisplayPlaneCapabilities2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayPlaneCapabilities2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkDisplayPlaneCapabilitiesKHR( |
| vkStream, rootType, (VkDisplayPlaneCapabilitiesKHR*)(&forMarshaling->capabilities)); |
| } |
| |
| void unmarshal_VkDisplayPlaneCapabilities2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayPlaneCapabilities2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkDisplayPlaneCapabilitiesKHR( |
| vkStream, rootType, (VkDisplayPlaneCapabilitiesKHR*)(&forUnmarshaling->capabilities)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_dedicated_allocation |
| #endif |
| #ifdef VK_KHR_storage_buffer_storage_class |
| #endif |
| #ifdef VK_KHR_relaxed_block_layout |
| #endif |
| #ifdef VK_KHR_get_memory_requirements2 |
| #endif |
| #ifdef VK_KHR_image_format_list |
| #endif |
| #ifdef VK_KHR_sampler_ycbcr_conversion |
| #endif |
| #ifdef VK_KHR_bind_memory2 |
| #endif |
| #ifdef VK_KHR_portability_subset |
| void marshal_VkPhysicalDevicePortabilitySubsetFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePortabilitySubsetFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->constantAlphaColorBlendFactors, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->events, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->imageViewFormatReinterpretation, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->imageViewFormatSwizzle, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->imageView2DOn3DImage, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->multisampleArrayImage, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->mutableComparisonSamplers, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->pointPolygons, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->samplerMipLodBias, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->separateStencilMaskRef, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSampleRateInterpolationFunctions, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->tessellationIsolines, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->tessellationPointMode, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->triangleFans, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->vertexAttributeAccessBeyondStride, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePortabilitySubsetFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePortabilitySubsetFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->constantAlphaColorBlendFactors, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->events, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->imageViewFormatReinterpretation, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->imageViewFormatSwizzle, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->imageView2DOn3DImage, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->multisampleArrayImage, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->mutableComparisonSamplers, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->pointPolygons, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->samplerMipLodBias, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->separateStencilMaskRef, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSampleRateInterpolationFunctions, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->tessellationIsolines, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->tessellationPointMode, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->triangleFans, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vertexAttributeAccessBeyondStride, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDevicePortabilitySubsetPropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePortabilitySubsetPropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->minVertexInputBindingStrideAlignment, |
| sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePortabilitySubsetPropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePortabilitySubsetPropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minVertexInputBindingStrideAlignment, |
| sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_maintenance3 |
| #endif |
| #ifdef VK_KHR_draw_indirect_count |
| #endif |
| #ifdef VK_KHR_shader_subgroup_extended_types |
| #endif |
| #ifdef VK_KHR_8bit_storage |
| #endif |
| #ifdef VK_KHR_shader_atomic_int64 |
| #endif |
| #ifdef VK_KHR_shader_clock |
| void marshal_VkPhysicalDeviceShaderClockFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderClockFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSubgroupClock, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDeviceClock, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderClockFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderClockFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSubgroupClock, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDeviceClock, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_driver_properties |
| #endif |
| #ifdef VK_KHR_shader_float_controls |
| #endif |
| #ifdef VK_KHR_depth_stencil_resolve |
| #endif |
| #ifdef VK_KHR_swapchain_mutable_format |
| #endif |
| #ifdef VK_KHR_timeline_semaphore |
| #endif |
| #ifdef VK_KHR_vulkan_memory_model |
| #endif |
| #ifdef VK_KHR_shader_terminate_invocation |
| void marshal_VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderTerminateInvocation, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderTerminateInvocation, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_fragment_shading_rate |
| void marshal_VkFragmentShadingRateAttachmentInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFragmentShadingRateAttachmentInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pFragmentShadingRateAttachment; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pFragmentShadingRateAttachment) { |
| marshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (const VkAttachmentReference2*)(forMarshaling->pFragmentShadingRateAttachment)); |
| } |
| marshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forMarshaling->shadingRateAttachmentTexelSize)); |
| } |
| |
| void unmarshal_VkFragmentShadingRateAttachmentInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFragmentShadingRateAttachmentInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| // WARNING PTR CHECK |
| const VkAttachmentReference2* check_pFragmentShadingRateAttachment; |
| check_pFragmentShadingRateAttachment = |
| (const VkAttachmentReference2*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pFragmentShadingRateAttachment) { |
| if (!(check_pFragmentShadingRateAttachment)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pFragmentShadingRateAttachment inconsistent between " |
| "guest and host\n"); |
| } |
| unmarshal_VkAttachmentReference2( |
| vkStream, rootType, |
| (VkAttachmentReference2*)(forUnmarshaling->pFragmentShadingRateAttachment)); |
| } |
| unmarshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->shadingRateAttachmentTexelSize)); |
| } |
| |
| void marshal_VkPipelineFragmentShadingRateStateCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineFragmentShadingRateStateCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->fragmentSize)); |
| vkStream->write((VkFragmentShadingRateCombinerOpKHR*)forMarshaling->combinerOps, |
| 2 * sizeof(VkFragmentShadingRateCombinerOpKHR)); |
| } |
| |
| void unmarshal_VkPipelineFragmentShadingRateStateCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineFragmentShadingRateStateCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->fragmentSize)); |
| vkStream->read((VkFragmentShadingRateCombinerOpKHR*)forUnmarshaling->combinerOps, |
| 2 * sizeof(VkFragmentShadingRateCombinerOpKHR)); |
| } |
| |
| void marshal_VkPhysicalDeviceFragmentShadingRateFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRateFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->pipelineFragmentShadingRate, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->primitiveFragmentShadingRate, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->attachmentFragmentShadingRate, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentShadingRateFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentShadingRateFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->pipelineFragmentShadingRate, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->primitiveFragmentShadingRate, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->attachmentFragmentShadingRate, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceFragmentShadingRatePropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRatePropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forMarshaling->minFragmentShadingRateAttachmentTexelSize)); |
| marshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forMarshaling->maxFragmentShadingRateAttachmentTexelSize)); |
| vkStream->write((uint32_t*)&forMarshaling->maxFragmentShadingRateAttachmentTexelSizeAspectRatio, |
| sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->primitiveFragmentShadingRateWithMultipleViewports, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->layeredShadingRateAttachments, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShadingRateNonTrivialCombinerOps, |
| sizeof(VkBool32)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->maxFragmentSize)); |
| vkStream->write((uint32_t*)&forMarshaling->maxFragmentSizeAspectRatio, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxFragmentShadingRateCoverageSamples, |
| sizeof(uint32_t)); |
| vkStream->write( |
| (VkSampleCountFlagBits*)&forMarshaling->maxFragmentShadingRateRasterizationSamples, |
| sizeof(VkSampleCountFlagBits)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShadingRateWithShaderDepthStencilWrites, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShadingRateWithSampleMask, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShadingRateWithShaderSampleMask, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShadingRateWithConservativeRasterization, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShadingRateWithFragmentShaderInterlock, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShadingRateWithCustomSampleLocations, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShadingRateStrictMultiplyCombiner, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentShadingRatePropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentShadingRatePropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkExtent2D( |
| vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->minFragmentShadingRateAttachmentTexelSize)); |
| unmarshal_VkExtent2D( |
| vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->maxFragmentShadingRateAttachmentTexelSize)); |
| vkStream->read( |
| (uint32_t*)&forUnmarshaling->maxFragmentShadingRateAttachmentTexelSizeAspectRatio, |
| sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->primitiveFragmentShadingRateWithMultipleViewports, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->layeredShadingRateAttachments, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShadingRateNonTrivialCombinerOps, |
| sizeof(VkBool32)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->maxFragmentSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxFragmentSizeAspectRatio, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxFragmentShadingRateCoverageSamples, |
| sizeof(uint32_t)); |
| vkStream->read( |
| (VkSampleCountFlagBits*)&forUnmarshaling->maxFragmentShadingRateRasterizationSamples, |
| sizeof(VkSampleCountFlagBits)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShadingRateWithShaderDepthStencilWrites, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShadingRateWithSampleMask, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShadingRateWithShaderSampleMask, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShadingRateWithConservativeRasterization, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShadingRateWithFragmentShaderInterlock, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShadingRateWithCustomSampleLocations, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShadingRateStrictMultiplyCombiner, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceFragmentShadingRateKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRateKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->sampleCounts, sizeof(VkSampleCountFlags)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->fragmentSize)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentShadingRateKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentShadingRateKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->sampleCounts, sizeof(VkSampleCountFlags)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->fragmentSize)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_spirv_1_4 |
| #endif |
| #ifdef VK_KHR_surface_protected_capabilities |
| void marshal_VkSurfaceProtectedCapabilitiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSurfaceProtectedCapabilitiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->supportsProtected, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkSurfaceProtectedCapabilitiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSurfaceProtectedCapabilitiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->supportsProtected, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_separate_depth_stencil_layouts |
| #endif |
| #ifdef VK_KHR_present_wait |
| void marshal_VkPhysicalDevicePresentWaitFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePresentWaitFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->presentWait, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePresentWaitFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePresentWaitFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->presentWait, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_uniform_buffer_standard_layout |
| #endif |
| #ifdef VK_KHR_buffer_device_address |
| #endif |
| #ifdef VK_KHR_deferred_host_operations |
| #endif |
| #ifdef VK_KHR_pipeline_executable_properties |
| void marshal_VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->pipelineExecutableInfo, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->pipelineExecutableInfo, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkPipeline_u64(&forMarshaling->pipeline, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkPipelineInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipeline( |
| &cgen_var_0, (VkPipeline*)&forUnmarshaling->pipeline, 1); |
| } |
| |
| void marshal_VkPipelineExecutablePropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineExecutablePropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkShaderStageFlags*)&forMarshaling->stages, sizeof(VkShaderStageFlags)); |
| vkStream->write((char*)forMarshaling->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->write((char*)forMarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->write((uint32_t*)&forMarshaling->subgroupSize, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPipelineExecutablePropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineExecutablePropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkShaderStageFlags*)&forUnmarshaling->stages, sizeof(VkShaderStageFlags)); |
| vkStream->read((char*)forUnmarshaling->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->read((char*)forUnmarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->read((uint32_t*)&forUnmarshaling->subgroupSize, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPipelineExecutableInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineExecutableInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkPipeline_u64(&forMarshaling->pipeline, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->executableIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPipelineExecutableInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineExecutableInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipeline( |
| &cgen_var_0, (VkPipeline*)&forUnmarshaling->pipeline, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->executableIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPipelineExecutableStatisticValueKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineExecutableStatisticValueKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkBool32*)&forMarshaling->b32, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPipelineExecutableStatisticValueKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineExecutableStatisticValueKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkBool32*)&forUnmarshaling->b32, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineExecutableStatisticKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineExecutableStatisticKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((char*)forMarshaling->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->write((char*)forMarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->write((VkPipelineExecutableStatisticFormatKHR*)&forMarshaling->format, |
| sizeof(VkPipelineExecutableStatisticFormatKHR)); |
| marshal_VkPipelineExecutableStatisticValueKHR( |
| vkStream, rootType, (VkPipelineExecutableStatisticValueKHR*)(&forMarshaling->value)); |
| } |
| |
| void unmarshal_VkPipelineExecutableStatisticKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPipelineExecutableStatisticKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((char*)forUnmarshaling->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->read((char*)forUnmarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->read((VkPipelineExecutableStatisticFormatKHR*)&forUnmarshaling->format, |
| sizeof(VkPipelineExecutableStatisticFormatKHR)); |
| unmarshal_VkPipelineExecutableStatisticValueKHR( |
| vkStream, rootType, (VkPipelineExecutableStatisticValueKHR*)(&forUnmarshaling->value)); |
| } |
| |
| void marshal_VkPipelineExecutableInternalRepresentationKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineExecutableInternalRepresentationKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((char*)forMarshaling->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->write((char*)forMarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->write((VkBool32*)&forMarshaling->isText, sizeof(VkBool32)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->dataSize; |
| vkStream->putBe64(cgen_var_0); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pData; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pData) { |
| vkStream->write((void*)forMarshaling->pData, forMarshaling->dataSize * sizeof(uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkPipelineExecutableInternalRepresentationKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineExecutableInternalRepresentationKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((char*)forUnmarshaling->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->read((char*)forUnmarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->read((VkBool32*)&forUnmarshaling->isText, sizeof(VkBool32)); |
| forUnmarshaling->dataSize = (size_t)vkStream->getBe64(); |
| // WARNING PTR CHECK |
| void* check_pData; |
| check_pData = (void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pData) { |
| if (!(check_pData)) { |
| fprintf(stderr, "fatal: forUnmarshaling->pData inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pData, forUnmarshaling->dataSize * sizeof(uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_integer_dot_product |
| void marshal_VkPhysicalDeviceShaderIntegerDotProductFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderIntegerDotProductFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderIntegerDotProduct, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderIntegerDotProductFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderIntegerDotProductFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderIntegerDotProduct, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceShaderIntegerDotProductPropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderIntegerDotProductPropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct8BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct8BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct8BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct4x8BitPackedUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct4x8BitPackedSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->integerDotProduct4x8BitPackedMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct16BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct16BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct16BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct32BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct32BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct32BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct64BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct64BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->integerDotProduct64BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->integerDotProductAccumulatingSaturating8BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->integerDotProductAccumulatingSaturating8BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling |
| ->integerDotProductAccumulatingSaturating8BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling |
| ->integerDotProductAccumulatingSaturating4x8BitPackedUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling |
| ->integerDotProductAccumulatingSaturating4x8BitPackedSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling |
| ->integerDotProductAccumulatingSaturating4x8BitPackedMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->integerDotProductAccumulatingSaturating16BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->integerDotProductAccumulatingSaturating16BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling |
| ->integerDotProductAccumulatingSaturating16BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->integerDotProductAccumulatingSaturating32BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->integerDotProductAccumulatingSaturating32BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling |
| ->integerDotProductAccumulatingSaturating32BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->integerDotProductAccumulatingSaturating64BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->integerDotProductAccumulatingSaturating64BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling |
| ->integerDotProductAccumulatingSaturating64BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderIntegerDotProductPropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderIntegerDotProductPropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct8BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct8BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct8BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct4x8BitPackedUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct4x8BitPackedSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read( |
| (VkBool32*)&forUnmarshaling->integerDotProduct4x8BitPackedMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct16BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct16BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct16BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct32BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct32BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct32BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct64BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct64BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->integerDotProduct64BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read( |
| (VkBool32*)&forUnmarshaling->integerDotProductAccumulatingSaturating8BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read( |
| (VkBool32*)&forUnmarshaling->integerDotProductAccumulatingSaturating8BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling |
| ->integerDotProductAccumulatingSaturating8BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling |
| ->integerDotProductAccumulatingSaturating4x8BitPackedUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling |
| ->integerDotProductAccumulatingSaturating4x8BitPackedSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read( |
| (VkBool32*)&forUnmarshaling |
| ->integerDotProductAccumulatingSaturating4x8BitPackedMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling |
| ->integerDotProductAccumulatingSaturating16BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read( |
| (VkBool32*)&forUnmarshaling->integerDotProductAccumulatingSaturating16BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling |
| ->integerDotProductAccumulatingSaturating16BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling |
| ->integerDotProductAccumulatingSaturating32BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read( |
| (VkBool32*)&forUnmarshaling->integerDotProductAccumulatingSaturating32BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling |
| ->integerDotProductAccumulatingSaturating32BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling |
| ->integerDotProductAccumulatingSaturating64BitUnsignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read( |
| (VkBool32*)&forUnmarshaling->integerDotProductAccumulatingSaturating64BitSignedAccelerated, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling |
| ->integerDotProductAccumulatingSaturating64BitMixedSignednessAccelerated, |
| sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_pipeline_library |
| void marshal_VkPipelineLibraryCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineLibraryCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->libraryCount, sizeof(uint32_t)); |
| if (forMarshaling->libraryCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->libraryCount * 8); |
| vkStream->handleMapping()->mapHandles_VkPipeline_u64(forMarshaling->pLibraries, cgen_var_0, |
| forMarshaling->libraryCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->libraryCount * 8); |
| } |
| } |
| |
| void unmarshal_VkPipelineLibraryCreateInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineLibraryCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->libraryCount, sizeof(uint32_t)); |
| if (forUnmarshaling->libraryCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->libraryCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->libraryCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipeline( |
| cgen_var_0, (VkPipeline*)forUnmarshaling->pLibraries, forUnmarshaling->libraryCount); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_non_semantic_info |
| #endif |
| #ifdef VK_KHR_present_id |
| void marshal_VkPresentIdKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPresentIdKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->swapchainCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pPresentIds; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pPresentIds) { |
| vkStream->write((const uint64_t*)forMarshaling->pPresentIds, |
| forMarshaling->swapchainCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| void unmarshal_VkPresentIdKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPresentIdKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->swapchainCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const uint64_t* check_pPresentIds; |
| check_pPresentIds = (const uint64_t*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pPresentIds) { |
| if (!(check_pPresentIds)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pPresentIds inconsistent between guest and host\n"); |
| } |
| vkStream->read((uint64_t*)forUnmarshaling->pPresentIds, |
| forUnmarshaling->swapchainCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| void marshal_VkPhysicalDevicePresentIdFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePresentIdFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->presentId, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePresentIdFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePresentIdFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->presentId, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_video_encode_queue |
| void marshal_VkVideoEncodeInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoEncodeFlagsKHR*)&forMarshaling->flags, sizeof(VkVideoEncodeFlagsKHR)); |
| vkStream->write((uint32_t*)&forMarshaling->qualityLevel, sizeof(uint32_t)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->codedExtent)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->dstBitstreamBuffer, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->dstBitstreamBufferOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->dstBitstreamBufferMaxRange, |
| sizeof(VkDeviceSize)); |
| marshal_VkVideoPictureResourceKHR( |
| vkStream, rootType, (VkVideoPictureResourceKHR*)(&forMarshaling->srcPictureResource)); |
| marshal_VkVideoReferenceSlotKHR( |
| vkStream, rootType, (const VkVideoReferenceSlotKHR*)(forMarshaling->pSetupReferenceSlot)); |
| vkStream->write((uint32_t*)&forMarshaling->referenceSlotCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->referenceSlotCount; ++i) { |
| marshal_VkVideoReferenceSlotKHR( |
| vkStream, rootType, |
| (const VkVideoReferenceSlotKHR*)(forMarshaling->pReferenceSlots + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkVideoEncodeInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoEncodeFlagsKHR*)&forUnmarshaling->flags, sizeof(VkVideoEncodeFlagsKHR)); |
| vkStream->read((uint32_t*)&forUnmarshaling->qualityLevel, sizeof(uint32_t)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->codedExtent)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer( |
| &cgen_var_0, (VkBuffer*)&forUnmarshaling->dstBitstreamBuffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->dstBitstreamBufferOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->dstBitstreamBufferMaxRange, |
| sizeof(VkDeviceSize)); |
| unmarshal_VkVideoPictureResourceKHR( |
| vkStream, rootType, (VkVideoPictureResourceKHR*)(&forUnmarshaling->srcPictureResource)); |
| unmarshal_VkVideoReferenceSlotKHR( |
| vkStream, rootType, (VkVideoReferenceSlotKHR*)(forUnmarshaling->pSetupReferenceSlot)); |
| vkStream->read((uint32_t*)&forUnmarshaling->referenceSlotCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->referenceSlotCount; ++i) { |
| unmarshal_VkVideoReferenceSlotKHR( |
| vkStream, rootType, |
| (VkVideoReferenceSlotKHR*)(forUnmarshaling->pReferenceSlots + i)); |
| } |
| } |
| } |
| |
| void marshal_VkVideoEncodeRateControlInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeRateControlInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoEncodeRateControlFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkVideoEncodeRateControlFlagsKHR)); |
| vkStream->write((VkVideoEncodeRateControlModeFlagBitsKHR*)&forMarshaling->rateControlMode, |
| sizeof(VkVideoEncodeRateControlModeFlagBitsKHR)); |
| vkStream->write((uint32_t*)&forMarshaling->averageBitrate, sizeof(uint32_t)); |
| vkStream->write((uint16_t*)&forMarshaling->peakToAverageBitrateRatio, sizeof(uint16_t)); |
| vkStream->write((uint16_t*)&forMarshaling->frameRateNumerator, sizeof(uint16_t)); |
| vkStream->write((uint16_t*)&forMarshaling->frameRateDenominator, sizeof(uint16_t)); |
| vkStream->write((uint32_t*)&forMarshaling->virtualBufferSizeInMs, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkVideoEncodeRateControlInfoKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoEncodeRateControlInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoEncodeRateControlFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkVideoEncodeRateControlFlagsKHR)); |
| vkStream->read((VkVideoEncodeRateControlModeFlagBitsKHR*)&forUnmarshaling->rateControlMode, |
| sizeof(VkVideoEncodeRateControlModeFlagBitsKHR)); |
| vkStream->read((uint32_t*)&forUnmarshaling->averageBitrate, sizeof(uint32_t)); |
| vkStream->read((uint16_t*)&forUnmarshaling->peakToAverageBitrateRatio, sizeof(uint16_t)); |
| vkStream->read((uint16_t*)&forUnmarshaling->frameRateNumerator, sizeof(uint16_t)); |
| vkStream->read((uint16_t*)&forUnmarshaling->frameRateDenominator, sizeof(uint16_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->virtualBufferSizeInMs, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| void marshal_VkMemoryBarrier2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryBarrier2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineStageFlags2KHR*)&forMarshaling->srcStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->write((VkAccessFlags2KHR*)&forMarshaling->srcAccessMask, sizeof(VkAccessFlags2KHR)); |
| vkStream->write((VkPipelineStageFlags2KHR*)&forMarshaling->dstStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->write((VkAccessFlags2KHR*)&forMarshaling->dstAccessMask, sizeof(VkAccessFlags2KHR)); |
| } |
| |
| void unmarshal_VkMemoryBarrier2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryBarrier2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineStageFlags2KHR*)&forUnmarshaling->srcStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->read((VkAccessFlags2KHR*)&forUnmarshaling->srcAccessMask, sizeof(VkAccessFlags2KHR)); |
| vkStream->read((VkPipelineStageFlags2KHR*)&forUnmarshaling->dstStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->read((VkAccessFlags2KHR*)&forUnmarshaling->dstAccessMask, sizeof(VkAccessFlags2KHR)); |
| } |
| |
| void marshal_VkBufferMemoryBarrier2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferMemoryBarrier2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineStageFlags2KHR*)&forMarshaling->srcStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->write((VkAccessFlags2KHR*)&forMarshaling->srcAccessMask, sizeof(VkAccessFlags2KHR)); |
| vkStream->write((VkPipelineStageFlags2KHR*)&forMarshaling->dstStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->write((VkAccessFlags2KHR*)&forMarshaling->dstAccessMask, sizeof(VkAccessFlags2KHR)); |
| vkStream->write((uint32_t*)&forMarshaling->srcQueueFamilyIndex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->dstQueueFamilyIndex, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkBufferMemoryBarrier2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferMemoryBarrier2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineStageFlags2KHR*)&forUnmarshaling->srcStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->read((VkAccessFlags2KHR*)&forUnmarshaling->srcAccessMask, sizeof(VkAccessFlags2KHR)); |
| vkStream->read((VkPipelineStageFlags2KHR*)&forUnmarshaling->dstStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->read((VkAccessFlags2KHR*)&forUnmarshaling->dstAccessMask, sizeof(VkAccessFlags2KHR)); |
| vkStream->read((uint32_t*)&forUnmarshaling->srcQueueFamilyIndex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstQueueFamilyIndex, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkImageMemoryBarrier2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageMemoryBarrier2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineStageFlags2KHR*)&forMarshaling->srcStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->write((VkAccessFlags2KHR*)&forMarshaling->srcAccessMask, sizeof(VkAccessFlags2KHR)); |
| vkStream->write((VkPipelineStageFlags2KHR*)&forMarshaling->dstStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->write((VkAccessFlags2KHR*)&forMarshaling->dstAccessMask, sizeof(VkAccessFlags2KHR)); |
| vkStream->write((VkImageLayout*)&forMarshaling->oldLayout, sizeof(VkImageLayout)); |
| vkStream->write((VkImageLayout*)&forMarshaling->newLayout, sizeof(VkImageLayout)); |
| vkStream->write((uint32_t*)&forMarshaling->srcQueueFamilyIndex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->dstQueueFamilyIndex, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->image, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| marshal_VkImageSubresourceRange(vkStream, rootType, |
| (VkImageSubresourceRange*)(&forMarshaling->subresourceRange)); |
| } |
| |
| void unmarshal_VkImageMemoryBarrier2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageMemoryBarrier2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineStageFlags2KHR*)&forUnmarshaling->srcStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->read((VkAccessFlags2KHR*)&forUnmarshaling->srcAccessMask, sizeof(VkAccessFlags2KHR)); |
| vkStream->read((VkPipelineStageFlags2KHR*)&forUnmarshaling->dstStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->read((VkAccessFlags2KHR*)&forUnmarshaling->dstAccessMask, sizeof(VkAccessFlags2KHR)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->oldLayout, sizeof(VkImageLayout)); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->newLayout, sizeof(VkImageLayout)); |
| vkStream->read((uint32_t*)&forUnmarshaling->srcQueueFamilyIndex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dstQueueFamilyIndex, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->image, 1); |
| unmarshal_VkImageSubresourceRange( |
| vkStream, rootType, (VkImageSubresourceRange*)(&forUnmarshaling->subresourceRange)); |
| } |
| |
| void marshal_VkDependencyInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDependencyInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDependencyFlags*)&forMarshaling->dependencyFlags, sizeof(VkDependencyFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->memoryBarrierCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->memoryBarrierCount; ++i) { |
| marshal_VkMemoryBarrier2KHR( |
| vkStream, rootType, |
| (const VkMemoryBarrier2KHR*)(forMarshaling->pMemoryBarriers + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->bufferMemoryBarrierCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->bufferMemoryBarrierCount; ++i) { |
| marshal_VkBufferMemoryBarrier2KHR( |
| vkStream, rootType, |
| (const VkBufferMemoryBarrier2KHR*)(forMarshaling->pBufferMemoryBarriers + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->imageMemoryBarrierCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->imageMemoryBarrierCount; ++i) { |
| marshal_VkImageMemoryBarrier2KHR( |
| vkStream, rootType, |
| (const VkImageMemoryBarrier2KHR*)(forMarshaling->pImageMemoryBarriers + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkDependencyInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDependencyInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDependencyFlags*)&forUnmarshaling->dependencyFlags, |
| sizeof(VkDependencyFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryBarrierCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->memoryBarrierCount; ++i) { |
| unmarshal_VkMemoryBarrier2KHR( |
| vkStream, rootType, (VkMemoryBarrier2KHR*)(forUnmarshaling->pMemoryBarriers + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->bufferMemoryBarrierCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->bufferMemoryBarrierCount; ++i) { |
| unmarshal_VkBufferMemoryBarrier2KHR( |
| vkStream, rootType, |
| (VkBufferMemoryBarrier2KHR*)(forUnmarshaling->pBufferMemoryBarriers + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->imageMemoryBarrierCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->imageMemoryBarrierCount; ++i) { |
| unmarshal_VkImageMemoryBarrier2KHR( |
| vkStream, rootType, |
| (VkImageMemoryBarrier2KHR*)(forUnmarshaling->pImageMemoryBarriers + i)); |
| } |
| } |
| } |
| |
| void marshal_VkSemaphoreSubmitInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSemaphoreSubmitInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64(&forMarshaling->semaphore, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint64_t*)&forMarshaling->value, sizeof(uint64_t)); |
| vkStream->write((VkPipelineStageFlags2KHR*)&forMarshaling->stageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->write((uint32_t*)&forMarshaling->deviceIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkSemaphoreSubmitInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSemaphoreSubmitInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| &cgen_var_0, (VkSemaphore*)&forUnmarshaling->semaphore, 1); |
| vkStream->read((uint64_t*)&forUnmarshaling->value, sizeof(uint64_t)); |
| vkStream->read((VkPipelineStageFlags2KHR*)&forUnmarshaling->stageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkCommandBufferSubmitInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCommandBufferSubmitInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkCommandBuffer_u64(&forMarshaling->commandBuffer, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->deviceMask, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkCommandBufferSubmitInfoKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCommandBufferSubmitInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkCommandBuffer( |
| &cgen_var_0, (VkCommandBuffer*)&forUnmarshaling->commandBuffer, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceMask, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkSubmitInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubmitInfo2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSubmitFlagsKHR*)&forMarshaling->flags, sizeof(VkSubmitFlagsKHR)); |
| vkStream->write((uint32_t*)&forMarshaling->waitSemaphoreInfoCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->waitSemaphoreInfoCount; ++i) { |
| marshal_VkSemaphoreSubmitInfoKHR( |
| vkStream, rootType, |
| (const VkSemaphoreSubmitInfoKHR*)(forMarshaling->pWaitSemaphoreInfos + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->commandBufferInfoCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->commandBufferInfoCount; ++i) { |
| marshal_VkCommandBufferSubmitInfoKHR( |
| vkStream, rootType, |
| (const VkCommandBufferSubmitInfoKHR*)(forMarshaling->pCommandBufferInfos + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->signalSemaphoreInfoCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->signalSemaphoreInfoCount; ++i) { |
| marshal_VkSemaphoreSubmitInfoKHR( |
| vkStream, rootType, |
| (const VkSemaphoreSubmitInfoKHR*)(forMarshaling->pSignalSemaphoreInfos + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkSubmitInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubmitInfo2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSubmitFlagsKHR*)&forUnmarshaling->flags, sizeof(VkSubmitFlagsKHR)); |
| vkStream->read((uint32_t*)&forUnmarshaling->waitSemaphoreInfoCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->waitSemaphoreInfoCount; ++i) { |
| unmarshal_VkSemaphoreSubmitInfoKHR( |
| vkStream, rootType, |
| (VkSemaphoreSubmitInfoKHR*)(forUnmarshaling->pWaitSemaphoreInfos + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->commandBufferInfoCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->commandBufferInfoCount; ++i) { |
| unmarshal_VkCommandBufferSubmitInfoKHR( |
| vkStream, rootType, |
| (VkCommandBufferSubmitInfoKHR*)(forUnmarshaling->pCommandBufferInfos + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->signalSemaphoreInfoCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->signalSemaphoreInfoCount; ++i) { |
| unmarshal_VkSemaphoreSubmitInfoKHR( |
| vkStream, rootType, |
| (VkSemaphoreSubmitInfoKHR*)(forUnmarshaling->pSignalSemaphoreInfos + i)); |
| } |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceSynchronization2FeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSynchronization2FeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->synchronization2, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSynchronization2FeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSynchronization2FeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->synchronization2, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkQueueFamilyCheckpointProperties2NV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkQueueFamilyCheckpointProperties2NV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineStageFlags2KHR*)&forMarshaling->checkpointExecutionStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| } |
| |
| void unmarshal_VkQueueFamilyCheckpointProperties2NV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkQueueFamilyCheckpointProperties2NV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineStageFlags2KHR*)&forUnmarshaling->checkpointExecutionStageMask, |
| sizeof(VkPipelineStageFlags2KHR)); |
| } |
| |
| void marshal_VkCheckpointData2NV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCheckpointData2NV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineStageFlags2KHR*)&forMarshaling->stage, |
| sizeof(VkPipelineStageFlags2KHR)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pCheckpointMarker; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pCheckpointMarker) { |
| vkStream->write((void*)forMarshaling->pCheckpointMarker, sizeof(uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkCheckpointData2NV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCheckpointData2NV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineStageFlags2KHR*)&forUnmarshaling->stage, |
| sizeof(VkPipelineStageFlags2KHR)); |
| // WARNING PTR CHECK |
| void* check_pCheckpointMarker; |
| check_pCheckpointMarker = (void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pCheckpointMarker) { |
| if (!(check_pCheckpointMarker)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pCheckpointMarker inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pCheckpointMarker, sizeof(uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_subgroup_uniform_control_flow |
| void marshal_VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSubgroupUniformControlFlow, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSubgroupUniformControlFlow, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_zero_initialize_workgroup_memory |
| void marshal_VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderZeroInitializeWorkgroupMemory, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderZeroInitializeWorkgroupMemory, |
| sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_workgroup_memory_explicit_layout |
| void marshal_VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->workgroupMemoryExplicitLayout, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->workgroupMemoryExplicitLayoutScalarBlockLayout, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->workgroupMemoryExplicitLayout8BitAccess, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->workgroupMemoryExplicitLayout16BitAccess, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->workgroupMemoryExplicitLayout, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->workgroupMemoryExplicitLayoutScalarBlockLayout, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->workgroupMemoryExplicitLayout8BitAccess, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->workgroupMemoryExplicitLayout16BitAccess, |
| sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_copy_commands2 |
| void marshal_VkBufferCopy2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferCopy2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)&forMarshaling->srcOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->dstOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkBufferCopy2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferCopy2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->srcOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->dstOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkCopyBufferInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCopyBufferInfo2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->srcBuffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->dstBuffer, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->regionCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->regionCount; ++i) { |
| marshal_VkBufferCopy2KHR(vkStream, rootType, |
| (const VkBufferCopy2KHR*)(forMarshaling->pRegions + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkCopyBufferInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCopyBufferInfo2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->srcBuffer, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_1, |
| (VkBuffer*)&forUnmarshaling->dstBuffer, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->regionCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->regionCount; ++i) { |
| unmarshal_VkBufferCopy2KHR(vkStream, rootType, |
| (VkBufferCopy2KHR*)(forUnmarshaling->pRegions + i)); |
| } |
| } |
| } |
| |
| void marshal_VkImageCopy2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageCopy2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->srcSubresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->srcOffset)); |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->dstSubresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->dstOffset)); |
| marshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forMarshaling->extent)); |
| } |
| |
| void unmarshal_VkImageCopy2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageCopy2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->srcSubresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->srcOffset)); |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->dstSubresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->dstOffset)); |
| unmarshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forUnmarshaling->extent)); |
| } |
| |
| void marshal_VkCopyImageInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCopyImageInfo2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->srcImage, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->srcImageLayout, sizeof(VkImageLayout)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->dstImage, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->dstImageLayout, sizeof(VkImageLayout)); |
| vkStream->write((uint32_t*)&forMarshaling->regionCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->regionCount; ++i) { |
| marshal_VkImageCopy2KHR(vkStream, rootType, |
| (const VkImageCopy2KHR*)(forMarshaling->pRegions + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkCopyImageInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCopyImageInfo2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->srcImage, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->srcImageLayout, sizeof(VkImageLayout)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_1, |
| (VkImage*)&forUnmarshaling->dstImage, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->dstImageLayout, sizeof(VkImageLayout)); |
| vkStream->read((uint32_t*)&forUnmarshaling->regionCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->regionCount; ++i) { |
| unmarshal_VkImageCopy2KHR(vkStream, rootType, |
| (VkImageCopy2KHR*)(forUnmarshaling->pRegions + i)); |
| } |
| } |
| } |
| |
| void marshal_VkBufferImageCopy2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferImageCopy2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)&forMarshaling->bufferOffset, sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->bufferRowLength, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->bufferImageHeight, sizeof(uint32_t)); |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->imageSubresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->imageOffset)); |
| marshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forMarshaling->imageExtent)); |
| } |
| |
| void unmarshal_VkBufferImageCopy2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferImageCopy2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->bufferOffset, sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->bufferRowLength, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->bufferImageHeight, sizeof(uint32_t)); |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->imageSubresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->imageOffset)); |
| unmarshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forUnmarshaling->imageExtent)); |
| } |
| |
| void marshal_VkCopyBufferToImageInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCopyBufferToImageInfo2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->srcBuffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->dstImage, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->dstImageLayout, sizeof(VkImageLayout)); |
| vkStream->write((uint32_t*)&forMarshaling->regionCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->regionCount; ++i) { |
| marshal_VkBufferImageCopy2KHR( |
| vkStream, rootType, (const VkBufferImageCopy2KHR*)(forMarshaling->pRegions + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkCopyBufferToImageInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCopyBufferToImageInfo2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->srcBuffer, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_1, |
| (VkImage*)&forUnmarshaling->dstImage, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->dstImageLayout, sizeof(VkImageLayout)); |
| vkStream->read((uint32_t*)&forUnmarshaling->regionCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->regionCount; ++i) { |
| unmarshal_VkBufferImageCopy2KHR( |
| vkStream, rootType, (VkBufferImageCopy2KHR*)(forUnmarshaling->pRegions + i)); |
| } |
| } |
| } |
| |
| void marshal_VkCopyImageToBufferInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCopyImageToBufferInfo2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->srcImage, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->srcImageLayout, sizeof(VkImageLayout)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->dstBuffer, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->regionCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->regionCount; ++i) { |
| marshal_VkBufferImageCopy2KHR( |
| vkStream, rootType, (const VkBufferImageCopy2KHR*)(forMarshaling->pRegions + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkCopyImageToBufferInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCopyImageToBufferInfo2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->srcImage, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->srcImageLayout, sizeof(VkImageLayout)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_1, |
| (VkBuffer*)&forUnmarshaling->dstBuffer, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->regionCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->regionCount; ++i) { |
| unmarshal_VkBufferImageCopy2KHR( |
| vkStream, rootType, (VkBufferImageCopy2KHR*)(forUnmarshaling->pRegions + i)); |
| } |
| } |
| } |
| |
| void marshal_VkImageBlit2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageBlit2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->srcSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(forMarshaling->srcOffsets + i)); |
| } |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->dstSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(forMarshaling->dstOffsets + i)); |
| } |
| } |
| |
| void unmarshal_VkImageBlit2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageBlit2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->srcSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(forUnmarshaling->srcOffsets + i)); |
| } |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->dstSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(forUnmarshaling->dstOffsets + i)); |
| } |
| } |
| |
| void marshal_VkBlitImageInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBlitImageInfo2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->srcImage, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->srcImageLayout, sizeof(VkImageLayout)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->dstImage, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->dstImageLayout, sizeof(VkImageLayout)); |
| vkStream->write((uint32_t*)&forMarshaling->regionCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->regionCount; ++i) { |
| marshal_VkImageBlit2KHR(vkStream, rootType, |
| (const VkImageBlit2KHR*)(forMarshaling->pRegions + i)); |
| } |
| } |
| vkStream->write((VkFilter*)&forMarshaling->filter, sizeof(VkFilter)); |
| } |
| |
| void unmarshal_VkBlitImageInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBlitImageInfo2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->srcImage, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->srcImageLayout, sizeof(VkImageLayout)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_1, |
| (VkImage*)&forUnmarshaling->dstImage, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->dstImageLayout, sizeof(VkImageLayout)); |
| vkStream->read((uint32_t*)&forUnmarshaling->regionCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->regionCount; ++i) { |
| unmarshal_VkImageBlit2KHR(vkStream, rootType, |
| (VkImageBlit2KHR*)(forUnmarshaling->pRegions + i)); |
| } |
| } |
| vkStream->read((VkFilter*)&forUnmarshaling->filter, sizeof(VkFilter)); |
| } |
| |
| void marshal_VkImageResolve2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageResolve2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->srcSubresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->srcOffset)); |
| marshal_VkImageSubresourceLayers(vkStream, rootType, |
| (VkImageSubresourceLayers*)(&forMarshaling->dstSubresource)); |
| marshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forMarshaling->dstOffset)); |
| marshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forMarshaling->extent)); |
| } |
| |
| void unmarshal_VkImageResolve2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageResolve2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->srcSubresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->srcOffset)); |
| unmarshal_VkImageSubresourceLayers( |
| vkStream, rootType, (VkImageSubresourceLayers*)(&forUnmarshaling->dstSubresource)); |
| unmarshal_VkOffset3D(vkStream, rootType, (VkOffset3D*)(&forUnmarshaling->dstOffset)); |
| unmarshal_VkExtent3D(vkStream, rootType, (VkExtent3D*)(&forUnmarshaling->extent)); |
| } |
| |
| void marshal_VkResolveImageInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkResolveImageInfo2KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->srcImage, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->srcImageLayout, sizeof(VkImageLayout)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->dstImage, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkImageLayout*)&forMarshaling->dstImageLayout, sizeof(VkImageLayout)); |
| vkStream->write((uint32_t*)&forMarshaling->regionCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->regionCount; ++i) { |
| marshal_VkImageResolve2KHR(vkStream, rootType, |
| (const VkImageResolve2KHR*)(forMarshaling->pRegions + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkResolveImageInfo2KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkResolveImageInfo2KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->srcImage, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->srcImageLayout, sizeof(VkImageLayout)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_1, |
| (VkImage*)&forUnmarshaling->dstImage, 1); |
| vkStream->read((VkImageLayout*)&forUnmarshaling->dstImageLayout, sizeof(VkImageLayout)); |
| vkStream->read((uint32_t*)&forUnmarshaling->regionCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->regionCount; ++i) { |
| unmarshal_VkImageResolve2KHR(vkStream, rootType, |
| (VkImageResolve2KHR*)(forUnmarshaling->pRegions + i)); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_format_feature_flags2 |
| void marshal_VkFormatProperties3KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFormatProperties3KHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFormatFeatureFlags2KHR*)&forMarshaling->linearTilingFeatures, |
| sizeof(VkFormatFeatureFlags2KHR)); |
| vkStream->write((VkFormatFeatureFlags2KHR*)&forMarshaling->optimalTilingFeatures, |
| sizeof(VkFormatFeatureFlags2KHR)); |
| vkStream->write((VkFormatFeatureFlags2KHR*)&forMarshaling->bufferFeatures, |
| sizeof(VkFormatFeatureFlags2KHR)); |
| } |
| |
| void unmarshal_VkFormatProperties3KHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFormatProperties3KHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFormatFeatureFlags2KHR*)&forUnmarshaling->linearTilingFeatures, |
| sizeof(VkFormatFeatureFlags2KHR)); |
| vkStream->read((VkFormatFeatureFlags2KHR*)&forUnmarshaling->optimalTilingFeatures, |
| sizeof(VkFormatFeatureFlags2KHR)); |
| vkStream->read((VkFormatFeatureFlags2KHR*)&forUnmarshaling->bufferFeatures, |
| sizeof(VkFormatFeatureFlags2KHR)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_maintenance4 |
| void marshal_VkPhysicalDeviceMaintenance4FeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMaintenance4FeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->maintenance4, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMaintenance4FeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMaintenance4FeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->maintenance4, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceMaintenance4PropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMaintenance4PropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)&forMarshaling->maxBufferSize, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMaintenance4PropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMaintenance4PropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->maxBufferSize, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkDeviceBufferMemoryRequirementsKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceBufferMemoryRequirementsKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkBufferCreateInfo(vkStream, rootType, |
| (const VkBufferCreateInfo*)(forMarshaling->pCreateInfo)); |
| } |
| |
| void unmarshal_VkDeviceBufferMemoryRequirementsKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceBufferMemoryRequirementsKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkBufferCreateInfo(vkStream, rootType, |
| (VkBufferCreateInfo*)(forUnmarshaling->pCreateInfo)); |
| } |
| |
| void marshal_VkDeviceImageMemoryRequirementsKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceImageMemoryRequirementsKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkImageCreateInfo(vkStream, rootType, |
| (const VkImageCreateInfo*)(forMarshaling->pCreateInfo)); |
| vkStream->write((VkImageAspectFlagBits*)&forMarshaling->planeAspect, |
| sizeof(VkImageAspectFlagBits)); |
| } |
| |
| void unmarshal_VkDeviceImageMemoryRequirementsKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceImageMemoryRequirementsKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkImageCreateInfo(vkStream, rootType, |
| (VkImageCreateInfo*)(forUnmarshaling->pCreateInfo)); |
| vkStream->read((VkImageAspectFlagBits*)&forUnmarshaling->planeAspect, |
| sizeof(VkImageAspectFlagBits)); |
| } |
| |
| #endif |
| #ifdef VK_ANDROID_native_buffer |
| void marshal_VkNativeBufferANDROID(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkNativeBufferANDROID* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->handle; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->handle) { |
| vkStream->write((const uint32_t*)forMarshaling->handle, sizeof(const uint32_t)); |
| } |
| vkStream->write((int*)&forMarshaling->stride, sizeof(int)); |
| vkStream->write((int*)&forMarshaling->format, sizeof(int)); |
| vkStream->write((int*)&forMarshaling->usage, sizeof(int)); |
| vkStream->write((uint64_t*)&forMarshaling->consumer, sizeof(uint64_t)); |
| vkStream->write((uint64_t*)&forMarshaling->producer, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkNativeBufferANDROID(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkNativeBufferANDROID* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| // WARNING PTR CHECK |
| const uint32_t* check_handle; |
| check_handle = (const uint32_t*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->handle) { |
| if (!(check_handle)) { |
| fprintf(stderr, "fatal: forUnmarshaling->handle inconsistent between guest and host\n"); |
| } |
| vkStream->read((uint32_t*)forUnmarshaling->handle, sizeof(const uint32_t)); |
| } |
| vkStream->read((int*)&forUnmarshaling->stride, sizeof(int)); |
| vkStream->read((int*)&forUnmarshaling->format, sizeof(int)); |
| vkStream->read((int*)&forUnmarshaling->usage, sizeof(int)); |
| vkStream->read((uint64_t*)&forUnmarshaling->consumer, sizeof(uint64_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->producer, sizeof(uint64_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_debug_report |
| void marshal_VkDebugReportCallbackCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDebugReportCallbackCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDebugReportFlagsEXT*)&forMarshaling->flags, sizeof(VkDebugReportFlagsEXT)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->pfnCallback; |
| vkStream->putBe64(cgen_var_0); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pUserData; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pUserData) { |
| vkStream->write((void*)forMarshaling->pUserData, sizeof(uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkDebugReportCallbackCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDebugReportCallbackCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDebugReportFlagsEXT*)&forUnmarshaling->flags, sizeof(VkDebugReportFlagsEXT)); |
| forUnmarshaling->pfnCallback = (PFN_vkDebugReportCallbackEXT)vkStream->getBe64(); |
| // WARNING PTR CHECK |
| void* check_pUserData; |
| check_pUserData = (void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pUserData) { |
| if (!(check_pUserData)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pUserData inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pUserData, sizeof(uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_glsl_shader |
| #endif |
| #ifdef VK_EXT_depth_range_unrestricted |
| #endif |
| #ifdef VK_IMG_filter_cubic |
| #endif |
| #ifdef VK_AMD_rasterization_order |
| void marshal_VkPipelineRasterizationStateRasterizationOrderAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineRasterizationStateRasterizationOrderAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkRasterizationOrderAMD*)&forMarshaling->rasterizationOrder, |
| sizeof(VkRasterizationOrderAMD)); |
| } |
| |
| void unmarshal_VkPipelineRasterizationStateRasterizationOrderAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineRasterizationStateRasterizationOrderAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkRasterizationOrderAMD*)&forUnmarshaling->rasterizationOrder, |
| sizeof(VkRasterizationOrderAMD)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_trinary_minmax |
| #endif |
| #ifdef VK_AMD_shader_explicit_vertex_parameter |
| #endif |
| #ifdef VK_EXT_debug_marker |
| void marshal_VkDebugMarkerObjectNameInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDebugMarkerObjectNameInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDebugReportObjectTypeEXT*)&forMarshaling->objectType, |
| sizeof(VkDebugReportObjectTypeEXT)); |
| vkStream->write((uint64_t*)&forMarshaling->object, sizeof(uint64_t)); |
| vkStream->putString(forMarshaling->pObjectName); |
| } |
| |
| void unmarshal_VkDebugMarkerObjectNameInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDebugMarkerObjectNameInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDebugReportObjectTypeEXT*)&forUnmarshaling->objectType, |
| sizeof(VkDebugReportObjectTypeEXT)); |
| vkStream->read((uint64_t*)&forUnmarshaling->object, sizeof(uint64_t)); |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pObjectName); |
| } |
| |
| void marshal_VkDebugMarkerObjectTagInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDebugMarkerObjectTagInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDebugReportObjectTypeEXT*)&forMarshaling->objectType, |
| sizeof(VkDebugReportObjectTypeEXT)); |
| vkStream->write((uint64_t*)&forMarshaling->object, sizeof(uint64_t)); |
| vkStream->write((uint64_t*)&forMarshaling->tagName, sizeof(uint64_t)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->tagSize; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((const void*)forMarshaling->pTag, |
| forMarshaling->tagSize * sizeof(const uint8_t)); |
| } |
| |
| void unmarshal_VkDebugMarkerObjectTagInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDebugMarkerObjectTagInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDebugReportObjectTypeEXT*)&forUnmarshaling->objectType, |
| sizeof(VkDebugReportObjectTypeEXT)); |
| vkStream->read((uint64_t*)&forUnmarshaling->object, sizeof(uint64_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->tagName, sizeof(uint64_t)); |
| forUnmarshaling->tagSize = (size_t)vkStream->getBe64(); |
| vkStream->read((void*)forUnmarshaling->pTag, forUnmarshaling->tagSize * sizeof(const uint8_t)); |
| } |
| |
| void marshal_VkDebugMarkerMarkerInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDebugMarkerMarkerInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->putString(forMarshaling->pMarkerName); |
| vkStream->write((float*)forMarshaling->color, 4 * sizeof(float)); |
| } |
| |
| void unmarshal_VkDebugMarkerMarkerInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDebugMarkerMarkerInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pMarkerName); |
| vkStream->read((float*)forUnmarshaling->color, 4 * sizeof(float)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_gcn_shader |
| #endif |
| #ifdef VK_NV_dedicated_allocation |
| void marshal_VkDedicatedAllocationImageCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDedicatedAllocationImageCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->dedicatedAllocation, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkDedicatedAllocationImageCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDedicatedAllocationImageCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->dedicatedAllocation, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkDedicatedAllocationBufferCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDedicatedAllocationBufferCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->dedicatedAllocation, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkDedicatedAllocationBufferCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDedicatedAllocationBufferCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->dedicatedAllocation, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkDedicatedAllocationMemoryAllocateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDedicatedAllocationMemoryAllocateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImage_u64(&forMarshaling->image, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| } |
| |
| void unmarshal_VkDedicatedAllocationMemoryAllocateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDedicatedAllocationMemoryAllocateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImage(&cgen_var_0, |
| (VkImage*)&forUnmarshaling->image, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_1, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| } |
| |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| void marshal_VkPhysicalDeviceTransformFeedbackFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceTransformFeedbackFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->transformFeedback, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->geometryStreams, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceTransformFeedbackFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceTransformFeedbackFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->transformFeedback, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->geometryStreams, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceTransformFeedbackPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceTransformFeedbackPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxTransformFeedbackStreams, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTransformFeedbackBuffers, sizeof(uint32_t)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->maxTransformFeedbackBufferSize, |
| sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTransformFeedbackStreamDataSize, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTransformFeedbackBufferDataSize, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTransformFeedbackBufferDataStride, |
| sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->transformFeedbackQueries, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->transformFeedbackStreamsLinesTriangles, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->transformFeedbackRasterizationStreamSelect, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->transformFeedbackDraw, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceTransformFeedbackPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceTransformFeedbackPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTransformFeedbackStreams, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTransformFeedbackBuffers, sizeof(uint32_t)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->maxTransformFeedbackBufferSize, |
| sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTransformFeedbackStreamDataSize, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTransformFeedbackBufferDataSize, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTransformFeedbackBufferDataStride, |
| sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->transformFeedbackQueries, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->transformFeedbackStreamsLinesTriangles, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->transformFeedbackRasterizationStreamSelect, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->transformFeedbackDraw, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineRasterizationStateStreamCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineRasterizationStateStreamCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineRasterizationStateStreamCreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkPipelineRasterizationStateStreamCreateFlagsEXT)); |
| vkStream->write((uint32_t*)&forMarshaling->rasterizationStream, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPipelineRasterizationStateStreamCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineRasterizationStateStreamCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineRasterizationStateStreamCreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkPipelineRasterizationStateStreamCreateFlagsEXT)); |
| vkStream->read((uint32_t*)&forUnmarshaling->rasterizationStream, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_NVX_binary_import |
| void marshal_VkCuModuleCreateInfoNVX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCuModuleCreateInfoNVX* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->dataSize; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((const void*)forMarshaling->pData, |
| forMarshaling->dataSize * sizeof(const uint8_t)); |
| } |
| |
| void unmarshal_VkCuModuleCreateInfoNVX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCuModuleCreateInfoNVX* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| forUnmarshaling->dataSize = (size_t)vkStream->getBe64(); |
| vkStream->read((void*)forUnmarshaling->pData, |
| forUnmarshaling->dataSize * sizeof(const uint8_t)); |
| } |
| |
| void marshal_VkCuFunctionCreateInfoNVX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCuFunctionCreateInfoNVX* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->module; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->putString(forMarshaling->pName); |
| } |
| |
| void unmarshal_VkCuFunctionCreateInfoNVX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCuFunctionCreateInfoNVX* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| forUnmarshaling->module = (VkCuModuleNVX)vkStream->getBe64(); |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pName); |
| } |
| |
| void marshal_VkCuLaunchInfoNVX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCuLaunchInfoNVX* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->function; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((uint32_t*)&forMarshaling->gridDimX, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->gridDimY, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->gridDimZ, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->blockDimX, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->blockDimY, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->blockDimZ, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->sharedMemBytes, sizeof(uint32_t)); |
| uint64_t cgen_var_1 = (uint64_t)forMarshaling->paramCount; |
| vkStream->putBe64(cgen_var_1); |
| uint64_t cgen_var_2 = (uint64_t)forMarshaling->extraCount; |
| vkStream->putBe64(cgen_var_2); |
| } |
| |
| void unmarshal_VkCuLaunchInfoNVX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCuLaunchInfoNVX* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| forUnmarshaling->function = (VkCuFunctionNVX)vkStream->getBe64(); |
| vkStream->read((uint32_t*)&forUnmarshaling->gridDimX, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->gridDimY, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->gridDimZ, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->blockDimX, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->blockDimY, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->blockDimZ, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->sharedMemBytes, sizeof(uint32_t)); |
| forUnmarshaling->paramCount = (size_t)vkStream->getBe64(); |
| forUnmarshaling->extraCount = (size_t)vkStream->getBe64(); |
| } |
| |
| #endif |
| #ifdef VK_NVX_image_view_handle |
| void marshal_VkImageViewHandleInfoNVX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageViewHandleInfoNVX* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkImageView_u64(&forMarshaling->imageView, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDescriptorType*)&forMarshaling->descriptorType, sizeof(VkDescriptorType)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkSampler_u64(&forMarshaling->sampler, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| } |
| |
| void unmarshal_VkImageViewHandleInfoNVX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageViewHandleInfoNVX* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkImageView( |
| &cgen_var_0, (VkImageView*)&forUnmarshaling->imageView, 1); |
| vkStream->read((VkDescriptorType*)&forUnmarshaling->descriptorType, sizeof(VkDescriptorType)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSampler(&cgen_var_1, |
| (VkSampler*)&forUnmarshaling->sampler, 1); |
| } |
| |
| void marshal_VkImageViewAddressPropertiesNVX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageViewAddressPropertiesNVX* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceAddress*)&forMarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkImageViewAddressPropertiesNVX(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkImageViewAddressPropertiesNVX* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceAddress*)&forUnmarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_draw_indirect_count |
| #endif |
| #ifdef VK_AMD_negative_viewport_height |
| #endif |
| #ifdef VK_AMD_gpu_shader_half_float |
| #endif |
| #ifdef VK_AMD_shader_ballot |
| #endif |
| #ifdef VK_EXT_video_encode_h264 |
| void marshal_VkVideoEncodeH264CapabilitiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH264CapabilitiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoEncodeH264CapabilityFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkVideoEncodeH264CapabilityFlagsEXT)); |
| vkStream->write((VkVideoEncodeH264InputModeFlagsEXT*)&forMarshaling->inputModeFlags, |
| sizeof(VkVideoEncodeH264InputModeFlagsEXT)); |
| vkStream->write((VkVideoEncodeH264OutputModeFlagsEXT*)&forMarshaling->outputModeFlags, |
| sizeof(VkVideoEncodeH264OutputModeFlagsEXT)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->minPictureSizeInMbs)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->maxPictureSizeInMbs)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->inputImageDataAlignment)); |
| vkStream->write((uint8_t*)&forMarshaling->maxNumL0ReferenceForP, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->maxNumL0ReferenceForB, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->maxNumL1Reference, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->qualityLevelCount, sizeof(uint8_t)); |
| marshal_VkExtensionProperties(vkStream, rootType, |
| (VkExtensionProperties*)(&forMarshaling->stdExtensionVersion)); |
| } |
| |
| void unmarshal_VkVideoEncodeH264CapabilitiesEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoEncodeH264CapabilitiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoEncodeH264CapabilityFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkVideoEncodeH264CapabilityFlagsEXT)); |
| vkStream->read((VkVideoEncodeH264InputModeFlagsEXT*)&forUnmarshaling->inputModeFlags, |
| sizeof(VkVideoEncodeH264InputModeFlagsEXT)); |
| vkStream->read((VkVideoEncodeH264OutputModeFlagsEXT*)&forUnmarshaling->outputModeFlags, |
| sizeof(VkVideoEncodeH264OutputModeFlagsEXT)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->minPictureSizeInMbs)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->maxPictureSizeInMbs)); |
| unmarshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->inputImageDataAlignment)); |
| vkStream->read((uint8_t*)&forUnmarshaling->maxNumL0ReferenceForP, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->maxNumL0ReferenceForB, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->maxNumL1Reference, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->qualityLevelCount, sizeof(uint8_t)); |
| unmarshal_VkExtensionProperties( |
| vkStream, rootType, (VkExtensionProperties*)(&forUnmarshaling->stdExtensionVersion)); |
| } |
| |
| void marshal_VkVideoEncodeH264SessionCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH264SessionCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoEncodeH264CreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkVideoEncodeH264CreateFlagsEXT)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->maxPictureSizeInMbs)); |
| marshal_VkExtensionProperties( |
| vkStream, rootType, (const VkExtensionProperties*)(forMarshaling->pStdExtensionVersion)); |
| } |
| |
| void unmarshal_VkVideoEncodeH264SessionCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH264SessionCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoEncodeH264CreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkVideoEncodeH264CreateFlagsEXT)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->maxPictureSizeInMbs)); |
| unmarshal_VkExtensionProperties( |
| vkStream, rootType, (VkExtensionProperties*)(forUnmarshaling->pStdExtensionVersion)); |
| } |
| |
| void marshal_VkVideoEncodeH264SessionParametersAddInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH264SessionParametersAddInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->spsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pSpsStd; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pSpsStd) { |
| vkStream->write( |
| (const StdVideoH264SequenceParameterSet*)forMarshaling->pSpsStd, |
| forMarshaling->spsStdCount * sizeof(const StdVideoH264SequenceParameterSet)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->ppsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pPpsStd; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pPpsStd) { |
| vkStream->write((const StdVideoH264PictureParameterSet*)forMarshaling->pPpsStd, |
| forMarshaling->ppsStdCount * sizeof(const StdVideoH264PictureParameterSet)); |
| } |
| } |
| |
| void unmarshal_VkVideoEncodeH264SessionParametersAddInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH264SessionParametersAddInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->spsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const StdVideoH264SequenceParameterSet* check_pSpsStd; |
| check_pSpsStd = (const StdVideoH264SequenceParameterSet*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pSpsStd) { |
| if (!(check_pSpsStd)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pSpsStd inconsistent between guest and host\n"); |
| } |
| vkStream->read( |
| (StdVideoH264SequenceParameterSet*)forUnmarshaling->pSpsStd, |
| forUnmarshaling->spsStdCount * sizeof(const StdVideoH264SequenceParameterSet)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->ppsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const StdVideoH264PictureParameterSet* check_pPpsStd; |
| check_pPpsStd = (const StdVideoH264PictureParameterSet*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pPpsStd) { |
| if (!(check_pPpsStd)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pPpsStd inconsistent between guest and host\n"); |
| } |
| vkStream->read( |
| (StdVideoH264PictureParameterSet*)forUnmarshaling->pPpsStd, |
| forUnmarshaling->ppsStdCount * sizeof(const StdVideoH264PictureParameterSet)); |
| } |
| } |
| |
| void marshal_VkVideoEncodeH264SessionParametersCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH264SessionParametersCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxSpsStdCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPpsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pParametersAddInfo; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pParametersAddInfo) { |
| marshal_VkVideoEncodeH264SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH264SessionParametersAddInfoEXT*)(forMarshaling |
| ->pParametersAddInfo)); |
| } |
| } |
| |
| void unmarshal_VkVideoEncodeH264SessionParametersCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH264SessionParametersCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSpsStdCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPpsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkVideoEncodeH264SessionParametersAddInfoEXT* check_pParametersAddInfo; |
| check_pParametersAddInfo = |
| (const VkVideoEncodeH264SessionParametersAddInfoEXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pParametersAddInfo) { |
| if (!(check_pParametersAddInfo)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pParametersAddInfo inconsistent between guest and host\n"); |
| } |
| unmarshal_VkVideoEncodeH264SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH264SessionParametersAddInfoEXT*)(forUnmarshaling->pParametersAddInfo)); |
| } |
| } |
| |
| void marshal_VkVideoEncodeH264DpbSlotInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH264DpbSlotInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((int8_t*)&forMarshaling->slotIndex, sizeof(int8_t)); |
| vkStream->write((const StdVideoEncodeH264PictureInfo*)forMarshaling->pStdPictureInfo, |
| sizeof(const StdVideoEncodeH264PictureInfo)); |
| } |
| |
| void unmarshal_VkVideoEncodeH264DpbSlotInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoEncodeH264DpbSlotInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((int8_t*)&forUnmarshaling->slotIndex, sizeof(int8_t)); |
| vkStream->read((StdVideoEncodeH264PictureInfo*)forUnmarshaling->pStdPictureInfo, |
| sizeof(const StdVideoEncodeH264PictureInfo)); |
| } |
| |
| void marshal_VkVideoEncodeH264NaluSliceEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH264NaluSliceEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((const StdVideoEncodeH264SliceHeader*)forMarshaling->pSliceHeaderStd, |
| sizeof(const StdVideoEncodeH264SliceHeader)); |
| vkStream->write((uint32_t*)&forMarshaling->mbCount, sizeof(uint32_t)); |
| vkStream->write((uint8_t*)&forMarshaling->refFinalList0EntryCount, sizeof(uint8_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->refFinalList0EntryCount; ++i) { |
| marshal_VkVideoEncodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH264DpbSlotInfoEXT*)(forMarshaling->pRefFinalList0Entries + i)); |
| } |
| } |
| vkStream->write((uint8_t*)&forMarshaling->refFinalList1EntryCount, sizeof(uint8_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->refFinalList1EntryCount; ++i) { |
| marshal_VkVideoEncodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH264DpbSlotInfoEXT*)(forMarshaling->pRefFinalList1Entries + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->precedingNaluBytes, sizeof(uint32_t)); |
| vkStream->write((uint8_t*)&forMarshaling->minQp, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->maxQp, sizeof(uint8_t)); |
| } |
| |
| void unmarshal_VkVideoEncodeH264NaluSliceEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH264NaluSliceEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((StdVideoEncodeH264SliceHeader*)forUnmarshaling->pSliceHeaderStd, |
| sizeof(const StdVideoEncodeH264SliceHeader)); |
| vkStream->read((uint32_t*)&forUnmarshaling->mbCount, sizeof(uint32_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->refFinalList0EntryCount, sizeof(uint8_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->refFinalList0EntryCount; ++i) { |
| unmarshal_VkVideoEncodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH264DpbSlotInfoEXT*)(forUnmarshaling->pRefFinalList0Entries + i)); |
| } |
| } |
| vkStream->read((uint8_t*)&forUnmarshaling->refFinalList1EntryCount, sizeof(uint8_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->refFinalList1EntryCount; ++i) { |
| unmarshal_VkVideoEncodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH264DpbSlotInfoEXT*)(forUnmarshaling->pRefFinalList1Entries + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->precedingNaluBytes, sizeof(uint32_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->minQp, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->maxQp, sizeof(uint8_t)); |
| } |
| |
| void marshal_VkVideoEncodeH264VclFrameInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH264VclFrameInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint8_t*)&forMarshaling->refDefaultFinalList0EntryCount, sizeof(uint8_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->refDefaultFinalList0EntryCount; ++i) { |
| marshal_VkVideoEncodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH264DpbSlotInfoEXT*)(forMarshaling |
| ->pRefDefaultFinalList0Entries + |
| i)); |
| } |
| } |
| vkStream->write((uint8_t*)&forMarshaling->refDefaultFinalList1EntryCount, sizeof(uint8_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->refDefaultFinalList1EntryCount; ++i) { |
| marshal_VkVideoEncodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH264DpbSlotInfoEXT*)(forMarshaling |
| ->pRefDefaultFinalList1Entries + |
| i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->naluSliceEntryCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->naluSliceEntryCount; ++i) { |
| marshal_VkVideoEncodeH264NaluSliceEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH264NaluSliceEXT*)(forMarshaling->pNaluSliceEntries + i)); |
| } |
| } |
| marshal_VkVideoEncodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH264DpbSlotInfoEXT*)(forMarshaling->pCurrentPictureInfo)); |
| } |
| |
| void unmarshal_VkVideoEncodeH264VclFrameInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoEncodeH264VclFrameInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint8_t*)&forUnmarshaling->refDefaultFinalList0EntryCount, sizeof(uint8_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->refDefaultFinalList0EntryCount; ++i) { |
| unmarshal_VkVideoEncodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH264DpbSlotInfoEXT*)(forUnmarshaling->pRefDefaultFinalList0Entries + |
| i)); |
| } |
| } |
| vkStream->read((uint8_t*)&forUnmarshaling->refDefaultFinalList1EntryCount, sizeof(uint8_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->refDefaultFinalList1EntryCount; ++i) { |
| unmarshal_VkVideoEncodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH264DpbSlotInfoEXT*)(forUnmarshaling->pRefDefaultFinalList1Entries + |
| i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->naluSliceEntryCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->naluSliceEntryCount; ++i) { |
| unmarshal_VkVideoEncodeH264NaluSliceEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH264NaluSliceEXT*)(forUnmarshaling->pNaluSliceEntries + i)); |
| } |
| } |
| unmarshal_VkVideoEncodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH264DpbSlotInfoEXT*)(forUnmarshaling->pCurrentPictureInfo)); |
| } |
| |
| void marshal_VkVideoEncodeH264EmitPictureParametersEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH264EmitPictureParametersEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint8_t*)&forMarshaling->spsId, sizeof(uint8_t)); |
| vkStream->write((VkBool32*)&forMarshaling->emitSpsEnable, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->ppsIdEntryCount, sizeof(uint32_t)); |
| vkStream->write((const uint8_t*)forMarshaling->ppsIdEntries, |
| forMarshaling->ppsIdEntryCount * sizeof(const uint8_t)); |
| } |
| |
| void unmarshal_VkVideoEncodeH264EmitPictureParametersEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH264EmitPictureParametersEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint8_t*)&forUnmarshaling->spsId, sizeof(uint8_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->emitSpsEnable, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->ppsIdEntryCount, sizeof(uint32_t)); |
| vkStream->read((uint8_t*)forUnmarshaling->ppsIdEntries, |
| forUnmarshaling->ppsIdEntryCount * sizeof(const uint8_t)); |
| } |
| |
| void marshal_VkVideoEncodeH264ProfileEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH264ProfileEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((StdVideoH264ProfileIdc*)&forMarshaling->stdProfileIdc, |
| sizeof(StdVideoH264ProfileIdc)); |
| } |
| |
| void unmarshal_VkVideoEncodeH264ProfileEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH264ProfileEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((StdVideoH264ProfileIdc*)&forUnmarshaling->stdProfileIdc, |
| sizeof(StdVideoH264ProfileIdc)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_video_encode_h265 |
| void marshal_VkVideoEncodeH265CapabilitiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH265CapabilitiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoEncodeH265CapabilityFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkVideoEncodeH265CapabilityFlagsEXT)); |
| vkStream->write((VkVideoEncodeH265InputModeFlagsEXT*)&forMarshaling->inputModeFlags, |
| sizeof(VkVideoEncodeH265InputModeFlagsEXT)); |
| vkStream->write((VkVideoEncodeH265OutputModeFlagsEXT*)&forMarshaling->outputModeFlags, |
| sizeof(VkVideoEncodeH265OutputModeFlagsEXT)); |
| vkStream->write((VkVideoEncodeH265CtbSizeFlagsEXT*)&forMarshaling->ctbSizes, |
| sizeof(VkVideoEncodeH265CtbSizeFlagsEXT)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->inputImageDataAlignment)); |
| vkStream->write((uint8_t*)&forMarshaling->maxNumL0ReferenceForP, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->maxNumL0ReferenceForB, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->maxNumL1Reference, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->maxNumSubLayers, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->qualityLevelCount, sizeof(uint8_t)); |
| marshal_VkExtensionProperties(vkStream, rootType, |
| (VkExtensionProperties*)(&forMarshaling->stdExtensionVersion)); |
| } |
| |
| void unmarshal_VkVideoEncodeH265CapabilitiesEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoEncodeH265CapabilitiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoEncodeH265CapabilityFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkVideoEncodeH265CapabilityFlagsEXT)); |
| vkStream->read((VkVideoEncodeH265InputModeFlagsEXT*)&forUnmarshaling->inputModeFlags, |
| sizeof(VkVideoEncodeH265InputModeFlagsEXT)); |
| vkStream->read((VkVideoEncodeH265OutputModeFlagsEXT*)&forUnmarshaling->outputModeFlags, |
| sizeof(VkVideoEncodeH265OutputModeFlagsEXT)); |
| vkStream->read((VkVideoEncodeH265CtbSizeFlagsEXT*)&forUnmarshaling->ctbSizes, |
| sizeof(VkVideoEncodeH265CtbSizeFlagsEXT)); |
| unmarshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->inputImageDataAlignment)); |
| vkStream->read((uint8_t*)&forUnmarshaling->maxNumL0ReferenceForP, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->maxNumL0ReferenceForB, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->maxNumL1Reference, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->maxNumSubLayers, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->qualityLevelCount, sizeof(uint8_t)); |
| unmarshal_VkExtensionProperties( |
| vkStream, rootType, (VkExtensionProperties*)(&forUnmarshaling->stdExtensionVersion)); |
| } |
| |
| void marshal_VkVideoEncodeH265SessionCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH265SessionCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoEncodeH265CreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkVideoEncodeH265CreateFlagsEXT)); |
| marshal_VkExtensionProperties( |
| vkStream, rootType, (const VkExtensionProperties*)(forMarshaling->pStdExtensionVersion)); |
| } |
| |
| void unmarshal_VkVideoEncodeH265SessionCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH265SessionCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoEncodeH265CreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkVideoEncodeH265CreateFlagsEXT)); |
| unmarshal_VkExtensionProperties( |
| vkStream, rootType, (VkExtensionProperties*)(forUnmarshaling->pStdExtensionVersion)); |
| } |
| |
| void marshal_VkVideoEncodeH265SessionParametersAddInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH265SessionParametersAddInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->vpsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pVpsStd; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pVpsStd) { |
| vkStream->write((const StdVideoH265VideoParameterSet*)forMarshaling->pVpsStd, |
| forMarshaling->vpsStdCount * sizeof(const StdVideoH265VideoParameterSet)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->spsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pSpsStd; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pSpsStd) { |
| vkStream->write( |
| (const StdVideoH265SequenceParameterSet*)forMarshaling->pSpsStd, |
| forMarshaling->spsStdCount * sizeof(const StdVideoH265SequenceParameterSet)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->ppsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_2 = (uint64_t)(uintptr_t)forMarshaling->pPpsStd; |
| vkStream->putBe64(cgen_var_2); |
| if (forMarshaling->pPpsStd) { |
| vkStream->write((const StdVideoH265PictureParameterSet*)forMarshaling->pPpsStd, |
| forMarshaling->ppsStdCount * sizeof(const StdVideoH265PictureParameterSet)); |
| } |
| } |
| |
| void unmarshal_VkVideoEncodeH265SessionParametersAddInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH265SessionParametersAddInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->vpsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const StdVideoH265VideoParameterSet* check_pVpsStd; |
| check_pVpsStd = (const StdVideoH265VideoParameterSet*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pVpsStd) { |
| if (!(check_pVpsStd)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pVpsStd inconsistent between guest and host\n"); |
| } |
| vkStream->read((StdVideoH265VideoParameterSet*)forUnmarshaling->pVpsStd, |
| forUnmarshaling->vpsStdCount * sizeof(const StdVideoH265VideoParameterSet)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->spsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const StdVideoH265SequenceParameterSet* check_pSpsStd; |
| check_pSpsStd = (const StdVideoH265SequenceParameterSet*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pSpsStd) { |
| if (!(check_pSpsStd)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pSpsStd inconsistent between guest and host\n"); |
| } |
| vkStream->read( |
| (StdVideoH265SequenceParameterSet*)forUnmarshaling->pSpsStd, |
| forUnmarshaling->spsStdCount * sizeof(const StdVideoH265SequenceParameterSet)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->ppsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const StdVideoH265PictureParameterSet* check_pPpsStd; |
| check_pPpsStd = (const StdVideoH265PictureParameterSet*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pPpsStd) { |
| if (!(check_pPpsStd)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pPpsStd inconsistent between guest and host\n"); |
| } |
| vkStream->read( |
| (StdVideoH265PictureParameterSet*)forUnmarshaling->pPpsStd, |
| forUnmarshaling->ppsStdCount * sizeof(const StdVideoH265PictureParameterSet)); |
| } |
| } |
| |
| void marshal_VkVideoEncodeH265SessionParametersCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH265SessionParametersCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxVpsStdCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxSpsStdCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPpsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pParametersAddInfo; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pParametersAddInfo) { |
| marshal_VkVideoEncodeH265SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH265SessionParametersAddInfoEXT*)(forMarshaling |
| ->pParametersAddInfo)); |
| } |
| } |
| |
| void unmarshal_VkVideoEncodeH265SessionParametersCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH265SessionParametersCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxVpsStdCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSpsStdCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPpsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkVideoEncodeH265SessionParametersAddInfoEXT* check_pParametersAddInfo; |
| check_pParametersAddInfo = |
| (const VkVideoEncodeH265SessionParametersAddInfoEXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pParametersAddInfo) { |
| if (!(check_pParametersAddInfo)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pParametersAddInfo inconsistent between guest and host\n"); |
| } |
| unmarshal_VkVideoEncodeH265SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH265SessionParametersAddInfoEXT*)(forUnmarshaling->pParametersAddInfo)); |
| } |
| } |
| |
| void marshal_VkVideoEncodeH265DpbSlotInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH265DpbSlotInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((int8_t*)&forMarshaling->slotIndex, sizeof(int8_t)); |
| vkStream->write((const StdVideoEncodeH265ReferenceInfo*)forMarshaling->pStdReferenceInfo, |
| sizeof(const StdVideoEncodeH265ReferenceInfo)); |
| } |
| |
| void unmarshal_VkVideoEncodeH265DpbSlotInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoEncodeH265DpbSlotInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((int8_t*)&forUnmarshaling->slotIndex, sizeof(int8_t)); |
| vkStream->read((StdVideoEncodeH265ReferenceInfo*)forUnmarshaling->pStdReferenceInfo, |
| sizeof(const StdVideoEncodeH265ReferenceInfo)); |
| } |
| |
| void marshal_VkVideoEncodeH265ReferenceListsEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH265ReferenceListsEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint8_t*)&forMarshaling->referenceList0EntryCount, sizeof(uint8_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->referenceList0EntryCount; ++i) { |
| marshal_VkVideoEncodeH265DpbSlotInfoEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH265DpbSlotInfoEXT*)(forMarshaling->pReferenceList0Entries + |
| i)); |
| } |
| } |
| vkStream->write((uint8_t*)&forMarshaling->referenceList1EntryCount, sizeof(uint8_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->referenceList1EntryCount; ++i) { |
| marshal_VkVideoEncodeH265DpbSlotInfoEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH265DpbSlotInfoEXT*)(forMarshaling->pReferenceList1Entries + |
| i)); |
| } |
| } |
| vkStream->write( |
| (const StdVideoEncodeH265ReferenceModifications*)forMarshaling->pReferenceModifications, |
| sizeof(const StdVideoEncodeH265ReferenceModifications)); |
| } |
| |
| void unmarshal_VkVideoEncodeH265ReferenceListsEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH265ReferenceListsEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint8_t*)&forUnmarshaling->referenceList0EntryCount, sizeof(uint8_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->referenceList0EntryCount; ++i) { |
| unmarshal_VkVideoEncodeH265DpbSlotInfoEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH265DpbSlotInfoEXT*)(forUnmarshaling->pReferenceList0Entries + i)); |
| } |
| } |
| vkStream->read((uint8_t*)&forUnmarshaling->referenceList1EntryCount, sizeof(uint8_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->referenceList1EntryCount; ++i) { |
| unmarshal_VkVideoEncodeH265DpbSlotInfoEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH265DpbSlotInfoEXT*)(forUnmarshaling->pReferenceList1Entries + i)); |
| } |
| } |
| vkStream->read( |
| (StdVideoEncodeH265ReferenceModifications*)forUnmarshaling->pReferenceModifications, |
| sizeof(const StdVideoEncodeH265ReferenceModifications)); |
| } |
| |
| void marshal_VkVideoEncodeH265NaluSliceEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH265NaluSliceEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->ctbCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pReferenceFinalLists; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pReferenceFinalLists) { |
| marshal_VkVideoEncodeH265ReferenceListsEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH265ReferenceListsEXT*)(forMarshaling->pReferenceFinalLists)); |
| } |
| vkStream->write((const StdVideoEncodeH265SliceHeader*)forMarshaling->pSliceHeaderStd, |
| sizeof(const StdVideoEncodeH265SliceHeader)); |
| } |
| |
| void unmarshal_VkVideoEncodeH265NaluSliceEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH265NaluSliceEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->ctbCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkVideoEncodeH265ReferenceListsEXT* check_pReferenceFinalLists; |
| check_pReferenceFinalLists = |
| (const VkVideoEncodeH265ReferenceListsEXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pReferenceFinalLists) { |
| if (!(check_pReferenceFinalLists)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pReferenceFinalLists inconsistent between guest and " |
| "host\n"); |
| } |
| unmarshal_VkVideoEncodeH265ReferenceListsEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH265ReferenceListsEXT*)(forUnmarshaling->pReferenceFinalLists)); |
| } |
| vkStream->read((StdVideoEncodeH265SliceHeader*)forUnmarshaling->pSliceHeaderStd, |
| sizeof(const StdVideoEncodeH265SliceHeader)); |
| } |
| |
| void marshal_VkVideoEncodeH265VclFrameInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH265VclFrameInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pReferenceFinalLists; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pReferenceFinalLists) { |
| marshal_VkVideoEncodeH265ReferenceListsEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH265ReferenceListsEXT*)(forMarshaling->pReferenceFinalLists)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->naluSliceEntryCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->naluSliceEntryCount; ++i) { |
| marshal_VkVideoEncodeH265NaluSliceEXT( |
| vkStream, rootType, |
| (const VkVideoEncodeH265NaluSliceEXT*)(forMarshaling->pNaluSliceEntries + i)); |
| } |
| } |
| vkStream->write((const StdVideoEncodeH265PictureInfo*)forMarshaling->pCurrentPictureInfo, |
| sizeof(const StdVideoEncodeH265PictureInfo)); |
| } |
| |
| void unmarshal_VkVideoEncodeH265VclFrameInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoEncodeH265VclFrameInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| // WARNING PTR CHECK |
| const VkVideoEncodeH265ReferenceListsEXT* check_pReferenceFinalLists; |
| check_pReferenceFinalLists = |
| (const VkVideoEncodeH265ReferenceListsEXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pReferenceFinalLists) { |
| if (!(check_pReferenceFinalLists)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pReferenceFinalLists inconsistent between guest and " |
| "host\n"); |
| } |
| unmarshal_VkVideoEncodeH265ReferenceListsEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH265ReferenceListsEXT*)(forUnmarshaling->pReferenceFinalLists)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->naluSliceEntryCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->naluSliceEntryCount; ++i) { |
| unmarshal_VkVideoEncodeH265NaluSliceEXT( |
| vkStream, rootType, |
| (VkVideoEncodeH265NaluSliceEXT*)(forUnmarshaling->pNaluSliceEntries + i)); |
| } |
| } |
| vkStream->read((StdVideoEncodeH265PictureInfo*)forUnmarshaling->pCurrentPictureInfo, |
| sizeof(const StdVideoEncodeH265PictureInfo)); |
| } |
| |
| void marshal_VkVideoEncodeH265EmitPictureParametersEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH265EmitPictureParametersEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint8_t*)&forMarshaling->vpsId, sizeof(uint8_t)); |
| vkStream->write((uint8_t*)&forMarshaling->spsId, sizeof(uint8_t)); |
| vkStream->write((VkBool32*)&forMarshaling->emitVpsEnable, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->emitSpsEnable, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->ppsIdEntryCount, sizeof(uint32_t)); |
| vkStream->write((const uint8_t*)forMarshaling->ppsIdEntries, |
| forMarshaling->ppsIdEntryCount * sizeof(const uint8_t)); |
| } |
| |
| void unmarshal_VkVideoEncodeH265EmitPictureParametersEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH265EmitPictureParametersEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint8_t*)&forUnmarshaling->vpsId, sizeof(uint8_t)); |
| vkStream->read((uint8_t*)&forUnmarshaling->spsId, sizeof(uint8_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->emitVpsEnable, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->emitSpsEnable, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->ppsIdEntryCount, sizeof(uint32_t)); |
| vkStream->read((uint8_t*)forUnmarshaling->ppsIdEntries, |
| forUnmarshaling->ppsIdEntryCount * sizeof(const uint8_t)); |
| } |
| |
| void marshal_VkVideoEncodeH265ProfileEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoEncodeH265ProfileEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((StdVideoH265ProfileIdc*)&forMarshaling->stdProfileIdc, |
| sizeof(StdVideoH265ProfileIdc)); |
| } |
| |
| void unmarshal_VkVideoEncodeH265ProfileEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoEncodeH265ProfileEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((StdVideoH265ProfileIdc*)&forUnmarshaling->stdProfileIdc, |
| sizeof(StdVideoH265ProfileIdc)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_video_decode_h264 |
| void marshal_VkVideoDecodeH264ProfileEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH264ProfileEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((StdVideoH264ProfileIdc*)&forMarshaling->stdProfileIdc, |
| sizeof(StdVideoH264ProfileIdc)); |
| vkStream->write((VkVideoDecodeH264PictureLayoutFlagsEXT*)&forMarshaling->pictureLayout, |
| sizeof(VkVideoDecodeH264PictureLayoutFlagsEXT)); |
| } |
| |
| void unmarshal_VkVideoDecodeH264ProfileEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoDecodeH264ProfileEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((StdVideoH264ProfileIdc*)&forUnmarshaling->stdProfileIdc, |
| sizeof(StdVideoH264ProfileIdc)); |
| vkStream->read((VkVideoDecodeH264PictureLayoutFlagsEXT*)&forUnmarshaling->pictureLayout, |
| sizeof(VkVideoDecodeH264PictureLayoutFlagsEXT)); |
| } |
| |
| void marshal_VkVideoDecodeH264CapabilitiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH264CapabilitiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxLevel, sizeof(uint32_t)); |
| marshal_VkOffset2D(vkStream, rootType, (VkOffset2D*)(&forMarshaling->fieldOffsetGranularity)); |
| marshal_VkExtensionProperties(vkStream, rootType, |
| (VkExtensionProperties*)(&forMarshaling->stdExtensionVersion)); |
| } |
| |
| void unmarshal_VkVideoDecodeH264CapabilitiesEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoDecodeH264CapabilitiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxLevel, sizeof(uint32_t)); |
| unmarshal_VkOffset2D(vkStream, rootType, |
| (VkOffset2D*)(&forUnmarshaling->fieldOffsetGranularity)); |
| unmarshal_VkExtensionProperties( |
| vkStream, rootType, (VkExtensionProperties*)(&forUnmarshaling->stdExtensionVersion)); |
| } |
| |
| void marshal_VkVideoDecodeH264SessionCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH264SessionCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoDecodeH264CreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkVideoDecodeH264CreateFlagsEXT)); |
| marshal_VkExtensionProperties( |
| vkStream, rootType, (const VkExtensionProperties*)(forMarshaling->pStdExtensionVersion)); |
| } |
| |
| void unmarshal_VkVideoDecodeH264SessionCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoDecodeH264SessionCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoDecodeH264CreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkVideoDecodeH264CreateFlagsEXT)); |
| unmarshal_VkExtensionProperties( |
| vkStream, rootType, (VkExtensionProperties*)(forUnmarshaling->pStdExtensionVersion)); |
| } |
| |
| void marshal_VkVideoDecodeH264SessionParametersAddInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH264SessionParametersAddInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->spsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pSpsStd; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pSpsStd) { |
| vkStream->write( |
| (const StdVideoH264SequenceParameterSet*)forMarshaling->pSpsStd, |
| forMarshaling->spsStdCount * sizeof(const StdVideoH264SequenceParameterSet)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->ppsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pPpsStd; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pPpsStd) { |
| vkStream->write((const StdVideoH264PictureParameterSet*)forMarshaling->pPpsStd, |
| forMarshaling->ppsStdCount * sizeof(const StdVideoH264PictureParameterSet)); |
| } |
| } |
| |
| void unmarshal_VkVideoDecodeH264SessionParametersAddInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoDecodeH264SessionParametersAddInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->spsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const StdVideoH264SequenceParameterSet* check_pSpsStd; |
| check_pSpsStd = (const StdVideoH264SequenceParameterSet*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pSpsStd) { |
| if (!(check_pSpsStd)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pSpsStd inconsistent between guest and host\n"); |
| } |
| vkStream->read( |
| (StdVideoH264SequenceParameterSet*)forUnmarshaling->pSpsStd, |
| forUnmarshaling->spsStdCount * sizeof(const StdVideoH264SequenceParameterSet)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->ppsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const StdVideoH264PictureParameterSet* check_pPpsStd; |
| check_pPpsStd = (const StdVideoH264PictureParameterSet*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pPpsStd) { |
| if (!(check_pPpsStd)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pPpsStd inconsistent between guest and host\n"); |
| } |
| vkStream->read( |
| (StdVideoH264PictureParameterSet*)forUnmarshaling->pPpsStd, |
| forUnmarshaling->ppsStdCount * sizeof(const StdVideoH264PictureParameterSet)); |
| } |
| } |
| |
| void marshal_VkVideoDecodeH264SessionParametersCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH264SessionParametersCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxSpsStdCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPpsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pParametersAddInfo; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pParametersAddInfo) { |
| marshal_VkVideoDecodeH264SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| (const VkVideoDecodeH264SessionParametersAddInfoEXT*)(forMarshaling |
| ->pParametersAddInfo)); |
| } |
| } |
| |
| void unmarshal_VkVideoDecodeH264SessionParametersCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoDecodeH264SessionParametersCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSpsStdCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPpsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkVideoDecodeH264SessionParametersAddInfoEXT* check_pParametersAddInfo; |
| check_pParametersAddInfo = |
| (const VkVideoDecodeH264SessionParametersAddInfoEXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pParametersAddInfo) { |
| if (!(check_pParametersAddInfo)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pParametersAddInfo inconsistent between guest and host\n"); |
| } |
| unmarshal_VkVideoDecodeH264SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| (VkVideoDecodeH264SessionParametersAddInfoEXT*)(forUnmarshaling->pParametersAddInfo)); |
| } |
| } |
| |
| void marshal_VkVideoDecodeH264PictureInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH264PictureInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((const StdVideoDecodeH264PictureInfo*)forMarshaling->pStdPictureInfo, |
| sizeof(const StdVideoDecodeH264PictureInfo)); |
| vkStream->write((uint32_t*)&forMarshaling->slicesCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pSlicesDataOffsets, |
| forMarshaling->slicesCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkVideoDecodeH264PictureInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoDecodeH264PictureInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((StdVideoDecodeH264PictureInfo*)forUnmarshaling->pStdPictureInfo, |
| sizeof(const StdVideoDecodeH264PictureInfo)); |
| vkStream->read((uint32_t*)&forUnmarshaling->slicesCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pSlicesDataOffsets, |
| forUnmarshaling->slicesCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkVideoDecodeH264MvcEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH264MvcEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((const StdVideoDecodeH264Mvc*)forMarshaling->pStdMvc, |
| sizeof(const StdVideoDecodeH264Mvc)); |
| } |
| |
| void unmarshal_VkVideoDecodeH264MvcEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoDecodeH264MvcEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((StdVideoDecodeH264Mvc*)forUnmarshaling->pStdMvc, |
| sizeof(const StdVideoDecodeH264Mvc)); |
| } |
| |
| void marshal_VkVideoDecodeH264DpbSlotInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH264DpbSlotInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((const StdVideoDecodeH264ReferenceInfo*)forMarshaling->pStdReferenceInfo, |
| sizeof(const StdVideoDecodeH264ReferenceInfo)); |
| } |
| |
| void unmarshal_VkVideoDecodeH264DpbSlotInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoDecodeH264DpbSlotInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((StdVideoDecodeH264ReferenceInfo*)forUnmarshaling->pStdReferenceInfo, |
| sizeof(const StdVideoDecodeH264ReferenceInfo)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_texture_gather_bias_lod |
| void marshal_VkTextureLODGatherFormatPropertiesAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkTextureLODGatherFormatPropertiesAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->supportsTextureGatherLODBiasAMD, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkTextureLODGatherFormatPropertiesAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkTextureLODGatherFormatPropertiesAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->supportsTextureGatherLODBiasAMD, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_info |
| void marshal_VkShaderResourceUsageAMD(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkShaderResourceUsageAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->numUsedVgprs, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->numUsedSgprs, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->ldsSizePerLocalWorkGroup, sizeof(uint32_t)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->ldsUsageSizeInBytes; |
| vkStream->putBe64(cgen_var_0); |
| uint64_t cgen_var_1 = (uint64_t)forMarshaling->scratchMemUsageInBytes; |
| vkStream->putBe64(cgen_var_1); |
| } |
| |
| void unmarshal_VkShaderResourceUsageAMD(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkShaderResourceUsageAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->numUsedVgprs, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->numUsedSgprs, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->ldsSizePerLocalWorkGroup, sizeof(uint32_t)); |
| forUnmarshaling->ldsUsageSizeInBytes = (size_t)vkStream->getBe64(); |
| forUnmarshaling->scratchMemUsageInBytes = (size_t)vkStream->getBe64(); |
| } |
| |
| void marshal_VkShaderStatisticsInfoAMD(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkShaderStatisticsInfoAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkShaderStageFlags*)&forMarshaling->shaderStageMask, |
| sizeof(VkShaderStageFlags)); |
| marshal_VkShaderResourceUsageAMD(vkStream, rootType, |
| (VkShaderResourceUsageAMD*)(&forMarshaling->resourceUsage)); |
| vkStream->write((uint32_t*)&forMarshaling->numPhysicalVgprs, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->numPhysicalSgprs, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->numAvailableVgprs, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->numAvailableSgprs, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)forMarshaling->computeWorkGroupSize, 3 * sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkShaderStatisticsInfoAMD(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkShaderStatisticsInfoAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkShaderStageFlags*)&forUnmarshaling->shaderStageMask, |
| sizeof(VkShaderStageFlags)); |
| unmarshal_VkShaderResourceUsageAMD( |
| vkStream, rootType, (VkShaderResourceUsageAMD*)(&forUnmarshaling->resourceUsage)); |
| vkStream->read((uint32_t*)&forUnmarshaling->numPhysicalVgprs, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->numPhysicalSgprs, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->numAvailableVgprs, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->numAvailableSgprs, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->computeWorkGroupSize, 3 * sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_image_load_store_lod |
| #endif |
| #ifdef VK_GGP_stream_descriptor_surface |
| void marshal_VkStreamDescriptorSurfaceCreateInfoGGP( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkStreamDescriptorSurfaceCreateInfoGGP* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkStreamDescriptorSurfaceCreateFlagsGGP*)&forMarshaling->flags, |
| sizeof(VkStreamDescriptorSurfaceCreateFlagsGGP)); |
| vkStream->write((GgpStreamDescriptor*)&forMarshaling->streamDescriptor, |
| sizeof(GgpStreamDescriptor)); |
| } |
| |
| void unmarshal_VkStreamDescriptorSurfaceCreateInfoGGP( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkStreamDescriptorSurfaceCreateInfoGGP* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkStreamDescriptorSurfaceCreateFlagsGGP*)&forUnmarshaling->flags, |
| sizeof(VkStreamDescriptorSurfaceCreateFlagsGGP)); |
| vkStream->read((GgpStreamDescriptor*)&forUnmarshaling->streamDescriptor, |
| sizeof(GgpStreamDescriptor)); |
| } |
| |
| #endif |
| #ifdef VK_NV_corner_sampled_image |
| void marshal_VkPhysicalDeviceCornerSampledImageFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceCornerSampledImageFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->cornerSampledImage, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceCornerSampledImageFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceCornerSampledImageFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->cornerSampledImage, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_IMG_format_pvrtc |
| #endif |
| #ifdef VK_NV_external_memory_capabilities |
| void marshal_VkExternalImageFormatPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExternalImageFormatPropertiesNV* forMarshaling) { |
| (void)rootType; |
| marshal_VkImageFormatProperties( |
| vkStream, rootType, (VkImageFormatProperties*)(&forMarshaling->imageFormatProperties)); |
| vkStream->write((VkExternalMemoryFeatureFlagsNV*)&forMarshaling->externalMemoryFeatures, |
| sizeof(VkExternalMemoryFeatureFlagsNV)); |
| vkStream->write( |
| (VkExternalMemoryHandleTypeFlagsNV*)&forMarshaling->exportFromImportedHandleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlagsNV)); |
| vkStream->write((VkExternalMemoryHandleTypeFlagsNV*)&forMarshaling->compatibleHandleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlagsNV)); |
| } |
| |
| void unmarshal_VkExternalImageFormatPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExternalImageFormatPropertiesNV* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkImageFormatProperties( |
| vkStream, rootType, (VkImageFormatProperties*)(&forUnmarshaling->imageFormatProperties)); |
| vkStream->read((VkExternalMemoryFeatureFlagsNV*)&forUnmarshaling->externalMemoryFeatures, |
| sizeof(VkExternalMemoryFeatureFlagsNV)); |
| vkStream->read( |
| (VkExternalMemoryHandleTypeFlagsNV*)&forUnmarshaling->exportFromImportedHandleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlagsNV)); |
| vkStream->read((VkExternalMemoryHandleTypeFlagsNV*)&forUnmarshaling->compatibleHandleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlagsNV)); |
| } |
| |
| #endif |
| #ifdef VK_NV_external_memory |
| void marshal_VkExternalMemoryImageCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExternalMemoryImageCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlagsNV*)&forMarshaling->handleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlagsNV)); |
| } |
| |
| void unmarshal_VkExternalMemoryImageCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExternalMemoryImageCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlagsNV*)&forUnmarshaling->handleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlagsNV)); |
| } |
| |
| void marshal_VkExportMemoryAllocateInfoNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExportMemoryAllocateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlagsNV*)&forMarshaling->handleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlagsNV)); |
| } |
| |
| void unmarshal_VkExportMemoryAllocateInfoNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExportMemoryAllocateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlagsNV*)&forUnmarshaling->handleTypes, |
| sizeof(VkExternalMemoryHandleTypeFlagsNV)); |
| } |
| |
| #endif |
| #ifdef VK_NV_external_memory_win32 |
| void marshal_VkImportMemoryWin32HandleInfoNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportMemoryWin32HandleInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlagsNV*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagsNV)); |
| vkStream->write((HANDLE*)&forMarshaling->handle, sizeof(HANDLE)); |
| } |
| |
| void unmarshal_VkImportMemoryWin32HandleInfoNV(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkImportMemoryWin32HandleInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlagsNV*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagsNV)); |
| vkStream->read((HANDLE*)&forUnmarshaling->handle, sizeof(HANDLE)); |
| } |
| |
| void marshal_VkExportMemoryWin32HandleInfoNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExportMemoryWin32HandleInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pAttributes; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pAttributes) { |
| vkStream->write((const SECURITY_ATTRIBUTES*)forMarshaling->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| vkStream->write((DWORD*)&forMarshaling->dwAccess, sizeof(DWORD)); |
| } |
| |
| void unmarshal_VkExportMemoryWin32HandleInfoNV(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkExportMemoryWin32HandleInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| // WARNING PTR CHECK |
| const SECURITY_ATTRIBUTES* check_pAttributes; |
| check_pAttributes = (const SECURITY_ATTRIBUTES*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pAttributes) { |
| if (!(check_pAttributes)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pAttributes inconsistent between guest and host\n"); |
| } |
| vkStream->read((SECURITY_ATTRIBUTES*)forUnmarshaling->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| vkStream->read((DWORD*)&forUnmarshaling->dwAccess, sizeof(DWORD)); |
| } |
| |
| #endif |
| #ifdef VK_NV_win32_keyed_mutex |
| void marshal_VkWin32KeyedMutexAcquireReleaseInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkWin32KeyedMutexAcquireReleaseInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->acquireCount, sizeof(uint32_t)); |
| if (forMarshaling->acquireCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->acquireCount * 8); |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64( |
| forMarshaling->pAcquireSyncs, cgen_var_0, forMarshaling->acquireCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->acquireCount * 8); |
| } |
| vkStream->write((const uint64_t*)forMarshaling->pAcquireKeys, |
| forMarshaling->acquireCount * sizeof(const uint64_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pAcquireTimeoutMilliseconds, |
| forMarshaling->acquireCount * sizeof(const uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->releaseCount, sizeof(uint32_t)); |
| if (forMarshaling->releaseCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forMarshaling->releaseCount * 8); |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64( |
| forMarshaling->pReleaseSyncs, cgen_var_1, forMarshaling->releaseCount); |
| vkStream->write((uint64_t*)cgen_var_1, forMarshaling->releaseCount * 8); |
| } |
| vkStream->write((const uint64_t*)forMarshaling->pReleaseKeys, |
| forMarshaling->releaseCount * sizeof(const uint64_t)); |
| } |
| |
| void unmarshal_VkWin32KeyedMutexAcquireReleaseInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkWin32KeyedMutexAcquireReleaseInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->acquireCount, sizeof(uint32_t)); |
| if (forUnmarshaling->acquireCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->acquireCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->acquireCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| cgen_var_0, (VkDeviceMemory*)forUnmarshaling->pAcquireSyncs, |
| forUnmarshaling->acquireCount); |
| } |
| vkStream->read((uint64_t*)forUnmarshaling->pAcquireKeys, |
| forUnmarshaling->acquireCount * sizeof(const uint64_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pAcquireTimeoutMilliseconds, |
| forUnmarshaling->acquireCount * sizeof(const uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->releaseCount, sizeof(uint32_t)); |
| if (forUnmarshaling->releaseCount) { |
| uint64_t* cgen_var_1; |
| vkStream->alloc((void**)&cgen_var_1, forUnmarshaling->releaseCount * 8); |
| vkStream->read((uint64_t*)cgen_var_1, forUnmarshaling->releaseCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| cgen_var_1, (VkDeviceMemory*)forUnmarshaling->pReleaseSyncs, |
| forUnmarshaling->releaseCount); |
| } |
| vkStream->read((uint64_t*)forUnmarshaling->pReleaseKeys, |
| forUnmarshaling->releaseCount * sizeof(const uint64_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_validation_flags |
| void marshal_VkValidationFlagsEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkValidationFlagsEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->disabledValidationCheckCount, sizeof(uint32_t)); |
| vkStream->write( |
| (const VkValidationCheckEXT*)forMarshaling->pDisabledValidationChecks, |
| forMarshaling->disabledValidationCheckCount * sizeof(const VkValidationCheckEXT)); |
| } |
| |
| void unmarshal_VkValidationFlagsEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkValidationFlagsEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->disabledValidationCheckCount, sizeof(uint32_t)); |
| vkStream->read( |
| (VkValidationCheckEXT*)forUnmarshaling->pDisabledValidationChecks, |
| forUnmarshaling->disabledValidationCheckCount * sizeof(const VkValidationCheckEXT)); |
| } |
| |
| #endif |
| #ifdef VK_NN_vi_surface |
| void marshal_VkViSurfaceCreateInfoNN(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkViSurfaceCreateInfoNN* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkViSurfaceCreateFlagsNN*)&forMarshaling->flags, |
| sizeof(VkViSurfaceCreateFlagsNN)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->window; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->window) { |
| vkStream->write((void*)forMarshaling->window, sizeof(uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkViSurfaceCreateInfoNN(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkViSurfaceCreateInfoNN* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkViSurfaceCreateFlagsNN*)&forUnmarshaling->flags, |
| sizeof(VkViSurfaceCreateFlagsNN)); |
| // WARNING PTR CHECK |
| void* check_window; |
| check_window = (void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->window) { |
| if (!(check_window)) { |
| fprintf(stderr, "fatal: forUnmarshaling->window inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->window, sizeof(uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_subgroup_ballot |
| #endif |
| #ifdef VK_EXT_shader_subgroup_vote |
| #endif |
| #ifdef VK_EXT_texture_compression_astc_hdr |
| void marshal_VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->textureCompressionASTC_HDR, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->textureCompressionASTC_HDR, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_astc_decode_mode |
| void marshal_VkImageViewASTCDecodeModeEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageViewASTCDecodeModeEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFormat*)&forMarshaling->decodeMode, sizeof(VkFormat)); |
| } |
| |
| void unmarshal_VkImageViewASTCDecodeModeEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageViewASTCDecodeModeEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFormat*)&forUnmarshaling->decodeMode, sizeof(VkFormat)); |
| } |
| |
| void marshal_VkPhysicalDeviceASTCDecodeFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceASTCDecodeFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->decodeModeSharedExponent, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceASTCDecodeFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceASTCDecodeFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->decodeModeSharedExponent, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_conditional_rendering |
| void marshal_VkConditionalRenderingBeginInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkConditionalRenderingBeginInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->write((VkConditionalRenderingFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkConditionalRenderingFlagsEXT)); |
| } |
| |
| void unmarshal_VkConditionalRenderingBeginInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkConditionalRenderingBeginInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->read((VkConditionalRenderingFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkConditionalRenderingFlagsEXT)); |
| } |
| |
| void marshal_VkPhysicalDeviceConditionalRenderingFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceConditionalRenderingFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->conditionalRendering, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->inheritedConditionalRendering, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceConditionalRenderingFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceConditionalRenderingFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->conditionalRendering, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->inheritedConditionalRendering, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkCommandBufferInheritanceConditionalRenderingInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCommandBufferInheritanceConditionalRenderingInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->conditionalRenderingEnable, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkCommandBufferInheritanceConditionalRenderingInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCommandBufferInheritanceConditionalRenderingInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->conditionalRenderingEnable, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_NV_clip_space_w_scaling |
| void marshal_VkViewportWScalingNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkViewportWScalingNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((float*)&forMarshaling->xcoeff, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->ycoeff, sizeof(float)); |
| } |
| |
| void unmarshal_VkViewportWScalingNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkViewportWScalingNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((float*)&forUnmarshaling->xcoeff, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->ycoeff, sizeof(float)); |
| } |
| |
| void marshal_VkPipelineViewportWScalingStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineViewportWScalingStateCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->viewportWScalingEnable, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->viewportCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pViewportWScalings; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pViewportWScalings) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->viewportCount; ++i) { |
| marshal_VkViewportWScalingNV( |
| vkStream, rootType, |
| (const VkViewportWScalingNV*)(forMarshaling->pViewportWScalings + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineViewportWScalingStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineViewportWScalingStateCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->viewportWScalingEnable, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewportCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkViewportWScalingNV* check_pViewportWScalings; |
| check_pViewportWScalings = (const VkViewportWScalingNV*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pViewportWScalings) { |
| if (!(check_pViewportWScalings)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pViewportWScalings inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->viewportCount; ++i) { |
| unmarshal_VkViewportWScalingNV( |
| vkStream, rootType, |
| (VkViewportWScalingNV*)(forUnmarshaling->pViewportWScalings + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_direct_mode_display |
| #endif |
| #ifdef VK_EXT_acquire_xlib_display |
| #endif |
| #ifdef VK_EXT_display_surface_counter |
| void marshal_VkSurfaceCapabilities2EXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSurfaceCapabilities2EXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->minImageCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxImageCount, sizeof(uint32_t)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->currentExtent)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->minImageExtent)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->maxImageExtent)); |
| vkStream->write((uint32_t*)&forMarshaling->maxImageArrayLayers, sizeof(uint32_t)); |
| vkStream->write((VkSurfaceTransformFlagsKHR*)&forMarshaling->supportedTransforms, |
| sizeof(VkSurfaceTransformFlagsKHR)); |
| vkStream->write((VkSurfaceTransformFlagBitsKHR*)&forMarshaling->currentTransform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| vkStream->write((VkCompositeAlphaFlagsKHR*)&forMarshaling->supportedCompositeAlpha, |
| sizeof(VkCompositeAlphaFlagsKHR)); |
| vkStream->write((VkImageUsageFlags*)&forMarshaling->supportedUsageFlags, |
| sizeof(VkImageUsageFlags)); |
| vkStream->write((VkSurfaceCounterFlagsEXT*)&forMarshaling->supportedSurfaceCounters, |
| sizeof(VkSurfaceCounterFlagsEXT)); |
| } |
| |
| void unmarshal_VkSurfaceCapabilities2EXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSurfaceCapabilities2EXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minImageCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxImageCount, sizeof(uint32_t)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->currentExtent)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->minImageExtent)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->maxImageExtent)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxImageArrayLayers, sizeof(uint32_t)); |
| vkStream->read((VkSurfaceTransformFlagsKHR*)&forUnmarshaling->supportedTransforms, |
| sizeof(VkSurfaceTransformFlagsKHR)); |
| vkStream->read((VkSurfaceTransformFlagBitsKHR*)&forUnmarshaling->currentTransform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| vkStream->read((VkCompositeAlphaFlagsKHR*)&forUnmarshaling->supportedCompositeAlpha, |
| sizeof(VkCompositeAlphaFlagsKHR)); |
| vkStream->read((VkImageUsageFlags*)&forUnmarshaling->supportedUsageFlags, |
| sizeof(VkImageUsageFlags)); |
| vkStream->read((VkSurfaceCounterFlagsEXT*)&forUnmarshaling->supportedSurfaceCounters, |
| sizeof(VkSurfaceCounterFlagsEXT)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_display_control |
| void marshal_VkDisplayPowerInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayPowerInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDisplayPowerStateEXT*)&forMarshaling->powerState, |
| sizeof(VkDisplayPowerStateEXT)); |
| } |
| |
| void unmarshal_VkDisplayPowerInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayPowerInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDisplayPowerStateEXT*)&forUnmarshaling->powerState, |
| sizeof(VkDisplayPowerStateEXT)); |
| } |
| |
| void marshal_VkDeviceEventInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceEventInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceEventTypeEXT*)&forMarshaling->deviceEvent, |
| sizeof(VkDeviceEventTypeEXT)); |
| } |
| |
| void unmarshal_VkDeviceEventInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceEventInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceEventTypeEXT*)&forUnmarshaling->deviceEvent, |
| sizeof(VkDeviceEventTypeEXT)); |
| } |
| |
| void marshal_VkDisplayEventInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayEventInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDisplayEventTypeEXT*)&forMarshaling->displayEvent, |
| sizeof(VkDisplayEventTypeEXT)); |
| } |
| |
| void unmarshal_VkDisplayEventInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayEventInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDisplayEventTypeEXT*)&forUnmarshaling->displayEvent, |
| sizeof(VkDisplayEventTypeEXT)); |
| } |
| |
| void marshal_VkSwapchainCounterCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSwapchainCounterCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSurfaceCounterFlagsEXT*)&forMarshaling->surfaceCounters, |
| sizeof(VkSurfaceCounterFlagsEXT)); |
| } |
| |
| void unmarshal_VkSwapchainCounterCreateInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkSwapchainCounterCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSurfaceCounterFlagsEXT*)&forUnmarshaling->surfaceCounters, |
| sizeof(VkSurfaceCounterFlagsEXT)); |
| } |
| |
| #endif |
| #ifdef VK_GOOGLE_display_timing |
| void marshal_VkRefreshCycleDurationGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRefreshCycleDurationGOOGLE* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint64_t*)&forMarshaling->refreshDuration, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkRefreshCycleDurationGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRefreshCycleDurationGOOGLE* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint64_t*)&forUnmarshaling->refreshDuration, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkPastPresentationTimingGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPastPresentationTimingGOOGLE* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->presentID, sizeof(uint32_t)); |
| vkStream->write((uint64_t*)&forMarshaling->desiredPresentTime, sizeof(uint64_t)); |
| vkStream->write((uint64_t*)&forMarshaling->actualPresentTime, sizeof(uint64_t)); |
| vkStream->write((uint64_t*)&forMarshaling->earliestPresentTime, sizeof(uint64_t)); |
| vkStream->write((uint64_t*)&forMarshaling->presentMargin, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkPastPresentationTimingGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPastPresentationTimingGOOGLE* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->presentID, sizeof(uint32_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->desiredPresentTime, sizeof(uint64_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->actualPresentTime, sizeof(uint64_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->earliestPresentTime, sizeof(uint64_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->presentMargin, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkPresentTimeGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPresentTimeGOOGLE* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->presentID, sizeof(uint32_t)); |
| vkStream->write((uint64_t*)&forMarshaling->desiredPresentTime, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkPresentTimeGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPresentTimeGOOGLE* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->presentID, sizeof(uint32_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->desiredPresentTime, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkPresentTimesInfoGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPresentTimesInfoGOOGLE* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->swapchainCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pTimes; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pTimes) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->swapchainCount; ++i) { |
| marshal_VkPresentTimeGOOGLE( |
| vkStream, rootType, (const VkPresentTimeGOOGLE*)(forMarshaling->pTimes + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkPresentTimesInfoGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPresentTimesInfoGOOGLE* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->swapchainCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkPresentTimeGOOGLE* check_pTimes; |
| check_pTimes = (const VkPresentTimeGOOGLE*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pTimes) { |
| if (!(check_pTimes)) { |
| fprintf(stderr, "fatal: forUnmarshaling->pTimes inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->swapchainCount; ++i) { |
| unmarshal_VkPresentTimeGOOGLE(vkStream, rootType, |
| (VkPresentTimeGOOGLE*)(forUnmarshaling->pTimes + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_sample_mask_override_coverage |
| #endif |
| #ifdef VK_NV_geometry_shader_passthrough |
| #endif |
| #ifdef VK_NV_viewport_array2 |
| #endif |
| #ifdef VK_NVX_multiview_per_view_attributes |
| void marshal_VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->perViewPositionAllComponents, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->perViewPositionAllComponents, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_NV_viewport_swizzle |
| void marshal_VkViewportSwizzleNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkViewportSwizzleNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkViewportCoordinateSwizzleNV*)&forMarshaling->x, |
| sizeof(VkViewportCoordinateSwizzleNV)); |
| vkStream->write((VkViewportCoordinateSwizzleNV*)&forMarshaling->y, |
| sizeof(VkViewportCoordinateSwizzleNV)); |
| vkStream->write((VkViewportCoordinateSwizzleNV*)&forMarshaling->z, |
| sizeof(VkViewportCoordinateSwizzleNV)); |
| vkStream->write((VkViewportCoordinateSwizzleNV*)&forMarshaling->w, |
| sizeof(VkViewportCoordinateSwizzleNV)); |
| } |
| |
| void unmarshal_VkViewportSwizzleNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkViewportSwizzleNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkViewportCoordinateSwizzleNV*)&forUnmarshaling->x, |
| sizeof(VkViewportCoordinateSwizzleNV)); |
| vkStream->read((VkViewportCoordinateSwizzleNV*)&forUnmarshaling->y, |
| sizeof(VkViewportCoordinateSwizzleNV)); |
| vkStream->read((VkViewportCoordinateSwizzleNV*)&forUnmarshaling->z, |
| sizeof(VkViewportCoordinateSwizzleNV)); |
| vkStream->read((VkViewportCoordinateSwizzleNV*)&forUnmarshaling->w, |
| sizeof(VkViewportCoordinateSwizzleNV)); |
| } |
| |
| void marshal_VkPipelineViewportSwizzleStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineViewportSwizzleStateCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineViewportSwizzleStateCreateFlagsNV*)&forMarshaling->flags, |
| sizeof(VkPipelineViewportSwizzleStateCreateFlagsNV)); |
| vkStream->write((uint32_t*)&forMarshaling->viewportCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pViewportSwizzles; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pViewportSwizzles) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->viewportCount; ++i) { |
| marshal_VkViewportSwizzleNV( |
| vkStream, rootType, |
| (const VkViewportSwizzleNV*)(forMarshaling->pViewportSwizzles + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineViewportSwizzleStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineViewportSwizzleStateCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineViewportSwizzleStateCreateFlagsNV*)&forUnmarshaling->flags, |
| sizeof(VkPipelineViewportSwizzleStateCreateFlagsNV)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewportCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkViewportSwizzleNV* check_pViewportSwizzles; |
| check_pViewportSwizzles = (const VkViewportSwizzleNV*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pViewportSwizzles) { |
| if (!(check_pViewportSwizzles)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pViewportSwizzles inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->viewportCount; ++i) { |
| unmarshal_VkViewportSwizzleNV( |
| vkStream, rootType, |
| (VkViewportSwizzleNV*)(forUnmarshaling->pViewportSwizzles + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_discard_rectangles |
| void marshal_VkPhysicalDeviceDiscardRectanglePropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDiscardRectanglePropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxDiscardRectangles, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDiscardRectanglePropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDiscardRectanglePropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDiscardRectangles, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPipelineDiscardRectangleStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineDiscardRectangleStateCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineDiscardRectangleStateCreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkPipelineDiscardRectangleStateCreateFlagsEXT)); |
| vkStream->write((VkDiscardRectangleModeEXT*)&forMarshaling->discardRectangleMode, |
| sizeof(VkDiscardRectangleModeEXT)); |
| vkStream->write((uint32_t*)&forMarshaling->discardRectangleCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pDiscardRectangles; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pDiscardRectangles) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->discardRectangleCount; ++i) { |
| marshal_VkRect2D(vkStream, rootType, |
| (const VkRect2D*)(forMarshaling->pDiscardRectangles + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineDiscardRectangleStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineDiscardRectangleStateCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineDiscardRectangleStateCreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkPipelineDiscardRectangleStateCreateFlagsEXT)); |
| vkStream->read((VkDiscardRectangleModeEXT*)&forUnmarshaling->discardRectangleMode, |
| sizeof(VkDiscardRectangleModeEXT)); |
| vkStream->read((uint32_t*)&forUnmarshaling->discardRectangleCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkRect2D* check_pDiscardRectangles; |
| check_pDiscardRectangles = (const VkRect2D*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pDiscardRectangles) { |
| if (!(check_pDiscardRectangles)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pDiscardRectangles inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->discardRectangleCount; ++i) { |
| unmarshal_VkRect2D(vkStream, rootType, |
| (VkRect2D*)(forUnmarshaling->pDiscardRectangles + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_conservative_rasterization |
| void marshal_VkPhysicalDeviceConservativeRasterizationPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceConservativeRasterizationPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((float*)&forMarshaling->primitiveOverestimationSize, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxExtraPrimitiveOverestimationSize, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->extraPrimitiveOverestimationSizeGranularity, |
| sizeof(float)); |
| vkStream->write((VkBool32*)&forMarshaling->primitiveUnderestimation, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->conservativePointAndLineRasterization, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->degenerateTrianglesRasterized, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->degenerateLinesRasterized, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fullyCoveredFragmentShaderInputVariable, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->conservativeRasterizationPostDepthCoverage, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceConservativeRasterizationPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceConservativeRasterizationPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((float*)&forUnmarshaling->primitiveOverestimationSize, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxExtraPrimitiveOverestimationSize, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->extraPrimitiveOverestimationSizeGranularity, |
| sizeof(float)); |
| vkStream->read((VkBool32*)&forUnmarshaling->primitiveUnderestimation, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->conservativePointAndLineRasterization, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->degenerateTrianglesRasterized, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->degenerateLinesRasterized, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fullyCoveredFragmentShaderInputVariable, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->conservativeRasterizationPostDepthCoverage, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineRasterizationConservativeStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineRasterizationConservativeStateCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineRasterizationConservativeStateCreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkPipelineRasterizationConservativeStateCreateFlagsEXT)); |
| vkStream->write( |
| (VkConservativeRasterizationModeEXT*)&forMarshaling->conservativeRasterizationMode, |
| sizeof(VkConservativeRasterizationModeEXT)); |
| vkStream->write((float*)&forMarshaling->extraPrimitiveOverestimationSize, sizeof(float)); |
| } |
| |
| void unmarshal_VkPipelineRasterizationConservativeStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineRasterizationConservativeStateCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineRasterizationConservativeStateCreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkPipelineRasterizationConservativeStateCreateFlagsEXT)); |
| vkStream->read( |
| (VkConservativeRasterizationModeEXT*)&forUnmarshaling->conservativeRasterizationMode, |
| sizeof(VkConservativeRasterizationModeEXT)); |
| vkStream->read((float*)&forUnmarshaling->extraPrimitiveOverestimationSize, sizeof(float)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_depth_clip_enable |
| void marshal_VkPhysicalDeviceDepthClipEnableFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDepthClipEnableFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->depthClipEnable, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDepthClipEnableFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDepthClipEnableFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->depthClipEnable, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineRasterizationDepthClipStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineRasterizationDepthClipStateCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineRasterizationDepthClipStateCreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkPipelineRasterizationDepthClipStateCreateFlagsEXT)); |
| vkStream->write((VkBool32*)&forMarshaling->depthClipEnable, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPipelineRasterizationDepthClipStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineRasterizationDepthClipStateCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineRasterizationDepthClipStateCreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkPipelineRasterizationDepthClipStateCreateFlagsEXT)); |
| vkStream->read((VkBool32*)&forUnmarshaling->depthClipEnable, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_swapchain_colorspace |
| #endif |
| #ifdef VK_EXT_hdr_metadata |
| void marshal_VkXYColorEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkXYColorEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((float*)&forMarshaling->x, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->y, sizeof(float)); |
| } |
| |
| void unmarshal_VkXYColorEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkXYColorEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((float*)&forUnmarshaling->x, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->y, sizeof(float)); |
| } |
| |
| void marshal_VkHdrMetadataEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkHdrMetadataEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkXYColorEXT(vkStream, rootType, (VkXYColorEXT*)(&forMarshaling->displayPrimaryRed)); |
| marshal_VkXYColorEXT(vkStream, rootType, (VkXYColorEXT*)(&forMarshaling->displayPrimaryGreen)); |
| marshal_VkXYColorEXT(vkStream, rootType, (VkXYColorEXT*)(&forMarshaling->displayPrimaryBlue)); |
| marshal_VkXYColorEXT(vkStream, rootType, (VkXYColorEXT*)(&forMarshaling->whitePoint)); |
| vkStream->write((float*)&forMarshaling->maxLuminance, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->minLuminance, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxContentLightLevel, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxFrameAverageLightLevel, sizeof(float)); |
| } |
| |
| void unmarshal_VkHdrMetadataEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkHdrMetadataEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkXYColorEXT(vkStream, rootType, |
| (VkXYColorEXT*)(&forUnmarshaling->displayPrimaryRed)); |
| unmarshal_VkXYColorEXT(vkStream, rootType, |
| (VkXYColorEXT*)(&forUnmarshaling->displayPrimaryGreen)); |
| unmarshal_VkXYColorEXT(vkStream, rootType, |
| (VkXYColorEXT*)(&forUnmarshaling->displayPrimaryBlue)); |
| unmarshal_VkXYColorEXT(vkStream, rootType, (VkXYColorEXT*)(&forUnmarshaling->whitePoint)); |
| vkStream->read((float*)&forUnmarshaling->maxLuminance, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->minLuminance, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxContentLightLevel, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxFrameAverageLightLevel, sizeof(float)); |
| } |
| |
| #endif |
| #ifdef VK_MVK_ios_surface |
| void marshal_VkIOSSurfaceCreateInfoMVK(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkIOSSurfaceCreateInfoMVK* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkIOSSurfaceCreateFlagsMVK*)&forMarshaling->flags, |
| sizeof(VkIOSSurfaceCreateFlagsMVK)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pView; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pView) { |
| vkStream->write((const void*)forMarshaling->pView, sizeof(const uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkIOSSurfaceCreateInfoMVK(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkIOSSurfaceCreateInfoMVK* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkIOSSurfaceCreateFlagsMVK*)&forUnmarshaling->flags, |
| sizeof(VkIOSSurfaceCreateFlagsMVK)); |
| // WARNING PTR CHECK |
| const void* check_pView; |
| check_pView = (const void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pView) { |
| if (!(check_pView)) { |
| fprintf(stderr, "fatal: forUnmarshaling->pView inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pView, sizeof(const uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_MVK_macos_surface |
| void marshal_VkMacOSSurfaceCreateInfoMVK(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMacOSSurfaceCreateInfoMVK* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkMacOSSurfaceCreateFlagsMVK*)&forMarshaling->flags, |
| sizeof(VkMacOSSurfaceCreateFlagsMVK)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pView; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pView) { |
| vkStream->write((const void*)forMarshaling->pView, sizeof(const uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkMacOSSurfaceCreateInfoMVK(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMacOSSurfaceCreateInfoMVK* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkMacOSSurfaceCreateFlagsMVK*)&forUnmarshaling->flags, |
| sizeof(VkMacOSSurfaceCreateFlagsMVK)); |
| // WARNING PTR CHECK |
| const void* check_pView; |
| check_pView = (const void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pView) { |
| if (!(check_pView)) { |
| fprintf(stderr, "fatal: forUnmarshaling->pView inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pView, sizeof(const uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_MVK_moltenvk |
| #endif |
| #ifdef VK_EXT_external_memory_dma_buf |
| #endif |
| #ifdef VK_EXT_queue_family_foreign |
| #endif |
| #ifdef VK_EXT_debug_utils |
| void marshal_VkDebugUtilsLabelEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDebugUtilsLabelEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->putString(forMarshaling->pLabelName); |
| vkStream->write((float*)forMarshaling->color, 4 * sizeof(float)); |
| } |
| |
| void unmarshal_VkDebugUtilsLabelEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDebugUtilsLabelEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pLabelName); |
| vkStream->read((float*)forUnmarshaling->color, 4 * sizeof(float)); |
| } |
| |
| void marshal_VkDebugUtilsObjectNameInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDebugUtilsObjectNameInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkObjectType*)&forMarshaling->objectType, sizeof(VkObjectType)); |
| vkStream->write((uint64_t*)&forMarshaling->objectHandle, sizeof(uint64_t)); |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pObjectName; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pObjectName) { |
| vkStream->putString(forMarshaling->pObjectName); |
| } |
| } else { |
| vkStream->putString(forMarshaling->pObjectName); |
| } |
| } |
| |
| void unmarshal_VkDebugUtilsObjectNameInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDebugUtilsObjectNameInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkObjectType*)&forUnmarshaling->objectType, sizeof(VkObjectType)); |
| vkStream->read((uint64_t*)&forUnmarshaling->objectHandle, sizeof(uint64_t)); |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| const char* check_pObjectName; |
| check_pObjectName = (const char*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pObjectName) { |
| if (!(check_pObjectName)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pObjectName inconsistent between guest and host\n"); |
| } |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pObjectName); |
| } |
| } else { |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pObjectName); |
| } |
| } |
| |
| void marshal_VkDebugUtilsMessengerCallbackDataEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDebugUtilsMessengerCallbackDataEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDebugUtilsMessengerCallbackDataFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkDebugUtilsMessengerCallbackDataFlagsEXT)); |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pMessageIdName; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pMessageIdName) { |
| vkStream->putString(forMarshaling->pMessageIdName); |
| } |
| } else { |
| vkStream->putString(forMarshaling->pMessageIdName); |
| } |
| vkStream->write((int32_t*)&forMarshaling->messageIdNumber, sizeof(int32_t)); |
| vkStream->putString(forMarshaling->pMessage); |
| vkStream->write((uint32_t*)&forMarshaling->queueLabelCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pQueueLabels; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pQueueLabels) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->queueLabelCount; ++i) { |
| marshal_VkDebugUtilsLabelEXT( |
| vkStream, rootType, (VkDebugUtilsLabelEXT*)(forMarshaling->pQueueLabels + i)); |
| } |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->cmdBufLabelCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pCmdBufLabels; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pCmdBufLabels) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->cmdBufLabelCount; ++i) { |
| marshal_VkDebugUtilsLabelEXT( |
| vkStream, rootType, (VkDebugUtilsLabelEXT*)(forMarshaling->pCmdBufLabels + i)); |
| } |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->objectCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_2 = (uint64_t)(uintptr_t)forMarshaling->pObjects; |
| vkStream->putBe64(cgen_var_2); |
| if (forMarshaling->pObjects) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->objectCount; ++i) { |
| marshal_VkDebugUtilsObjectNameInfoEXT( |
| vkStream, rootType, |
| (VkDebugUtilsObjectNameInfoEXT*)(forMarshaling->pObjects + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkDebugUtilsMessengerCallbackDataEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDebugUtilsMessengerCallbackDataEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDebugUtilsMessengerCallbackDataFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkDebugUtilsMessengerCallbackDataFlagsEXT)); |
| if (vkStream->getFeatureBits() & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| const char* check_pMessageIdName; |
| check_pMessageIdName = (const char*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pMessageIdName) { |
| if (!(check_pMessageIdName)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pMessageIdName inconsistent between guest and host\n"); |
| } |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pMessageIdName); |
| } |
| } else { |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pMessageIdName); |
| } |
| vkStream->read((int32_t*)&forUnmarshaling->messageIdNumber, sizeof(int32_t)); |
| vkStream->loadStringInPlace((char**)&forUnmarshaling->pMessage); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueLabelCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| VkDebugUtilsLabelEXT* check_pQueueLabels; |
| check_pQueueLabels = (VkDebugUtilsLabelEXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pQueueLabels) { |
| if (!(check_pQueueLabels)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pQueueLabels inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->queueLabelCount; ++i) { |
| unmarshal_VkDebugUtilsLabelEXT( |
| vkStream, rootType, (VkDebugUtilsLabelEXT*)(forUnmarshaling->pQueueLabels + i)); |
| } |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->cmdBufLabelCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| VkDebugUtilsLabelEXT* check_pCmdBufLabels; |
| check_pCmdBufLabels = (VkDebugUtilsLabelEXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pCmdBufLabels) { |
| if (!(check_pCmdBufLabels)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pCmdBufLabels inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->cmdBufLabelCount; ++i) { |
| unmarshal_VkDebugUtilsLabelEXT( |
| vkStream, rootType, |
| (VkDebugUtilsLabelEXT*)(forUnmarshaling->pCmdBufLabels + i)); |
| } |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->objectCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| VkDebugUtilsObjectNameInfoEXT* check_pObjects; |
| check_pObjects = (VkDebugUtilsObjectNameInfoEXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pObjects) { |
| if (!(check_pObjects)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pObjects inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->objectCount; ++i) { |
| unmarshal_VkDebugUtilsObjectNameInfoEXT( |
| vkStream, rootType, |
| (VkDebugUtilsObjectNameInfoEXT*)(forUnmarshaling->pObjects + i)); |
| } |
| } |
| } |
| } |
| |
| void marshal_VkDebugUtilsMessengerCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDebugUtilsMessengerCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDebugUtilsMessengerCreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkDebugUtilsMessengerCreateFlagsEXT)); |
| vkStream->write((VkDebugUtilsMessageSeverityFlagsEXT*)&forMarshaling->messageSeverity, |
| sizeof(VkDebugUtilsMessageSeverityFlagsEXT)); |
| vkStream->write((VkDebugUtilsMessageTypeFlagsEXT*)&forMarshaling->messageType, |
| sizeof(VkDebugUtilsMessageTypeFlagsEXT)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->pfnUserCallback; |
| vkStream->putBe64(cgen_var_0); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pUserData; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pUserData) { |
| vkStream->write((void*)forMarshaling->pUserData, sizeof(uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkDebugUtilsMessengerCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDebugUtilsMessengerCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDebugUtilsMessengerCreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkDebugUtilsMessengerCreateFlagsEXT)); |
| vkStream->read((VkDebugUtilsMessageSeverityFlagsEXT*)&forUnmarshaling->messageSeverity, |
| sizeof(VkDebugUtilsMessageSeverityFlagsEXT)); |
| vkStream->read((VkDebugUtilsMessageTypeFlagsEXT*)&forUnmarshaling->messageType, |
| sizeof(VkDebugUtilsMessageTypeFlagsEXT)); |
| forUnmarshaling->pfnUserCallback = (PFN_vkDebugUtilsMessengerCallbackEXT)vkStream->getBe64(); |
| // WARNING PTR CHECK |
| void* check_pUserData; |
| check_pUserData = (void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pUserData) { |
| if (!(check_pUserData)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pUserData inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pUserData, sizeof(uint8_t)); |
| } |
| } |
| |
| void marshal_VkDebugUtilsObjectTagInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDebugUtilsObjectTagInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkObjectType*)&forMarshaling->objectType, sizeof(VkObjectType)); |
| vkStream->write((uint64_t*)&forMarshaling->objectHandle, sizeof(uint64_t)); |
| vkStream->write((uint64_t*)&forMarshaling->tagName, sizeof(uint64_t)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->tagSize; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((const void*)forMarshaling->pTag, |
| forMarshaling->tagSize * sizeof(const uint8_t)); |
| } |
| |
| void unmarshal_VkDebugUtilsObjectTagInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDebugUtilsObjectTagInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkObjectType*)&forUnmarshaling->objectType, sizeof(VkObjectType)); |
| vkStream->read((uint64_t*)&forUnmarshaling->objectHandle, sizeof(uint64_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->tagName, sizeof(uint64_t)); |
| forUnmarshaling->tagSize = (size_t)vkStream->getBe64(); |
| vkStream->read((void*)forUnmarshaling->pTag, forUnmarshaling->tagSize * sizeof(const uint8_t)); |
| } |
| |
| #endif |
| #ifdef VK_ANDROID_external_memory_android_hardware_buffer |
| void marshal_VkAndroidHardwareBufferUsageANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAndroidHardwareBufferUsageANDROID* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint64_t*)&forMarshaling->androidHardwareBufferUsage, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkAndroidHardwareBufferUsageANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAndroidHardwareBufferUsageANDROID* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint64_t*)&forUnmarshaling->androidHardwareBufferUsage, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkAndroidHardwareBufferPropertiesANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAndroidHardwareBufferPropertiesANDROID* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)&forMarshaling->allocationSize, sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkAndroidHardwareBufferPropertiesANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAndroidHardwareBufferPropertiesANDROID* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->allocationSize, sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkAndroidHardwareBufferFormatPropertiesANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAndroidHardwareBufferFormatPropertiesANDROID* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((uint64_t*)&forMarshaling->externalFormat, sizeof(uint64_t)); |
| vkStream->write((VkFormatFeatureFlags*)&forMarshaling->formatFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| marshal_VkComponentMapping( |
| vkStream, rootType, |
| (VkComponentMapping*)(&forMarshaling->samplerYcbcrConversionComponents)); |
| vkStream->write((VkSamplerYcbcrModelConversion*)&forMarshaling->suggestedYcbcrModel, |
| sizeof(VkSamplerYcbcrModelConversion)); |
| vkStream->write((VkSamplerYcbcrRange*)&forMarshaling->suggestedYcbcrRange, |
| sizeof(VkSamplerYcbcrRange)); |
| vkStream->write((VkChromaLocation*)&forMarshaling->suggestedXChromaOffset, |
| sizeof(VkChromaLocation)); |
| vkStream->write((VkChromaLocation*)&forMarshaling->suggestedYChromaOffset, |
| sizeof(VkChromaLocation)); |
| } |
| |
| void unmarshal_VkAndroidHardwareBufferFormatPropertiesANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAndroidHardwareBufferFormatPropertiesANDROID* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((uint64_t*)&forUnmarshaling->externalFormat, sizeof(uint64_t)); |
| vkStream->read((VkFormatFeatureFlags*)&forUnmarshaling->formatFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| unmarshal_VkComponentMapping( |
| vkStream, rootType, |
| (VkComponentMapping*)(&forUnmarshaling->samplerYcbcrConversionComponents)); |
| vkStream->read((VkSamplerYcbcrModelConversion*)&forUnmarshaling->suggestedYcbcrModel, |
| sizeof(VkSamplerYcbcrModelConversion)); |
| vkStream->read((VkSamplerYcbcrRange*)&forUnmarshaling->suggestedYcbcrRange, |
| sizeof(VkSamplerYcbcrRange)); |
| vkStream->read((VkChromaLocation*)&forUnmarshaling->suggestedXChromaOffset, |
| sizeof(VkChromaLocation)); |
| vkStream->read((VkChromaLocation*)&forUnmarshaling->suggestedYChromaOffset, |
| sizeof(VkChromaLocation)); |
| } |
| |
| void marshal_VkImportAndroidHardwareBufferInfoANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportAndroidHardwareBufferInfoANDROID* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((AHardwareBuffer*)forMarshaling->buffer, sizeof(AHardwareBuffer)); |
| } |
| |
| void unmarshal_VkImportAndroidHardwareBufferInfoANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImportAndroidHardwareBufferInfoANDROID* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((AHardwareBuffer*)forUnmarshaling->buffer, sizeof(AHardwareBuffer)); |
| } |
| |
| void marshal_VkMemoryGetAndroidHardwareBufferInfoANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryGetAndroidHardwareBufferInfoANDROID* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkMemoryGetAndroidHardwareBufferInfoANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryGetAndroidHardwareBufferInfoANDROID* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_0, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| } |
| |
| void marshal_VkExternalFormatANDROID(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkExternalFormatANDROID* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint64_t*)&forMarshaling->externalFormat, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkExternalFormatANDROID(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkExternalFormatANDROID* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint64_t*)&forUnmarshaling->externalFormat, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkAndroidHardwareBufferFormatProperties2ANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAndroidHardwareBufferFormatProperties2ANDROID* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((uint64_t*)&forMarshaling->externalFormat, sizeof(uint64_t)); |
| vkStream->write((VkFormatFeatureFlags2KHR*)&forMarshaling->formatFeatures, |
| sizeof(VkFormatFeatureFlags2KHR)); |
| marshal_VkComponentMapping( |
| vkStream, rootType, |
| (VkComponentMapping*)(&forMarshaling->samplerYcbcrConversionComponents)); |
| vkStream->write((VkSamplerYcbcrModelConversion*)&forMarshaling->suggestedYcbcrModel, |
| sizeof(VkSamplerYcbcrModelConversion)); |
| vkStream->write((VkSamplerYcbcrRange*)&forMarshaling->suggestedYcbcrRange, |
| sizeof(VkSamplerYcbcrRange)); |
| vkStream->write((VkChromaLocation*)&forMarshaling->suggestedXChromaOffset, |
| sizeof(VkChromaLocation)); |
| vkStream->write((VkChromaLocation*)&forMarshaling->suggestedYChromaOffset, |
| sizeof(VkChromaLocation)); |
| } |
| |
| void unmarshal_VkAndroidHardwareBufferFormatProperties2ANDROID( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAndroidHardwareBufferFormatProperties2ANDROID* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((uint64_t*)&forUnmarshaling->externalFormat, sizeof(uint64_t)); |
| vkStream->read((VkFormatFeatureFlags2KHR*)&forUnmarshaling->formatFeatures, |
| sizeof(VkFormatFeatureFlags2KHR)); |
| unmarshal_VkComponentMapping( |
| vkStream, rootType, |
| (VkComponentMapping*)(&forUnmarshaling->samplerYcbcrConversionComponents)); |
| vkStream->read((VkSamplerYcbcrModelConversion*)&forUnmarshaling->suggestedYcbcrModel, |
| sizeof(VkSamplerYcbcrModelConversion)); |
| vkStream->read((VkSamplerYcbcrRange*)&forUnmarshaling->suggestedYcbcrRange, |
| sizeof(VkSamplerYcbcrRange)); |
| vkStream->read((VkChromaLocation*)&forUnmarshaling->suggestedXChromaOffset, |
| sizeof(VkChromaLocation)); |
| vkStream->read((VkChromaLocation*)&forUnmarshaling->suggestedYChromaOffset, |
| sizeof(VkChromaLocation)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_sampler_filter_minmax |
| #endif |
| #ifdef VK_AMD_gpu_shader_int16 |
| #endif |
| #ifdef VK_AMD_mixed_attachment_samples |
| #endif |
| #ifdef VK_AMD_shader_fragment_mask |
| #endif |
| #ifdef VK_EXT_inline_uniform_block |
| void marshal_VkPhysicalDeviceInlineUniformBlockFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceInlineUniformBlockFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->inlineUniformBlock, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->descriptorBindingInlineUniformBlockUpdateAfterBind, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceInlineUniformBlockFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceInlineUniformBlockFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->inlineUniformBlock, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->descriptorBindingInlineUniformBlockUpdateAfterBind, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceInlineUniformBlockPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceInlineUniformBlockPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxInlineUniformBlockSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorInlineUniformBlocks, |
| sizeof(uint32_t)); |
| vkStream->write( |
| (uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindInlineUniformBlocks, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetInlineUniformBlocks, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindInlineUniformBlocks, |
| sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceInlineUniformBlockPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceInlineUniformBlockPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxInlineUniformBlockSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorInlineUniformBlocks, |
| sizeof(uint32_t)); |
| vkStream->read( |
| (uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindInlineUniformBlocks, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetInlineUniformBlocks, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindInlineUniformBlocks, |
| sizeof(uint32_t)); |
| } |
| |
| void marshal_VkWriteDescriptorSetInlineUniformBlockEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkWriteDescriptorSetInlineUniformBlockEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->dataSize, sizeof(uint32_t)); |
| vkStream->write((const void*)forMarshaling->pData, |
| forMarshaling->dataSize * sizeof(const uint8_t)); |
| } |
| |
| void unmarshal_VkWriteDescriptorSetInlineUniformBlockEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkWriteDescriptorSetInlineUniformBlockEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->dataSize, sizeof(uint32_t)); |
| vkStream->read((void*)forUnmarshaling->pData, |
| forUnmarshaling->dataSize * sizeof(const uint8_t)); |
| } |
| |
| void marshal_VkDescriptorPoolInlineUniformBlockCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDescriptorPoolInlineUniformBlockCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxInlineUniformBlockBindings, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDescriptorPoolInlineUniformBlockCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDescriptorPoolInlineUniformBlockCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxInlineUniformBlockBindings, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_stencil_export |
| #endif |
| #ifdef VK_EXT_sample_locations |
| void marshal_VkSampleLocationEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSampleLocationEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((float*)&forMarshaling->x, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->y, sizeof(float)); |
| } |
| |
| void unmarshal_VkSampleLocationEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSampleLocationEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((float*)&forUnmarshaling->x, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->y, sizeof(float)); |
| } |
| |
| void marshal_VkSampleLocationsInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSampleLocationsInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSampleCountFlagBits*)&forMarshaling->sampleLocationsPerPixel, |
| sizeof(VkSampleCountFlagBits)); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->sampleLocationGridSize)); |
| vkStream->write((uint32_t*)&forMarshaling->sampleLocationsCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->sampleLocationsCount; ++i) { |
| marshal_VkSampleLocationEXT( |
| vkStream, rootType, |
| (const VkSampleLocationEXT*)(forMarshaling->pSampleLocations + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkSampleLocationsInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSampleLocationsInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSampleCountFlagBits*)&forUnmarshaling->sampleLocationsPerPixel, |
| sizeof(VkSampleCountFlagBits)); |
| unmarshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->sampleLocationGridSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->sampleLocationsCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->sampleLocationsCount; ++i) { |
| unmarshal_VkSampleLocationEXT( |
| vkStream, rootType, (VkSampleLocationEXT*)(forUnmarshaling->pSampleLocations + i)); |
| } |
| } |
| } |
| |
| void marshal_VkAttachmentSampleLocationsEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAttachmentSampleLocationsEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->attachmentIndex, sizeof(uint32_t)); |
| marshal_VkSampleLocationsInfoEXT( |
| vkStream, rootType, (VkSampleLocationsInfoEXT*)(&forMarshaling->sampleLocationsInfo)); |
| } |
| |
| void unmarshal_VkAttachmentSampleLocationsEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAttachmentSampleLocationsEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->attachmentIndex, sizeof(uint32_t)); |
| unmarshal_VkSampleLocationsInfoEXT( |
| vkStream, rootType, (VkSampleLocationsInfoEXT*)(&forUnmarshaling->sampleLocationsInfo)); |
| } |
| |
| void marshal_VkSubpassSampleLocationsEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubpassSampleLocationsEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->subpassIndex, sizeof(uint32_t)); |
| marshal_VkSampleLocationsInfoEXT( |
| vkStream, rootType, (VkSampleLocationsInfoEXT*)(&forMarshaling->sampleLocationsInfo)); |
| } |
| |
| void unmarshal_VkSubpassSampleLocationsEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubpassSampleLocationsEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->subpassIndex, sizeof(uint32_t)); |
| unmarshal_VkSampleLocationsInfoEXT( |
| vkStream, rootType, (VkSampleLocationsInfoEXT*)(&forUnmarshaling->sampleLocationsInfo)); |
| } |
| |
| void marshal_VkRenderPassSampleLocationsBeginInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderPassSampleLocationsBeginInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->attachmentInitialSampleLocationsCount, |
| sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->attachmentInitialSampleLocationsCount; |
| ++i) { |
| marshal_VkAttachmentSampleLocationsEXT( |
| vkStream, rootType, |
| (const VkAttachmentSampleLocationsEXT*)(forMarshaling |
| ->pAttachmentInitialSampleLocations + |
| i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->postSubpassSampleLocationsCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->postSubpassSampleLocationsCount; ++i) { |
| marshal_VkSubpassSampleLocationsEXT( |
| vkStream, rootType, |
| (const VkSubpassSampleLocationsEXT*)(forMarshaling->pPostSubpassSampleLocations + |
| i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkRenderPassSampleLocationsBeginInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderPassSampleLocationsBeginInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->attachmentInitialSampleLocationsCount, |
| sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->attachmentInitialSampleLocationsCount; |
| ++i) { |
| unmarshal_VkAttachmentSampleLocationsEXT( |
| vkStream, rootType, |
| (VkAttachmentSampleLocationsEXT*)(forUnmarshaling |
| ->pAttachmentInitialSampleLocations + |
| i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->postSubpassSampleLocationsCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->postSubpassSampleLocationsCount; ++i) { |
| unmarshal_VkSubpassSampleLocationsEXT( |
| vkStream, rootType, |
| (VkSubpassSampleLocationsEXT*)(forUnmarshaling->pPostSubpassSampleLocations + i)); |
| } |
| } |
| } |
| |
| void marshal_VkPipelineSampleLocationsStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineSampleLocationsStateCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->sampleLocationsEnable, sizeof(VkBool32)); |
| marshal_VkSampleLocationsInfoEXT( |
| vkStream, rootType, (VkSampleLocationsInfoEXT*)(&forMarshaling->sampleLocationsInfo)); |
| } |
| |
| void unmarshal_VkPipelineSampleLocationsStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineSampleLocationsStateCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sampleLocationsEnable, sizeof(VkBool32)); |
| unmarshal_VkSampleLocationsInfoEXT( |
| vkStream, rootType, (VkSampleLocationsInfoEXT*)(&forUnmarshaling->sampleLocationsInfo)); |
| } |
| |
| void marshal_VkPhysicalDeviceSampleLocationsPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSampleLocationsPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->sampleLocationSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| marshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forMarshaling->maxSampleLocationGridSize)); |
| vkStream->write((float*)forMarshaling->sampleLocationCoordinateRange, 2 * sizeof(float)); |
| vkStream->write((uint32_t*)&forMarshaling->sampleLocationSubPixelBits, sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->variableSampleLocations, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSampleLocationsPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSampleLocationsPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->sampleLocationSampleCounts, |
| sizeof(VkSampleCountFlags)); |
| unmarshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->maxSampleLocationGridSize)); |
| vkStream->read((float*)forUnmarshaling->sampleLocationCoordinateRange, 2 * sizeof(float)); |
| vkStream->read((uint32_t*)&forUnmarshaling->sampleLocationSubPixelBits, sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->variableSampleLocations, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkMultisamplePropertiesEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMultisamplePropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forMarshaling->maxSampleLocationGridSize)); |
| } |
| |
| void unmarshal_VkMultisamplePropertiesEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMultisamplePropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->maxSampleLocationGridSize)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_blend_operation_advanced |
| void marshal_VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->advancedBlendCoherentOperations, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->advancedBlendCoherentOperations, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->advancedBlendMaxColorAttachments, sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->advancedBlendIndependentBlend, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->advancedBlendNonPremultipliedSrcColor, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->advancedBlendNonPremultipliedDstColor, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->advancedBlendCorrelatedOverlap, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->advancedBlendAllOperations, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->advancedBlendMaxColorAttachments, sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->advancedBlendIndependentBlend, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->advancedBlendNonPremultipliedSrcColor, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->advancedBlendNonPremultipliedDstColor, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->advancedBlendCorrelatedOverlap, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->advancedBlendAllOperations, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineColorBlendAdvancedStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineColorBlendAdvancedStateCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->srcPremultiplied, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->dstPremultiplied, sizeof(VkBool32)); |
| vkStream->write((VkBlendOverlapEXT*)&forMarshaling->blendOverlap, sizeof(VkBlendOverlapEXT)); |
| } |
| |
| void unmarshal_VkPipelineColorBlendAdvancedStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineColorBlendAdvancedStateCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->srcPremultiplied, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->dstPremultiplied, sizeof(VkBool32)); |
| vkStream->read((VkBlendOverlapEXT*)&forUnmarshaling->blendOverlap, sizeof(VkBlendOverlapEXT)); |
| } |
| |
| #endif |
| #ifdef VK_NV_fragment_coverage_to_color |
| void marshal_VkPipelineCoverageToColorStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineCoverageToColorStateCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineCoverageToColorStateCreateFlagsNV*)&forMarshaling->flags, |
| sizeof(VkPipelineCoverageToColorStateCreateFlagsNV)); |
| vkStream->write((VkBool32*)&forMarshaling->coverageToColorEnable, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->coverageToColorLocation, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPipelineCoverageToColorStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineCoverageToColorStateCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineCoverageToColorStateCreateFlagsNV*)&forUnmarshaling->flags, |
| sizeof(VkPipelineCoverageToColorStateCreateFlagsNV)); |
| vkStream->read((VkBool32*)&forUnmarshaling->coverageToColorEnable, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->coverageToColorLocation, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_NV_framebuffer_mixed_samples |
| void marshal_VkPipelineCoverageModulationStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineCoverageModulationStateCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineCoverageModulationStateCreateFlagsNV*)&forMarshaling->flags, |
| sizeof(VkPipelineCoverageModulationStateCreateFlagsNV)); |
| vkStream->write((VkCoverageModulationModeNV*)&forMarshaling->coverageModulationMode, |
| sizeof(VkCoverageModulationModeNV)); |
| vkStream->write((VkBool32*)&forMarshaling->coverageModulationTableEnable, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->coverageModulationTableCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pCoverageModulationTable; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pCoverageModulationTable) { |
| vkStream->write((const float*)forMarshaling->pCoverageModulationTable, |
| forMarshaling->coverageModulationTableCount * sizeof(const float)); |
| } |
| } |
| |
| void unmarshal_VkPipelineCoverageModulationStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineCoverageModulationStateCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineCoverageModulationStateCreateFlagsNV*)&forUnmarshaling->flags, |
| sizeof(VkPipelineCoverageModulationStateCreateFlagsNV)); |
| vkStream->read((VkCoverageModulationModeNV*)&forUnmarshaling->coverageModulationMode, |
| sizeof(VkCoverageModulationModeNV)); |
| vkStream->read((VkBool32*)&forUnmarshaling->coverageModulationTableEnable, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->coverageModulationTableCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const float* check_pCoverageModulationTable; |
| check_pCoverageModulationTable = (const float*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pCoverageModulationTable) { |
| if (!(check_pCoverageModulationTable)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pCoverageModulationTable inconsistent between guest " |
| "and host\n"); |
| } |
| vkStream->read((float*)forUnmarshaling->pCoverageModulationTable, |
| forUnmarshaling->coverageModulationTableCount * sizeof(const float)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_fill_rectangle |
| #endif |
| #ifdef VK_NV_shader_sm_builtins |
| void marshal_VkPhysicalDeviceShaderSMBuiltinsPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderSMBuiltinsPropertiesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->shaderSMCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->shaderWarpsPerSM, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderSMBuiltinsPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderSMBuiltinsPropertiesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shaderSMCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shaderWarpsPerSM, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceShaderSMBuiltinsFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderSMBuiltinsFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSMBuiltins, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderSMBuiltinsFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderSMBuiltinsFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSMBuiltins, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_post_depth_coverage |
| #endif |
| #ifdef VK_EXT_image_drm_format_modifier |
| void marshal_VkDrmFormatModifierPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDrmFormatModifierPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint64_t*)&forMarshaling->drmFormatModifier, sizeof(uint64_t)); |
| vkStream->write((uint32_t*)&forMarshaling->drmFormatModifierPlaneCount, sizeof(uint32_t)); |
| vkStream->write((VkFormatFeatureFlags*)&forMarshaling->drmFormatModifierTilingFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| } |
| |
| void unmarshal_VkDrmFormatModifierPropertiesEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkDrmFormatModifierPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint64_t*)&forUnmarshaling->drmFormatModifier, sizeof(uint64_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->drmFormatModifierPlaneCount, sizeof(uint32_t)); |
| vkStream->read((VkFormatFeatureFlags*)&forUnmarshaling->drmFormatModifierTilingFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| } |
| |
| void marshal_VkDrmFormatModifierPropertiesListEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDrmFormatModifierPropertiesListEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->drmFormatModifierCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pDrmFormatModifierProperties; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pDrmFormatModifierProperties) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->drmFormatModifierCount; ++i) { |
| marshal_VkDrmFormatModifierPropertiesEXT( |
| vkStream, rootType, |
| (VkDrmFormatModifierPropertiesEXT*)(forMarshaling |
| ->pDrmFormatModifierProperties + |
| i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkDrmFormatModifierPropertiesListEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDrmFormatModifierPropertiesListEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->drmFormatModifierCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| VkDrmFormatModifierPropertiesEXT* check_pDrmFormatModifierProperties; |
| check_pDrmFormatModifierProperties = |
| (VkDrmFormatModifierPropertiesEXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pDrmFormatModifierProperties) { |
| if (!(check_pDrmFormatModifierProperties)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pDrmFormatModifierProperties inconsistent between " |
| "guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->drmFormatModifierCount; ++i) { |
| unmarshal_VkDrmFormatModifierPropertiesEXT( |
| vkStream, rootType, |
| (VkDrmFormatModifierPropertiesEXT*)(forUnmarshaling |
| ->pDrmFormatModifierProperties + |
| i)); |
| } |
| } |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceImageDrmFormatModifierInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceImageDrmFormatModifierInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint64_t*)&forMarshaling->drmFormatModifier, sizeof(uint64_t)); |
| vkStream->write((VkSharingMode*)&forMarshaling->sharingMode, sizeof(VkSharingMode)); |
| vkStream->write((uint32_t*)&forMarshaling->queueFamilyIndexCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pQueueFamilyIndices; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pQueueFamilyIndices) { |
| vkStream->write((const uint32_t*)forMarshaling->pQueueFamilyIndices, |
| forMarshaling->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void unmarshal_VkPhysicalDeviceImageDrmFormatModifierInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceImageDrmFormatModifierInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint64_t*)&forUnmarshaling->drmFormatModifier, sizeof(uint64_t)); |
| vkStream->read((VkSharingMode*)&forUnmarshaling->sharingMode, sizeof(VkSharingMode)); |
| vkStream->read((uint32_t*)&forUnmarshaling->queueFamilyIndexCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const uint32_t* check_pQueueFamilyIndices; |
| check_pQueueFamilyIndices = (const uint32_t*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pQueueFamilyIndices) { |
| if (!(check_pQueueFamilyIndices)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pQueueFamilyIndices inconsistent between guest and " |
| "host\n"); |
| } |
| vkStream->read((uint32_t*)forUnmarshaling->pQueueFamilyIndices, |
| forUnmarshaling->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void marshal_VkImageDrmFormatModifierListCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageDrmFormatModifierListCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->drmFormatModifierCount, sizeof(uint32_t)); |
| vkStream->write((const uint64_t*)forMarshaling->pDrmFormatModifiers, |
| forMarshaling->drmFormatModifierCount * sizeof(const uint64_t)); |
| } |
| |
| void unmarshal_VkImageDrmFormatModifierListCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageDrmFormatModifierListCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->drmFormatModifierCount, sizeof(uint32_t)); |
| vkStream->read((uint64_t*)forUnmarshaling->pDrmFormatModifiers, |
| forUnmarshaling->drmFormatModifierCount * sizeof(const uint64_t)); |
| } |
| |
| void marshal_VkImageDrmFormatModifierExplicitCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageDrmFormatModifierExplicitCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint64_t*)&forMarshaling->drmFormatModifier, sizeof(uint64_t)); |
| vkStream->write((uint32_t*)&forMarshaling->drmFormatModifierPlaneCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->drmFormatModifierPlaneCount; ++i) { |
| marshal_VkSubresourceLayout( |
| vkStream, rootType, (const VkSubresourceLayout*)(forMarshaling->pPlaneLayouts + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkImageDrmFormatModifierExplicitCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageDrmFormatModifierExplicitCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint64_t*)&forUnmarshaling->drmFormatModifier, sizeof(uint64_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->drmFormatModifierPlaneCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->drmFormatModifierPlaneCount; ++i) { |
| unmarshal_VkSubresourceLayout( |
| vkStream, rootType, (VkSubresourceLayout*)(forUnmarshaling->pPlaneLayouts + i)); |
| } |
| } |
| } |
| |
| void marshal_VkImageDrmFormatModifierPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageDrmFormatModifierPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint64_t*)&forMarshaling->drmFormatModifier, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkImageDrmFormatModifierPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageDrmFormatModifierPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint64_t*)&forUnmarshaling->drmFormatModifier, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkDrmFormatModifierProperties2EXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDrmFormatModifierProperties2EXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint64_t*)&forMarshaling->drmFormatModifier, sizeof(uint64_t)); |
| vkStream->write((uint32_t*)&forMarshaling->drmFormatModifierPlaneCount, sizeof(uint32_t)); |
| vkStream->write((VkFormatFeatureFlags2KHR*)&forMarshaling->drmFormatModifierTilingFeatures, |
| sizeof(VkFormatFeatureFlags2KHR)); |
| } |
| |
| void unmarshal_VkDrmFormatModifierProperties2EXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDrmFormatModifierProperties2EXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint64_t*)&forUnmarshaling->drmFormatModifier, sizeof(uint64_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->drmFormatModifierPlaneCount, sizeof(uint32_t)); |
| vkStream->read((VkFormatFeatureFlags2KHR*)&forUnmarshaling->drmFormatModifierTilingFeatures, |
| sizeof(VkFormatFeatureFlags2KHR)); |
| } |
| |
| void marshal_VkDrmFormatModifierPropertiesList2EXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDrmFormatModifierPropertiesList2EXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->drmFormatModifierCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pDrmFormatModifierProperties; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pDrmFormatModifierProperties) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->drmFormatModifierCount; ++i) { |
| marshal_VkDrmFormatModifierProperties2EXT( |
| vkStream, rootType, |
| (VkDrmFormatModifierProperties2EXT*)(forMarshaling |
| ->pDrmFormatModifierProperties + |
| i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkDrmFormatModifierPropertiesList2EXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDrmFormatModifierPropertiesList2EXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->drmFormatModifierCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| VkDrmFormatModifierProperties2EXT* check_pDrmFormatModifierProperties; |
| check_pDrmFormatModifierProperties = |
| (VkDrmFormatModifierProperties2EXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pDrmFormatModifierProperties) { |
| if (!(check_pDrmFormatModifierProperties)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pDrmFormatModifierProperties inconsistent between " |
| "guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->drmFormatModifierCount; ++i) { |
| unmarshal_VkDrmFormatModifierProperties2EXT( |
| vkStream, rootType, |
| (VkDrmFormatModifierProperties2EXT*)(forUnmarshaling |
| ->pDrmFormatModifierProperties + |
| i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_validation_cache |
| void marshal_VkValidationCacheCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkValidationCacheCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkValidationCacheCreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkValidationCacheCreateFlagsEXT)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->initialDataSize; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((const void*)forMarshaling->pInitialData, |
| forMarshaling->initialDataSize * sizeof(const uint8_t)); |
| } |
| |
| void unmarshal_VkValidationCacheCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkValidationCacheCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkValidationCacheCreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkValidationCacheCreateFlagsEXT)); |
| forUnmarshaling->initialDataSize = (size_t)vkStream->getBe64(); |
| vkStream->read((void*)forUnmarshaling->pInitialData, |
| forUnmarshaling->initialDataSize * sizeof(const uint8_t)); |
| } |
| |
| void marshal_VkShaderModuleValidationCacheCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkShaderModuleValidationCacheCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkValidationCacheEXT_u64(&forMarshaling->validationCache, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkShaderModuleValidationCacheCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkShaderModuleValidationCacheCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkValidationCacheEXT( |
| &cgen_var_0, (VkValidationCacheEXT*)&forUnmarshaling->validationCache, 1); |
| } |
| |
| #endif |
| #ifdef VK_EXT_descriptor_indexing |
| #endif |
| #ifdef VK_EXT_shader_viewport_index_layer |
| #endif |
| #ifdef VK_NV_shading_rate_image |
| void marshal_VkShadingRatePaletteNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkShadingRatePaletteNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->shadingRatePaletteEntryCount, sizeof(uint32_t)); |
| vkStream->write( |
| (const VkShadingRatePaletteEntryNV*)forMarshaling->pShadingRatePaletteEntries, |
| forMarshaling->shadingRatePaletteEntryCount * sizeof(const VkShadingRatePaletteEntryNV)); |
| } |
| |
| void unmarshal_VkShadingRatePaletteNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkShadingRatePaletteNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->shadingRatePaletteEntryCount, sizeof(uint32_t)); |
| vkStream->read( |
| (VkShadingRatePaletteEntryNV*)forUnmarshaling->pShadingRatePaletteEntries, |
| forUnmarshaling->shadingRatePaletteEntryCount * sizeof(const VkShadingRatePaletteEntryNV)); |
| } |
| |
| void marshal_VkPipelineViewportShadingRateImageStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineViewportShadingRateImageStateCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shadingRateImageEnable, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->viewportCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pShadingRatePalettes; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pShadingRatePalettes) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->viewportCount; ++i) { |
| marshal_VkShadingRatePaletteNV( |
| vkStream, rootType, |
| (const VkShadingRatePaletteNV*)(forMarshaling->pShadingRatePalettes + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineViewportShadingRateImageStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineViewportShadingRateImageStateCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shadingRateImageEnable, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewportCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkShadingRatePaletteNV* check_pShadingRatePalettes; |
| check_pShadingRatePalettes = (const VkShadingRatePaletteNV*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pShadingRatePalettes) { |
| if (!(check_pShadingRatePalettes)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pShadingRatePalettes inconsistent between guest and " |
| "host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->viewportCount; ++i) { |
| unmarshal_VkShadingRatePaletteNV( |
| vkStream, rootType, |
| (VkShadingRatePaletteNV*)(forUnmarshaling->pShadingRatePalettes + i)); |
| } |
| } |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceShadingRateImageFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShadingRateImageFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shadingRateImage, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shadingRateCoarseSampleOrder, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShadingRateImageFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShadingRateImageFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shadingRateImage, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shadingRateCoarseSampleOrder, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceShadingRateImagePropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShadingRateImagePropertiesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forMarshaling->shadingRateTexelSize)); |
| vkStream->write((uint32_t*)&forMarshaling->shadingRatePaletteSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->shadingRateMaxCoarseSamples, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShadingRateImagePropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShadingRateImagePropertiesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkExtent2D(vkStream, rootType, (VkExtent2D*)(&forUnmarshaling->shadingRateTexelSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shadingRatePaletteSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shadingRateMaxCoarseSamples, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkCoarseSampleLocationNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCoarseSampleLocationNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->pixelX, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->pixelY, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->sample, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkCoarseSampleLocationNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCoarseSampleLocationNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->pixelX, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->pixelY, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->sample, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkCoarseSampleOrderCustomNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCoarseSampleOrderCustomNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkShadingRatePaletteEntryNV*)&forMarshaling->shadingRate, |
| sizeof(VkShadingRatePaletteEntryNV)); |
| vkStream->write((uint32_t*)&forMarshaling->sampleCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->sampleLocationCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->sampleLocationCount; ++i) { |
| marshal_VkCoarseSampleLocationNV( |
| vkStream, rootType, |
| (const VkCoarseSampleLocationNV*)(forMarshaling->pSampleLocations + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkCoarseSampleOrderCustomNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCoarseSampleOrderCustomNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkShadingRatePaletteEntryNV*)&forUnmarshaling->shadingRate, |
| sizeof(VkShadingRatePaletteEntryNV)); |
| vkStream->read((uint32_t*)&forUnmarshaling->sampleCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->sampleLocationCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->sampleLocationCount; ++i) { |
| unmarshal_VkCoarseSampleLocationNV( |
| vkStream, rootType, |
| (VkCoarseSampleLocationNV*)(forUnmarshaling->pSampleLocations + i)); |
| } |
| } |
| } |
| |
| void marshal_VkPipelineViewportCoarseSampleOrderStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineViewportCoarseSampleOrderStateCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkCoarseSampleOrderTypeNV*)&forMarshaling->sampleOrderType, |
| sizeof(VkCoarseSampleOrderTypeNV)); |
| vkStream->write((uint32_t*)&forMarshaling->customSampleOrderCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->customSampleOrderCount; ++i) { |
| marshal_VkCoarseSampleOrderCustomNV( |
| vkStream, rootType, |
| (const VkCoarseSampleOrderCustomNV*)(forMarshaling->pCustomSampleOrders + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineViewportCoarseSampleOrderStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineViewportCoarseSampleOrderStateCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkCoarseSampleOrderTypeNV*)&forUnmarshaling->sampleOrderType, |
| sizeof(VkCoarseSampleOrderTypeNV)); |
| vkStream->read((uint32_t*)&forUnmarshaling->customSampleOrderCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->customSampleOrderCount; ++i) { |
| unmarshal_VkCoarseSampleOrderCustomNV( |
| vkStream, rootType, |
| (VkCoarseSampleOrderCustomNV*)(forUnmarshaling->pCustomSampleOrders + i)); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_ray_tracing |
| void marshal_VkRayTracingShaderGroupCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRayTracingShaderGroupCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkRayTracingShaderGroupTypeKHR*)&forMarshaling->type, |
| sizeof(VkRayTracingShaderGroupTypeKHR)); |
| vkStream->write((uint32_t*)&forMarshaling->generalShader, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->closestHitShader, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->anyHitShader, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->intersectionShader, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkRayTracingShaderGroupCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRayTracingShaderGroupCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkRayTracingShaderGroupTypeKHR*)&forUnmarshaling->type, |
| sizeof(VkRayTracingShaderGroupTypeKHR)); |
| vkStream->read((uint32_t*)&forUnmarshaling->generalShader, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->closestHitShader, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->anyHitShader, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->intersectionShader, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkRayTracingPipelineCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRayTracingPipelineCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineCreateFlags*)&forMarshaling->flags, sizeof(VkPipelineCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->stageCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->stageCount; ++i) { |
| marshal_VkPipelineShaderStageCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineShaderStageCreateInfo*)(forMarshaling->pStages + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->groupCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->groupCount; ++i) { |
| marshal_VkRayTracingShaderGroupCreateInfoNV( |
| vkStream, rootType, |
| (const VkRayTracingShaderGroupCreateInfoNV*)(forMarshaling->pGroups + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->maxRecursionDepth, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkPipelineLayout_u64(&forMarshaling->layout, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkPipeline_u64(&forMarshaling->basePipelineHandle, |
| &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((int32_t*)&forMarshaling->basePipelineIndex, sizeof(int32_t)); |
| } |
| |
| void unmarshal_VkRayTracingPipelineCreateInfoNV(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkRayTracingPipelineCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineCreateFlags*)&forUnmarshaling->flags, sizeof(VkPipelineCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->stageCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->stageCount; ++i) { |
| unmarshal_VkPipelineShaderStageCreateInfo( |
| vkStream, rootType, |
| (VkPipelineShaderStageCreateInfo*)(forUnmarshaling->pStages + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->groupCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->groupCount; ++i) { |
| unmarshal_VkRayTracingShaderGroupCreateInfoNV( |
| vkStream, rootType, |
| (VkRayTracingShaderGroupCreateInfoNV*)(forUnmarshaling->pGroups + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->maxRecursionDepth, sizeof(uint32_t)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipelineLayout( |
| &cgen_var_0, (VkPipelineLayout*)&forUnmarshaling->layout, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipeline( |
| &cgen_var_1, (VkPipeline*)&forUnmarshaling->basePipelineHandle, 1); |
| vkStream->read((int32_t*)&forUnmarshaling->basePipelineIndex, sizeof(int32_t)); |
| } |
| |
| void marshal_VkGeometryTrianglesNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkGeometryTrianglesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->vertexData, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->vertexOffset, sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->vertexCount, sizeof(uint32_t)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->vertexStride, sizeof(VkDeviceSize)); |
| vkStream->write((VkFormat*)&forMarshaling->vertexFormat, sizeof(VkFormat)); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->indexData, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->indexOffset, sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->indexCount, sizeof(uint32_t)); |
| vkStream->write((VkIndexType*)&forMarshaling->indexType, sizeof(VkIndexType)); |
| uint64_t cgen_var_2; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->transformData, &cgen_var_2, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_2, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->transformOffset, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkGeometryTrianglesNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkGeometryTrianglesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->vertexData, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->vertexOffset, sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->vertexCount, sizeof(uint32_t)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->vertexStride, sizeof(VkDeviceSize)); |
| vkStream->read((VkFormat*)&forUnmarshaling->vertexFormat, sizeof(VkFormat)); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_1, |
| (VkBuffer*)&forUnmarshaling->indexData, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->indexOffset, sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->indexCount, sizeof(uint32_t)); |
| vkStream->read((VkIndexType*)&forUnmarshaling->indexType, sizeof(VkIndexType)); |
| uint64_t cgen_var_2; |
| vkStream->read((uint64_t*)&cgen_var_2, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer( |
| &cgen_var_2, (VkBuffer*)&forUnmarshaling->transformData, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->transformOffset, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkGeometryAABBNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkGeometryAABBNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->aabbData, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->numAABBs, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->stride, sizeof(uint32_t)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->offset, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkGeometryAABBNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkGeometryAABBNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->aabbData, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->numAABBs, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->stride, sizeof(uint32_t)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->offset, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkGeometryDataNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkGeometryDataNV* forMarshaling) { |
| (void)rootType; |
| marshal_VkGeometryTrianglesNV(vkStream, rootType, |
| (VkGeometryTrianglesNV*)(&forMarshaling->triangles)); |
| marshal_VkGeometryAABBNV(vkStream, rootType, (VkGeometryAABBNV*)(&forMarshaling->aabbs)); |
| } |
| |
| void unmarshal_VkGeometryDataNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkGeometryDataNV* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkGeometryTrianglesNV(vkStream, rootType, |
| (VkGeometryTrianglesNV*)(&forUnmarshaling->triangles)); |
| unmarshal_VkGeometryAABBNV(vkStream, rootType, (VkGeometryAABBNV*)(&forUnmarshaling->aabbs)); |
| } |
| |
| void marshal_VkGeometryNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkGeometryNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkGeometryTypeKHR*)&forMarshaling->geometryType, sizeof(VkGeometryTypeKHR)); |
| marshal_VkGeometryDataNV(vkStream, rootType, (VkGeometryDataNV*)(&forMarshaling->geometry)); |
| vkStream->write((VkGeometryFlagsKHR*)&forMarshaling->flags, sizeof(VkGeometryFlagsKHR)); |
| } |
| |
| void unmarshal_VkGeometryNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkGeometryNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkGeometryTypeKHR*)&forUnmarshaling->geometryType, sizeof(VkGeometryTypeKHR)); |
| unmarshal_VkGeometryDataNV(vkStream, rootType, (VkGeometryDataNV*)(&forUnmarshaling->geometry)); |
| vkStream->read((VkGeometryFlagsKHR*)&forUnmarshaling->flags, sizeof(VkGeometryFlagsKHR)); |
| } |
| |
| void marshal_VkAccelerationStructureInfoNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkAccelerationStructureTypeNV*)&forMarshaling->type, |
| sizeof(VkAccelerationStructureTypeNV)); |
| vkStream->write((VkBuildAccelerationStructureFlagsNV*)&forMarshaling->flags, |
| sizeof(VkBuildAccelerationStructureFlagsNV)); |
| vkStream->write((uint32_t*)&forMarshaling->instanceCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->geometryCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->geometryCount; ++i) { |
| marshal_VkGeometryNV(vkStream, rootType, |
| (const VkGeometryNV*)(forMarshaling->pGeometries + i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkAccelerationStructureInfoNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkAccelerationStructureTypeNV*)&forUnmarshaling->type, |
| sizeof(VkAccelerationStructureTypeNV)); |
| vkStream->read((VkBuildAccelerationStructureFlagsNV*)&forUnmarshaling->flags, |
| sizeof(VkBuildAccelerationStructureFlagsNV)); |
| vkStream->read((uint32_t*)&forUnmarshaling->instanceCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->geometryCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->geometryCount; ++i) { |
| unmarshal_VkGeometryNV(vkStream, rootType, |
| (VkGeometryNV*)(forUnmarshaling->pGeometries + i)); |
| } |
| } |
| } |
| |
| void marshal_VkAccelerationStructureCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)&forMarshaling->compactedSize, sizeof(VkDeviceSize)); |
| marshal_VkAccelerationStructureInfoNV(vkStream, rootType, |
| (VkAccelerationStructureInfoNV*)(&forMarshaling->info)); |
| } |
| |
| void unmarshal_VkAccelerationStructureCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->compactedSize, sizeof(VkDeviceSize)); |
| unmarshal_VkAccelerationStructureInfoNV( |
| vkStream, rootType, (VkAccelerationStructureInfoNV*)(&forUnmarshaling->info)); |
| } |
| |
| void marshal_VkBindAccelerationStructureMemoryInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindAccelerationStructureMemoryInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureNV_u64( |
| &forMarshaling->accelerationStructure, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_1, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->deviceIndexCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pDeviceIndices, |
| forMarshaling->deviceIndexCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkBindAccelerationStructureMemoryInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBindAccelerationStructureMemoryInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureNV( |
| &cgen_var_0, (VkAccelerationStructureNV*)&forUnmarshaling->accelerationStructure, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_1, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->memoryOffset, sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->deviceIndexCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pDeviceIndices, |
| forUnmarshaling->deviceIndexCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkWriteDescriptorSetAccelerationStructureNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkWriteDescriptorSetAccelerationStructureNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->accelerationStructureCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pAccelerationStructures; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pAccelerationStructures) { |
| if (forMarshaling->accelerationStructureCount) { |
| uint64_t* cgen_var_0_0; |
| vkStream->alloc((void**)&cgen_var_0_0, forMarshaling->accelerationStructureCount * 8); |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureNV_u64( |
| forMarshaling->pAccelerationStructures, cgen_var_0_0, |
| forMarshaling->accelerationStructureCount); |
| vkStream->write((uint64_t*)cgen_var_0_0, forMarshaling->accelerationStructureCount * 8); |
| } |
| } |
| } |
| |
| void unmarshal_VkWriteDescriptorSetAccelerationStructureNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkWriteDescriptorSetAccelerationStructureNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->accelerationStructureCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkAccelerationStructureNV* check_pAccelerationStructures; |
| check_pAccelerationStructures = |
| (const VkAccelerationStructureNV*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pAccelerationStructures) { |
| if (!(check_pAccelerationStructures)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pAccelerationStructures inconsistent between guest " |
| "and host\n"); |
| } |
| if (forUnmarshaling->accelerationStructureCount) { |
| uint64_t* cgen_var_0_0; |
| vkStream->alloc((void**)&cgen_var_0_0, forUnmarshaling->accelerationStructureCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0_0, |
| forUnmarshaling->accelerationStructureCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureNV( |
| cgen_var_0_0, (VkAccelerationStructureNV*)forUnmarshaling->pAccelerationStructures, |
| forUnmarshaling->accelerationStructureCount); |
| } |
| } |
| } |
| |
| void marshal_VkAccelerationStructureMemoryRequirementsInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureMemoryRequirementsInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkAccelerationStructureMemoryRequirementsTypeNV*)&forMarshaling->type, |
| sizeof(VkAccelerationStructureMemoryRequirementsTypeNV)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureNV_u64( |
| &forMarshaling->accelerationStructure, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkAccelerationStructureMemoryRequirementsInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureMemoryRequirementsInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkAccelerationStructureMemoryRequirementsTypeNV*)&forUnmarshaling->type, |
| sizeof(VkAccelerationStructureMemoryRequirementsTypeNV)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureNV( |
| &cgen_var_0, (VkAccelerationStructureNV*)&forUnmarshaling->accelerationStructure, 1); |
| } |
| |
| void marshal_VkPhysicalDeviceRayTracingPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceRayTracingPropertiesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->shaderGroupHandleSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxRecursionDepth, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxShaderGroupStride, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->shaderGroupBaseAlignment, sizeof(uint32_t)); |
| vkStream->write((uint64_t*)&forMarshaling->maxGeometryCount, sizeof(uint64_t)); |
| vkStream->write((uint64_t*)&forMarshaling->maxInstanceCount, sizeof(uint64_t)); |
| vkStream->write((uint64_t*)&forMarshaling->maxTriangleCount, sizeof(uint64_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetAccelerationStructures, |
| sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceRayTracingPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceRayTracingPropertiesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shaderGroupHandleSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxRecursionDepth, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxShaderGroupStride, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shaderGroupBaseAlignment, sizeof(uint32_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->maxGeometryCount, sizeof(uint64_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->maxInstanceCount, sizeof(uint64_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->maxTriangleCount, sizeof(uint64_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetAccelerationStructures, |
| sizeof(uint32_t)); |
| } |
| |
| void marshal_VkTransformMatrixKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkTransformMatrixKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((float*)forMarshaling->matrix, ((3) * (4)) * sizeof(float)); |
| } |
| |
| void unmarshal_VkTransformMatrixKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkTransformMatrixKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((float*)forUnmarshaling->matrix, ((3) * (4)) * sizeof(float)); |
| } |
| |
| void marshal_VkAabbPositionsKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAabbPositionsKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((float*)&forMarshaling->minX, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->minY, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->minZ, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxX, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxY, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->maxZ, sizeof(float)); |
| } |
| |
| void unmarshal_VkAabbPositionsKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAabbPositionsKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((float*)&forUnmarshaling->minX, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->minY, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->minZ, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxX, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxY, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->maxZ, sizeof(float)); |
| } |
| |
| void marshal_VkAccelerationStructureInstanceKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureInstanceKHR* forMarshaling) { |
| (void)rootType; |
| |
| typedef struct VkAccelerationStructureInstanceKHRWithoutBitFields { |
| VkTransformMatrixKHR transform; |
| uint32_t dwords[2]; |
| uint64_t accelerationStructureReference; |
| } VkAccelerationStructureInstanceKHRWithoutBitFields; |
| |
| const VkAccelerationStructureInstanceKHRWithoutBitFields* forMarshaling_new = |
| (const VkAccelerationStructureInstanceKHRWithoutBitFields*)(forMarshaling); |
| marshal_VkTransformMatrixKHR(vkStream, rootType, |
| (VkTransformMatrixKHR*)(&forMarshaling_new->transform)); |
| for (uint32_t i = 0; i < 2; i++) { |
| vkStream->write((uint32_t*)&(forMarshaling_new->dwords[i]), sizeof(uint32_t)); |
| } |
| vkStream->write((uint64_t*)&forMarshaling_new->accelerationStructureReference, |
| sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkAccelerationStructureInstanceKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureInstanceKHR* forUnmarshaling) { |
| (void)rootType; |
| |
| typedef struct VkAccelerationStructureInstanceKHRWithoutBitFields { |
| VkTransformMatrixKHR transform; |
| uint32_t dwords[2]; |
| uint64_t accelerationStructureReference; |
| } VkAccelerationStructureInstanceKHRWithoutBitFields; |
| |
| VkAccelerationStructureInstanceKHRWithoutBitFields* forUnmarshaling_new = |
| (VkAccelerationStructureInstanceKHRWithoutBitFields*)(forUnmarshaling); |
| unmarshal_VkTransformMatrixKHR(vkStream, rootType, |
| (VkTransformMatrixKHR*)(&forUnmarshaling_new->transform)); |
| for (uint32_t i = 0; i < 2; i++) { |
| vkStream->read((uint32_t*)&(forUnmarshaling_new->dwords[i]), sizeof(uint32_t)); |
| } |
| vkStream->read((uint64_t*)&forUnmarshaling_new->accelerationStructureReference, |
| sizeof(uint64_t)); |
| } |
| |
| #endif |
| #ifdef VK_NV_representative_fragment_test |
| void marshal_VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->representativeFragmentTest, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->representativeFragmentTest, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineRepresentativeFragmentTestStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineRepresentativeFragmentTestStateCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->representativeFragmentTestEnable, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPipelineRepresentativeFragmentTestStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineRepresentativeFragmentTestStateCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->representativeFragmentTestEnable, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_filter_cubic |
| void marshal_VkPhysicalDeviceImageViewImageFormatInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceImageViewImageFormatInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImageViewType*)&forMarshaling->imageViewType, sizeof(VkImageViewType)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceImageViewImageFormatInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceImageViewImageFormatInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImageViewType*)&forUnmarshaling->imageViewType, sizeof(VkImageViewType)); |
| } |
| |
| void marshal_VkFilterCubicImageViewImageFormatPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFilterCubicImageViewImageFormatPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->filterCubic, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->filterCubicMinmax, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkFilterCubicImageViewImageFormatPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFilterCubicImageViewImageFormatPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->filterCubic, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->filterCubicMinmax, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_QCOM_render_pass_shader_resolve |
| #endif |
| #ifdef VK_EXT_global_priority |
| void marshal_VkDeviceQueueGlobalPriorityCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceQueueGlobalPriorityCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkQueueGlobalPriorityEXT*)&forMarshaling->globalPriority, |
| sizeof(VkQueueGlobalPriorityEXT)); |
| } |
| |
| void unmarshal_VkDeviceQueueGlobalPriorityCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceQueueGlobalPriorityCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkQueueGlobalPriorityEXT*)&forUnmarshaling->globalPriority, |
| sizeof(VkQueueGlobalPriorityEXT)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_external_memory_host |
| void marshal_VkImportMemoryHostPointerInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportMemoryHostPointerInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pHostPointer; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pHostPointer) { |
| vkStream->write((void*)forMarshaling->pHostPointer, sizeof(uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkImportMemoryHostPointerInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkImportMemoryHostPointerInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| // WARNING PTR CHECK |
| void* check_pHostPointer; |
| check_pHostPointer = (void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pHostPointer) { |
| if (!(check_pHostPointer)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pHostPointer inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pHostPointer, sizeof(uint8_t)); |
| } |
| } |
| |
| void marshal_VkMemoryHostPointerPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryHostPointerPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkMemoryHostPointerPropertiesEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkMemoryHostPointerPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceExternalMemoryHostPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceExternalMemoryHostPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)&forMarshaling->minImportedHostPointerAlignment, |
| sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceExternalMemoryHostPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceExternalMemoryHostPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->minImportedHostPointerAlignment, |
| sizeof(VkDeviceSize)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_buffer_marker |
| #endif |
| #ifdef VK_AMD_pipeline_compiler_control |
| void marshal_VkPipelineCompilerControlCreateInfoAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineCompilerControlCreateInfoAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineCompilerControlFlagsAMD*)&forMarshaling->compilerControlFlags, |
| sizeof(VkPipelineCompilerControlFlagsAMD)); |
| } |
| |
| void unmarshal_VkPipelineCompilerControlCreateInfoAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineCompilerControlCreateInfoAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineCompilerControlFlagsAMD*)&forUnmarshaling->compilerControlFlags, |
| sizeof(VkPipelineCompilerControlFlagsAMD)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_calibrated_timestamps |
| void marshal_VkCalibratedTimestampInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCalibratedTimestampInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkTimeDomainEXT*)&forMarshaling->timeDomain, sizeof(VkTimeDomainEXT)); |
| } |
| |
| void unmarshal_VkCalibratedTimestampInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCalibratedTimestampInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkTimeDomainEXT*)&forUnmarshaling->timeDomain, sizeof(VkTimeDomainEXT)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_core_properties |
| void marshal_VkPhysicalDeviceShaderCorePropertiesAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderCorePropertiesAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->shaderEngineCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->shaderArraysPerEngineCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->computeUnitsPerShaderArray, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->simdPerComputeUnit, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->wavefrontsPerSimd, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->wavefrontSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->sgprsPerSimd, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->minSgprAllocation, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxSgprAllocation, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->sgprAllocationGranularity, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->vgprsPerSimd, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->minVgprAllocation, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxVgprAllocation, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->vgprAllocationGranularity, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderCorePropertiesAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderCorePropertiesAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shaderEngineCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shaderArraysPerEngineCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->computeUnitsPerShaderArray, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->simdPerComputeUnit, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->wavefrontsPerSimd, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->wavefrontSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->sgprsPerSimd, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minSgprAllocation, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSgprAllocation, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->sgprAllocationGranularity, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->vgprsPerSimd, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minVgprAllocation, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxVgprAllocation, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->vgprAllocationGranularity, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_video_decode_h265 |
| void marshal_VkVideoDecodeH265ProfileEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH265ProfileEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((StdVideoH265ProfileIdc*)&forMarshaling->stdProfileIdc, |
| sizeof(StdVideoH265ProfileIdc)); |
| } |
| |
| void unmarshal_VkVideoDecodeH265ProfileEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoDecodeH265ProfileEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((StdVideoH265ProfileIdc*)&forUnmarshaling->stdProfileIdc, |
| sizeof(StdVideoH265ProfileIdc)); |
| } |
| |
| void marshal_VkVideoDecodeH265CapabilitiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH265CapabilitiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxLevel, sizeof(uint32_t)); |
| marshal_VkExtensionProperties(vkStream, rootType, |
| (VkExtensionProperties*)(&forMarshaling->stdExtensionVersion)); |
| } |
| |
| void unmarshal_VkVideoDecodeH265CapabilitiesEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoDecodeH265CapabilitiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxLevel, sizeof(uint32_t)); |
| unmarshal_VkExtensionProperties( |
| vkStream, rootType, (VkExtensionProperties*)(&forUnmarshaling->stdExtensionVersion)); |
| } |
| |
| void marshal_VkVideoDecodeH265SessionCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH265SessionCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkVideoDecodeH265CreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkVideoDecodeH265CreateFlagsEXT)); |
| marshal_VkExtensionProperties( |
| vkStream, rootType, (const VkExtensionProperties*)(forMarshaling->pStdExtensionVersion)); |
| } |
| |
| void unmarshal_VkVideoDecodeH265SessionCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoDecodeH265SessionCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkVideoDecodeH265CreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkVideoDecodeH265CreateFlagsEXT)); |
| unmarshal_VkExtensionProperties( |
| vkStream, rootType, (VkExtensionProperties*)(forUnmarshaling->pStdExtensionVersion)); |
| } |
| |
| void marshal_VkVideoDecodeH265SessionParametersAddInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH265SessionParametersAddInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->spsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pSpsStd; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pSpsStd) { |
| vkStream->write( |
| (const StdVideoH265SequenceParameterSet*)forMarshaling->pSpsStd, |
| forMarshaling->spsStdCount * sizeof(const StdVideoH265SequenceParameterSet)); |
| } |
| vkStream->write((uint32_t*)&forMarshaling->ppsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pPpsStd; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pPpsStd) { |
| vkStream->write((const StdVideoH265PictureParameterSet*)forMarshaling->pPpsStd, |
| forMarshaling->ppsStdCount * sizeof(const StdVideoH265PictureParameterSet)); |
| } |
| } |
| |
| void unmarshal_VkVideoDecodeH265SessionParametersAddInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoDecodeH265SessionParametersAddInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->spsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const StdVideoH265SequenceParameterSet* check_pSpsStd; |
| check_pSpsStd = (const StdVideoH265SequenceParameterSet*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pSpsStd) { |
| if (!(check_pSpsStd)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pSpsStd inconsistent between guest and host\n"); |
| } |
| vkStream->read( |
| (StdVideoH265SequenceParameterSet*)forUnmarshaling->pSpsStd, |
| forUnmarshaling->spsStdCount * sizeof(const StdVideoH265SequenceParameterSet)); |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->ppsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const StdVideoH265PictureParameterSet* check_pPpsStd; |
| check_pPpsStd = (const StdVideoH265PictureParameterSet*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pPpsStd) { |
| if (!(check_pPpsStd)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pPpsStd inconsistent between guest and host\n"); |
| } |
| vkStream->read( |
| (StdVideoH265PictureParameterSet*)forUnmarshaling->pPpsStd, |
| forUnmarshaling->ppsStdCount * sizeof(const StdVideoH265PictureParameterSet)); |
| } |
| } |
| |
| void marshal_VkVideoDecodeH265SessionParametersCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH265SessionParametersCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxSpsStdCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPpsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pParametersAddInfo; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pParametersAddInfo) { |
| marshal_VkVideoDecodeH265SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| (const VkVideoDecodeH265SessionParametersAddInfoEXT*)(forMarshaling |
| ->pParametersAddInfo)); |
| } |
| } |
| |
| void unmarshal_VkVideoDecodeH265SessionParametersCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVideoDecodeH265SessionParametersCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSpsStdCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPpsStdCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkVideoDecodeH265SessionParametersAddInfoEXT* check_pParametersAddInfo; |
| check_pParametersAddInfo = |
| (const VkVideoDecodeH265SessionParametersAddInfoEXT*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pParametersAddInfo) { |
| if (!(check_pParametersAddInfo)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pParametersAddInfo inconsistent between guest and host\n"); |
| } |
| unmarshal_VkVideoDecodeH265SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| (VkVideoDecodeH265SessionParametersAddInfoEXT*)(forUnmarshaling->pParametersAddInfo)); |
| } |
| } |
| |
| void marshal_VkVideoDecodeH265PictureInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH265PictureInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((StdVideoDecodeH265PictureInfo*)forMarshaling->pStdPictureInfo, |
| sizeof(StdVideoDecodeH265PictureInfo)); |
| vkStream->write((uint32_t*)&forMarshaling->slicesCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pSlicesDataOffsets, |
| forMarshaling->slicesCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkVideoDecodeH265PictureInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoDecodeH265PictureInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((StdVideoDecodeH265PictureInfo*)forUnmarshaling->pStdPictureInfo, |
| sizeof(StdVideoDecodeH265PictureInfo)); |
| vkStream->read((uint32_t*)&forUnmarshaling->slicesCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pSlicesDataOffsets, |
| forUnmarshaling->slicesCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkVideoDecodeH265DpbSlotInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVideoDecodeH265DpbSlotInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((const StdVideoDecodeH265ReferenceInfo*)forMarshaling->pStdReferenceInfo, |
| sizeof(const StdVideoDecodeH265ReferenceInfo)); |
| } |
| |
| void unmarshal_VkVideoDecodeH265DpbSlotInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkVideoDecodeH265DpbSlotInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((StdVideoDecodeH265ReferenceInfo*)forUnmarshaling->pStdReferenceInfo, |
| sizeof(const StdVideoDecodeH265ReferenceInfo)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_memory_overallocation_behavior |
| void marshal_VkDeviceMemoryOverallocationCreateInfoAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceMemoryOverallocationCreateInfoAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkMemoryOverallocationBehaviorAMD*)&forMarshaling->overallocationBehavior, |
| sizeof(VkMemoryOverallocationBehaviorAMD)); |
| } |
| |
| void unmarshal_VkDeviceMemoryOverallocationCreateInfoAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceMemoryOverallocationCreateInfoAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkMemoryOverallocationBehaviorAMD*)&forUnmarshaling->overallocationBehavior, |
| sizeof(VkMemoryOverallocationBehaviorAMD)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_vertex_attribute_divisor |
| void marshal_VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxVertexAttribDivisor, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxVertexAttribDivisor, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkVertexInputBindingDivisorDescriptionEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVertexInputBindingDivisorDescriptionEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->binding, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->divisor, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkVertexInputBindingDivisorDescriptionEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVertexInputBindingDivisorDescriptionEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->binding, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->divisor, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPipelineVertexInputDivisorStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineVertexInputDivisorStateCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->vertexBindingDivisorCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->vertexBindingDivisorCount; ++i) { |
| marshal_VkVertexInputBindingDivisorDescriptionEXT( |
| vkStream, rootType, |
| (const VkVertexInputBindingDivisorDescriptionEXT*)(forMarshaling |
| ->pVertexBindingDivisors + |
| i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineVertexInputDivisorStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineVertexInputDivisorStateCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->vertexBindingDivisorCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->vertexBindingDivisorCount; ++i) { |
| unmarshal_VkVertexInputBindingDivisorDescriptionEXT( |
| vkStream, rootType, |
| (VkVertexInputBindingDivisorDescriptionEXT*)(forUnmarshaling |
| ->pVertexBindingDivisors + |
| i)); |
| } |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->vertexAttributeInstanceRateDivisor, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->vertexAttributeInstanceRateZeroDivisor, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vertexAttributeInstanceRateDivisor, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vertexAttributeInstanceRateZeroDivisor, |
| sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_GGP_frame_token |
| void marshal_VkPresentFrameTokenGGP(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPresentFrameTokenGGP* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((GgpFrameToken*)&forMarshaling->frameToken, sizeof(GgpFrameToken)); |
| } |
| |
| void unmarshal_VkPresentFrameTokenGGP(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPresentFrameTokenGGP* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((GgpFrameToken*)&forUnmarshaling->frameToken, sizeof(GgpFrameToken)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_pipeline_creation_feedback |
| void marshal_VkPipelineCreationFeedbackEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineCreationFeedbackEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkPipelineCreationFeedbackFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkPipelineCreationFeedbackFlagsEXT)); |
| vkStream->write((uint64_t*)&forMarshaling->duration, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkPipelineCreationFeedbackEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineCreationFeedbackEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkPipelineCreationFeedbackFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkPipelineCreationFeedbackFlagsEXT)); |
| vkStream->read((uint64_t*)&forUnmarshaling->duration, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkPipelineCreationFeedbackCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineCreationFeedbackCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkPipelineCreationFeedbackEXT( |
| vkStream, rootType, |
| (VkPipelineCreationFeedbackEXT*)(forMarshaling->pPipelineCreationFeedback)); |
| vkStream->write((uint32_t*)&forMarshaling->pipelineStageCreationFeedbackCount, |
| sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->pipelineStageCreationFeedbackCount; ++i) { |
| marshal_VkPipelineCreationFeedbackEXT( |
| vkStream, rootType, |
| (VkPipelineCreationFeedbackEXT*)(forMarshaling->pPipelineStageCreationFeedbacks + |
| i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineCreationFeedbackCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineCreationFeedbackCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkPipelineCreationFeedbackEXT( |
| vkStream, rootType, |
| (VkPipelineCreationFeedbackEXT*)(forUnmarshaling->pPipelineCreationFeedback)); |
| vkStream->read((uint32_t*)&forUnmarshaling->pipelineStageCreationFeedbackCount, |
| sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->pipelineStageCreationFeedbackCount; |
| ++i) { |
| unmarshal_VkPipelineCreationFeedbackEXT( |
| vkStream, rootType, |
| (VkPipelineCreationFeedbackEXT*)(forUnmarshaling->pPipelineStageCreationFeedbacks + |
| i)); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_shader_subgroup_partitioned |
| #endif |
| #ifdef VK_NV_compute_shader_derivatives |
| void marshal_VkPhysicalDeviceComputeShaderDerivativesFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceComputeShaderDerivativesFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->computeDerivativeGroupQuads, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->computeDerivativeGroupLinear, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceComputeShaderDerivativesFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceComputeShaderDerivativesFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->computeDerivativeGroupQuads, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->computeDerivativeGroupLinear, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_NV_mesh_shader |
| void marshal_VkPhysicalDeviceMeshShaderFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMeshShaderFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->taskShader, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->meshShader, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMeshShaderFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMeshShaderFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->taskShader, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->meshShader, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceMeshShaderPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMeshShaderPropertiesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxDrawMeshTasksCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTaskWorkGroupInvocations, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)forMarshaling->maxTaskWorkGroupSize, 3 * sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTaskTotalMemorySize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxTaskOutputCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxMeshWorkGroupInvocations, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)forMarshaling->maxMeshWorkGroupSize, 3 * sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxMeshTotalMemorySize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxMeshOutputVertices, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxMeshOutputPrimitives, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxMeshMultiviewViewCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->meshOutputPerVertexGranularity, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->meshOutputPerPrimitiveGranularity, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMeshShaderPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMeshShaderPropertiesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDrawMeshTasksCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTaskWorkGroupInvocations, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->maxTaskWorkGroupSize, 3 * sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTaskTotalMemorySize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxTaskOutputCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMeshWorkGroupInvocations, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->maxMeshWorkGroupSize, 3 * sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMeshTotalMemorySize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMeshOutputVertices, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMeshOutputPrimitives, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMeshMultiviewViewCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->meshOutputPerVertexGranularity, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->meshOutputPerPrimitiveGranularity, |
| sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDrawMeshTasksIndirectCommandNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDrawMeshTasksIndirectCommandNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->taskCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->firstTask, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDrawMeshTasksIndirectCommandNV(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkDrawMeshTasksIndirectCommandNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->taskCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->firstTask, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_NV_fragment_shader_barycentric |
| void marshal_VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShaderBarycentric, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShaderBarycentric, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_NV_shader_image_footprint |
| void marshal_VkPhysicalDeviceShaderImageFootprintFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderImageFootprintFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->imageFootprint, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderImageFootprintFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderImageFootprintFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->imageFootprint, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_NV_scissor_exclusive |
| void marshal_VkPipelineViewportExclusiveScissorStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineViewportExclusiveScissorStateCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->exclusiveScissorCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pExclusiveScissors; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pExclusiveScissors) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->exclusiveScissorCount; ++i) { |
| marshal_VkRect2D(vkStream, rootType, |
| (const VkRect2D*)(forMarshaling->pExclusiveScissors + i)); |
| } |
| } |
| } |
| } |
| |
| void unmarshal_VkPipelineViewportExclusiveScissorStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineViewportExclusiveScissorStateCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->exclusiveScissorCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkRect2D* check_pExclusiveScissors; |
| check_pExclusiveScissors = (const VkRect2D*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pExclusiveScissors) { |
| if (!(check_pExclusiveScissors)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pExclusiveScissors inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->exclusiveScissorCount; ++i) { |
| unmarshal_VkRect2D(vkStream, rootType, |
| (VkRect2D*)(forUnmarshaling->pExclusiveScissors + i)); |
| } |
| } |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceExclusiveScissorFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceExclusiveScissorFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->exclusiveScissor, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceExclusiveScissorFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceExclusiveScissorFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->exclusiveScissor, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_NV_device_diagnostic_checkpoints |
| void marshal_VkQueueFamilyCheckpointPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkQueueFamilyCheckpointPropertiesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineStageFlags*)&forMarshaling->checkpointExecutionStageMask, |
| sizeof(VkPipelineStageFlags)); |
| } |
| |
| void unmarshal_VkQueueFamilyCheckpointPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkQueueFamilyCheckpointPropertiesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineStageFlags*)&forUnmarshaling->checkpointExecutionStageMask, |
| sizeof(VkPipelineStageFlags)); |
| } |
| |
| void marshal_VkCheckpointDataNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCheckpointDataNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineStageFlagBits*)&forMarshaling->stage, |
| sizeof(VkPipelineStageFlagBits)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pCheckpointMarker; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pCheckpointMarker) { |
| vkStream->write((void*)forMarshaling->pCheckpointMarker, sizeof(uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkCheckpointDataNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCheckpointDataNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineStageFlagBits*)&forUnmarshaling->stage, |
| sizeof(VkPipelineStageFlagBits)); |
| // WARNING PTR CHECK |
| void* check_pCheckpointMarker; |
| check_pCheckpointMarker = (void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pCheckpointMarker) { |
| if (!(check_pCheckpointMarker)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pCheckpointMarker inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pCheckpointMarker, sizeof(uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_INTEL_shader_integer_functions2 |
| void marshal_VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderIntegerFunctions2, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderIntegerFunctions2, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_INTEL_performance_query |
| void marshal_VkPerformanceValueDataINTEL(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPerformanceValueDataINTEL* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->value32, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPerformanceValueDataINTEL(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPerformanceValueDataINTEL* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->value32, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPerformanceValueINTEL(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPerformanceValueINTEL* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkPerformanceValueTypeINTEL*)&forMarshaling->type, |
| sizeof(VkPerformanceValueTypeINTEL)); |
| marshal_VkPerformanceValueDataINTEL(vkStream, rootType, |
| (VkPerformanceValueDataINTEL*)(&forMarshaling->data)); |
| } |
| |
| void unmarshal_VkPerformanceValueINTEL(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPerformanceValueINTEL* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkPerformanceValueTypeINTEL*)&forUnmarshaling->type, |
| sizeof(VkPerformanceValueTypeINTEL)); |
| unmarshal_VkPerformanceValueDataINTEL(vkStream, rootType, |
| (VkPerformanceValueDataINTEL*)(&forUnmarshaling->data)); |
| } |
| |
| void marshal_VkInitializePerformanceApiInfoINTEL( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkInitializePerformanceApiInfoINTEL* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pUserData; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pUserData) { |
| vkStream->write((void*)forMarshaling->pUserData, sizeof(uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkInitializePerformanceApiInfoINTEL( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkInitializePerformanceApiInfoINTEL* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| // WARNING PTR CHECK |
| void* check_pUserData; |
| check_pUserData = (void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pUserData) { |
| if (!(check_pUserData)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pUserData inconsistent between guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pUserData, sizeof(uint8_t)); |
| } |
| } |
| |
| void marshal_VkQueryPoolPerformanceQueryCreateInfoINTEL( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkQueryPoolPerformanceQueryCreateInfoINTEL* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkQueryPoolSamplingModeINTEL*)&forMarshaling->performanceCountersSampling, |
| sizeof(VkQueryPoolSamplingModeINTEL)); |
| } |
| |
| void unmarshal_VkQueryPoolPerformanceQueryCreateInfoINTEL( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkQueryPoolPerformanceQueryCreateInfoINTEL* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkQueryPoolSamplingModeINTEL*)&forUnmarshaling->performanceCountersSampling, |
| sizeof(VkQueryPoolSamplingModeINTEL)); |
| } |
| |
| void marshal_VkPerformanceMarkerInfoINTEL(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPerformanceMarkerInfoINTEL* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint64_t*)&forMarshaling->marker, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkPerformanceMarkerInfoINTEL(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPerformanceMarkerInfoINTEL* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint64_t*)&forUnmarshaling->marker, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkPerformanceStreamMarkerInfoINTEL( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPerformanceStreamMarkerInfoINTEL* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->marker, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPerformanceStreamMarkerInfoINTEL( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPerformanceStreamMarkerInfoINTEL* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->marker, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPerformanceOverrideInfoINTEL(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPerformanceOverrideInfoINTEL* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPerformanceOverrideTypeINTEL*)&forMarshaling->type, |
| sizeof(VkPerformanceOverrideTypeINTEL)); |
| vkStream->write((VkBool32*)&forMarshaling->enable, sizeof(VkBool32)); |
| vkStream->write((uint64_t*)&forMarshaling->parameter, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkPerformanceOverrideInfoINTEL(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPerformanceOverrideInfoINTEL* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPerformanceOverrideTypeINTEL*)&forUnmarshaling->type, |
| sizeof(VkPerformanceOverrideTypeINTEL)); |
| vkStream->read((VkBool32*)&forUnmarshaling->enable, sizeof(VkBool32)); |
| vkStream->read((uint64_t*)&forUnmarshaling->parameter, sizeof(uint64_t)); |
| } |
| |
| void marshal_VkPerformanceConfigurationAcquireInfoINTEL( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPerformanceConfigurationAcquireInfoINTEL* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPerformanceConfigurationTypeINTEL*)&forMarshaling->type, |
| sizeof(VkPerformanceConfigurationTypeINTEL)); |
| } |
| |
| void unmarshal_VkPerformanceConfigurationAcquireInfoINTEL( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPerformanceConfigurationAcquireInfoINTEL* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPerformanceConfigurationTypeINTEL*)&forUnmarshaling->type, |
| sizeof(VkPerformanceConfigurationTypeINTEL)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_pci_bus_info |
| void marshal_VkPhysicalDevicePCIBusInfoPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePCIBusInfoPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->pciDomain, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->pciBus, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->pciDevice, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->pciFunction, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePCIBusInfoPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePCIBusInfoPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->pciDomain, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->pciBus, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->pciDevice, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->pciFunction, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_display_native_hdr |
| void marshal_VkDisplayNativeHdrSurfaceCapabilitiesAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDisplayNativeHdrSurfaceCapabilitiesAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->localDimmingSupport, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkDisplayNativeHdrSurfaceCapabilitiesAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDisplayNativeHdrSurfaceCapabilitiesAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->localDimmingSupport, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkSwapchainDisplayNativeHdrCreateInfoAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSwapchainDisplayNativeHdrCreateInfoAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->localDimmingEnable, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkSwapchainDisplayNativeHdrCreateInfoAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSwapchainDisplayNativeHdrCreateInfoAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->localDimmingEnable, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_FUCHSIA_imagepipe_surface |
| void marshal_VkImagePipeSurfaceCreateInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImagePipeSurfaceCreateInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkImagePipeSurfaceCreateFlagsFUCHSIA*)&forMarshaling->flags, |
| sizeof(VkImagePipeSurfaceCreateFlagsFUCHSIA)); |
| vkStream->write((zx_handle_t*)&forMarshaling->imagePipeHandle, sizeof(zx_handle_t)); |
| } |
| |
| void unmarshal_VkImagePipeSurfaceCreateInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImagePipeSurfaceCreateInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkImagePipeSurfaceCreateFlagsFUCHSIA*)&forUnmarshaling->flags, |
| sizeof(VkImagePipeSurfaceCreateFlagsFUCHSIA)); |
| vkStream->read((zx_handle_t*)&forUnmarshaling->imagePipeHandle, sizeof(zx_handle_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_metal_surface |
| void marshal_VkMetalSurfaceCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMetalSurfaceCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| |
| // This struct should never be marshaled / unmarshaled. |
| __builtin_trap(); |
| } |
| |
| void unmarshal_VkMetalSurfaceCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMetalSurfaceCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| |
| // This struct should never be marshaled / unmarshaled. |
| __builtin_trap(); |
| } |
| |
| #endif |
| #ifdef VK_EXT_fragment_density_map |
| void marshal_VkPhysicalDeviceFragmentDensityMapFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentDensityMapFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentDensityMap, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentDensityMapDynamic, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentDensityMapNonSubsampledImages, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentDensityMapFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentDensityMapFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| forUnmarshaling->sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_FEATURES_EXT; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentDensityMap, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentDensityMapDynamic, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentDensityMapNonSubsampledImages, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceFragmentDensityMapPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentDensityMapPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forMarshaling->minFragmentDensityTexelSize)); |
| marshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forMarshaling->maxFragmentDensityTexelSize)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentDensityInvocations, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentDensityMapPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentDensityMapPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| forUnmarshaling->sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_PROPERTIES_EXT; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->minFragmentDensityTexelSize)); |
| unmarshal_VkExtent2D(vkStream, rootType, |
| (VkExtent2D*)(&forUnmarshaling->maxFragmentDensityTexelSize)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentDensityInvocations, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkRenderPassFragmentDensityMapCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderPassFragmentDensityMapCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkAttachmentReference( |
| vkStream, rootType, (VkAttachmentReference*)(&forMarshaling->fragmentDensityMapAttachment)); |
| } |
| |
| void unmarshal_VkRenderPassFragmentDensityMapCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderPassFragmentDensityMapCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| forUnmarshaling->sType = VK_STRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkAttachmentReference( |
| vkStream, rootType, |
| (VkAttachmentReference*)(&forUnmarshaling->fragmentDensityMapAttachment)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_scalar_block_layout |
| #endif |
| #ifdef VK_GOOGLE_hlsl_functionality1 |
| #endif |
| #ifdef VK_GOOGLE_decorate_string |
| #endif |
| #ifdef VK_EXT_subgroup_size_control |
| void marshal_VkPhysicalDeviceSubgroupSizeControlFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSubgroupSizeControlFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->subgroupSizeControl, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->computeFullSubgroups, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSubgroupSizeControlFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSubgroupSizeControlFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->subgroupSizeControl, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->computeFullSubgroups, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceSubgroupSizeControlPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSubgroupSizeControlPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->minSubgroupSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxSubgroupSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxComputeWorkgroupSubgroups, sizeof(uint32_t)); |
| vkStream->write((VkShaderStageFlags*)&forMarshaling->requiredSubgroupSizeStages, |
| sizeof(VkShaderStageFlags)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSubgroupSizeControlPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSubgroupSizeControlPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minSubgroupSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSubgroupSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxComputeWorkgroupSubgroups, sizeof(uint32_t)); |
| vkStream->read((VkShaderStageFlags*)&forUnmarshaling->requiredSubgroupSizeStages, |
| sizeof(VkShaderStageFlags)); |
| } |
| |
| void marshal_VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->requiredSubgroupSize, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->requiredSubgroupSize, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_core_properties2 |
| void marshal_VkPhysicalDeviceShaderCoreProperties2AMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderCoreProperties2AMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkShaderCorePropertiesFlagsAMD*)&forMarshaling->shaderCoreFeatures, |
| sizeof(VkShaderCorePropertiesFlagsAMD)); |
| vkStream->write((uint32_t*)&forMarshaling->activeComputeUnitCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderCoreProperties2AMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderCoreProperties2AMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkShaderCorePropertiesFlagsAMD*)&forUnmarshaling->shaderCoreFeatures, |
| sizeof(VkShaderCorePropertiesFlagsAMD)); |
| vkStream->read((uint32_t*)&forUnmarshaling->activeComputeUnitCount, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_device_coherent_memory |
| void marshal_VkPhysicalDeviceCoherentMemoryFeaturesAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceCoherentMemoryFeaturesAMD* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->deviceCoherentMemory, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceCoherentMemoryFeaturesAMD( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceCoherentMemoryFeaturesAMD* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->deviceCoherentMemory, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_image_atomic_int64 |
| void marshal_VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderImageInt64Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseImageInt64Atomics, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderImageInt64Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseImageInt64Atomics, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_memory_budget |
| void marshal_VkPhysicalDeviceMemoryBudgetPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMemoryBudgetPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)forMarshaling->heapBudget, |
| VK_MAX_MEMORY_HEAPS * sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)forMarshaling->heapUsage, |
| VK_MAX_MEMORY_HEAPS * sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMemoryBudgetPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMemoryBudgetPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)forUnmarshaling->heapBudget, |
| VK_MAX_MEMORY_HEAPS * sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)forUnmarshaling->heapUsage, |
| VK_MAX_MEMORY_HEAPS * sizeof(VkDeviceSize)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_memory_priority |
| void marshal_VkPhysicalDeviceMemoryPriorityFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMemoryPriorityFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->memoryPriority, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMemoryPriorityFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMemoryPriorityFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->memoryPriority, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkMemoryPriorityAllocateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryPriorityAllocateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((float*)&forMarshaling->priority, sizeof(float)); |
| } |
| |
| void unmarshal_VkMemoryPriorityAllocateInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkMemoryPriorityAllocateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((float*)&forUnmarshaling->priority, sizeof(float)); |
| } |
| |
| #endif |
| #ifdef VK_NV_dedicated_allocation_image_aliasing |
| void marshal_VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->dedicatedAllocationImageAliasing, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->dedicatedAllocationImageAliasing, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_buffer_device_address |
| void marshal_VkPhysicalDeviceBufferDeviceAddressFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceBufferDeviceAddressFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->bufferDeviceAddress, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->bufferDeviceAddressCaptureReplay, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->bufferDeviceAddressMultiDevice, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceBufferDeviceAddressFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceBufferDeviceAddressFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->bufferDeviceAddress, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->bufferDeviceAddressCaptureReplay, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->bufferDeviceAddressMultiDevice, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkBufferDeviceAddressCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferDeviceAddressCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceAddress*)&forMarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| } |
| |
| void unmarshal_VkBufferDeviceAddressCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferDeviceAddressCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceAddress*)&forUnmarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_tooling_info |
| void marshal_VkPhysicalDeviceToolPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceToolPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((char*)forMarshaling->name, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| vkStream->write((char*)forMarshaling->version, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| vkStream->write((VkToolPurposeFlagsEXT*)&forMarshaling->purposes, |
| sizeof(VkToolPurposeFlagsEXT)); |
| vkStream->write((char*)forMarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->write((char*)forMarshaling->layer, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceToolPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceToolPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((char*)forUnmarshaling->name, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| vkStream->read((char*)forUnmarshaling->version, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| vkStream->read((VkToolPurposeFlagsEXT*)&forUnmarshaling->purposes, |
| sizeof(VkToolPurposeFlagsEXT)); |
| vkStream->read((char*)forUnmarshaling->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| vkStream->read((char*)forUnmarshaling->layer, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_separate_stencil_usage |
| #endif |
| #ifdef VK_EXT_validation_features |
| void marshal_VkValidationFeaturesEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkValidationFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->enabledValidationFeatureCount, sizeof(uint32_t)); |
| vkStream->write( |
| (const VkValidationFeatureEnableEXT*)forMarshaling->pEnabledValidationFeatures, |
| forMarshaling->enabledValidationFeatureCount * sizeof(const VkValidationFeatureEnableEXT)); |
| vkStream->write((uint32_t*)&forMarshaling->disabledValidationFeatureCount, sizeof(uint32_t)); |
| vkStream->write( |
| (const VkValidationFeatureDisableEXT*)forMarshaling->pDisabledValidationFeatures, |
| forMarshaling->disabledValidationFeatureCount * |
| sizeof(const VkValidationFeatureDisableEXT)); |
| } |
| |
| void unmarshal_VkValidationFeaturesEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkValidationFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->enabledValidationFeatureCount, sizeof(uint32_t)); |
| vkStream->read((VkValidationFeatureEnableEXT*)forUnmarshaling->pEnabledValidationFeatures, |
| forUnmarshaling->enabledValidationFeatureCount * |
| sizeof(const VkValidationFeatureEnableEXT)); |
| vkStream->read((uint32_t*)&forUnmarshaling->disabledValidationFeatureCount, sizeof(uint32_t)); |
| vkStream->read((VkValidationFeatureDisableEXT*)forUnmarshaling->pDisabledValidationFeatures, |
| forUnmarshaling->disabledValidationFeatureCount * |
| sizeof(const VkValidationFeatureDisableEXT)); |
| } |
| |
| #endif |
| #ifdef VK_NV_cooperative_matrix |
| void marshal_VkCooperativeMatrixPropertiesNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCooperativeMatrixPropertiesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->MSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->NSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->KSize, sizeof(uint32_t)); |
| vkStream->write((VkComponentTypeNV*)&forMarshaling->AType, sizeof(VkComponentTypeNV)); |
| vkStream->write((VkComponentTypeNV*)&forMarshaling->BType, sizeof(VkComponentTypeNV)); |
| vkStream->write((VkComponentTypeNV*)&forMarshaling->CType, sizeof(VkComponentTypeNV)); |
| vkStream->write((VkComponentTypeNV*)&forMarshaling->DType, sizeof(VkComponentTypeNV)); |
| vkStream->write((VkScopeNV*)&forMarshaling->scope, sizeof(VkScopeNV)); |
| } |
| |
| void unmarshal_VkCooperativeMatrixPropertiesNV(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkCooperativeMatrixPropertiesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->MSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->NSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->KSize, sizeof(uint32_t)); |
| vkStream->read((VkComponentTypeNV*)&forUnmarshaling->AType, sizeof(VkComponentTypeNV)); |
| vkStream->read((VkComponentTypeNV*)&forUnmarshaling->BType, sizeof(VkComponentTypeNV)); |
| vkStream->read((VkComponentTypeNV*)&forUnmarshaling->CType, sizeof(VkComponentTypeNV)); |
| vkStream->read((VkComponentTypeNV*)&forUnmarshaling->DType, sizeof(VkComponentTypeNV)); |
| vkStream->read((VkScopeNV*)&forUnmarshaling->scope, sizeof(VkScopeNV)); |
| } |
| |
| void marshal_VkPhysicalDeviceCooperativeMatrixFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceCooperativeMatrixFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->cooperativeMatrix, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->cooperativeMatrixRobustBufferAccess, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceCooperativeMatrixFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceCooperativeMatrixFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->cooperativeMatrix, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->cooperativeMatrixRobustBufferAccess, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceCooperativeMatrixPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceCooperativeMatrixPropertiesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkShaderStageFlags*)&forMarshaling->cooperativeMatrixSupportedStages, |
| sizeof(VkShaderStageFlags)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceCooperativeMatrixPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceCooperativeMatrixPropertiesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkShaderStageFlags*)&forUnmarshaling->cooperativeMatrixSupportedStages, |
| sizeof(VkShaderStageFlags)); |
| } |
| |
| #endif |
| #ifdef VK_NV_coverage_reduction_mode |
| void marshal_VkPhysicalDeviceCoverageReductionModeFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceCoverageReductionModeFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->coverageReductionMode, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceCoverageReductionModeFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceCoverageReductionModeFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->coverageReductionMode, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineCoverageReductionStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineCoverageReductionStateCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineCoverageReductionStateCreateFlagsNV*)&forMarshaling->flags, |
| sizeof(VkPipelineCoverageReductionStateCreateFlagsNV)); |
| vkStream->write((VkCoverageReductionModeNV*)&forMarshaling->coverageReductionMode, |
| sizeof(VkCoverageReductionModeNV)); |
| } |
| |
| void unmarshal_VkPipelineCoverageReductionStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineCoverageReductionStateCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineCoverageReductionStateCreateFlagsNV*)&forUnmarshaling->flags, |
| sizeof(VkPipelineCoverageReductionStateCreateFlagsNV)); |
| vkStream->read((VkCoverageReductionModeNV*)&forUnmarshaling->coverageReductionMode, |
| sizeof(VkCoverageReductionModeNV)); |
| } |
| |
| void marshal_VkFramebufferMixedSamplesCombinationNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkFramebufferMixedSamplesCombinationNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkCoverageReductionModeNV*)&forMarshaling->coverageReductionMode, |
| sizeof(VkCoverageReductionModeNV)); |
| vkStream->write((VkSampleCountFlagBits*)&forMarshaling->rasterizationSamples, |
| sizeof(VkSampleCountFlagBits)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->depthStencilSamples, |
| sizeof(VkSampleCountFlags)); |
| vkStream->write((VkSampleCountFlags*)&forMarshaling->colorSamples, sizeof(VkSampleCountFlags)); |
| } |
| |
| void unmarshal_VkFramebufferMixedSamplesCombinationNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkFramebufferMixedSamplesCombinationNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkCoverageReductionModeNV*)&forUnmarshaling->coverageReductionMode, |
| sizeof(VkCoverageReductionModeNV)); |
| vkStream->read((VkSampleCountFlagBits*)&forUnmarshaling->rasterizationSamples, |
| sizeof(VkSampleCountFlagBits)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->depthStencilSamples, |
| sizeof(VkSampleCountFlags)); |
| vkStream->read((VkSampleCountFlags*)&forUnmarshaling->colorSamples, sizeof(VkSampleCountFlags)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_fragment_shader_interlock |
| void marshal_VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShaderSampleInterlock, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShaderPixelInterlock, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShaderShadingRateInterlock, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShaderSampleInterlock, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShaderPixelInterlock, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShaderShadingRateInterlock, |
| sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_ycbcr_image_arrays |
| void marshal_VkPhysicalDeviceYcbcrImageArraysFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceYcbcrImageArraysFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->ycbcrImageArrays, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceYcbcrImageArraysFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceYcbcrImageArraysFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->ycbcrImageArrays, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_provoking_vertex |
| void marshal_VkPhysicalDeviceProvokingVertexFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceProvokingVertexFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->provokingVertexLast, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->transformFeedbackPreservesProvokingVertex, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceProvokingVertexFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceProvokingVertexFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->provokingVertexLast, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->transformFeedbackPreservesProvokingVertex, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceProvokingVertexPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceProvokingVertexPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->provokingVertexModePerPipeline, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->transformFeedbackPreservesTriangleFanProvokingVertex, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceProvokingVertexPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceProvokingVertexPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->provokingVertexModePerPipeline, sizeof(VkBool32)); |
| vkStream->read( |
| (VkBool32*)&forUnmarshaling->transformFeedbackPreservesTriangleFanProvokingVertex, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineRasterizationProvokingVertexStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineRasterizationProvokingVertexStateCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkProvokingVertexModeEXT*)&forMarshaling->provokingVertexMode, |
| sizeof(VkProvokingVertexModeEXT)); |
| } |
| |
| void unmarshal_VkPipelineRasterizationProvokingVertexStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineRasterizationProvokingVertexStateCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkProvokingVertexModeEXT*)&forUnmarshaling->provokingVertexMode, |
| sizeof(VkProvokingVertexModeEXT)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_full_screen_exclusive |
| void marshal_VkSurfaceFullScreenExclusiveInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSurfaceFullScreenExclusiveInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFullScreenExclusiveEXT*)&forMarshaling->fullScreenExclusive, |
| sizeof(VkFullScreenExclusiveEXT)); |
| } |
| |
| void unmarshal_VkSurfaceFullScreenExclusiveInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSurfaceFullScreenExclusiveInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFullScreenExclusiveEXT*)&forUnmarshaling->fullScreenExclusive, |
| sizeof(VkFullScreenExclusiveEXT)); |
| } |
| |
| void marshal_VkSurfaceCapabilitiesFullScreenExclusiveEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSurfaceCapabilitiesFullScreenExclusiveEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->fullScreenExclusiveSupported, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkSurfaceCapabilitiesFullScreenExclusiveEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSurfaceCapabilitiesFullScreenExclusiveEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fullScreenExclusiveSupported, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkSurfaceFullScreenExclusiveWin32InfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSurfaceFullScreenExclusiveWin32InfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((HMONITOR*)&forMarshaling->hmonitor, sizeof(HMONITOR)); |
| } |
| |
| void unmarshal_VkSurfaceFullScreenExclusiveWin32InfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSurfaceFullScreenExclusiveWin32InfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((HMONITOR*)&forUnmarshaling->hmonitor, sizeof(HMONITOR)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_headless_surface |
| void marshal_VkHeadlessSurfaceCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkHeadlessSurfaceCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkHeadlessSurfaceCreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkHeadlessSurfaceCreateFlagsEXT)); |
| } |
| |
| void unmarshal_VkHeadlessSurfaceCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkHeadlessSurfaceCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkHeadlessSurfaceCreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkHeadlessSurfaceCreateFlagsEXT)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_line_rasterization |
| void marshal_VkPhysicalDeviceLineRasterizationFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceLineRasterizationFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->rectangularLines, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->bresenhamLines, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->smoothLines, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->stippledRectangularLines, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->stippledBresenhamLines, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->stippledSmoothLines, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceLineRasterizationFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceLineRasterizationFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->rectangularLines, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->bresenhamLines, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->smoothLines, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->stippledRectangularLines, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->stippledBresenhamLines, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->stippledSmoothLines, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceLineRasterizationPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceLineRasterizationPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->lineSubPixelPrecisionBits, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceLineRasterizationPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceLineRasterizationPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->lineSubPixelPrecisionBits, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPipelineRasterizationLineStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineRasterizationLineStateCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkLineRasterizationModeEXT*)&forMarshaling->lineRasterizationMode, |
| sizeof(VkLineRasterizationModeEXT)); |
| vkStream->write((VkBool32*)&forMarshaling->stippledLineEnable, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->lineStippleFactor, sizeof(uint32_t)); |
| vkStream->write((uint16_t*)&forMarshaling->lineStipplePattern, sizeof(uint16_t)); |
| } |
| |
| void unmarshal_VkPipelineRasterizationLineStateCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineRasterizationLineStateCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkLineRasterizationModeEXT*)&forUnmarshaling->lineRasterizationMode, |
| sizeof(VkLineRasterizationModeEXT)); |
| vkStream->read((VkBool32*)&forUnmarshaling->stippledLineEnable, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->lineStippleFactor, sizeof(uint32_t)); |
| vkStream->read((uint16_t*)&forUnmarshaling->lineStipplePattern, sizeof(uint16_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_atomic_float |
| void marshal_VkPhysicalDeviceShaderAtomicFloatFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderAtomicFloatFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferFloat32Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferFloat32AtomicAdd, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferFloat64Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferFloat64AtomicAdd, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedFloat32Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedFloat32AtomicAdd, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedFloat64Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedFloat64AtomicAdd, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderImageFloat32Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderImageFloat32AtomicAdd, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseImageFloat32Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseImageFloat32AtomicAdd, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderAtomicFloatFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderAtomicFloatFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferFloat32Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferFloat32AtomicAdd, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferFloat64Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferFloat64AtomicAdd, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedFloat32Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedFloat32AtomicAdd, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedFloat64Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedFloat64AtomicAdd, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderImageFloat32Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderImageFloat32AtomicAdd, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseImageFloat32Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseImageFloat32AtomicAdd, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_host_query_reset |
| #endif |
| #ifdef VK_EXT_index_type_uint8 |
| void marshal_VkPhysicalDeviceIndexTypeUint8FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceIndexTypeUint8FeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->indexTypeUint8, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceIndexTypeUint8FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceIndexTypeUint8FeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->indexTypeUint8, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| void marshal_VkPhysicalDeviceExtendedDynamicStateFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceExtendedDynamicStateFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->extendedDynamicState, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceExtendedDynamicStateFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceExtendedDynamicStateFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->extendedDynamicState, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_atomic_float2 |
| void marshal_VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferFloat16Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferFloat16AtomicAdd, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferFloat16AtomicMinMax, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferFloat32AtomicMinMax, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderBufferFloat64AtomicMinMax, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedFloat16Atomics, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedFloat16AtomicAdd, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedFloat16AtomicMinMax, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedFloat32AtomicMinMax, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderSharedFloat64AtomicMinMax, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->shaderImageFloat32AtomicMinMax, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->sparseImageFloat32AtomicMinMax, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferFloat16Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferFloat16AtomicAdd, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferFloat16AtomicMinMax, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferFloat32AtomicMinMax, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderBufferFloat64AtomicMinMax, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedFloat16Atomics, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedFloat16AtomicAdd, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedFloat16AtomicMinMax, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedFloat32AtomicMinMax, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderSharedFloat64AtomicMinMax, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderImageFloat32AtomicMinMax, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->sparseImageFloat32AtomicMinMax, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_demote_to_helper_invocation |
| void marshal_VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->shaderDemoteToHelperInvocation, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->shaderDemoteToHelperInvocation, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_NV_device_generated_commands |
| void marshal_VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxGraphicsShaderGroupCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxIndirectSequenceCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxIndirectCommandsTokenCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxIndirectCommandsStreamCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxIndirectCommandsTokenOffset, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxIndirectCommandsStreamStride, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->minSequencesCountBufferOffsetAlignment, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->minSequencesIndexBufferOffsetAlignment, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->minIndirectCommandsBufferOffsetAlignment, |
| sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxGraphicsShaderGroupCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxIndirectSequenceCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxIndirectCommandsTokenCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxIndirectCommandsStreamCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxIndirectCommandsTokenOffset, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxIndirectCommandsStreamStride, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minSequencesCountBufferOffsetAlignment, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minSequencesIndexBufferOffsetAlignment, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minIndirectCommandsBufferOffsetAlignment, |
| sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->deviceGeneratedCommands, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->deviceGeneratedCommands, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkGraphicsShaderGroupCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkGraphicsShaderGroupCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->stageCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->stageCount; ++i) { |
| marshal_VkPipelineShaderStageCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineShaderStageCreateInfo*)(forMarshaling->pStages + i)); |
| } |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pVertexInputState; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pVertexInputState) { |
| marshal_VkPipelineVertexInputStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineVertexInputStateCreateInfo*)(forMarshaling->pVertexInputState)); |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pTessellationState; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pTessellationState) { |
| marshal_VkPipelineTessellationStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineTessellationStateCreateInfo*)(forMarshaling->pTessellationState)); |
| } |
| } |
| |
| void unmarshal_VkGraphicsShaderGroupCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkGraphicsShaderGroupCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->stageCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->stageCount; ++i) { |
| unmarshal_VkPipelineShaderStageCreateInfo( |
| vkStream, rootType, |
| (VkPipelineShaderStageCreateInfo*)(forUnmarshaling->pStages + i)); |
| } |
| } |
| // WARNING PTR CHECK |
| const VkPipelineVertexInputStateCreateInfo* check_pVertexInputState; |
| check_pVertexInputState = |
| (const VkPipelineVertexInputStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pVertexInputState) { |
| if (!(check_pVertexInputState)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pVertexInputState inconsistent between guest and host\n"); |
| } |
| unmarshal_VkPipelineVertexInputStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineVertexInputStateCreateInfo*)(forUnmarshaling->pVertexInputState)); |
| } |
| // WARNING PTR CHECK |
| const VkPipelineTessellationStateCreateInfo* check_pTessellationState; |
| check_pTessellationState = |
| (const VkPipelineTessellationStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pTessellationState) { |
| if (!(check_pTessellationState)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pTessellationState inconsistent between guest and host\n"); |
| } |
| unmarshal_VkPipelineTessellationStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineTessellationStateCreateInfo*)(forUnmarshaling->pTessellationState)); |
| } |
| } |
| |
| void marshal_VkGraphicsPipelineShaderGroupsCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkGraphicsPipelineShaderGroupsCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->groupCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->groupCount; ++i) { |
| marshal_VkGraphicsShaderGroupCreateInfoNV( |
| vkStream, rootType, |
| (const VkGraphicsShaderGroupCreateInfoNV*)(forMarshaling->pGroups + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->pipelineCount, sizeof(uint32_t)); |
| if (forMarshaling->pipelineCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forMarshaling->pipelineCount * 8); |
| vkStream->handleMapping()->mapHandles_VkPipeline_u64(forMarshaling->pPipelines, cgen_var_0, |
| forMarshaling->pipelineCount); |
| vkStream->write((uint64_t*)cgen_var_0, forMarshaling->pipelineCount * 8); |
| } |
| } |
| |
| void unmarshal_VkGraphicsPipelineShaderGroupsCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkGraphicsPipelineShaderGroupsCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->groupCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->groupCount; ++i) { |
| unmarshal_VkGraphicsShaderGroupCreateInfoNV( |
| vkStream, rootType, |
| (VkGraphicsShaderGroupCreateInfoNV*)(forUnmarshaling->pGroups + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->pipelineCount, sizeof(uint32_t)); |
| if (forUnmarshaling->pipelineCount) { |
| uint64_t* cgen_var_0; |
| vkStream->alloc((void**)&cgen_var_0, forUnmarshaling->pipelineCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0, forUnmarshaling->pipelineCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipeline( |
| cgen_var_0, (VkPipeline*)forUnmarshaling->pPipelines, forUnmarshaling->pipelineCount); |
| } |
| } |
| |
| void marshal_VkBindShaderGroupIndirectCommandNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindShaderGroupIndirectCommandNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->groupIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkBindShaderGroupIndirectCommandNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBindShaderGroupIndirectCommandNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->groupIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkBindIndexBufferIndirectCommandNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindIndexBufferIndirectCommandNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceAddress*)&forMarshaling->bufferAddress, sizeof(VkDeviceAddress)); |
| vkStream->write((uint32_t*)&forMarshaling->size, sizeof(uint32_t)); |
| vkStream->write((VkIndexType*)&forMarshaling->indexType, sizeof(VkIndexType)); |
| } |
| |
| void unmarshal_VkBindIndexBufferIndirectCommandNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBindIndexBufferIndirectCommandNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceAddress*)&forUnmarshaling->bufferAddress, sizeof(VkDeviceAddress)); |
| vkStream->read((uint32_t*)&forUnmarshaling->size, sizeof(uint32_t)); |
| vkStream->read((VkIndexType*)&forUnmarshaling->indexType, sizeof(VkIndexType)); |
| } |
| |
| void marshal_VkBindVertexBufferIndirectCommandNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBindVertexBufferIndirectCommandNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceAddress*)&forMarshaling->bufferAddress, sizeof(VkDeviceAddress)); |
| vkStream->write((uint32_t*)&forMarshaling->size, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->stride, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkBindVertexBufferIndirectCommandNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBindVertexBufferIndirectCommandNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceAddress*)&forUnmarshaling->bufferAddress, sizeof(VkDeviceAddress)); |
| vkStream->read((uint32_t*)&forUnmarshaling->size, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->stride, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkSetStateFlagsIndirectCommandNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSetStateFlagsIndirectCommandNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->data, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkSetStateFlagsIndirectCommandNV(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkSetStateFlagsIndirectCommandNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->data, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkIndirectCommandsStreamNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkIndirectCommandsStreamNV* forMarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->offset, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkIndirectCommandsStreamNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkIndirectCommandsStreamNV* forUnmarshaling) { |
| (void)rootType; |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->offset, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkIndirectCommandsLayoutTokenNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkIndirectCommandsLayoutTokenNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkIndirectCommandsTokenTypeNV*)&forMarshaling->tokenType, |
| sizeof(VkIndirectCommandsTokenTypeNV)); |
| vkStream->write((uint32_t*)&forMarshaling->stream, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->offset, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->vertexBindingUnit, sizeof(uint32_t)); |
| vkStream->write((VkBool32*)&forMarshaling->vertexDynamicStride, sizeof(VkBool32)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkPipelineLayout_u64( |
| &forMarshaling->pushconstantPipelineLayout, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkShaderStageFlags*)&forMarshaling->pushconstantShaderStageFlags, |
| sizeof(VkShaderStageFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->pushconstantOffset, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->pushconstantSize, sizeof(uint32_t)); |
| vkStream->write((VkIndirectStateFlagsNV*)&forMarshaling->indirectStateFlags, |
| sizeof(VkIndirectStateFlagsNV)); |
| vkStream->write((uint32_t*)&forMarshaling->indexTypeCount, sizeof(uint32_t)); |
| vkStream->write((const VkIndexType*)forMarshaling->pIndexTypes, |
| forMarshaling->indexTypeCount * sizeof(const VkIndexType)); |
| vkStream->write((const uint32_t*)forMarshaling->pIndexTypeValues, |
| forMarshaling->indexTypeCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkIndirectCommandsLayoutTokenNV(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkIndirectCommandsLayoutTokenNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkIndirectCommandsTokenTypeNV*)&forUnmarshaling->tokenType, |
| sizeof(VkIndirectCommandsTokenTypeNV)); |
| vkStream->read((uint32_t*)&forUnmarshaling->stream, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->offset, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->vertexBindingUnit, sizeof(uint32_t)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vertexDynamicStride, sizeof(VkBool32)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipelineLayout( |
| &cgen_var_0, (VkPipelineLayout*)&forUnmarshaling->pushconstantPipelineLayout, 1); |
| vkStream->read((VkShaderStageFlags*)&forUnmarshaling->pushconstantShaderStageFlags, |
| sizeof(VkShaderStageFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->pushconstantOffset, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->pushconstantSize, sizeof(uint32_t)); |
| vkStream->read((VkIndirectStateFlagsNV*)&forUnmarshaling->indirectStateFlags, |
| sizeof(VkIndirectStateFlagsNV)); |
| vkStream->read((uint32_t*)&forUnmarshaling->indexTypeCount, sizeof(uint32_t)); |
| vkStream->read((VkIndexType*)forUnmarshaling->pIndexTypes, |
| forUnmarshaling->indexTypeCount * sizeof(const VkIndexType)); |
| vkStream->read((uint32_t*)forUnmarshaling->pIndexTypeValues, |
| forUnmarshaling->indexTypeCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkIndirectCommandsLayoutCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkIndirectCommandsLayoutCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkIndirectCommandsLayoutUsageFlagsNV*)&forMarshaling->flags, |
| sizeof(VkIndirectCommandsLayoutUsageFlagsNV)); |
| vkStream->write((VkPipelineBindPoint*)&forMarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| vkStream->write((uint32_t*)&forMarshaling->tokenCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->tokenCount; ++i) { |
| marshal_VkIndirectCommandsLayoutTokenNV( |
| vkStream, rootType, |
| (const VkIndirectCommandsLayoutTokenNV*)(forMarshaling->pTokens + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->streamCount, sizeof(uint32_t)); |
| vkStream->write((const uint32_t*)forMarshaling->pStreamStrides, |
| forMarshaling->streamCount * sizeof(const uint32_t)); |
| } |
| |
| void unmarshal_VkIndirectCommandsLayoutCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkIndirectCommandsLayoutCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkIndirectCommandsLayoutUsageFlagsNV*)&forUnmarshaling->flags, |
| sizeof(VkIndirectCommandsLayoutUsageFlagsNV)); |
| vkStream->read((VkPipelineBindPoint*)&forUnmarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| vkStream->read((uint32_t*)&forUnmarshaling->tokenCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->tokenCount; ++i) { |
| unmarshal_VkIndirectCommandsLayoutTokenNV( |
| vkStream, rootType, |
| (VkIndirectCommandsLayoutTokenNV*)(forUnmarshaling->pTokens + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->streamCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)forUnmarshaling->pStreamStrides, |
| forUnmarshaling->streamCount * sizeof(const uint32_t)); |
| } |
| |
| void marshal_VkGeneratedCommandsInfoNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkGeneratedCommandsInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineBindPoint*)&forMarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkPipeline_u64(&forMarshaling->pipeline, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkIndirectCommandsLayoutNV_u64( |
| &forMarshaling->indirectCommandsLayout, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->streamCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->streamCount; ++i) { |
| marshal_VkIndirectCommandsStreamNV( |
| vkStream, rootType, |
| (const VkIndirectCommandsStreamNV*)(forMarshaling->pStreams + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->sequencesCount, sizeof(uint32_t)); |
| uint64_t cgen_var_2; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->preprocessBuffer, |
| &cgen_var_2, 1); |
| vkStream->write((uint64_t*)&cgen_var_2, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->preprocessOffset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->preprocessSize, sizeof(VkDeviceSize)); |
| uint64_t cgen_var_3; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->sequencesCountBuffer, |
| &cgen_var_3, 1); |
| vkStream->write((uint64_t*)&cgen_var_3, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->sequencesCountOffset, sizeof(VkDeviceSize)); |
| uint64_t cgen_var_4; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->sequencesIndexBuffer, |
| &cgen_var_4, 1); |
| vkStream->write((uint64_t*)&cgen_var_4, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->sequencesIndexOffset, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkGeneratedCommandsInfoNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkGeneratedCommandsInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineBindPoint*)&forUnmarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipeline( |
| &cgen_var_0, (VkPipeline*)&forUnmarshaling->pipeline, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkIndirectCommandsLayoutNV( |
| &cgen_var_1, (VkIndirectCommandsLayoutNV*)&forUnmarshaling->indirectCommandsLayout, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->streamCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->streamCount; ++i) { |
| unmarshal_VkIndirectCommandsStreamNV( |
| vkStream, rootType, (VkIndirectCommandsStreamNV*)(forUnmarshaling->pStreams + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->sequencesCount, sizeof(uint32_t)); |
| uint64_t cgen_var_2; |
| vkStream->read((uint64_t*)&cgen_var_2, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer( |
| &cgen_var_2, (VkBuffer*)&forUnmarshaling->preprocessBuffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->preprocessOffset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->preprocessSize, sizeof(VkDeviceSize)); |
| uint64_t cgen_var_3; |
| vkStream->read((uint64_t*)&cgen_var_3, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer( |
| &cgen_var_3, (VkBuffer*)&forUnmarshaling->sequencesCountBuffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->sequencesCountOffset, sizeof(VkDeviceSize)); |
| uint64_t cgen_var_4; |
| vkStream->read((uint64_t*)&cgen_var_4, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer( |
| &cgen_var_4, (VkBuffer*)&forUnmarshaling->sequencesIndexBuffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->sequencesIndexOffset, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkGeneratedCommandsMemoryRequirementsInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkGeneratedCommandsMemoryRequirementsInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineBindPoint*)&forMarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkPipeline_u64(&forMarshaling->pipeline, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkIndirectCommandsLayoutNV_u64( |
| &forMarshaling->indirectCommandsLayout, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->maxSequencesCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkGeneratedCommandsMemoryRequirementsInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkGeneratedCommandsMemoryRequirementsInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineBindPoint*)&forUnmarshaling->pipelineBindPoint, |
| sizeof(VkPipelineBindPoint)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipeline( |
| &cgen_var_0, (VkPipeline*)&forUnmarshaling->pipeline, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkIndirectCommandsLayoutNV( |
| &cgen_var_1, (VkIndirectCommandsLayoutNV*)&forUnmarshaling->indirectCommandsLayout, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSequencesCount, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_NV_inherited_viewport_scissor |
| void marshal_VkPhysicalDeviceInheritedViewportScissorFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceInheritedViewportScissorFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->inheritedViewportScissor2D, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceInheritedViewportScissorFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceInheritedViewportScissorFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->inheritedViewportScissor2D, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkCommandBufferInheritanceViewportScissorInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCommandBufferInheritanceViewportScissorInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->viewportScissor2D, sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->viewportDepthCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pViewportDepths; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pViewportDepths) { |
| marshal_VkViewport(vkStream, rootType, (const VkViewport*)(forMarshaling->pViewportDepths)); |
| } |
| } |
| |
| void unmarshal_VkCommandBufferInheritanceViewportScissorInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCommandBufferInheritanceViewportScissorInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->viewportScissor2D, sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->viewportDepthCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkViewport* check_pViewportDepths; |
| check_pViewportDepths = (const VkViewport*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pViewportDepths) { |
| if (!(check_pViewportDepths)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pViewportDepths inconsistent between guest and host\n"); |
| } |
| unmarshal_VkViewport(vkStream, rootType, (VkViewport*)(forUnmarshaling->pViewportDepths)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_texel_buffer_alignment |
| void marshal_VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->texelBufferAlignment, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->texelBufferAlignment, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)&forMarshaling->storageTexelBufferOffsetAlignmentBytes, |
| sizeof(VkDeviceSize)); |
| vkStream->write((VkBool32*)&forMarshaling->storageTexelBufferOffsetSingleTexelAlignment, |
| sizeof(VkBool32)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->uniformTexelBufferOffsetAlignmentBytes, |
| sizeof(VkDeviceSize)); |
| vkStream->write((VkBool32*)&forMarshaling->uniformTexelBufferOffsetSingleTexelAlignment, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->storageTexelBufferOffsetAlignmentBytes, |
| sizeof(VkDeviceSize)); |
| vkStream->read((VkBool32*)&forUnmarshaling->storageTexelBufferOffsetSingleTexelAlignment, |
| sizeof(VkBool32)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->uniformTexelBufferOffsetAlignmentBytes, |
| sizeof(VkDeviceSize)); |
| vkStream->read((VkBool32*)&forUnmarshaling->uniformTexelBufferOffsetSingleTexelAlignment, |
| sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_QCOM_render_pass_transform |
| void marshal_VkRenderPassTransformBeginInfoQCOM( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRenderPassTransformBeginInfoQCOM* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSurfaceTransformFlagBitsKHR*)&forMarshaling->transform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| } |
| |
| void unmarshal_VkRenderPassTransformBeginInfoQCOM( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRenderPassTransformBeginInfoQCOM* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSurfaceTransformFlagBitsKHR*)&forUnmarshaling->transform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| } |
| |
| void marshal_VkCommandBufferInheritanceRenderPassTransformInfoQCOM( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCommandBufferInheritanceRenderPassTransformInfoQCOM* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSurfaceTransformFlagBitsKHR*)&forMarshaling->transform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| marshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forMarshaling->renderArea)); |
| } |
| |
| void unmarshal_VkCommandBufferInheritanceRenderPassTransformInfoQCOM( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCommandBufferInheritanceRenderPassTransformInfoQCOM* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSurfaceTransformFlagBitsKHR*)&forUnmarshaling->transform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| unmarshal_VkRect2D(vkStream, rootType, (VkRect2D*)(&forUnmarshaling->renderArea)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_device_memory_report |
| void marshal_VkPhysicalDeviceDeviceMemoryReportFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDeviceMemoryReportFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->deviceMemoryReport, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDeviceMemoryReportFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDeviceMemoryReportFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->deviceMemoryReport, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkDeviceMemoryReportCallbackDataEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceMemoryReportCallbackDataEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceMemoryReportFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkDeviceMemoryReportFlagsEXT)); |
| vkStream->write((VkDeviceMemoryReportEventTypeEXT*)&forMarshaling->type, |
| sizeof(VkDeviceMemoryReportEventTypeEXT)); |
| vkStream->write((uint64_t*)&forMarshaling->memoryObjectId, sizeof(uint64_t)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->write((VkObjectType*)&forMarshaling->objectType, sizeof(VkObjectType)); |
| vkStream->write((uint64_t*)&forMarshaling->objectHandle, sizeof(uint64_t)); |
| vkStream->write((uint32_t*)&forMarshaling->heapIndex, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDeviceMemoryReportCallbackDataEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceMemoryReportCallbackDataEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceMemoryReportFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkDeviceMemoryReportFlagsEXT)); |
| vkStream->read((VkDeviceMemoryReportEventTypeEXT*)&forUnmarshaling->type, |
| sizeof(VkDeviceMemoryReportEventTypeEXT)); |
| vkStream->read((uint64_t*)&forUnmarshaling->memoryObjectId, sizeof(uint64_t)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->read((VkObjectType*)&forUnmarshaling->objectType, sizeof(VkObjectType)); |
| vkStream->read((uint64_t*)&forUnmarshaling->objectHandle, sizeof(uint64_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->heapIndex, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkDeviceDeviceMemoryReportCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceDeviceMemoryReportCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceMemoryReportFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkDeviceMemoryReportFlagsEXT)); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->pfnUserCallback; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((void*)forMarshaling->pUserData, sizeof(uint8_t)); |
| } |
| |
| void unmarshal_VkDeviceDeviceMemoryReportCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceDeviceMemoryReportCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceMemoryReportFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkDeviceMemoryReportFlagsEXT)); |
| forUnmarshaling->pfnUserCallback = (PFN_vkDeviceMemoryReportCallbackEXT)vkStream->getBe64(); |
| vkStream->read((void*)forUnmarshaling->pUserData, sizeof(uint8_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_acquire_drm_display |
| #endif |
| #ifdef VK_EXT_robustness2 |
| void marshal_VkPhysicalDeviceRobustness2FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceRobustness2FeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->robustBufferAccess2, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->robustImageAccess2, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->nullDescriptor, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceRobustness2FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceRobustness2FeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->robustBufferAccess2, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->robustImageAccess2, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->nullDescriptor, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceRobustness2PropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceRobustness2PropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)&forMarshaling->robustStorageBufferAccessSizeAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->robustUniformBufferAccessSizeAlignment, |
| sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceRobustness2PropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceRobustness2PropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->robustStorageBufferAccessSizeAlignment, |
| sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->robustUniformBufferAccessSizeAlignment, |
| sizeof(VkDeviceSize)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_custom_border_color |
| void marshal_VkSamplerCustomBorderColorCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSamplerCustomBorderColorCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkClearColorValue(vkStream, rootType, |
| (VkClearColorValue*)(&forMarshaling->customBorderColor)); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| } |
| |
| void unmarshal_VkSamplerCustomBorderColorCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSamplerCustomBorderColorCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkClearColorValue(vkStream, rootType, |
| (VkClearColorValue*)(&forUnmarshaling->customBorderColor)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| } |
| |
| void marshal_VkPhysicalDeviceCustomBorderColorPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceCustomBorderColorPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxCustomBorderColorSamplers, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceCustomBorderColorPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceCustomBorderColorPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxCustomBorderColorSamplers, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceCustomBorderColorFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceCustomBorderColorFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->customBorderColors, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->customBorderColorWithoutFormat, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceCustomBorderColorFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceCustomBorderColorFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->customBorderColors, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->customBorderColorWithoutFormat, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_GOOGLE_user_type |
| #endif |
| #ifdef VK_EXT_private_data |
| void marshal_VkPhysicalDevicePrivateDataFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePrivateDataFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->privateData, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePrivateDataFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePrivateDataFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->privateData, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkDevicePrivateDataCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDevicePrivateDataCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->privateDataSlotRequestCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkDevicePrivateDataCreateInfoEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkDevicePrivateDataCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->privateDataSlotRequestCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPrivateDataSlotCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPrivateDataSlotCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPrivateDataSlotCreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkPrivateDataSlotCreateFlagsEXT)); |
| } |
| |
| void unmarshal_VkPrivateDataSlotCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPrivateDataSlotCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPrivateDataSlotCreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkPrivateDataSlotCreateFlagsEXT)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_pipeline_creation_cache_control |
| void marshal_VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->pipelineCreationCacheControl, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->pipelineCreationCacheControl, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_NV_device_diagnostics_config |
| void marshal_VkPhysicalDeviceDiagnosticsConfigFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDiagnosticsConfigFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->diagnosticsConfig, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDiagnosticsConfigFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceDiagnosticsConfigFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->diagnosticsConfig, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkDeviceDiagnosticsConfigCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceDiagnosticsConfigCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceDiagnosticsConfigFlagsNV*)&forMarshaling->flags, |
| sizeof(VkDeviceDiagnosticsConfigFlagsNV)); |
| } |
| |
| void unmarshal_VkDeviceDiagnosticsConfigCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceDiagnosticsConfigCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceDiagnosticsConfigFlagsNV*)&forUnmarshaling->flags, |
| sizeof(VkDeviceDiagnosticsConfigFlagsNV)); |
| } |
| |
| #endif |
| #ifdef VK_QCOM_render_pass_store_ops |
| #endif |
| #ifdef VK_NV_fragment_shading_rate_enums |
| void marshal_VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentShadingRateEnums, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->supersampleFragmentShadingRates, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->noInvocationFragmentShadingRates, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentShadingRateEnums, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->supersampleFragmentShadingRates, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->noInvocationFragmentShadingRates, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSampleCountFlagBits*)&forMarshaling->maxFragmentShadingRateInvocationCount, |
| sizeof(VkSampleCountFlagBits)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSampleCountFlagBits*)&forUnmarshaling->maxFragmentShadingRateInvocationCount, |
| sizeof(VkSampleCountFlagBits)); |
| } |
| |
| void marshal_VkPipelineFragmentShadingRateEnumStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineFragmentShadingRateEnumStateCreateInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFragmentShadingRateTypeNV*)&forMarshaling->shadingRateType, |
| sizeof(VkFragmentShadingRateTypeNV)); |
| vkStream->write((VkFragmentShadingRateNV*)&forMarshaling->shadingRate, |
| sizeof(VkFragmentShadingRateNV)); |
| vkStream->write((VkFragmentShadingRateCombinerOpKHR*)forMarshaling->combinerOps, |
| 2 * sizeof(VkFragmentShadingRateCombinerOpKHR)); |
| } |
| |
| void unmarshal_VkPipelineFragmentShadingRateEnumStateCreateInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineFragmentShadingRateEnumStateCreateInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFragmentShadingRateTypeNV*)&forUnmarshaling->shadingRateType, |
| sizeof(VkFragmentShadingRateTypeNV)); |
| vkStream->read((VkFragmentShadingRateNV*)&forUnmarshaling->shadingRate, |
| sizeof(VkFragmentShadingRateNV)); |
| vkStream->read((VkFragmentShadingRateCombinerOpKHR*)forUnmarshaling->combinerOps, |
| 2 * sizeof(VkFragmentShadingRateCombinerOpKHR)); |
| } |
| |
| #endif |
| #ifdef VK_NV_ray_tracing_motion_blur |
| void marshal_VkDeviceOrHostAddressConstKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceOrHostAddressConstKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceAddress*)&forMarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| } |
| |
| void unmarshal_VkDeviceOrHostAddressConstKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceOrHostAddressConstKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceAddress*)&forUnmarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| } |
| |
| void marshal_VkAccelerationStructureGeometryMotionTrianglesDataNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureGeometryMotionTrianglesDataNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forMarshaling->vertexData)); |
| } |
| |
| void unmarshal_VkAccelerationStructureGeometryMotionTrianglesDataNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureGeometryMotionTrianglesDataNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forUnmarshaling->vertexData)); |
| } |
| |
| void marshal_VkAccelerationStructureMotionInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureMotionInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxInstances, sizeof(uint32_t)); |
| vkStream->write((VkAccelerationStructureMotionInfoFlagsNV*)&forMarshaling->flags, |
| sizeof(VkAccelerationStructureMotionInfoFlagsNV)); |
| } |
| |
| void unmarshal_VkAccelerationStructureMotionInfoNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureMotionInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxInstances, sizeof(uint32_t)); |
| vkStream->read((VkAccelerationStructureMotionInfoFlagsNV*)&forUnmarshaling->flags, |
| sizeof(VkAccelerationStructureMotionInfoFlagsNV)); |
| } |
| |
| void marshal_VkAccelerationStructureMatrixMotionInstanceNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureMatrixMotionInstanceNV* forMarshaling) { |
| (void)rootType; |
| |
| typedef struct VkAccelerationStructureMatrixMotionInstanceNVWithoutBitFields { |
| VkTransformMatrixKHR transformT0; |
| VkTransformMatrixKHR transformT1; |
| uint32_t dwords[2]; |
| uint64_t accelerationStructureReference; |
| } VkAccelerationStructureMatrixMotionInstanceNVWithoutBitFields; |
| |
| const VkAccelerationStructureMatrixMotionInstanceNVWithoutBitFields* forMarshaling_new = |
| (const VkAccelerationStructureMatrixMotionInstanceNVWithoutBitFields*)(forMarshaling); |
| marshal_VkTransformMatrixKHR(vkStream, rootType, |
| (VkTransformMatrixKHR*)(&forMarshaling_new->transformT0)); |
| marshal_VkTransformMatrixKHR(vkStream, rootType, |
| (VkTransformMatrixKHR*)(&forMarshaling_new->transformT1)); |
| for (uint32_t i = 0; i < 2; i++) { |
| vkStream->write((uint32_t*)&(forMarshaling_new->dwords[i]), sizeof(uint32_t)); |
| } |
| vkStream->write((uint64_t*)&forMarshaling_new->accelerationStructureReference, |
| sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkAccelerationStructureMatrixMotionInstanceNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureMatrixMotionInstanceNV* forUnmarshaling) { |
| (void)rootType; |
| |
| typedef struct VkAccelerationStructureMatrixMotionInstanceNVWithoutBitFields { |
| VkTransformMatrixKHR transformT0; |
| VkTransformMatrixKHR transformT1; |
| uint32_t dwords[2]; |
| uint64_t accelerationStructureReference; |
| } VkAccelerationStructureMatrixMotionInstanceNVWithoutBitFields; |
| |
| VkAccelerationStructureMatrixMotionInstanceNVWithoutBitFields* forUnmarshaling_new = |
| (VkAccelerationStructureMatrixMotionInstanceNVWithoutBitFields*)(forUnmarshaling); |
| unmarshal_VkTransformMatrixKHR(vkStream, rootType, |
| (VkTransformMatrixKHR*)(&forUnmarshaling_new->transformT0)); |
| unmarshal_VkTransformMatrixKHR(vkStream, rootType, |
| (VkTransformMatrixKHR*)(&forUnmarshaling_new->transformT1)); |
| for (uint32_t i = 0; i < 2; i++) { |
| vkStream->read((uint32_t*)&(forUnmarshaling_new->dwords[i]), sizeof(uint32_t)); |
| } |
| vkStream->read((uint64_t*)&forUnmarshaling_new->accelerationStructureReference, |
| sizeof(uint64_t)); |
| } |
| |
| void marshal_VkSRTDataNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSRTDataNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((float*)&forMarshaling->sx, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->a, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->b, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->pvx, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->sy, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->c, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->pvy, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->sz, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->pvz, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->qx, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->qy, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->qz, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->qw, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->tx, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->ty, sizeof(float)); |
| vkStream->write((float*)&forMarshaling->tz, sizeof(float)); |
| } |
| |
| void unmarshal_VkSRTDataNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSRTDataNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((float*)&forUnmarshaling->sx, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->a, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->b, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->pvx, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->sy, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->c, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->pvy, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->sz, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->pvz, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->qx, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->qy, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->qz, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->qw, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->tx, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->ty, sizeof(float)); |
| vkStream->read((float*)&forUnmarshaling->tz, sizeof(float)); |
| } |
| |
| void marshal_VkAccelerationStructureSRTMotionInstanceNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureSRTMotionInstanceNV* forMarshaling) { |
| (void)rootType; |
| |
| typedef struct VkAccelerationStructureSRTMotionInstanceNVWithoutBitFields { |
| VkSRTDataNV transformT0; |
| VkSRTDataNV transformT1; |
| uint32_t dwords[2]; |
| uint64_t accelerationStructureReference; |
| } VkAccelerationStructureSRTMotionInstanceNVWithoutBitFields; |
| |
| const VkAccelerationStructureSRTMotionInstanceNVWithoutBitFields* forMarshaling_new = |
| (const VkAccelerationStructureSRTMotionInstanceNVWithoutBitFields*)(forMarshaling); |
| marshal_VkSRTDataNV(vkStream, rootType, (VkSRTDataNV*)(&forMarshaling_new->transformT0)); |
| marshal_VkSRTDataNV(vkStream, rootType, (VkSRTDataNV*)(&forMarshaling_new->transformT1)); |
| for (uint32_t i = 0; i < 2; i++) { |
| vkStream->write((uint32_t*)&(forMarshaling_new->dwords[i]), sizeof(uint32_t)); |
| } |
| vkStream->write((uint64_t*)&forMarshaling_new->accelerationStructureReference, |
| sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkAccelerationStructureSRTMotionInstanceNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureSRTMotionInstanceNV* forUnmarshaling) { |
| (void)rootType; |
| |
| typedef struct VkAccelerationStructureSRTMotionInstanceNVWithoutBitFields { |
| VkSRTDataNV transformT0; |
| VkSRTDataNV transformT1; |
| uint32_t dwords[2]; |
| uint64_t accelerationStructureReference; |
| } VkAccelerationStructureSRTMotionInstanceNVWithoutBitFields; |
| |
| VkAccelerationStructureSRTMotionInstanceNVWithoutBitFields* forUnmarshaling_new = |
| (VkAccelerationStructureSRTMotionInstanceNVWithoutBitFields*)(forUnmarshaling); |
| unmarshal_VkSRTDataNV(vkStream, rootType, (VkSRTDataNV*)(&forUnmarshaling_new->transformT0)); |
| unmarshal_VkSRTDataNV(vkStream, rootType, (VkSRTDataNV*)(&forUnmarshaling_new->transformT1)); |
| for (uint32_t i = 0; i < 2; i++) { |
| vkStream->read((uint32_t*)&(forUnmarshaling_new->dwords[i]), sizeof(uint32_t)); |
| } |
| vkStream->read((uint64_t*)&forUnmarshaling_new->accelerationStructureReference, |
| sizeof(uint64_t)); |
| } |
| |
| void marshal_VkAccelerationStructureMotionInstanceDataNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureMotionInstanceDataNV* forMarshaling) { |
| (void)rootType; |
| marshal_VkAccelerationStructureInstanceKHR( |
| vkStream, rootType, (VkAccelerationStructureInstanceKHR*)(&forMarshaling->staticInstance)); |
| } |
| |
| void unmarshal_VkAccelerationStructureMotionInstanceDataNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureMotionInstanceDataNV* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkAccelerationStructureInstanceKHR( |
| vkStream, rootType, |
| (VkAccelerationStructureInstanceKHR*)(&forUnmarshaling->staticInstance)); |
| } |
| |
| void marshal_VkAccelerationStructureMotionInstanceNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureMotionInstanceNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkAccelerationStructureMotionInstanceTypeNV*)&forMarshaling->type, |
| sizeof(VkAccelerationStructureMotionInstanceTypeNV)); |
| vkStream->write((VkAccelerationStructureMotionInstanceFlagsNV*)&forMarshaling->flags, |
| sizeof(VkAccelerationStructureMotionInstanceFlagsNV)); |
| marshal_VkAccelerationStructureMotionInstanceDataNV( |
| vkStream, rootType, (VkAccelerationStructureMotionInstanceDataNV*)(&forMarshaling->data)); |
| } |
| |
| void unmarshal_VkAccelerationStructureMotionInstanceNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureMotionInstanceNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkAccelerationStructureMotionInstanceTypeNV*)&forUnmarshaling->type, |
| sizeof(VkAccelerationStructureMotionInstanceTypeNV)); |
| vkStream->read((VkAccelerationStructureMotionInstanceFlagsNV*)&forUnmarshaling->flags, |
| sizeof(VkAccelerationStructureMotionInstanceFlagsNV)); |
| unmarshal_VkAccelerationStructureMotionInstanceDataNV( |
| vkStream, rootType, (VkAccelerationStructureMotionInstanceDataNV*)(&forUnmarshaling->data)); |
| } |
| |
| void marshal_VkPhysicalDeviceRayTracingMotionBlurFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceRayTracingMotionBlurFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->rayTracingMotionBlur, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->rayTracingMotionBlurPipelineTraceRaysIndirect, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceRayTracingMotionBlurFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceRayTracingMotionBlurFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->rayTracingMotionBlur, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->rayTracingMotionBlurPipelineTraceRaysIndirect, |
| sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_ycbcr_2plane_444_formats |
| void marshal_VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->ycbcr2plane444Formats, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->ycbcr2plane444Formats, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_fragment_density_map2 |
| void marshal_VkPhysicalDeviceFragmentDensityMap2FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentDensityMap2FeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->fragmentDensityMapDeferred, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentDensityMap2FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentDensityMap2FeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->fragmentDensityMapDeferred, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceFragmentDensityMap2PropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentDensityMap2PropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->subsampledLoads, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->subsampledCoarseReconstructionEarlyAccess, |
| sizeof(VkBool32)); |
| vkStream->write((uint32_t*)&forMarshaling->maxSubsampledArrayLayers, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetSubsampledSamplers, |
| sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceFragmentDensityMap2PropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceFragmentDensityMap2PropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->subsampledLoads, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->subsampledCoarseReconstructionEarlyAccess, |
| sizeof(VkBool32)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSubsampledArrayLayers, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetSubsampledSamplers, |
| sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_QCOM_rotated_copy_commands |
| void marshal_VkCopyCommandTransformInfoQCOM(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCopyCommandTransformInfoQCOM* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkSurfaceTransformFlagBitsKHR*)&forMarshaling->transform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| } |
| |
| void unmarshal_VkCopyCommandTransformInfoQCOM(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCopyCommandTransformInfoQCOM* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkSurfaceTransformFlagBitsKHR*)&forUnmarshaling->transform, |
| sizeof(VkSurfaceTransformFlagBitsKHR)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_image_robustness |
| void marshal_VkPhysicalDeviceImageRobustnessFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceImageRobustnessFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->robustImageAccess, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceImageRobustnessFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceImageRobustnessFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->robustImageAccess, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_4444_formats |
| void marshal_VkPhysicalDevice4444FormatsFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevice4444FormatsFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->formatA4R4G4B4, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->formatA4B4G4R4, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevice4444FormatsFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevice4444FormatsFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->formatA4R4G4B4, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->formatA4B4G4R4, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_rgba10x6_formats |
| void marshal_VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->formatRgba10x6WithoutYCbCrSampler, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->formatRgba10x6WithoutYCbCrSampler, |
| sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_NV_acquire_winrt_display |
| #endif |
| #ifdef VK_EXT_directfb_surface |
| void marshal_VkDirectFBSurfaceCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDirectFBSurfaceCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDirectFBSurfaceCreateFlagsEXT*)&forMarshaling->flags, |
| sizeof(VkDirectFBSurfaceCreateFlagsEXT)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->dfb; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->dfb) { |
| vkStream->write((IDirectFB*)forMarshaling->dfb, sizeof(IDirectFB)); |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->surface; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->surface) { |
| vkStream->write((IDirectFBSurface*)forMarshaling->surface, sizeof(IDirectFBSurface)); |
| } |
| } |
| |
| void unmarshal_VkDirectFBSurfaceCreateInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDirectFBSurfaceCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDirectFBSurfaceCreateFlagsEXT*)&forUnmarshaling->flags, |
| sizeof(VkDirectFBSurfaceCreateFlagsEXT)); |
| // WARNING PTR CHECK |
| IDirectFB* check_dfb; |
| check_dfb = (IDirectFB*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->dfb) { |
| if (!(check_dfb)) { |
| fprintf(stderr, "fatal: forUnmarshaling->dfb inconsistent between guest and host\n"); |
| } |
| vkStream->read((IDirectFB*)forUnmarshaling->dfb, sizeof(IDirectFB)); |
| } |
| // WARNING PTR CHECK |
| IDirectFBSurface* check_surface; |
| check_surface = (IDirectFBSurface*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->surface) { |
| if (!(check_surface)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->surface inconsistent between guest and host\n"); |
| } |
| vkStream->read((IDirectFBSurface*)forUnmarshaling->surface, sizeof(IDirectFBSurface)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_VALVE_mutable_descriptor_type |
| void marshal_VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->mutableDescriptorType, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->mutableDescriptorType, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkMutableDescriptorTypeListVALVE( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMutableDescriptorTypeListVALVE* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->descriptorTypeCount, sizeof(uint32_t)); |
| vkStream->write((const VkDescriptorType*)forMarshaling->pDescriptorTypes, |
| forMarshaling->descriptorTypeCount * sizeof(const VkDescriptorType)); |
| } |
| |
| void unmarshal_VkMutableDescriptorTypeListVALVE(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkMutableDescriptorTypeListVALVE* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->descriptorTypeCount, sizeof(uint32_t)); |
| vkStream->read((VkDescriptorType*)forUnmarshaling->pDescriptorTypes, |
| forUnmarshaling->descriptorTypeCount * sizeof(const VkDescriptorType)); |
| } |
| |
| void marshal_VkMutableDescriptorTypeCreateInfoVALVE( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMutableDescriptorTypeCreateInfoVALVE* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->mutableDescriptorTypeListCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->mutableDescriptorTypeListCount; ++i) { |
| marshal_VkMutableDescriptorTypeListVALVE( |
| vkStream, rootType, |
| (const VkMutableDescriptorTypeListVALVE*)(forMarshaling |
| ->pMutableDescriptorTypeLists + |
| i)); |
| } |
| } |
| } |
| |
| void unmarshal_VkMutableDescriptorTypeCreateInfoVALVE( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMutableDescriptorTypeCreateInfoVALVE* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->mutableDescriptorTypeListCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->mutableDescriptorTypeListCount; ++i) { |
| unmarshal_VkMutableDescriptorTypeListVALVE( |
| vkStream, rootType, |
| (VkMutableDescriptorTypeListVALVE*)(forUnmarshaling->pMutableDescriptorTypeLists + |
| i)); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_vertex_input_dynamic_state |
| void marshal_VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->vertexInputDynamicState, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->vertexInputDynamicState, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkVertexInputBindingDescription2EXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVertexInputBindingDescription2EXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->binding, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->stride, sizeof(uint32_t)); |
| vkStream->write((VkVertexInputRate*)&forMarshaling->inputRate, sizeof(VkVertexInputRate)); |
| vkStream->write((uint32_t*)&forMarshaling->divisor, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkVertexInputBindingDescription2EXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVertexInputBindingDescription2EXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->binding, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->stride, sizeof(uint32_t)); |
| vkStream->read((VkVertexInputRate*)&forUnmarshaling->inputRate, sizeof(VkVertexInputRate)); |
| vkStream->read((uint32_t*)&forUnmarshaling->divisor, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkVertexInputAttributeDescription2EXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkVertexInputAttributeDescription2EXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->location, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->binding, sizeof(uint32_t)); |
| vkStream->write((VkFormat*)&forMarshaling->format, sizeof(VkFormat)); |
| vkStream->write((uint32_t*)&forMarshaling->offset, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkVertexInputAttributeDescription2EXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkVertexInputAttributeDescription2EXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->location, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->binding, sizeof(uint32_t)); |
| vkStream->read((VkFormat*)&forUnmarshaling->format, sizeof(VkFormat)); |
| vkStream->read((uint32_t*)&forUnmarshaling->offset, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_physical_device_drm |
| void marshal_VkPhysicalDeviceDrmPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceDrmPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->hasPrimary, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->hasRender, sizeof(VkBool32)); |
| vkStream->write((int64_t*)&forMarshaling->primaryMajor, sizeof(int64_t)); |
| vkStream->write((int64_t*)&forMarshaling->primaryMinor, sizeof(int64_t)); |
| vkStream->write((int64_t*)&forMarshaling->renderMajor, sizeof(int64_t)); |
| vkStream->write((int64_t*)&forMarshaling->renderMinor, sizeof(int64_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceDrmPropertiesEXT(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkPhysicalDeviceDrmPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->hasPrimary, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->hasRender, sizeof(VkBool32)); |
| vkStream->read((int64_t*)&forUnmarshaling->primaryMajor, sizeof(int64_t)); |
| vkStream->read((int64_t*)&forUnmarshaling->primaryMinor, sizeof(int64_t)); |
| vkStream->read((int64_t*)&forUnmarshaling->renderMajor, sizeof(int64_t)); |
| vkStream->read((int64_t*)&forUnmarshaling->renderMinor, sizeof(int64_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_primitive_topology_list_restart |
| void marshal_VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->primitiveTopologyListRestart, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->primitiveTopologyPatchListRestart, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->primitiveTopologyListRestart, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->primitiveTopologyPatchListRestart, |
| sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_FUCHSIA_external_memory |
| void marshal_VkImportMemoryZirconHandleInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportMemoryZirconHandleInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkExternalMemoryHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| vkStream->write((zx_handle_t*)&forMarshaling->handle, sizeof(zx_handle_t)); |
| } |
| |
| void unmarshal_VkImportMemoryZirconHandleInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImportMemoryZirconHandleInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkExternalMemoryHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| vkStream->read((zx_handle_t*)&forUnmarshaling->handle, sizeof(zx_handle_t)); |
| } |
| |
| void marshal_VkMemoryZirconHandlePropertiesFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryZirconHandlePropertiesFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkMemoryZirconHandlePropertiesFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryZirconHandlePropertiesFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryTypeBits, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkMemoryGetZirconHandleInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryGetZirconHandleInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkExternalMemoryHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkMemoryGetZirconHandleInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryGetZirconHandleInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_0, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkExternalMemoryHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| #endif |
| #ifdef VK_FUCHSIA_external_semaphore |
| void marshal_VkImportSemaphoreZirconHandleInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportSemaphoreZirconHandleInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64(&forMarshaling->semaphore, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkSemaphoreImportFlags*)&forMarshaling->flags, sizeof(VkSemaphoreImportFlags)); |
| vkStream->write((VkExternalSemaphoreHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| vkStream->write((zx_handle_t*)&forMarshaling->zirconHandle, sizeof(zx_handle_t)); |
| } |
| |
| void unmarshal_VkImportSemaphoreZirconHandleInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImportSemaphoreZirconHandleInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| &cgen_var_0, (VkSemaphore*)&forUnmarshaling->semaphore, 1); |
| vkStream->read((VkSemaphoreImportFlags*)&forUnmarshaling->flags, |
| sizeof(VkSemaphoreImportFlags)); |
| vkStream->read((VkExternalSemaphoreHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| vkStream->read((zx_handle_t*)&forUnmarshaling->zirconHandle, sizeof(zx_handle_t)); |
| } |
| |
| void marshal_VkSemaphoreGetZirconHandleInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSemaphoreGetZirconHandleInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkSemaphore_u64(&forMarshaling->semaphore, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkExternalSemaphoreHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkSemaphoreGetZirconHandleInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSemaphoreGetZirconHandleInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkSemaphore( |
| &cgen_var_0, (VkSemaphore*)&forUnmarshaling->semaphore, 1); |
| vkStream->read((VkExternalSemaphoreHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalSemaphoreHandleTypeFlagBits)); |
| } |
| |
| #endif |
| #ifdef VK_FUCHSIA_buffer_collection |
| void marshal_VkBufferCollectionCreateInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferCollectionCreateInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((zx_handle_t*)&forMarshaling->collectionToken, sizeof(zx_handle_t)); |
| } |
| |
| void unmarshal_VkBufferCollectionCreateInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferCollectionCreateInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((zx_handle_t*)&forUnmarshaling->collectionToken, sizeof(zx_handle_t)); |
| } |
| |
| void marshal_VkImportMemoryBufferCollectionFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportMemoryBufferCollectionFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->collection; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((uint32_t*)&forMarshaling->index, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkImportMemoryBufferCollectionFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImportMemoryBufferCollectionFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| forUnmarshaling->collection = (VkBufferCollectionFUCHSIA)vkStream->getBe64(); |
| vkStream->read((uint32_t*)&forUnmarshaling->index, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkBufferCollectionImageCreateInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferCollectionImageCreateInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->collection; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((uint32_t*)&forMarshaling->index, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkBufferCollectionImageCreateInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferCollectionImageCreateInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| forUnmarshaling->collection = (VkBufferCollectionFUCHSIA)vkStream->getBe64(); |
| vkStream->read((uint32_t*)&forUnmarshaling->index, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkBufferCollectionConstraintsInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferCollectionConstraintsInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->minBufferCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxBufferCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->minBufferCountForCamping, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->minBufferCountForDedicatedSlack, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->minBufferCountForSharedSlack, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkBufferCollectionConstraintsInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferCollectionConstraintsInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minBufferCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxBufferCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minBufferCountForCamping, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minBufferCountForDedicatedSlack, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minBufferCountForSharedSlack, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkBufferConstraintsInfoFUCHSIA(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferConstraintsInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkBufferCreateInfo(vkStream, rootType, |
| (VkBufferCreateInfo*)(&forMarshaling->createInfo)); |
| vkStream->write((VkFormatFeatureFlags*)&forMarshaling->requiredFormatFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| marshal_VkBufferCollectionConstraintsInfoFUCHSIA( |
| vkStream, rootType, |
| (VkBufferCollectionConstraintsInfoFUCHSIA*)(&forMarshaling->bufferCollectionConstraints)); |
| } |
| |
| void unmarshal_VkBufferConstraintsInfoFUCHSIA(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferConstraintsInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkBufferCreateInfo(vkStream, rootType, |
| (VkBufferCreateInfo*)(&forUnmarshaling->createInfo)); |
| vkStream->read((VkFormatFeatureFlags*)&forUnmarshaling->requiredFormatFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| unmarshal_VkBufferCollectionConstraintsInfoFUCHSIA( |
| vkStream, rootType, |
| (VkBufferCollectionConstraintsInfoFUCHSIA*)(&forUnmarshaling->bufferCollectionConstraints)); |
| } |
| |
| void marshal_VkBufferCollectionBufferCreateInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferCollectionBufferCreateInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0 = (uint64_t)forMarshaling->collection; |
| vkStream->putBe64(cgen_var_0); |
| vkStream->write((uint32_t*)&forMarshaling->index, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkBufferCollectionBufferCreateInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferCollectionBufferCreateInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| forUnmarshaling->collection = (VkBufferCollectionFUCHSIA)vkStream->getBe64(); |
| vkStream->read((uint32_t*)&forUnmarshaling->index, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkSysmemColorSpaceFUCHSIA(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSysmemColorSpaceFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->colorSpace, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkSysmemColorSpaceFUCHSIA(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSysmemColorSpaceFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->colorSpace, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkBufferCollectionPropertiesFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkBufferCollectionPropertiesFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->memoryTypeBits, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->bufferCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->createInfoIndex, sizeof(uint32_t)); |
| vkStream->write((uint64_t*)&forMarshaling->sysmemPixelFormat, sizeof(uint64_t)); |
| vkStream->write((VkFormatFeatureFlags*)&forMarshaling->formatFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| marshal_VkSysmemColorSpaceFUCHSIA( |
| vkStream, rootType, (VkSysmemColorSpaceFUCHSIA*)(&forMarshaling->sysmemColorSpaceIndex)); |
| marshal_VkComponentMapping( |
| vkStream, rootType, |
| (VkComponentMapping*)(&forMarshaling->samplerYcbcrConversionComponents)); |
| vkStream->write((VkSamplerYcbcrModelConversion*)&forMarshaling->suggestedYcbcrModel, |
| sizeof(VkSamplerYcbcrModelConversion)); |
| vkStream->write((VkSamplerYcbcrRange*)&forMarshaling->suggestedYcbcrRange, |
| sizeof(VkSamplerYcbcrRange)); |
| vkStream->write((VkChromaLocation*)&forMarshaling->suggestedXChromaOffset, |
| sizeof(VkChromaLocation)); |
| vkStream->write((VkChromaLocation*)&forMarshaling->suggestedYChromaOffset, |
| sizeof(VkChromaLocation)); |
| } |
| |
| void unmarshal_VkBufferCollectionPropertiesFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkBufferCollectionPropertiesFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->memoryTypeBits, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->bufferCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->createInfoIndex, sizeof(uint32_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->sysmemPixelFormat, sizeof(uint64_t)); |
| vkStream->read((VkFormatFeatureFlags*)&forUnmarshaling->formatFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| unmarshal_VkSysmemColorSpaceFUCHSIA( |
| vkStream, rootType, (VkSysmemColorSpaceFUCHSIA*)(&forUnmarshaling->sysmemColorSpaceIndex)); |
| unmarshal_VkComponentMapping( |
| vkStream, rootType, |
| (VkComponentMapping*)(&forUnmarshaling->samplerYcbcrConversionComponents)); |
| vkStream->read((VkSamplerYcbcrModelConversion*)&forUnmarshaling->suggestedYcbcrModel, |
| sizeof(VkSamplerYcbcrModelConversion)); |
| vkStream->read((VkSamplerYcbcrRange*)&forUnmarshaling->suggestedYcbcrRange, |
| sizeof(VkSamplerYcbcrRange)); |
| vkStream->read((VkChromaLocation*)&forUnmarshaling->suggestedXChromaOffset, |
| sizeof(VkChromaLocation)); |
| vkStream->read((VkChromaLocation*)&forUnmarshaling->suggestedYChromaOffset, |
| sizeof(VkChromaLocation)); |
| } |
| |
| void marshal_VkImageFormatConstraintsInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageFormatConstraintsInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkImageCreateInfo(vkStream, rootType, |
| (VkImageCreateInfo*)(&forMarshaling->imageCreateInfo)); |
| vkStream->write((VkFormatFeatureFlags*)&forMarshaling->requiredFormatFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| vkStream->write((VkImageFormatConstraintsFlagsFUCHSIA*)&forMarshaling->flags, |
| sizeof(VkImageFormatConstraintsFlagsFUCHSIA)); |
| vkStream->write((uint64_t*)&forMarshaling->sysmemPixelFormat, sizeof(uint64_t)); |
| vkStream->write((uint32_t*)&forMarshaling->colorSpaceCount, sizeof(uint32_t)); |
| marshal_VkSysmemColorSpaceFUCHSIA( |
| vkStream, rootType, (const VkSysmemColorSpaceFUCHSIA*)(forMarshaling->pColorSpaces)); |
| } |
| |
| void unmarshal_VkImageFormatConstraintsInfoFUCHSIA( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageFormatConstraintsInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkImageCreateInfo(vkStream, rootType, |
| (VkImageCreateInfo*)(&forUnmarshaling->imageCreateInfo)); |
| vkStream->read((VkFormatFeatureFlags*)&forUnmarshaling->requiredFormatFeatures, |
| sizeof(VkFormatFeatureFlags)); |
| vkStream->read((VkImageFormatConstraintsFlagsFUCHSIA*)&forUnmarshaling->flags, |
| sizeof(VkImageFormatConstraintsFlagsFUCHSIA)); |
| vkStream->read((uint64_t*)&forUnmarshaling->sysmemPixelFormat, sizeof(uint64_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->colorSpaceCount, sizeof(uint32_t)); |
| unmarshal_VkSysmemColorSpaceFUCHSIA( |
| vkStream, rootType, (VkSysmemColorSpaceFUCHSIA*)(forUnmarshaling->pColorSpaces)); |
| } |
| |
| void marshal_VkImageConstraintsInfoFUCHSIA(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImageConstraintsInfoFUCHSIA* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->formatConstraintsCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->formatConstraintsCount; ++i) { |
| marshal_VkImageFormatConstraintsInfoFUCHSIA( |
| vkStream, rootType, |
| (const VkImageFormatConstraintsInfoFUCHSIA*)(forMarshaling->pFormatConstraints + |
| i)); |
| } |
| } |
| marshal_VkBufferCollectionConstraintsInfoFUCHSIA( |
| vkStream, rootType, |
| (VkBufferCollectionConstraintsInfoFUCHSIA*)(&forMarshaling->bufferCollectionConstraints)); |
| vkStream->write((VkImageConstraintsInfoFlagsFUCHSIA*)&forMarshaling->flags, |
| sizeof(VkImageConstraintsInfoFlagsFUCHSIA)); |
| } |
| |
| void unmarshal_VkImageConstraintsInfoFUCHSIA(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImageConstraintsInfoFUCHSIA* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->formatConstraintsCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->formatConstraintsCount; ++i) { |
| unmarshal_VkImageFormatConstraintsInfoFUCHSIA( |
| vkStream, rootType, |
| (VkImageFormatConstraintsInfoFUCHSIA*)(forUnmarshaling->pFormatConstraints + i)); |
| } |
| } |
| unmarshal_VkBufferCollectionConstraintsInfoFUCHSIA( |
| vkStream, rootType, |
| (VkBufferCollectionConstraintsInfoFUCHSIA*)(&forUnmarshaling->bufferCollectionConstraints)); |
| vkStream->read((VkImageConstraintsInfoFlagsFUCHSIA*)&forUnmarshaling->flags, |
| sizeof(VkImageConstraintsInfoFlagsFUCHSIA)); |
| } |
| |
| #endif |
| #ifdef VK_HUAWEI_subpass_shading |
| void marshal_VkSubpassShadingPipelineCreateInfoHUAWEI( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSubpassShadingPipelineCreateInfoHUAWEI* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkRenderPass_u64(&forMarshaling->renderPass, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->subpass, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkSubpassShadingPipelineCreateInfoHUAWEI( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSubpassShadingPipelineCreateInfoHUAWEI* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkRenderPass( |
| &cgen_var_0, (VkRenderPass*)&forUnmarshaling->renderPass, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->subpass, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceSubpassShadingFeaturesHUAWEI( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSubpassShadingFeaturesHUAWEI* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->subpassShading, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSubpassShadingFeaturesHUAWEI( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSubpassShadingFeaturesHUAWEI* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->subpassShading, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceSubpassShadingPropertiesHUAWEI( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceSubpassShadingPropertiesHUAWEI* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxSubpassShadingWorkgroupSizeAspectRatio, |
| sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceSubpassShadingPropertiesHUAWEI( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceSubpassShadingPropertiesHUAWEI* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxSubpassShadingWorkgroupSizeAspectRatio, |
| sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_HUAWEI_invocation_mask |
| void marshal_VkPhysicalDeviceInvocationMaskFeaturesHUAWEI( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceInvocationMaskFeaturesHUAWEI* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->invocationMask, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceInvocationMaskFeaturesHUAWEI( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceInvocationMaskFeaturesHUAWEI* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->invocationMask, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_NV_external_memory_rdma |
| void marshal_VkMemoryGetRemoteAddressInfoNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMemoryGetRemoteAddressInfoNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkDeviceMemory_u64(&forMarshaling->memory, &cgen_var_0, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkExternalMemoryHandleTypeFlagBits*)&forMarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| void unmarshal_VkMemoryGetRemoteAddressInfoNV(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMemoryGetRemoteAddressInfoNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkDeviceMemory( |
| &cgen_var_0, (VkDeviceMemory*)&forUnmarshaling->memory, 1); |
| vkStream->read((VkExternalMemoryHandleTypeFlagBits*)&forUnmarshaling->handleType, |
| sizeof(VkExternalMemoryHandleTypeFlagBits)); |
| } |
| |
| void marshal_VkPhysicalDeviceExternalMemoryRDMAFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceExternalMemoryRDMAFeaturesNV* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->externalMemoryRDMA, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceExternalMemoryRDMAFeaturesNV( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceExternalMemoryRDMAFeaturesNV* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->externalMemoryRDMA, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state2 |
| void marshal_VkPhysicalDeviceExtendedDynamicState2FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceExtendedDynamicState2FeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->extendedDynamicState2, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->extendedDynamicState2LogicOp, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->extendedDynamicState2PatchControlPoints, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceExtendedDynamicState2FeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceExtendedDynamicState2FeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->extendedDynamicState2, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->extendedDynamicState2LogicOp, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->extendedDynamicState2PatchControlPoints, |
| sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_QNX_screen_surface |
| void marshal_VkScreenSurfaceCreateInfoQNX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkScreenSurfaceCreateInfoQNX* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkScreenSurfaceCreateFlagsQNX*)&forMarshaling->flags, |
| sizeof(VkScreenSurfaceCreateFlagsQNX)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->context; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->context) { |
| vkStream->write((_screen_context*)forMarshaling->context, sizeof(_screen_context)); |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->window; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->window) { |
| vkStream->write((_screen_window*)forMarshaling->window, sizeof(_screen_window)); |
| } |
| } |
| |
| void unmarshal_VkScreenSurfaceCreateInfoQNX(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkScreenSurfaceCreateInfoQNX* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkScreenSurfaceCreateFlagsQNX*)&forUnmarshaling->flags, |
| sizeof(VkScreenSurfaceCreateFlagsQNX)); |
| // WARNING PTR CHECK |
| _screen_context* check_context; |
| check_context = (_screen_context*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->context) { |
| if (!(check_context)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->context inconsistent between guest and host\n"); |
| } |
| vkStream->read((_screen_context*)forUnmarshaling->context, sizeof(_screen_context)); |
| } |
| // WARNING PTR CHECK |
| _screen_window* check_window; |
| check_window = (_screen_window*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->window) { |
| if (!(check_window)) { |
| fprintf(stderr, "fatal: forUnmarshaling->window inconsistent between guest and host\n"); |
| } |
| vkStream->read((_screen_window*)forUnmarshaling->window, sizeof(_screen_window)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_color_write_enable |
| void marshal_VkPhysicalDeviceColorWriteEnableFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceColorWriteEnableFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->colorWriteEnable, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceColorWriteEnableFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceColorWriteEnableFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->colorWriteEnable, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPipelineColorWriteCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPipelineColorWriteCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->attachmentCount, sizeof(uint32_t)); |
| vkStream->write((const VkBool32*)forMarshaling->pColorWriteEnables, |
| forMarshaling->attachmentCount * sizeof(const VkBool32)); |
| } |
| |
| void unmarshal_VkPipelineColorWriteCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPipelineColorWriteCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->attachmentCount, sizeof(uint32_t)); |
| vkStream->read((VkBool32*)forUnmarshaling->pColorWriteEnables, |
| forUnmarshaling->attachmentCount * sizeof(const VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_GOOGLE_gfxstream |
| void marshal_VkImportColorBufferGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportColorBufferGOOGLE* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->colorBuffer, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkImportColorBufferGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImportColorBufferGOOGLE* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| forUnmarshaling->sType = VK_STRUCTURE_TYPE_IMPORT_COLOR_BUFFER_GOOGLE; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->colorBuffer, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkImportBufferGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkImportBufferGOOGLE* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->buffer, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkImportBufferGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkImportBufferGOOGLE* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| forUnmarshaling->sType = VK_STRUCTURE_TYPE_IMPORT_BUFFER_GOOGLE; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->buffer, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkCreateBlobGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCreateBlobGOOGLE* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->blobMem, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->blobFlags, sizeof(uint32_t)); |
| vkStream->write((uint64_t*)&forMarshaling->blobId, sizeof(uint64_t)); |
| } |
| |
| void unmarshal_VkCreateBlobGOOGLE(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCreateBlobGOOGLE* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| forUnmarshaling->sType = VK_STRUCTURE_TYPE_CREATE_BLOB_GOOGLE; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->blobMem, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->blobFlags, sizeof(uint32_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->blobId, sizeof(uint64_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_global_priority_query |
| void marshal_VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->globalPriorityQuery, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->globalPriorityQuery, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkQueueFamilyGlobalPriorityPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkQueueFamilyGlobalPriorityPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->priorityCount, sizeof(uint32_t)); |
| vkStream->write((VkQueueGlobalPriorityEXT*)forMarshaling->priorities, |
| VK_MAX_GLOBAL_PRIORITY_SIZE_EXT * sizeof(VkQueueGlobalPriorityEXT)); |
| } |
| |
| void unmarshal_VkQueueFamilyGlobalPriorityPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkQueueFamilyGlobalPriorityPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->priorityCount, sizeof(uint32_t)); |
| vkStream->read((VkQueueGlobalPriorityEXT*)forUnmarshaling->priorities, |
| VK_MAX_GLOBAL_PRIORITY_SIZE_EXT * sizeof(VkQueueGlobalPriorityEXT)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_multi_draw |
| void marshal_VkPhysicalDeviceMultiDrawFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMultiDrawFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->multiDraw, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMultiDrawFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMultiDrawFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->multiDraw, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceMultiDrawPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceMultiDrawPropertiesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxMultiDrawCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceMultiDrawPropertiesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceMultiDrawPropertiesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxMultiDrawCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkMultiDrawInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMultiDrawInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->firstVertex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->vertexCount, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkMultiDrawInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMultiDrawInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->firstVertex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->vertexCount, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkMultiDrawIndexedInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkMultiDrawIndexedInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->firstIndex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->indexCount, sizeof(uint32_t)); |
| vkStream->write((int32_t*)&forMarshaling->vertexOffset, sizeof(int32_t)); |
| } |
| |
| void unmarshal_VkMultiDrawIndexedInfoEXT(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkMultiDrawIndexedInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->firstIndex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->indexCount, sizeof(uint32_t)); |
| vkStream->read((int32_t*)&forUnmarshaling->vertexOffset, sizeof(int32_t)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_load_store_op_none |
| #endif |
| #ifdef VK_EXT_border_color_swizzle |
| void marshal_VkPhysicalDeviceBorderColorSwizzleFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceBorderColorSwizzleFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->borderColorSwizzle, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->borderColorSwizzleFromImage, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceBorderColorSwizzleFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceBorderColorSwizzleFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->borderColorSwizzle, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->borderColorSwizzleFromImage, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkSamplerBorderColorComponentMappingCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkSamplerBorderColorComponentMappingCreateInfoEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkComponentMapping(vkStream, rootType, |
| (VkComponentMapping*)(&forMarshaling->components)); |
| vkStream->write((VkBool32*)&forMarshaling->srgb, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkSamplerBorderColorComponentMappingCreateInfoEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkSamplerBorderColorComponentMappingCreateInfoEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkComponentMapping(vkStream, rootType, |
| (VkComponentMapping*)(&forUnmarshaling->components)); |
| vkStream->read((VkBool32*)&forUnmarshaling->srgb, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_pageable_device_local_memory |
| void marshal_VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->pageableDeviceLocalMemory, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->pageableDeviceLocalMemory, sizeof(VkBool32)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| void marshal_VkDeviceOrHostAddressKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkDeviceOrHostAddressKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceAddress*)&forMarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| } |
| |
| void unmarshal_VkDeviceOrHostAddressKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkDeviceOrHostAddressKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceAddress*)&forUnmarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| } |
| |
| void marshal_VkAccelerationStructureBuildRangeInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureBuildRangeInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->primitiveCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->primitiveOffset, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->firstVertex, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->transformOffset, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkAccelerationStructureBuildRangeInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureBuildRangeInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->primitiveCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->primitiveOffset, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->firstVertex, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->transformOffset, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkAccelerationStructureGeometryTrianglesDataKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureGeometryTrianglesDataKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkFormat*)&forMarshaling->vertexFormat, sizeof(VkFormat)); |
| marshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forMarshaling->vertexData)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->vertexStride, sizeof(VkDeviceSize)); |
| vkStream->write((uint32_t*)&forMarshaling->maxVertex, sizeof(uint32_t)); |
| vkStream->write((VkIndexType*)&forMarshaling->indexType, sizeof(VkIndexType)); |
| marshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forMarshaling->indexData)); |
| marshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forMarshaling->transformData)); |
| } |
| |
| void unmarshal_VkAccelerationStructureGeometryTrianglesDataKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureGeometryTrianglesDataKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkFormat*)&forUnmarshaling->vertexFormat, sizeof(VkFormat)); |
| unmarshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forUnmarshaling->vertexData)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->vertexStride, sizeof(VkDeviceSize)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxVertex, sizeof(uint32_t)); |
| vkStream->read((VkIndexType*)&forUnmarshaling->indexType, sizeof(VkIndexType)); |
| unmarshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forUnmarshaling->indexData)); |
| unmarshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forUnmarshaling->transformData)); |
| } |
| |
| void marshal_VkAccelerationStructureGeometryAabbsDataKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureGeometryAabbsDataKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkDeviceOrHostAddressConstKHR(vkStream, rootType, |
| (VkDeviceOrHostAddressConstKHR*)(&forMarshaling->data)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->stride, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkAccelerationStructureGeometryAabbsDataKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureGeometryAabbsDataKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forUnmarshaling->data)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->stride, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkAccelerationStructureGeometryInstancesDataKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureGeometryInstancesDataKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->arrayOfPointers, sizeof(VkBool32)); |
| marshal_VkDeviceOrHostAddressConstKHR(vkStream, rootType, |
| (VkDeviceOrHostAddressConstKHR*)(&forMarshaling->data)); |
| } |
| |
| void unmarshal_VkAccelerationStructureGeometryInstancesDataKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureGeometryInstancesDataKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->arrayOfPointers, sizeof(VkBool32)); |
| unmarshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forUnmarshaling->data)); |
| } |
| |
| void marshal_VkAccelerationStructureGeometryDataKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureGeometryDataKHR* forMarshaling) { |
| (void)rootType; |
| marshal_VkAccelerationStructureGeometryTrianglesDataKHR( |
| vkStream, rootType, |
| (VkAccelerationStructureGeometryTrianglesDataKHR*)(&forMarshaling->triangles)); |
| } |
| |
| void unmarshal_VkAccelerationStructureGeometryDataKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureGeometryDataKHR* forUnmarshaling) { |
| (void)rootType; |
| unmarshal_VkAccelerationStructureGeometryTrianglesDataKHR( |
| vkStream, rootType, |
| (VkAccelerationStructureGeometryTrianglesDataKHR*)(&forUnmarshaling->triangles)); |
| } |
| |
| void marshal_VkAccelerationStructureGeometryKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureGeometryKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkGeometryTypeKHR*)&forMarshaling->geometryType, sizeof(VkGeometryTypeKHR)); |
| marshal_VkAccelerationStructureGeometryDataKHR( |
| vkStream, rootType, (VkAccelerationStructureGeometryDataKHR*)(&forMarshaling->geometry)); |
| vkStream->write((VkGeometryFlagsKHR*)&forMarshaling->flags, sizeof(VkGeometryFlagsKHR)); |
| } |
| |
| void unmarshal_VkAccelerationStructureGeometryKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureGeometryKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkGeometryTypeKHR*)&forUnmarshaling->geometryType, sizeof(VkGeometryTypeKHR)); |
| unmarshal_VkAccelerationStructureGeometryDataKHR( |
| vkStream, rootType, (VkAccelerationStructureGeometryDataKHR*)(&forUnmarshaling->geometry)); |
| vkStream->read((VkGeometryFlagsKHR*)&forUnmarshaling->flags, sizeof(VkGeometryFlagsKHR)); |
| } |
| |
| void marshal_VkAccelerationStructureBuildGeometryInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureBuildGeometryInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkAccelerationStructureTypeKHR*)&forMarshaling->type, |
| sizeof(VkAccelerationStructureTypeKHR)); |
| vkStream->write((VkBuildAccelerationStructureFlagsKHR*)&forMarshaling->flags, |
| sizeof(VkBuildAccelerationStructureFlagsKHR)); |
| vkStream->write((VkBuildAccelerationStructureModeKHR*)&forMarshaling->mode, |
| sizeof(VkBuildAccelerationStructureModeKHR)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureKHR_u64( |
| &forMarshaling->srcAccelerationStructure, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureKHR_u64( |
| &forMarshaling->dstAccelerationStructure, &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((uint32_t*)&forMarshaling->geometryCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_2 = (uint64_t)(uintptr_t)forMarshaling->pGeometries; |
| vkStream->putBe64(cgen_var_2); |
| if (forMarshaling->pGeometries) { |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->geometryCount; ++i) { |
| marshal_VkAccelerationStructureGeometryKHR( |
| vkStream, rootType, |
| (const VkAccelerationStructureGeometryKHR*)(forMarshaling->pGeometries + i)); |
| } |
| } |
| } |
| marshal_VkDeviceOrHostAddressKHR(vkStream, rootType, |
| (VkDeviceOrHostAddressKHR*)(&forMarshaling->scratchData)); |
| } |
| |
| void unmarshal_VkAccelerationStructureBuildGeometryInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureBuildGeometryInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkAccelerationStructureTypeKHR*)&forUnmarshaling->type, |
| sizeof(VkAccelerationStructureTypeKHR)); |
| vkStream->read((VkBuildAccelerationStructureFlagsKHR*)&forUnmarshaling->flags, |
| sizeof(VkBuildAccelerationStructureFlagsKHR)); |
| vkStream->read((VkBuildAccelerationStructureModeKHR*)&forUnmarshaling->mode, |
| sizeof(VkBuildAccelerationStructureModeKHR)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureKHR( |
| &cgen_var_0, (VkAccelerationStructureKHR*)&forUnmarshaling->srcAccelerationStructure, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureKHR( |
| &cgen_var_1, (VkAccelerationStructureKHR*)&forUnmarshaling->dstAccelerationStructure, 1); |
| vkStream->read((uint32_t*)&forUnmarshaling->geometryCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkAccelerationStructureGeometryKHR* check_pGeometries; |
| check_pGeometries = (const VkAccelerationStructureGeometryKHR*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pGeometries) { |
| if (!(check_pGeometries)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pGeometries inconsistent between guest and host\n"); |
| } |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->geometryCount; ++i) { |
| unmarshal_VkAccelerationStructureGeometryKHR( |
| vkStream, rootType, |
| (VkAccelerationStructureGeometryKHR*)(forUnmarshaling->pGeometries + i)); |
| } |
| } |
| } |
| unmarshal_VkDeviceOrHostAddressKHR(vkStream, rootType, |
| (VkDeviceOrHostAddressKHR*)(&forUnmarshaling->scratchData)); |
| } |
| |
| void marshal_VkAccelerationStructureCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkAccelerationStructureCreateFlagsKHR*)&forMarshaling->createFlags, |
| sizeof(VkAccelerationStructureCreateFlagsKHR)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkBuffer_u64(&forMarshaling->buffer, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkDeviceSize*)&forMarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->write((VkAccelerationStructureTypeKHR*)&forMarshaling->type, |
| sizeof(VkAccelerationStructureTypeKHR)); |
| vkStream->write((VkDeviceAddress*)&forMarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| } |
| |
| void unmarshal_VkAccelerationStructureCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkAccelerationStructureCreateFlagsKHR*)&forUnmarshaling->createFlags, |
| sizeof(VkAccelerationStructureCreateFlagsKHR)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkBuffer(&cgen_var_0, |
| (VkBuffer*)&forUnmarshaling->buffer, 1); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->offset, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| vkStream->read((VkAccelerationStructureTypeKHR*)&forUnmarshaling->type, |
| sizeof(VkAccelerationStructureTypeKHR)); |
| vkStream->read((VkDeviceAddress*)&forUnmarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| } |
| |
| void marshal_VkWriteDescriptorSetAccelerationStructureKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkWriteDescriptorSetAccelerationStructureKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->accelerationStructureCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pAccelerationStructures; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pAccelerationStructures) { |
| if (forMarshaling->accelerationStructureCount) { |
| uint64_t* cgen_var_0_0; |
| vkStream->alloc((void**)&cgen_var_0_0, forMarshaling->accelerationStructureCount * 8); |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureKHR_u64( |
| forMarshaling->pAccelerationStructures, cgen_var_0_0, |
| forMarshaling->accelerationStructureCount); |
| vkStream->write((uint64_t*)cgen_var_0_0, forMarshaling->accelerationStructureCount * 8); |
| } |
| } |
| } |
| |
| void unmarshal_VkWriteDescriptorSetAccelerationStructureKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkWriteDescriptorSetAccelerationStructureKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->accelerationStructureCount, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkAccelerationStructureKHR* check_pAccelerationStructures; |
| check_pAccelerationStructures = |
| (const VkAccelerationStructureKHR*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pAccelerationStructures) { |
| if (!(check_pAccelerationStructures)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pAccelerationStructures inconsistent between guest " |
| "and host\n"); |
| } |
| if (forUnmarshaling->accelerationStructureCount) { |
| uint64_t* cgen_var_0_0; |
| vkStream->alloc((void**)&cgen_var_0_0, forUnmarshaling->accelerationStructureCount * 8); |
| vkStream->read((uint64_t*)cgen_var_0_0, |
| forUnmarshaling->accelerationStructureCount * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureKHR( |
| cgen_var_0_0, (VkAccelerationStructureKHR*)forUnmarshaling->pAccelerationStructures, |
| forUnmarshaling->accelerationStructureCount); |
| } |
| } |
| } |
| |
| void marshal_VkPhysicalDeviceAccelerationStructureFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceAccelerationStructureFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->accelerationStructure, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->accelerationStructureCaptureReplay, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->accelerationStructureIndirectBuild, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->accelerationStructureHostCommands, sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->descriptorBindingAccelerationStructureUpdateAfterBind, |
| sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceAccelerationStructureFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceAccelerationStructureFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->accelerationStructure, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->accelerationStructureCaptureReplay, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->accelerationStructureIndirectBuild, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->accelerationStructureHostCommands, |
| sizeof(VkBool32)); |
| vkStream->read( |
| (VkBool32*)&forUnmarshaling->descriptorBindingAccelerationStructureUpdateAfterBind, |
| sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceAccelerationStructurePropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceAccelerationStructurePropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint64_t*)&forMarshaling->maxGeometryCount, sizeof(uint64_t)); |
| vkStream->write((uint64_t*)&forMarshaling->maxInstanceCount, sizeof(uint64_t)); |
| vkStream->write((uint64_t*)&forMarshaling->maxPrimitiveCount, sizeof(uint64_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPerStageDescriptorAccelerationStructures, |
| sizeof(uint32_t)); |
| vkStream->write( |
| (uint32_t*)&forMarshaling->maxPerStageDescriptorUpdateAfterBindAccelerationStructures, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxDescriptorSetAccelerationStructures, |
| sizeof(uint32_t)); |
| vkStream->write( |
| (uint32_t*)&forMarshaling->maxDescriptorSetUpdateAfterBindAccelerationStructures, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->minAccelerationStructureScratchOffsetAlignment, |
| sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceAccelerationStructurePropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceAccelerationStructurePropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint64_t*)&forUnmarshaling->maxGeometryCount, sizeof(uint64_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->maxInstanceCount, sizeof(uint64_t)); |
| vkStream->read((uint64_t*)&forUnmarshaling->maxPrimitiveCount, sizeof(uint64_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPerStageDescriptorAccelerationStructures, |
| sizeof(uint32_t)); |
| vkStream->read( |
| (uint32_t*)&forUnmarshaling->maxPerStageDescriptorUpdateAfterBindAccelerationStructures, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxDescriptorSetAccelerationStructures, |
| sizeof(uint32_t)); |
| vkStream->read( |
| (uint32_t*)&forUnmarshaling->maxDescriptorSetUpdateAfterBindAccelerationStructures, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->minAccelerationStructureScratchOffsetAlignment, |
| sizeof(uint32_t)); |
| } |
| |
| void marshal_VkAccelerationStructureDeviceAddressInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureDeviceAddressInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureKHR_u64( |
| &forMarshaling->accelerationStructure, &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| } |
| |
| void unmarshal_VkAccelerationStructureDeviceAddressInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureDeviceAddressInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureKHR( |
| &cgen_var_0, (VkAccelerationStructureKHR*)&forUnmarshaling->accelerationStructure, 1); |
| } |
| |
| void marshal_VkAccelerationStructureVersionInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureVersionInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((const uint8_t*)forMarshaling->pVersionData, |
| 2 * VK_UUID_SIZE * sizeof(const uint8_t)); |
| } |
| |
| void unmarshal_VkAccelerationStructureVersionInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureVersionInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint8_t*)forUnmarshaling->pVersionData, |
| 2 * VK_UUID_SIZE * sizeof(const uint8_t)); |
| } |
| |
| void marshal_VkCopyAccelerationStructureToMemoryInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCopyAccelerationStructureToMemoryInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureKHR_u64(&forMarshaling->src, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| marshal_VkDeviceOrHostAddressKHR(vkStream, rootType, |
| (VkDeviceOrHostAddressKHR*)(&forMarshaling->dst)); |
| vkStream->write((VkCopyAccelerationStructureModeKHR*)&forMarshaling->mode, |
| sizeof(VkCopyAccelerationStructureModeKHR)); |
| } |
| |
| void unmarshal_VkCopyAccelerationStructureToMemoryInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCopyAccelerationStructureToMemoryInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureKHR( |
| &cgen_var_0, (VkAccelerationStructureKHR*)&forUnmarshaling->src, 1); |
| unmarshal_VkDeviceOrHostAddressKHR(vkStream, rootType, |
| (VkDeviceOrHostAddressKHR*)(&forUnmarshaling->dst)); |
| vkStream->read((VkCopyAccelerationStructureModeKHR*)&forUnmarshaling->mode, |
| sizeof(VkCopyAccelerationStructureModeKHR)); |
| } |
| |
| void marshal_VkCopyMemoryToAccelerationStructureInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCopyMemoryToAccelerationStructureInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| marshal_VkDeviceOrHostAddressConstKHR(vkStream, rootType, |
| (VkDeviceOrHostAddressConstKHR*)(&forMarshaling->src)); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureKHR_u64(&forMarshaling->dst, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->write((VkCopyAccelerationStructureModeKHR*)&forMarshaling->mode, |
| sizeof(VkCopyAccelerationStructureModeKHR)); |
| } |
| |
| void unmarshal_VkCopyMemoryToAccelerationStructureInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCopyMemoryToAccelerationStructureInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| unmarshal_VkDeviceOrHostAddressConstKHR( |
| vkStream, rootType, (VkDeviceOrHostAddressConstKHR*)(&forUnmarshaling->src)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureKHR( |
| &cgen_var_0, (VkAccelerationStructureKHR*)&forUnmarshaling->dst, 1); |
| vkStream->read((VkCopyAccelerationStructureModeKHR*)&forUnmarshaling->mode, |
| sizeof(VkCopyAccelerationStructureModeKHR)); |
| } |
| |
| void marshal_VkCopyAccelerationStructureInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkCopyAccelerationStructureInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| uint64_t cgen_var_0; |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureKHR_u64(&forMarshaling->src, |
| &cgen_var_0, 1); |
| vkStream->write((uint64_t*)&cgen_var_0, 1 * 8); |
| uint64_t cgen_var_1; |
| vkStream->handleMapping()->mapHandles_VkAccelerationStructureKHR_u64(&forMarshaling->dst, |
| &cgen_var_1, 1); |
| vkStream->write((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->write((VkCopyAccelerationStructureModeKHR*)&forMarshaling->mode, |
| sizeof(VkCopyAccelerationStructureModeKHR)); |
| } |
| |
| void unmarshal_VkCopyAccelerationStructureInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkCopyAccelerationStructureInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| uint64_t cgen_var_0; |
| vkStream->read((uint64_t*)&cgen_var_0, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureKHR( |
| &cgen_var_0, (VkAccelerationStructureKHR*)&forUnmarshaling->src, 1); |
| uint64_t cgen_var_1; |
| vkStream->read((uint64_t*)&cgen_var_1, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkAccelerationStructureKHR( |
| &cgen_var_1, (VkAccelerationStructureKHR*)&forUnmarshaling->dst, 1); |
| vkStream->read((VkCopyAccelerationStructureModeKHR*)&forUnmarshaling->mode, |
| sizeof(VkCopyAccelerationStructureModeKHR)); |
| } |
| |
| void marshal_VkAccelerationStructureBuildSizesInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkAccelerationStructureBuildSizesInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkDeviceSize*)&forMarshaling->accelerationStructureSize, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->updateScratchSize, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->buildScratchSize, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkAccelerationStructureBuildSizesInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkAccelerationStructureBuildSizesInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->accelerationStructureSize, |
| sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->updateScratchSize, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->buildScratchSize, sizeof(VkDeviceSize)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_ray_tracing_pipeline |
| void marshal_VkRayTracingShaderGroupCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRayTracingShaderGroupCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkRayTracingShaderGroupTypeKHR*)&forMarshaling->type, |
| sizeof(VkRayTracingShaderGroupTypeKHR)); |
| vkStream->write((uint32_t*)&forMarshaling->generalShader, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->closestHitShader, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->anyHitShader, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->intersectionShader, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pShaderGroupCaptureReplayHandle; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pShaderGroupCaptureReplayHandle) { |
| vkStream->write((const void*)forMarshaling->pShaderGroupCaptureReplayHandle, |
| sizeof(const uint8_t)); |
| } |
| } |
| |
| void unmarshal_VkRayTracingShaderGroupCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRayTracingShaderGroupCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkRayTracingShaderGroupTypeKHR*)&forUnmarshaling->type, |
| sizeof(VkRayTracingShaderGroupTypeKHR)); |
| vkStream->read((uint32_t*)&forUnmarshaling->generalShader, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->closestHitShader, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->anyHitShader, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->intersectionShader, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const void* check_pShaderGroupCaptureReplayHandle; |
| check_pShaderGroupCaptureReplayHandle = (const void*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pShaderGroupCaptureReplayHandle) { |
| if (!(check_pShaderGroupCaptureReplayHandle)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pShaderGroupCaptureReplayHandle inconsistent between " |
| "guest and host\n"); |
| } |
| vkStream->read((void*)forUnmarshaling->pShaderGroupCaptureReplayHandle, |
| sizeof(const uint8_t)); |
| } |
| } |
| |
| void marshal_VkRayTracingPipelineInterfaceCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRayTracingPipelineInterfaceCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->maxPipelineRayPayloadSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxPipelineRayHitAttributeSize, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkRayTracingPipelineInterfaceCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRayTracingPipelineInterfaceCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPipelineRayPayloadSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPipelineRayHitAttributeSize, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkRayTracingPipelineCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkRayTracingPipelineCreateInfoKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkPipelineCreateFlags*)&forMarshaling->flags, sizeof(VkPipelineCreateFlags)); |
| vkStream->write((uint32_t*)&forMarshaling->stageCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->stageCount; ++i) { |
| marshal_VkPipelineShaderStageCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineShaderStageCreateInfo*)(forMarshaling->pStages + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->groupCount, sizeof(uint32_t)); |
| if (forMarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forMarshaling->groupCount; ++i) { |
| marshal_VkRayTracingShaderGroupCreateInfoKHR( |
| vkStream, rootType, |
| (const VkRayTracingShaderGroupCreateInfoKHR*)(forMarshaling->pGroups + i)); |
| } |
| } |
| vkStream->write((uint32_t*)&forMarshaling->maxPipelineRayRecursionDepth, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| uint64_t cgen_var_0 = (uint64_t)(uintptr_t)forMarshaling->pLibraryInfo; |
| vkStream->putBe64(cgen_var_0); |
| if (forMarshaling->pLibraryInfo) { |
| marshal_VkPipelineLibraryCreateInfoKHR( |
| vkStream, rootType, |
| (const VkPipelineLibraryCreateInfoKHR*)(forMarshaling->pLibraryInfo)); |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_1 = (uint64_t)(uintptr_t)forMarshaling->pLibraryInterface; |
| vkStream->putBe64(cgen_var_1); |
| if (forMarshaling->pLibraryInterface) { |
| marshal_VkRayTracingPipelineInterfaceCreateInfoKHR( |
| vkStream, rootType, |
| (const VkRayTracingPipelineInterfaceCreateInfoKHR*)(forMarshaling->pLibraryInterface)); |
| } |
| // WARNING PTR CHECK |
| uint64_t cgen_var_2 = (uint64_t)(uintptr_t)forMarshaling->pDynamicState; |
| vkStream->putBe64(cgen_var_2); |
| if (forMarshaling->pDynamicState) { |
| marshal_VkPipelineDynamicStateCreateInfo( |
| vkStream, rootType, |
| (const VkPipelineDynamicStateCreateInfo*)(forMarshaling->pDynamicState)); |
| } |
| uint64_t cgen_var_3; |
| vkStream->handleMapping()->mapHandles_VkPipelineLayout_u64(&forMarshaling->layout, &cgen_var_3, |
| 1); |
| vkStream->write((uint64_t*)&cgen_var_3, 1 * 8); |
| uint64_t cgen_var_4; |
| vkStream->handleMapping()->mapHandles_VkPipeline_u64(&forMarshaling->basePipelineHandle, |
| &cgen_var_4, 1); |
| vkStream->write((uint64_t*)&cgen_var_4, 1 * 8); |
| vkStream->write((int32_t*)&forMarshaling->basePipelineIndex, sizeof(int32_t)); |
| } |
| |
| void unmarshal_VkRayTracingPipelineCreateInfoKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkRayTracingPipelineCreateInfoKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkPipelineCreateFlags*)&forUnmarshaling->flags, sizeof(VkPipelineCreateFlags)); |
| vkStream->read((uint32_t*)&forUnmarshaling->stageCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->stageCount; ++i) { |
| unmarshal_VkPipelineShaderStageCreateInfo( |
| vkStream, rootType, |
| (VkPipelineShaderStageCreateInfo*)(forUnmarshaling->pStages + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->groupCount, sizeof(uint32_t)); |
| if (forUnmarshaling) { |
| for (uint32_t i = 0; i < (uint32_t)forUnmarshaling->groupCount; ++i) { |
| unmarshal_VkRayTracingShaderGroupCreateInfoKHR( |
| vkStream, rootType, |
| (VkRayTracingShaderGroupCreateInfoKHR*)(forUnmarshaling->pGroups + i)); |
| } |
| } |
| vkStream->read((uint32_t*)&forUnmarshaling->maxPipelineRayRecursionDepth, sizeof(uint32_t)); |
| // WARNING PTR CHECK |
| const VkPipelineLibraryCreateInfoKHR* check_pLibraryInfo; |
| check_pLibraryInfo = (const VkPipelineLibraryCreateInfoKHR*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pLibraryInfo) { |
| if (!(check_pLibraryInfo)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pLibraryInfo inconsistent between guest and host\n"); |
| } |
| unmarshal_VkPipelineLibraryCreateInfoKHR( |
| vkStream, rootType, (VkPipelineLibraryCreateInfoKHR*)(forUnmarshaling->pLibraryInfo)); |
| } |
| // WARNING PTR CHECK |
| const VkRayTracingPipelineInterfaceCreateInfoKHR* check_pLibraryInterface; |
| check_pLibraryInterface = |
| (const VkRayTracingPipelineInterfaceCreateInfoKHR*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pLibraryInterface) { |
| if (!(check_pLibraryInterface)) { |
| fprintf( |
| stderr, |
| "fatal: forUnmarshaling->pLibraryInterface inconsistent between guest and host\n"); |
| } |
| unmarshal_VkRayTracingPipelineInterfaceCreateInfoKHR( |
| vkStream, rootType, |
| (VkRayTracingPipelineInterfaceCreateInfoKHR*)(forUnmarshaling->pLibraryInterface)); |
| } |
| // WARNING PTR CHECK |
| const VkPipelineDynamicStateCreateInfo* check_pDynamicState; |
| check_pDynamicState = (const VkPipelineDynamicStateCreateInfo*)(uintptr_t)vkStream->getBe64(); |
| if (forUnmarshaling->pDynamicState) { |
| if (!(check_pDynamicState)) { |
| fprintf(stderr, |
| "fatal: forUnmarshaling->pDynamicState inconsistent between guest and host\n"); |
| } |
| unmarshal_VkPipelineDynamicStateCreateInfo( |
| vkStream, rootType, |
| (VkPipelineDynamicStateCreateInfo*)(forUnmarshaling->pDynamicState)); |
| } |
| uint64_t cgen_var_3; |
| vkStream->read((uint64_t*)&cgen_var_3, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipelineLayout( |
| &cgen_var_3, (VkPipelineLayout*)&forUnmarshaling->layout, 1); |
| uint64_t cgen_var_4; |
| vkStream->read((uint64_t*)&cgen_var_4, 1 * 8); |
| vkStream->handleMapping()->mapHandles_u64_VkPipeline( |
| &cgen_var_4, (VkPipeline*)&forUnmarshaling->basePipelineHandle, 1); |
| vkStream->read((int32_t*)&forUnmarshaling->basePipelineIndex, sizeof(int32_t)); |
| } |
| |
| void marshal_VkPhysicalDeviceRayTracingPipelineFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceRayTracingPipelineFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->rayTracingPipeline, sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->rayTracingPipelineShaderGroupHandleCaptureReplay, |
| sizeof(VkBool32)); |
| vkStream->write( |
| (VkBool32*)&forMarshaling->rayTracingPipelineShaderGroupHandleCaptureReplayMixed, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->rayTracingPipelineTraceRaysIndirect, |
| sizeof(VkBool32)); |
| vkStream->write((VkBool32*)&forMarshaling->rayTraversalPrimitiveCulling, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceRayTracingPipelineFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceRayTracingPipelineFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->rayTracingPipeline, sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->rayTracingPipelineShaderGroupHandleCaptureReplay, |
| sizeof(VkBool32)); |
| vkStream->read( |
| (VkBool32*)&forUnmarshaling->rayTracingPipelineShaderGroupHandleCaptureReplayMixed, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->rayTracingPipelineTraceRaysIndirect, |
| sizeof(VkBool32)); |
| vkStream->read((VkBool32*)&forUnmarshaling->rayTraversalPrimitiveCulling, sizeof(VkBool32)); |
| } |
| |
| void marshal_VkPhysicalDeviceRayTracingPipelinePropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceRayTracingPipelinePropertiesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((uint32_t*)&forMarshaling->shaderGroupHandleSize, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxRayRecursionDepth, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxShaderGroupStride, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->shaderGroupBaseAlignment, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->shaderGroupHandleCaptureReplaySize, |
| sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxRayDispatchInvocationCount, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->shaderGroupHandleAlignment, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->maxRayHitAttributeSize, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceRayTracingPipelinePropertiesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceRayTracingPipelinePropertiesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shaderGroupHandleSize, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxRayRecursionDepth, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxShaderGroupStride, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shaderGroupBaseAlignment, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shaderGroupHandleCaptureReplaySize, |
| sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxRayDispatchInvocationCount, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->shaderGroupHandleAlignment, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->maxRayHitAttributeSize, sizeof(uint32_t)); |
| } |
| |
| void marshal_VkStridedDeviceAddressRegionKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkStridedDeviceAddressRegionKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkDeviceAddress*)&forMarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->stride, sizeof(VkDeviceSize)); |
| vkStream->write((VkDeviceSize*)&forMarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void unmarshal_VkStridedDeviceAddressRegionKHR(VulkanStreamGuest* vkStream, |
| VkStructureType rootType, |
| VkStridedDeviceAddressRegionKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkDeviceAddress*)&forUnmarshaling->deviceAddress, sizeof(VkDeviceAddress)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->stride, sizeof(VkDeviceSize)); |
| vkStream->read((VkDeviceSize*)&forUnmarshaling->size, sizeof(VkDeviceSize)); |
| } |
| |
| void marshal_VkTraceRaysIndirectCommandKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkTraceRaysIndirectCommandKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((uint32_t*)&forMarshaling->width, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->height, sizeof(uint32_t)); |
| vkStream->write((uint32_t*)&forMarshaling->depth, sizeof(uint32_t)); |
| } |
| |
| void unmarshal_VkTraceRaysIndirectCommandKHR(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkTraceRaysIndirectCommandKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((uint32_t*)&forUnmarshaling->width, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->height, sizeof(uint32_t)); |
| vkStream->read((uint32_t*)&forUnmarshaling->depth, sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_ray_query |
| void marshal_VkPhysicalDeviceRayQueryFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const VkPhysicalDeviceRayQueryFeaturesKHR* forMarshaling) { |
| (void)rootType; |
| vkStream->write((VkStructureType*)&forMarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forMarshaling->sType; |
| } |
| marshal_extension_struct(vkStream, rootType, forMarshaling->pNext); |
| vkStream->write((VkBool32*)&forMarshaling->rayQuery, sizeof(VkBool32)); |
| } |
| |
| void unmarshal_VkPhysicalDeviceRayQueryFeaturesKHR( |
| VulkanStreamGuest* vkStream, VkStructureType rootType, |
| VkPhysicalDeviceRayQueryFeaturesKHR* forUnmarshaling) { |
| (void)rootType; |
| vkStream->read((VkStructureType*)&forUnmarshaling->sType, sizeof(VkStructureType)); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = forUnmarshaling->sType; |
| } |
| unmarshal_extension_struct(vkStream, rootType, (void*)(forUnmarshaling->pNext)); |
| vkStream->read((VkBool32*)&forUnmarshaling->rayQuery, sizeof(VkBool32)); |
| } |
| |
| #endif |
| void marshal_extension_struct(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| const void* structExtension) { |
| VkInstanceCreateInfo* structAccess = (VkInstanceCreateInfo*)(structExtension); |
| size_t currExtSize = goldfish_vk_extension_struct_size_with_stream_features( |
| vkStream->getFeatureBits(), rootType, structExtension); |
| if (!currExtSize && structExtension) { |
| // unknown struct extension; skip and call on its pNext field |
| marshal_extension_struct(vkStream, rootType, (void*)structAccess->pNext); |
| return; |
| } else { |
| // known or null extension struct |
| vkStream->putBe32(currExtSize); |
| if (!currExtSize) { |
| // exit if this was a null extension struct (size == 0 in this branch) |
| return; |
| } |
| } |
| vkStream->write(structExtension, sizeof(VkStructureType)); |
| if (!structExtension) { |
| return; |
| } |
| uint32_t structType = (uint32_t)goldfish_vk_struct_type(structExtension); |
| switch (structType) { |
| #ifdef VK_VERSION_1_1 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES: { |
| marshal_VkPhysicalDeviceSubgroupProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceSubgroupProperties*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES: { |
| marshal_VkPhysicalDevice16BitStorageFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevice16BitStorageFeatures*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS: { |
| marshal_VkMemoryDedicatedRequirements( |
| vkStream, rootType, |
| reinterpret_cast<const VkMemoryDedicatedRequirements*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO: { |
| marshal_VkMemoryDedicatedAllocateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkMemoryDedicatedAllocateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO: { |
| marshal_VkMemoryAllocateFlagsInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkMemoryAllocateFlagsInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFO: { |
| marshal_VkDeviceGroupRenderPassBeginInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceGroupRenderPassBeginInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO: { |
| marshal_VkDeviceGroupCommandBufferBeginInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceGroupCommandBufferBeginInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO: { |
| marshal_VkDeviceGroupSubmitInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceGroupSubmitInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFO: { |
| marshal_VkDeviceGroupBindSparseInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceGroupBindSparseInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO: { |
| marshal_VkBindBufferMemoryDeviceGroupInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkBindBufferMemoryDeviceGroupInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO: { |
| marshal_VkBindImageMemoryDeviceGroupInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkBindImageMemoryDeviceGroupInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO: { |
| marshal_VkDeviceGroupDeviceCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceGroupDeviceCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2: { |
| marshal_VkPhysicalDeviceFeatures2( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFeatures2*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES: { |
| marshal_VkPhysicalDevicePointClippingProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePointClippingProperties*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO: { |
| marshal_VkRenderPassInputAttachmentAspectCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkRenderPassInputAttachmentAspectCreateInfo*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFO: { |
| marshal_VkImageViewUsageCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkImageViewUsageCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO: { |
| marshal_VkPipelineTessellationDomainOriginStateCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineTessellationDomainOriginStateCreateInfo*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO: { |
| marshal_VkRenderPassMultiviewCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkRenderPassMultiviewCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES: { |
| marshal_VkPhysicalDeviceMultiviewFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMultiviewFeatures*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES: { |
| marshal_VkPhysicalDeviceMultiviewProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMultiviewProperties*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES: { |
| marshal_VkPhysicalDeviceVariablePointersFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceVariablePointersFeatures*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES: { |
| marshal_VkPhysicalDeviceProtectedMemoryFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceProtectedMemoryFeatures*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: { |
| marshal_VkPhysicalDeviceProtectedMemoryProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceProtectedMemoryProperties*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PROTECTED_SUBMIT_INFO: { |
| marshal_VkProtectedSubmitInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkProtectedSubmitInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO: { |
| marshal_VkSamplerYcbcrConversionInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkSamplerYcbcrConversionInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFO: { |
| marshal_VkBindImagePlaneMemoryInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkBindImagePlaneMemoryInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO: { |
| marshal_VkImagePlaneMemoryRequirementsInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkImagePlaneMemoryRequirementsInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES: { |
| marshal_VkPhysicalDeviceSamplerYcbcrConversionFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceSamplerYcbcrConversionFeatures*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES: { |
| marshal_VkSamplerYcbcrConversionImageFormatProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkSamplerYcbcrConversionImageFormatProperties*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO: { |
| marshal_VkPhysicalDeviceExternalImageFormatInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceExternalImageFormatInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES: { |
| marshal_VkExternalImageFormatProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkExternalImageFormatProperties*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES: { |
| marshal_VkPhysicalDeviceIDProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceIDProperties*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO: { |
| marshal_VkExternalMemoryImageCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkExternalMemoryImageCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO: { |
| marshal_VkExternalMemoryBufferCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkExternalMemoryBufferCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO: { |
| marshal_VkExportMemoryAllocateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkExportMemoryAllocateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO: { |
| marshal_VkExportFenceCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkExportFenceCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO: { |
| marshal_VkExportSemaphoreCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkExportSemaphoreCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES: { |
| marshal_VkPhysicalDeviceMaintenance3Properties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMaintenance3Properties*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES: { |
| marshal_VkPhysicalDeviceShaderDrawParametersFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderDrawParametersFeatures*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES: { |
| marshal_VkPhysicalDeviceVulkan11Features( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceVulkan11Features*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES: { |
| marshal_VkPhysicalDeviceVulkan11Properties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceVulkan11Properties*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES: { |
| marshal_VkPhysicalDeviceVulkan12Features( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceVulkan12Features*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES: { |
| marshal_VkPhysicalDeviceVulkan12Properties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceVulkan12Properties*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO: { |
| marshal_VkImageFormatListCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkImageFormatListCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES: { |
| marshal_VkPhysicalDevice8BitStorageFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevice8BitStorageFeatures*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES: { |
| marshal_VkPhysicalDeviceDriverProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDriverProperties*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES: { |
| marshal_VkPhysicalDeviceShaderAtomicInt64Features( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderAtomicInt64Features*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES: { |
| marshal_VkPhysicalDeviceShaderFloat16Int8Features( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderFloat16Int8Features*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES: { |
| marshal_VkPhysicalDeviceFloatControlsProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFloatControlsProperties*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO: { |
| marshal_VkDescriptorSetLayoutBindingFlagsCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkDescriptorSetLayoutBindingFlagsCreateInfo*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES: { |
| marshal_VkPhysicalDeviceDescriptorIndexingFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDescriptorIndexingFeatures*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES: { |
| marshal_VkPhysicalDeviceDescriptorIndexingProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDescriptorIndexingProperties*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO: { |
| marshal_VkDescriptorSetVariableDescriptorCountAllocateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkDescriptorSetVariableDescriptorCountAllocateInfo*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT: { |
| marshal_VkDescriptorSetVariableDescriptorCountLayoutSupport( |
| vkStream, rootType, |
| reinterpret_cast<const VkDescriptorSetVariableDescriptorCountLayoutSupport*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE: { |
| marshal_VkSubpassDescriptionDepthStencilResolve( |
| vkStream, rootType, |
| reinterpret_cast<const VkSubpassDescriptionDepthStencilResolve*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES: { |
| marshal_VkPhysicalDeviceDepthStencilResolveProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDepthStencilResolveProperties*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES: { |
| marshal_VkPhysicalDeviceScalarBlockLayoutFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceScalarBlockLayoutFeatures*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO: { |
| marshal_VkImageStencilUsageCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkImageStencilUsageCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO: { |
| marshal_VkSamplerReductionModeCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkSamplerReductionModeCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES: { |
| marshal_VkPhysicalDeviceSamplerFilterMinmaxProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceSamplerFilterMinmaxProperties*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES: { |
| marshal_VkPhysicalDeviceVulkanMemoryModelFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceVulkanMemoryModelFeatures*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES: { |
| marshal_VkPhysicalDeviceImagelessFramebufferFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceImagelessFramebufferFeatures*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFO: { |
| marshal_VkFramebufferAttachmentsCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkFramebufferAttachmentsCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_ATTACHMENT_BEGIN_INFO: { |
| marshal_VkRenderPassAttachmentBeginInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkRenderPassAttachmentBeginInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES: { |
| marshal_VkPhysicalDeviceUniformBufferStandardLayoutFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceUniformBufferStandardLayoutFeatures*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES: { |
| marshal_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES: { |
| marshal_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUT: { |
| marshal_VkAttachmentReferenceStencilLayout( |
| vkStream, rootType, |
| reinterpret_cast<const VkAttachmentReferenceStencilLayout*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT: { |
| marshal_VkAttachmentDescriptionStencilLayout( |
| vkStream, rootType, |
| reinterpret_cast<const VkAttachmentDescriptionStencilLayout*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES: { |
| marshal_VkPhysicalDeviceHostQueryResetFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceHostQueryResetFeatures*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES: { |
| marshal_VkPhysicalDeviceTimelineSemaphoreFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceTimelineSemaphoreFeatures*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES: { |
| marshal_VkPhysicalDeviceTimelineSemaphoreProperties( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceTimelineSemaphoreProperties*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO: { |
| marshal_VkSemaphoreTypeCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkSemaphoreTypeCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO: { |
| marshal_VkTimelineSemaphoreSubmitInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkTimelineSemaphoreSubmitInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES: { |
| marshal_VkPhysicalDeviceBufferDeviceAddressFeatures( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceBufferDeviceAddressFeatures*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO: { |
| marshal_VkBufferOpaqueCaptureAddressCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkBufferOpaqueCaptureAddressCreateInfo*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO: { |
| marshal_VkMemoryOpaqueCaptureAddressAllocateInfo( |
| vkStream, rootType, |
| reinterpret_cast<const VkMemoryOpaqueCaptureAddressAllocateInfo*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_swapchain |
| case VK_STRUCTURE_TYPE_IMAGE_SWAPCHAIN_CREATE_INFO_KHR: { |
| marshal_VkImageSwapchainCreateInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkImageSwapchainCreateInfoKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHR: { |
| marshal_VkBindImageMemorySwapchainInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkBindImageMemorySwapchainInfoKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_INFO_KHR: { |
| marshal_VkDeviceGroupPresentInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceGroupPresentInfoKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHR: { |
| marshal_VkDeviceGroupSwapchainCreateInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceGroupSwapchainCreateInfoKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_display_swapchain |
| case VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR: { |
| marshal_VkDisplayPresentInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkDisplayPresentInfoKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case VK_STRUCTURE_TYPE_VIDEO_QUEUE_FAMILY_PROPERTIES_2_KHR: { |
| marshal_VkVideoQueueFamilyProperties2KHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoQueueFamilyProperties2KHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_PROFILE_KHR: { |
| marshal_VkVideoProfileKHR(vkStream, rootType, |
| reinterpret_cast<const VkVideoProfileKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_PROFILES_KHR: { |
| marshal_VkVideoProfilesKHR( |
| vkStream, rootType, reinterpret_cast<const VkVideoProfilesKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_dynamic_rendering |
| case VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO_KHR: { |
| marshal_VkPipelineRenderingCreateInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineRenderingCreateInfoKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceDynamicRenderingFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDynamicRenderingFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDERING_INFO_KHR: { |
| marshal_VkCommandBufferInheritanceRenderingInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkCommandBufferInheritanceRenderingInfoKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR: { |
| marshal_VkRenderingFragmentShadingRateAttachmentInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkRenderingFragmentShadingRateAttachmentInfoKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXT: { |
| marshal_VkRenderingFragmentDensityMapAttachmentInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkRenderingFragmentDensityMapAttachmentInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMD: { |
| marshal_VkAttachmentSampleCountInfoAMD( |
| vkStream, rootType, |
| reinterpret_cast<const VkAttachmentSampleCountInfoAMD*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX: { |
| marshal_VkMultiviewPerViewAttributesInfoNVX( |
| vkStream, rootType, |
| reinterpret_cast<const VkMultiviewPerViewAttributesInfoNVX*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_external_memory_win32 |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR: { |
| marshal_VkImportMemoryWin32HandleInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkImportMemoryWin32HandleInfoKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR: { |
| marshal_VkExportMemoryWin32HandleInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkExportMemoryWin32HandleInfoKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_external_memory_fd |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR: { |
| marshal_VkImportMemoryFdInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkImportMemoryFdInfoKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_win32_keyed_mutex |
| case VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR: { |
| marshal_VkWin32KeyedMutexAcquireReleaseInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkWin32KeyedMutexAcquireReleaseInfoKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_external_semaphore_win32 |
| case VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR: { |
| marshal_VkExportSemaphoreWin32HandleInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkExportSemaphoreWin32HandleInfoKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR: { |
| marshal_VkD3D12FenceSubmitInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkD3D12FenceSubmitInfoKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_push_descriptor |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR: { |
| marshal_VkPhysicalDevicePushDescriptorPropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePushDescriptorPropertiesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_incremental_present |
| case VK_STRUCTURE_TYPE_PRESENT_REGIONS_KHR: { |
| marshal_VkPresentRegionsKHR( |
| vkStream, rootType, reinterpret_cast<const VkPresentRegionsKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_shared_presentable_image |
| case VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHR: { |
| marshal_VkSharedPresentSurfaceCapabilitiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkSharedPresentSurfaceCapabilitiesKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_external_fence_win32 |
| case VK_STRUCTURE_TYPE_EXPORT_FENCE_WIN32_HANDLE_INFO_KHR: { |
| marshal_VkExportFenceWin32HandleInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkExportFenceWin32HandleInfoKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_performance_query |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_FEATURES_KHR: { |
| marshal_VkPhysicalDevicePerformanceQueryFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePerformanceQueryFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_PROPERTIES_KHR: { |
| marshal_VkPhysicalDevicePerformanceQueryPropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePerformanceQueryPropertiesKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_CREATE_INFO_KHR: { |
| marshal_VkQueryPoolPerformanceCreateInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkQueryPoolPerformanceCreateInfoKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PERFORMANCE_QUERY_SUBMIT_INFO_KHR: { |
| marshal_VkPerformanceQuerySubmitInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPerformanceQuerySubmitInfoKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_portability_subset |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_FEATURES_KHR: { |
| marshal_VkPhysicalDevicePortabilitySubsetFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePortabilitySubsetFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_PROPERTIES_KHR: { |
| marshal_VkPhysicalDevicePortabilitySubsetPropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePortabilitySubsetPropertiesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_shader_clock |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceShaderClockFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderClockFeaturesKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_shader_terminate_invocation |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_fragment_shading_rate |
| case VK_STRUCTURE_TYPE_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR: { |
| marshal_VkFragmentShadingRateAttachmentInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkFragmentShadingRateAttachmentInfoKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHR: { |
| marshal_VkPipelineFragmentShadingRateStateCreateInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineFragmentShadingRateStateCreateInfoKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceFragmentShadingRateFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentShadingRateFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_PROPERTIES_KHR: { |
| marshal_VkPhysicalDeviceFragmentShadingRatePropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentShadingRatePropertiesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_surface_protected_capabilities |
| case VK_STRUCTURE_TYPE_SURFACE_PROTECTED_CAPABILITIES_KHR: { |
| marshal_VkSurfaceProtectedCapabilitiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkSurfaceProtectedCapabilitiesKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_present_wait |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_WAIT_FEATURES_KHR: { |
| marshal_VkPhysicalDevicePresentWaitFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePresentWaitFeaturesKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_pipeline_executable_properties |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_EXECUTABLE_PROPERTIES_FEATURES_KHR: { |
| marshal_VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_shader_integer_dot_product |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceShaderIntegerDotProductFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderIntegerDotProductFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_PROPERTIES_KHR: { |
| marshal_VkPhysicalDeviceShaderIntegerDotProductPropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderIntegerDotProductPropertiesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_present_id |
| case VK_STRUCTURE_TYPE_PRESENT_ID_KHR: { |
| marshal_VkPresentIdKHR(vkStream, rootType, |
| reinterpret_cast<const VkPresentIdKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_ID_FEATURES_KHR: { |
| marshal_VkPhysicalDevicePresentIdFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePresentIdFeaturesKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_video_encode_queue |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_RATE_CONTROL_INFO_KHR: { |
| marshal_VkVideoEncodeRateControlInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeRateControlInfoKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| case VK_STRUCTURE_TYPE_MEMORY_BARRIER_2_KHR: { |
| marshal_VkMemoryBarrier2KHR( |
| vkStream, rootType, reinterpret_cast<const VkMemoryBarrier2KHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceSynchronization2FeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceSynchronization2FeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_QUEUE_FAMILY_CHECKPOINT_PROPERTIES_2_NV: { |
| marshal_VkQueueFamilyCheckpointProperties2NV( |
| vkStream, rootType, |
| reinterpret_cast<const VkQueueFamilyCheckpointProperties2NV*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_shader_subgroup_uniform_control_flow |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast< |
| const VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_zero_initialize_workgroup_memory |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_workgroup_memory_explicit_layout |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_format_feature_flags2 |
| case VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3_KHR: { |
| marshal_VkFormatProperties3KHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkFormatProperties3KHR*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_maintenance4 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceMaintenance4FeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMaintenance4FeaturesKHR*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR: { |
| marshal_VkPhysicalDeviceMaintenance4PropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMaintenance4PropertiesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_ANDROID_native_buffer |
| case VK_STRUCTURE_TYPE_NATIVE_BUFFER_ANDROID: { |
| marshal_VkNativeBufferANDROID( |
| vkStream, rootType, |
| reinterpret_cast<const VkNativeBufferANDROID*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_debug_report |
| case VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT: { |
| marshal_VkDebugReportCallbackCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkDebugReportCallbackCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_rasterization_order |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD: { |
| marshal_VkPipelineRasterizationStateRasterizationOrderAMD( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineRasterizationStateRasterizationOrderAMD*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_dedicated_allocation |
| case VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV: { |
| marshal_VkDedicatedAllocationImageCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkDedicatedAllocationImageCreateInfoNV*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV: { |
| marshal_VkDedicatedAllocationBufferCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkDedicatedAllocationBufferCreateInfoNV*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV: { |
| marshal_VkDedicatedAllocationMemoryAllocateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkDedicatedAllocationMemoryAllocateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceTransformFeedbackFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceTransformFeedbackFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceTransformFeedbackPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceTransformFeedbackPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT: { |
| marshal_VkPipelineRasterizationStateStreamCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineRasterizationStateStreamCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_video_encode_h264 |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_CAPABILITIES_EXT: { |
| marshal_VkVideoEncodeH264CapabilitiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH264CapabilitiesEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_CREATE_INFO_EXT: { |
| marshal_VkVideoEncodeH264SessionCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH264SessionCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT: { |
| marshal_VkVideoEncodeH264SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH264SessionParametersAddInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT: { |
| marshal_VkVideoEncodeH264SessionParametersCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH264SessionParametersCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_VCL_FRAME_INFO_EXT: { |
| marshal_VkVideoEncodeH264VclFrameInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH264VclFrameInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_EMIT_PICTURE_PARAMETERS_EXT: { |
| marshal_VkVideoEncodeH264EmitPictureParametersEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH264EmitPictureParametersEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_PROFILE_EXT: { |
| marshal_VkVideoEncodeH264ProfileEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH264ProfileEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_video_encode_h265 |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_CAPABILITIES_EXT: { |
| marshal_VkVideoEncodeH265CapabilitiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH265CapabilitiesEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_CREATE_INFO_EXT: { |
| marshal_VkVideoEncodeH265SessionCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH265SessionCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT: { |
| marshal_VkVideoEncodeH265SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH265SessionParametersAddInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT: { |
| marshal_VkVideoEncodeH265SessionParametersCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH265SessionParametersCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT: { |
| marshal_VkVideoEncodeH265VclFrameInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH265VclFrameInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_EMIT_PICTURE_PARAMETERS_EXT: { |
| marshal_VkVideoEncodeH265EmitPictureParametersEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH265EmitPictureParametersEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_PROFILE_EXT: { |
| marshal_VkVideoEncodeH265ProfileEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoEncodeH265ProfileEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_video_decode_h264 |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_PROFILE_EXT: { |
| marshal_VkVideoDecodeH264ProfileEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH264ProfileEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_CAPABILITIES_EXT: { |
| marshal_VkVideoDecodeH264CapabilitiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH264CapabilitiesEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_CREATE_INFO_EXT: { |
| marshal_VkVideoDecodeH264SessionCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH264SessionCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT: { |
| marshal_VkVideoDecodeH264SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH264SessionParametersAddInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT: { |
| marshal_VkVideoDecodeH264SessionParametersCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH264SessionParametersCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_PICTURE_INFO_EXT: { |
| marshal_VkVideoDecodeH264PictureInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH264PictureInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_MVC_EXT: { |
| marshal_VkVideoDecodeH264MvcEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH264MvcEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_DPB_SLOT_INFO_EXT: { |
| marshal_VkVideoDecodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH264DpbSlotInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_texture_gather_bias_lod |
| case VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD: { |
| marshal_VkTextureLODGatherFormatPropertiesAMD( |
| vkStream, rootType, |
| reinterpret_cast<const VkTextureLODGatherFormatPropertiesAMD*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_corner_sampled_image |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV: { |
| marshal_VkPhysicalDeviceCornerSampledImageFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceCornerSampledImageFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_external_memory |
| case VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV: { |
| marshal_VkExternalMemoryImageCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkExternalMemoryImageCreateInfoNV*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV: { |
| marshal_VkExportMemoryAllocateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkExportMemoryAllocateInfoNV*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_external_memory_win32 |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV: { |
| marshal_VkImportMemoryWin32HandleInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkImportMemoryWin32HandleInfoNV*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV: { |
| marshal_VkExportMemoryWin32HandleInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkExportMemoryWin32HandleInfoNV*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_win32_keyed_mutex |
| case VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV: { |
| marshal_VkWin32KeyedMutexAcquireReleaseInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkWin32KeyedMutexAcquireReleaseInfoNV*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_validation_flags |
| case VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT: { |
| marshal_VkValidationFlagsEXT( |
| vkStream, rootType, reinterpret_cast<const VkValidationFlagsEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_texture_compression_astc_hdr |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_astc_decode_mode |
| case VK_STRUCTURE_TYPE_IMAGE_VIEW_ASTC_DECODE_MODE_EXT: { |
| marshal_VkImageViewASTCDecodeModeEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkImageViewASTCDecodeModeEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ASTC_DECODE_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceASTCDecodeFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceASTCDecodeFeaturesEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_conditional_rendering |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceConditionalRenderingFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceConditionalRenderingFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_CONDITIONAL_RENDERING_INFO_EXT: { |
| marshal_VkCommandBufferInheritanceConditionalRenderingInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkCommandBufferInheritanceConditionalRenderingInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_clip_space_w_scaling |
| case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV: { |
| marshal_VkPipelineViewportWScalingStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineViewportWScalingStateCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_display_control |
| case VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT: { |
| marshal_VkSwapchainCounterCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkSwapchainCounterCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_GOOGLE_display_timing |
| case VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE: { |
| marshal_VkPresentTimesInfoGOOGLE( |
| vkStream, rootType, |
| reinterpret_cast<const VkPresentTimesInfoGOOGLE*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NVX_multiview_per_view_attributes |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX: { |
| marshal_VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_viewport_swizzle |
| case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV: { |
| marshal_VkPipelineViewportSwizzleStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineViewportSwizzleStateCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_discard_rectangles |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceDiscardRectanglePropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDiscardRectanglePropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT: { |
| marshal_VkPipelineDiscardRectangleStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineDiscardRectangleStateCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_conservative_rasterization |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceConservativeRasterizationPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceConservativeRasterizationPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXT: { |
| marshal_VkPipelineRasterizationConservativeStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineRasterizationConservativeStateCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_depth_clip_enable |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_ENABLE_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceDepthClipEnableFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDepthClipEnableFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_DEPTH_CLIP_STATE_CREATE_INFO_EXT: { |
| marshal_VkPipelineRasterizationDepthClipStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineRasterizationDepthClipStateCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_debug_utils |
| case VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT: { |
| marshal_VkDebugUtilsMessengerCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkDebugUtilsMessengerCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_ANDROID_external_memory_android_hardware_buffer |
| case VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_USAGE_ANDROID: { |
| marshal_VkAndroidHardwareBufferUsageANDROID( |
| vkStream, rootType, |
| reinterpret_cast<const VkAndroidHardwareBufferUsageANDROID*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID: { |
| marshal_VkAndroidHardwareBufferFormatPropertiesANDROID( |
| vkStream, rootType, |
| reinterpret_cast<const VkAndroidHardwareBufferFormatPropertiesANDROID*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMPORT_ANDROID_HARDWARE_BUFFER_INFO_ANDROID: { |
| marshal_VkImportAndroidHardwareBufferInfoANDROID( |
| vkStream, rootType, |
| reinterpret_cast<const VkImportAndroidHardwareBufferInfoANDROID*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXTERNAL_FORMAT_ANDROID: { |
| marshal_VkExternalFormatANDROID( |
| vkStream, rootType, |
| reinterpret_cast<const VkExternalFormatANDROID*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_2_ANDROID: { |
| marshal_VkAndroidHardwareBufferFormatProperties2ANDROID( |
| vkStream, rootType, |
| reinterpret_cast<const VkAndroidHardwareBufferFormatProperties2ANDROID*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_inline_uniform_block |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceInlineUniformBlockFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceInlineUniformBlockFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceInlineUniformBlockPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceInlineUniformBlockPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK_EXT: { |
| marshal_VkWriteDescriptorSetInlineUniformBlockEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkWriteDescriptorSetInlineUniformBlockEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO_EXT: { |
| marshal_VkDescriptorPoolInlineUniformBlockCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkDescriptorPoolInlineUniformBlockCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_sample_locations |
| case VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT: { |
| marshal_VkSampleLocationsInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkSampleLocationsInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT: { |
| marshal_VkRenderPassSampleLocationsBeginInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkRenderPassSampleLocationsBeginInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT: { |
| marshal_VkPipelineSampleLocationsStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineSampleLocationsStateCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceSampleLocationsPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceSampleLocationsPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_blend_operation_advanced |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT: { |
| marshal_VkPipelineColorBlendAdvancedStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineColorBlendAdvancedStateCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_fragment_coverage_to_color |
| case VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV: { |
| marshal_VkPipelineCoverageToColorStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineCoverageToColorStateCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_framebuffer_mixed_samples |
| case VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV: { |
| marshal_VkPipelineCoverageModulationStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineCoverageModulationStateCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_shader_sm_builtins |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SM_BUILTINS_PROPERTIES_NV: { |
| marshal_VkPhysicalDeviceShaderSMBuiltinsPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderSMBuiltinsPropertiesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SM_BUILTINS_FEATURES_NV: { |
| marshal_VkPhysicalDeviceShaderSMBuiltinsFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderSMBuiltinsFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_image_drm_format_modifier |
| case VK_STRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_EXT: { |
| marshal_VkDrmFormatModifierPropertiesListEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkDrmFormatModifierPropertiesListEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT: { |
| marshal_VkPhysicalDeviceImageDrmFormatModifierInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceImageDrmFormatModifierInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_LIST_CREATE_INFO_EXT: { |
| marshal_VkImageDrmFormatModifierListCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkImageDrmFormatModifierListCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_EXPLICIT_CREATE_INFO_EXT: { |
| marshal_VkImageDrmFormatModifierExplicitCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkImageDrmFormatModifierExplicitCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_2_EXT: { |
| marshal_VkDrmFormatModifierPropertiesList2EXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkDrmFormatModifierPropertiesList2EXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_validation_cache |
| case VK_STRUCTURE_TYPE_SHADER_MODULE_VALIDATION_CACHE_CREATE_INFO_EXT: { |
| marshal_VkShaderModuleValidationCacheCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkShaderModuleValidationCacheCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_shading_rate_image |
| case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SHADING_RATE_IMAGE_STATE_CREATE_INFO_NV: { |
| marshal_VkPipelineViewportShadingRateImageStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineViewportShadingRateImageStateCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADING_RATE_IMAGE_FEATURES_NV: { |
| marshal_VkPhysicalDeviceShadingRateImageFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShadingRateImageFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADING_RATE_IMAGE_PROPERTIES_NV: { |
| marshal_VkPhysicalDeviceShadingRateImagePropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShadingRateImagePropertiesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_COARSE_SAMPLE_ORDER_STATE_CREATE_INFO_NV: { |
| marshal_VkPipelineViewportCoarseSampleOrderStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineViewportCoarseSampleOrderStateCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_NV: { |
| marshal_VkWriteDescriptorSetAccelerationStructureNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkWriteDescriptorSetAccelerationStructureNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NV: { |
| marshal_VkPhysicalDeviceRayTracingPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceRayTracingPropertiesNV*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_representative_fragment_test |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_REPRESENTATIVE_FRAGMENT_TEST_FEATURES_NV: { |
| marshal_VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_REPRESENTATIVE_FRAGMENT_TEST_STATE_CREATE_INFO_NV: { |
| marshal_VkPipelineRepresentativeFragmentTestStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineRepresentativeFragmentTestStateCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_filter_cubic |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_IMAGE_FORMAT_INFO_EXT: { |
| marshal_VkPhysicalDeviceImageViewImageFormatInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceImageViewImageFormatInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_FILTER_CUBIC_IMAGE_VIEW_IMAGE_FORMAT_PROPERTIES_EXT: { |
| marshal_VkFilterCubicImageViewImageFormatPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkFilterCubicImageViewImageFormatPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_global_priority |
| case VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_EXT: { |
| marshal_VkDeviceQueueGlobalPriorityCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceQueueGlobalPriorityCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_external_memory_host |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT: { |
| marshal_VkImportMemoryHostPointerInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkImportMemoryHostPointerInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceExternalMemoryHostPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceExternalMemoryHostPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_pipeline_compiler_control |
| case VK_STRUCTURE_TYPE_PIPELINE_COMPILER_CONTROL_CREATE_INFO_AMD: { |
| marshal_VkPipelineCompilerControlCreateInfoAMD( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineCompilerControlCreateInfoAMD*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_shader_core_properties |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMD: { |
| marshal_VkPhysicalDeviceShaderCorePropertiesAMD( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderCorePropertiesAMD*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_video_decode_h265 |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PROFILE_EXT: { |
| marshal_VkVideoDecodeH265ProfileEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH265ProfileEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_CAPABILITIES_EXT: { |
| marshal_VkVideoDecodeH265CapabilitiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH265CapabilitiesEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_CREATE_INFO_EXT: { |
| marshal_VkVideoDecodeH265SessionCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH265SessionCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT: { |
| marshal_VkVideoDecodeH265SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH265SessionParametersAddInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT: { |
| marshal_VkVideoDecodeH265SessionParametersCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH265SessionParametersCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PICTURE_INFO_EXT: { |
| marshal_VkVideoDecodeH265PictureInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH265PictureInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_DPB_SLOT_INFO_EXT: { |
| marshal_VkVideoDecodeH265DpbSlotInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkVideoDecodeH265DpbSlotInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_memory_overallocation_behavior |
| case VK_STRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD: { |
| marshal_VkDeviceMemoryOverallocationCreateInfoAMD( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceMemoryOverallocationCreateInfoAMD*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_vertex_attribute_divisor |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT: { |
| marshal_VkPipelineVertexInputDivisorStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineVertexInputDivisorStateCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_GGP_frame_token |
| case VK_STRUCTURE_TYPE_PRESENT_FRAME_TOKEN_GGP: { |
| marshal_VkPresentFrameTokenGGP( |
| vkStream, rootType, |
| reinterpret_cast<const VkPresentFrameTokenGGP*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_pipeline_creation_feedback |
| case VK_STRUCTURE_TYPE_PIPELINE_CREATION_FEEDBACK_CREATE_INFO_EXT: { |
| marshal_VkPipelineCreationFeedbackCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineCreationFeedbackCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_compute_shader_derivatives |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV: { |
| marshal_VkPhysicalDeviceComputeShaderDerivativesFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceComputeShaderDerivativesFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_mesh_shader |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_FEATURES_NV: { |
| marshal_VkPhysicalDeviceMeshShaderFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMeshShaderFeaturesNV*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_NV: { |
| marshal_VkPhysicalDeviceMeshShaderPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMeshShaderPropertiesNV*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_fragment_shader_barycentric |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV: { |
| marshal_VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_shader_image_footprint |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV: { |
| marshal_VkPhysicalDeviceShaderImageFootprintFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderImageFootprintFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_scissor_exclusive |
| case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NV: { |
| marshal_VkPipelineViewportExclusiveScissorStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineViewportExclusiveScissorStateCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV: { |
| marshal_VkPhysicalDeviceExclusiveScissorFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceExclusiveScissorFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_device_diagnostic_checkpoints |
| case VK_STRUCTURE_TYPE_QUEUE_FAMILY_CHECKPOINT_PROPERTIES_NV: { |
| marshal_VkQueueFamilyCheckpointPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkQueueFamilyCheckpointPropertiesNV*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_INTEL_shader_integer_functions2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL: { |
| marshal_VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case VK_STRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_QUERY_CREATE_INFO_INTEL: { |
| marshal_VkQueryPoolPerformanceQueryCreateInfoINTEL( |
| vkStream, rootType, |
| reinterpret_cast<const VkQueryPoolPerformanceQueryCreateInfoINTEL*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_pci_bus_info |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT: { |
| marshal_VkPhysicalDevicePCIBusInfoPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePCIBusInfoPropertiesEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_display_native_hdr |
| case VK_STRUCTURE_TYPE_DISPLAY_NATIVE_HDR_SURFACE_CAPABILITIES_AMD: { |
| marshal_VkDisplayNativeHdrSurfaceCapabilitiesAMD( |
| vkStream, rootType, |
| reinterpret_cast<const VkDisplayNativeHdrSurfaceCapabilitiesAMD*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SWAPCHAIN_DISPLAY_NATIVE_HDR_CREATE_INFO_AMD: { |
| marshal_VkSwapchainDisplayNativeHdrCreateInfoAMD( |
| vkStream, rootType, |
| reinterpret_cast<const VkSwapchainDisplayNativeHdrCreateInfoAMD*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_fragment_density_map |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_FEATURES_EXT: { |
| switch (rootType) { |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2: { |
| marshal_VkPhysicalDeviceFragmentDensityMapFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentDensityMapFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO: { |
| marshal_VkPhysicalDeviceFragmentDensityMapFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentDensityMapFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO: { |
| marshal_VkImportColorBufferGOOGLE( |
| vkStream, rootType, |
| reinterpret_cast<const VkImportColorBufferGOOGLE*>(structExtension)); |
| break; |
| } |
| default: { |
| marshal_VkPhysicalDeviceFragmentDensityMapFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentDensityMapFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| } |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_PROPERTIES_EXT: { |
| switch (rootType) { |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2: { |
| marshal_VkPhysicalDeviceFragmentDensityMapPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentDensityMapPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO: { |
| marshal_VkCreateBlobGOOGLE( |
| vkStream, rootType, |
| reinterpret_cast<const VkCreateBlobGOOGLE*>(structExtension)); |
| break; |
| } |
| default: { |
| marshal_VkPhysicalDeviceFragmentDensityMapPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentDensityMapPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| } |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT: { |
| switch (rootType) { |
| case VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO: { |
| marshal_VkRenderPassFragmentDensityMapCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkRenderPassFragmentDensityMapCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2: { |
| marshal_VkRenderPassFragmentDensityMapCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkRenderPassFragmentDensityMapCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO: { |
| marshal_VkImportBufferGOOGLE( |
| vkStream, rootType, |
| reinterpret_cast<const VkImportBufferGOOGLE*>(structExtension)); |
| break; |
| } |
| default: { |
| marshal_VkRenderPassFragmentDensityMapCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkRenderPassFragmentDensityMapCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| } |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_subgroup_size_control |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceSubgroupSizeControlFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceSubgroupSizeControlFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceSubgroupSizeControlPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceSubgroupSizeControlPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO_EXT: { |
| marshal_VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_shader_core_properties2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD: { |
| marshal_VkPhysicalDeviceShaderCoreProperties2AMD( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderCoreProperties2AMD*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_device_coherent_memory |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMD: { |
| marshal_VkPhysicalDeviceCoherentMemoryFeaturesAMD( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceCoherentMemoryFeaturesAMD*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_shader_image_atomic_int64 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_ATOMIC_INT64_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_memory_budget |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceMemoryBudgetPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMemoryBudgetPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_memory_priority |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PRIORITY_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceMemoryPriorityFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMemoryPriorityFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_PRIORITY_ALLOCATE_INFO_EXT: { |
| marshal_VkMemoryPriorityAllocateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkMemoryPriorityAllocateInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_dedicated_allocation_image_aliasing |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEDICATED_ALLOCATION_IMAGE_ALIASING_FEATURES_NV: { |
| marshal_VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_buffer_device_address |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceBufferDeviceAddressFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceBufferDeviceAddressFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXT: { |
| marshal_VkBufferDeviceAddressCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkBufferDeviceAddressCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_validation_features |
| case VK_STRUCTURE_TYPE_VALIDATION_FEATURES_EXT: { |
| marshal_VkValidationFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkValidationFeaturesEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_cooperative_matrix |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_FEATURES_NV: { |
| marshal_VkPhysicalDeviceCooperativeMatrixFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceCooperativeMatrixFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_PROPERTIES_NV: { |
| marshal_VkPhysicalDeviceCooperativeMatrixPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceCooperativeMatrixPropertiesNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_coverage_reduction_mode |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NV: { |
| marshal_VkPhysicalDeviceCoverageReductionModeFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceCoverageReductionModeFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NV: { |
| marshal_VkPipelineCoverageReductionStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineCoverageReductionStateCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_fragment_shader_interlock |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_ycbcr_image_arrays |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceYcbcrImageArraysFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceYcbcrImageArraysFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_provoking_vertex |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceProvokingVertexFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceProvokingVertexFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceProvokingVertexPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceProvokingVertexPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_PROVOKING_VERTEX_STATE_CREATE_INFO_EXT: { |
| marshal_VkPipelineRasterizationProvokingVertexStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineRasterizationProvokingVertexStateCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_full_screen_exclusive |
| case VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT: { |
| marshal_VkSurfaceFullScreenExclusiveInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkSurfaceFullScreenExclusiveInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_FULL_SCREEN_EXCLUSIVE_EXT: { |
| marshal_VkSurfaceCapabilitiesFullScreenExclusiveEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkSurfaceCapabilitiesFullScreenExclusiveEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_WIN32_INFO_EXT: { |
| marshal_VkSurfaceFullScreenExclusiveWin32InfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkSurfaceFullScreenExclusiveWin32InfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_line_rasterization |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceLineRasterizationFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceLineRasterizationFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceLineRasterizationPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceLineRasterizationPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT: { |
| marshal_VkPipelineRasterizationLineStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineRasterizationLineStateCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_shader_atomic_float |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceShaderAtomicFloatFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderAtomicFloatFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_index_type_uint8 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceIndexTypeUint8FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceIndexTypeUint8FeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceExtendedDynamicStateFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceExtendedDynamicStateFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_shader_atomic_float2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_2_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_shader_demote_to_helper_invocation |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_device_generated_commands |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV: { |
| marshal_VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NV: { |
| marshal_VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_SHADER_GROUPS_CREATE_INFO_NV: { |
| marshal_VkGraphicsPipelineShaderGroupsCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkGraphicsPipelineShaderGroupsCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_inherited_viewport_scissor |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INHERITED_VIEWPORT_SCISSOR_FEATURES_NV: { |
| marshal_VkPhysicalDeviceInheritedViewportScissorFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceInheritedViewportScissorFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_VIEWPORT_SCISSOR_INFO_NV: { |
| marshal_VkCommandBufferInheritanceViewportScissorInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkCommandBufferInheritanceViewportScissorInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_texel_buffer_alignment |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_QCOM_render_pass_transform |
| case VK_STRUCTURE_TYPE_RENDER_PASS_TRANSFORM_BEGIN_INFO_QCOM: { |
| marshal_VkRenderPassTransformBeginInfoQCOM( |
| vkStream, rootType, |
| reinterpret_cast<const VkRenderPassTransformBeginInfoQCOM*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDER_PASS_TRANSFORM_INFO_QCOM: { |
| marshal_VkCommandBufferInheritanceRenderPassTransformInfoQCOM( |
| vkStream, rootType, |
| reinterpret_cast<const VkCommandBufferInheritanceRenderPassTransformInfoQCOM*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_device_memory_report |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_MEMORY_REPORT_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceDeviceMemoryReportFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDeviceMemoryReportFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_DEVICE_MEMORY_REPORT_CREATE_INFO_EXT: { |
| marshal_VkDeviceDeviceMemoryReportCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceDeviceMemoryReportCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_robustness2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceRobustness2FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceRobustness2FeaturesEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceRobustness2PropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceRobustness2PropertiesEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_custom_border_color |
| case VK_STRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT: { |
| marshal_VkSamplerCustomBorderColorCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkSamplerCustomBorderColorCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceCustomBorderColorPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceCustomBorderColorPropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceCustomBorderColorFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceCustomBorderColorFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_private_data |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIVATE_DATA_FEATURES_EXT: { |
| marshal_VkPhysicalDevicePrivateDataFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePrivateDataFeaturesEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_PRIVATE_DATA_CREATE_INFO_EXT: { |
| marshal_VkDevicePrivateDataCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkDevicePrivateDataCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_pipeline_creation_cache_control |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES_EXT: { |
| marshal_VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_device_diagnostics_config |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DIAGNOSTICS_CONFIG_FEATURES_NV: { |
| marshal_VkPhysicalDeviceDiagnosticsConfigFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDiagnosticsConfigFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV: { |
| marshal_VkDeviceDiagnosticsConfigCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkDeviceDiagnosticsConfigCreateInfoNV*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_fragment_shading_rate_enums |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_FEATURES_NV: { |
| marshal_VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_PROPERTIES_NV: { |
| marshal_VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_ENUM_STATE_CREATE_INFO_NV: { |
| marshal_VkPipelineFragmentShadingRateEnumStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineFragmentShadingRateEnumStateCreateInfoNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing_motion_blur |
| case VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_MOTION_TRIANGLES_DATA_NV: { |
| marshal_VkAccelerationStructureGeometryMotionTrianglesDataNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkAccelerationStructureGeometryMotionTrianglesDataNV*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_MOTION_INFO_NV: { |
| marshal_VkAccelerationStructureMotionInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkAccelerationStructureMotionInfoNV*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_MOTION_BLUR_FEATURES_NV: { |
| marshal_VkPhysicalDeviceRayTracingMotionBlurFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceRayTracingMotionBlurFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_ycbcr_2plane_444_formats |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_2_PLANE_444_FORMATS_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_fragment_density_map2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceFragmentDensityMap2FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentDensityMap2FeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceFragmentDensityMap2PropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceFragmentDensityMap2PropertiesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_QCOM_rotated_copy_commands |
| case VK_STRUCTURE_TYPE_COPY_COMMAND_TRANSFORM_INFO_QCOM: { |
| marshal_VkCopyCommandTransformInfoQCOM( |
| vkStream, rootType, |
| reinterpret_cast<const VkCopyCommandTransformInfoQCOM*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_image_robustness |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceImageRobustnessFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceImageRobustnessFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_4444_formats |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT: { |
| marshal_VkPhysicalDevice4444FormatsFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevice4444FormatsFeaturesEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_rgba10x6_formats |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RGBA10X6_FORMATS_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_VALVE_mutable_descriptor_type |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE: { |
| marshal_VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_VALVE: { |
| marshal_VkMutableDescriptorTypeCreateInfoVALVE( |
| vkStream, rootType, |
| reinterpret_cast<const VkMutableDescriptorTypeCreateInfoVALVE*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_vertex_input_dynamic_state |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_INPUT_DYNAMIC_STATE_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_physical_device_drm |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceDrmPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceDrmPropertiesEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_primitive_topology_list_restart |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT: { |
| marshal_VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_external_memory |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_ZIRCON_HANDLE_INFO_FUCHSIA: { |
| marshal_VkImportMemoryZirconHandleInfoFUCHSIA( |
| vkStream, rootType, |
| reinterpret_cast<const VkImportMemoryZirconHandleInfoFUCHSIA*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_buffer_collection |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_BUFFER_COLLECTION_FUCHSIA: { |
| marshal_VkImportMemoryBufferCollectionFUCHSIA( |
| vkStream, rootType, |
| reinterpret_cast<const VkImportMemoryBufferCollectionFUCHSIA*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BUFFER_COLLECTION_IMAGE_CREATE_INFO_FUCHSIA: { |
| marshal_VkBufferCollectionImageCreateInfoFUCHSIA( |
| vkStream, rootType, |
| reinterpret_cast<const VkBufferCollectionImageCreateInfoFUCHSIA*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BUFFER_COLLECTION_BUFFER_CREATE_INFO_FUCHSIA: { |
| marshal_VkBufferCollectionBufferCreateInfoFUCHSIA( |
| vkStream, rootType, |
| reinterpret_cast<const VkBufferCollectionBufferCreateInfoFUCHSIA*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_HUAWEI_subpass_shading |
| case VK_STRUCTURE_TYPE_SUBPASS_SHADING_PIPELINE_CREATE_INFO_HUAWEI: { |
| marshal_VkSubpassShadingPipelineCreateInfoHUAWEI( |
| vkStream, rootType, |
| reinterpret_cast<const VkSubpassShadingPipelineCreateInfoHUAWEI*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEI: { |
| marshal_VkPhysicalDeviceSubpassShadingFeaturesHUAWEI( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceSubpassShadingFeaturesHUAWEI*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_PROPERTIES_HUAWEI: { |
| marshal_VkPhysicalDeviceSubpassShadingPropertiesHUAWEI( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceSubpassShadingPropertiesHUAWEI*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_HUAWEI_invocation_mask |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INVOCATION_MASK_FEATURES_HUAWEI: { |
| marshal_VkPhysicalDeviceInvocationMaskFeaturesHUAWEI( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceInvocationMaskFeaturesHUAWEI*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_external_memory_rdma |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_RDMA_FEATURES_NV: { |
| marshal_VkPhysicalDeviceExternalMemoryRDMAFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceExternalMemoryRDMAFeaturesNV*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_2_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceExtendedDynamicState2FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceExtendedDynamicState2FeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_color_write_enable |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COLOR_WRITE_ENABLE_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceColorWriteEnableFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceColorWriteEnableFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_COLOR_WRITE_CREATE_INFO_EXT: { |
| marshal_VkPipelineColorWriteCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPipelineColorWriteCreateInfoEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_GOOGLE_gfxstream |
| case VK_STRUCTURE_TYPE_IMPORT_COLOR_BUFFER_GOOGLE: { |
| marshal_VkImportColorBufferGOOGLE( |
| vkStream, rootType, |
| reinterpret_cast<const VkImportColorBufferGOOGLE*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMPORT_BUFFER_GOOGLE: { |
| marshal_VkImportBufferGOOGLE( |
| vkStream, rootType, reinterpret_cast<const VkImportBufferGOOGLE*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_CREATE_BLOB_GOOGLE: { |
| marshal_VkCreateBlobGOOGLE( |
| vkStream, rootType, reinterpret_cast<const VkCreateBlobGOOGLE*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_global_priority_query |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT: { |
| marshal_VkQueueFamilyGlobalPriorityPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkQueueFamilyGlobalPriorityPropertiesEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_multi_draw |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceMultiDrawFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMultiDrawFeaturesEXT*>(structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT: { |
| marshal_VkPhysicalDeviceMultiDrawPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceMultiDrawPropertiesEXT*>(structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_border_color_swizzle |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT: { |
| marshal_VkPhysicalDeviceBorderColorSwizzleFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceBorderColorSwizzleFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXT: { |
| marshal_VkSamplerBorderColorComponentMappingCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkSamplerBorderColorComponentMappingCreateInfoEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_pageable_device_local_memory |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PAGEABLE_DEVICE_LOCAL_MEMORY_FEATURES_EXT: { |
| marshal_VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_KHR: { |
| marshal_VkWriteDescriptorSetAccelerationStructureKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkWriteDescriptorSetAccelerationStructureKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceAccelerationStructureFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceAccelerationStructureFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_PROPERTIES_KHR: { |
| marshal_VkPhysicalDeviceAccelerationStructurePropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceAccelerationStructurePropertiesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_ray_tracing_pipeline |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceRayTracingPipelineFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceRayTracingPipelineFeaturesKHR*>( |
| structExtension)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_PROPERTIES_KHR: { |
| marshal_VkPhysicalDeviceRayTracingPipelinePropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceRayTracingPipelinePropertiesKHR*>( |
| structExtension)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_ray_query |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_QUERY_FEATURES_KHR: { |
| marshal_VkPhysicalDeviceRayQueryFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<const VkPhysicalDeviceRayQueryFeaturesKHR*>(structExtension)); |
| break; |
| } |
| #endif |
| default: { |
| // fatal; the switch is only taken if the extension struct is known |
| abort(); |
| } |
| } |
| } |
| |
| void unmarshal_extension_struct(VulkanStreamGuest* vkStream, VkStructureType rootType, |
| void* structExtension_out) { |
| VkInstanceCreateInfo* structAccess = (VkInstanceCreateInfo*)(structExtension_out); |
| size_t currExtSize = goldfish_vk_extension_struct_size_with_stream_features( |
| vkStream->getFeatureBits(), rootType, structExtension_out); |
| if (!currExtSize && structExtension_out) { |
| // unknown struct extension; skip and call on its pNext field |
| unmarshal_extension_struct(vkStream, rootType, (void*)structAccess->pNext); |
| return; |
| } else { |
| // known or null extension struct |
| vkStream->getBe32(); |
| if (!currExtSize) { |
| // exit if this was a null extension struct (size == 0 in this branch) |
| return; |
| } |
| } |
| uint64_t pNext_placeholder; |
| vkStream->read((void*)(&pNext_placeholder), sizeof(VkStructureType)); |
| (void)pNext_placeholder; |
| if (!structExtension_out) { |
| return; |
| } |
| uint32_t structType = (uint32_t)goldfish_vk_struct_type(structExtension_out); |
| switch (structType) { |
| #ifdef VK_VERSION_1_1 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceSubgroupProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceSubgroupProperties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_16BIT_STORAGE_FEATURES: { |
| unmarshal_VkPhysicalDevice16BitStorageFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevice16BitStorageFeatures*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_DEDICATED_REQUIREMENTS: { |
| unmarshal_VkMemoryDedicatedRequirements( |
| vkStream, rootType, |
| reinterpret_cast<VkMemoryDedicatedRequirements*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_DEDICATED_ALLOCATE_INFO: { |
| unmarshal_VkMemoryDedicatedAllocateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkMemoryDedicatedAllocateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_FLAGS_INFO: { |
| unmarshal_VkMemoryAllocateFlagsInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkMemoryAllocateFlagsInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_RENDER_PASS_BEGIN_INFO: { |
| unmarshal_VkDeviceGroupRenderPassBeginInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceGroupRenderPassBeginInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_COMMAND_BUFFER_BEGIN_INFO: { |
| unmarshal_VkDeviceGroupCommandBufferBeginInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceGroupCommandBufferBeginInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_SUBMIT_INFO: { |
| unmarshal_VkDeviceGroupSubmitInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceGroupSubmitInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_BIND_SPARSE_INFO: { |
| unmarshal_VkDeviceGroupBindSparseInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceGroupBindSparseInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BIND_BUFFER_MEMORY_DEVICE_GROUP_INFO: { |
| unmarshal_VkBindBufferMemoryDeviceGroupInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkBindBufferMemoryDeviceGroupInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_DEVICE_GROUP_INFO: { |
| unmarshal_VkBindImageMemoryDeviceGroupInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkBindImageMemoryDeviceGroupInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_DEVICE_CREATE_INFO: { |
| unmarshal_VkDeviceGroupDeviceCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceGroupDeviceCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2: { |
| unmarshal_VkPhysicalDeviceFeatures2( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFeatures2*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_POINT_CLIPPING_PROPERTIES: { |
| unmarshal_VkPhysicalDevicePointClippingProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePointClippingProperties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_INPUT_ATTACHMENT_ASPECT_CREATE_INFO: { |
| unmarshal_VkRenderPassInputAttachmentAspectCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkRenderPassInputAttachmentAspectCreateInfo*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_VIEW_USAGE_CREATE_INFO: { |
| unmarshal_VkImageViewUsageCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkImageViewUsageCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_DOMAIN_ORIGIN_STATE_CREATE_INFO: { |
| unmarshal_VkPipelineTessellationDomainOriginStateCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineTessellationDomainOriginStateCreateInfo*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_MULTIVIEW_CREATE_INFO: { |
| unmarshal_VkRenderPassMultiviewCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkRenderPassMultiviewCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_FEATURES: { |
| unmarshal_VkPhysicalDeviceMultiviewFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMultiviewFeatures*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceMultiviewProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMultiviewProperties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VARIABLE_POINTERS_FEATURES: { |
| unmarshal_VkPhysicalDeviceVariablePointersFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceVariablePointersFeatures*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_FEATURES: { |
| unmarshal_VkPhysicalDeviceProtectedMemoryFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceProtectedMemoryFeatures*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROTECTED_MEMORY_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceProtectedMemoryProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceProtectedMemoryProperties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PROTECTED_SUBMIT_INFO: { |
| unmarshal_VkProtectedSubmitInfo( |
| vkStream, rootType, reinterpret_cast<VkProtectedSubmitInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_INFO: { |
| unmarshal_VkSamplerYcbcrConversionInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkSamplerYcbcrConversionInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BIND_IMAGE_PLANE_MEMORY_INFO: { |
| unmarshal_VkBindImagePlaneMemoryInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkBindImagePlaneMemoryInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_PLANE_MEMORY_REQUIREMENTS_INFO: { |
| unmarshal_VkImagePlaneMemoryRequirementsInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkImagePlaneMemoryRequirementsInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_YCBCR_CONVERSION_FEATURES: { |
| unmarshal_VkPhysicalDeviceSamplerYcbcrConversionFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceSamplerYcbcrConversionFeatures*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SAMPLER_YCBCR_CONVERSION_IMAGE_FORMAT_PROPERTIES: { |
| unmarshal_VkSamplerYcbcrConversionImageFormatProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkSamplerYcbcrConversionImageFormatProperties*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_IMAGE_FORMAT_INFO: { |
| unmarshal_VkPhysicalDeviceExternalImageFormatInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceExternalImageFormatInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXTERNAL_IMAGE_FORMAT_PROPERTIES: { |
| unmarshal_VkExternalImageFormatProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkExternalImageFormatProperties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceIDProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceIDProperties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO: { |
| unmarshal_VkExternalMemoryImageCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkExternalMemoryImageCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_BUFFER_CREATE_INFO: { |
| unmarshal_VkExternalMemoryBufferCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkExternalMemoryBufferCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO: { |
| unmarshal_VkExportMemoryAllocateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkExportMemoryAllocateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_FENCE_CREATE_INFO: { |
| unmarshal_VkExportFenceCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkExportFenceCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_CREATE_INFO: { |
| unmarshal_VkExportSemaphoreCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkExportSemaphoreCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_3_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceMaintenance3Properties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMaintenance3Properties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DRAW_PARAMETERS_FEATURES: { |
| unmarshal_VkPhysicalDeviceShaderDrawParametersFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderDrawParametersFeatures*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_FEATURES: { |
| unmarshal_VkPhysicalDeviceVulkan11Features( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceVulkan11Features*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_1_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceVulkan11Properties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceVulkan11Properties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_FEATURES: { |
| unmarshal_VkPhysicalDeviceVulkan12Features( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceVulkan12Features*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_1_2_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceVulkan12Properties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceVulkan12Properties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO: { |
| unmarshal_VkImageFormatListCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkImageFormatListCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_8BIT_STORAGE_FEATURES: { |
| unmarshal_VkPhysicalDevice8BitStorageFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevice8BitStorageFeatures*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRIVER_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceDriverProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDriverProperties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_INT64_FEATURES: { |
| unmarshal_VkPhysicalDeviceShaderAtomicInt64Features( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderAtomicInt64Features*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES: { |
| unmarshal_VkPhysicalDeviceShaderFloat16Int8Features( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderFloat16Int8Features*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FLOAT_CONTROLS_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceFloatControlsProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFloatControlsProperties*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_BINDING_FLAGS_CREATE_INFO: { |
| unmarshal_VkDescriptorSetLayoutBindingFlagsCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkDescriptorSetLayoutBindingFlagsCreateInfo*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_FEATURES: { |
| unmarshal_VkPhysicalDeviceDescriptorIndexingFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDescriptorIndexingFeatures*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DESCRIPTOR_INDEXING_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceDescriptorIndexingProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDescriptorIndexingProperties*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_ALLOCATE_INFO: { |
| unmarshal_VkDescriptorSetVariableDescriptorCountAllocateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkDescriptorSetVariableDescriptorCountAllocateInfo*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DESCRIPTOR_SET_VARIABLE_DESCRIPTOR_COUNT_LAYOUT_SUPPORT: { |
| unmarshal_VkDescriptorSetVariableDescriptorCountLayoutSupport( |
| vkStream, rootType, |
| reinterpret_cast<VkDescriptorSetVariableDescriptorCountLayoutSupport*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_DEPTH_STENCIL_RESOLVE: { |
| unmarshal_VkSubpassDescriptionDepthStencilResolve( |
| vkStream, rootType, |
| reinterpret_cast<VkSubpassDescriptionDepthStencilResolve*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_STENCIL_RESOLVE_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceDepthStencilResolveProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDepthStencilResolveProperties*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES: { |
| unmarshal_VkPhysicalDeviceScalarBlockLayoutFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceScalarBlockLayoutFeatures*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO: { |
| unmarshal_VkImageStencilUsageCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkImageStencilUsageCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SAMPLER_REDUCTION_MODE_CREATE_INFO: { |
| unmarshal_VkSamplerReductionModeCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkSamplerReductionModeCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLER_FILTER_MINMAX_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceSamplerFilterMinmaxProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceSamplerFilterMinmaxProperties*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VULKAN_MEMORY_MODEL_FEATURES: { |
| unmarshal_VkPhysicalDeviceVulkanMemoryModelFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceVulkanMemoryModelFeatures*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGELESS_FRAMEBUFFER_FEATURES: { |
| unmarshal_VkPhysicalDeviceImagelessFramebufferFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceImagelessFramebufferFeatures*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_FRAMEBUFFER_ATTACHMENTS_CREATE_INFO: { |
| unmarshal_VkFramebufferAttachmentsCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkFramebufferAttachmentsCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_ATTACHMENT_BEGIN_INFO: { |
| unmarshal_VkRenderPassAttachmentBeginInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkRenderPassAttachmentBeginInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_UNIFORM_BUFFER_STANDARD_LAYOUT_FEATURES: { |
| unmarshal_VkPhysicalDeviceUniformBufferStandardLayoutFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceUniformBufferStandardLayoutFeatures*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_EXTENDED_TYPES_FEATURES: { |
| unmarshal_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SEPARATE_DEPTH_STENCIL_LAYOUTS_FEATURES: { |
| unmarshal_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_STENCIL_LAYOUT: { |
| unmarshal_VkAttachmentReferenceStencilLayout( |
| vkStream, rootType, |
| reinterpret_cast<VkAttachmentReferenceStencilLayout*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_STENCIL_LAYOUT: { |
| unmarshal_VkAttachmentDescriptionStencilLayout( |
| vkStream, rootType, |
| reinterpret_cast<VkAttachmentDescriptionStencilLayout*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_HOST_QUERY_RESET_FEATURES: { |
| unmarshal_VkPhysicalDeviceHostQueryResetFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceHostQueryResetFeatures*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES: { |
| unmarshal_VkPhysicalDeviceTimelineSemaphoreFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceTimelineSemaphoreFeatures*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_PROPERTIES: { |
| unmarshal_VkPhysicalDeviceTimelineSemaphoreProperties( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceTimelineSemaphoreProperties*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SEMAPHORE_TYPE_CREATE_INFO: { |
| unmarshal_VkSemaphoreTypeCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkSemaphoreTypeCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_TIMELINE_SEMAPHORE_SUBMIT_INFO: { |
| unmarshal_VkTimelineSemaphoreSubmitInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkTimelineSemaphoreSubmitInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES: { |
| unmarshal_VkPhysicalDeviceBufferDeviceAddressFeatures( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceBufferDeviceAddressFeatures*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BUFFER_OPAQUE_CAPTURE_ADDRESS_CREATE_INFO: { |
| unmarshal_VkBufferOpaqueCaptureAddressCreateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkBufferOpaqueCaptureAddressCreateInfo*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_OPAQUE_CAPTURE_ADDRESS_ALLOCATE_INFO: { |
| unmarshal_VkMemoryOpaqueCaptureAddressAllocateInfo( |
| vkStream, rootType, |
| reinterpret_cast<VkMemoryOpaqueCaptureAddressAllocateInfo*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_swapchain |
| case VK_STRUCTURE_TYPE_IMAGE_SWAPCHAIN_CREATE_INFO_KHR: { |
| unmarshal_VkImageSwapchainCreateInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkImageSwapchainCreateInfoKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_SWAPCHAIN_INFO_KHR: { |
| unmarshal_VkBindImageMemorySwapchainInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkBindImageMemorySwapchainInfoKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_PRESENT_INFO_KHR: { |
| unmarshal_VkDeviceGroupPresentInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceGroupPresentInfoKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_GROUP_SWAPCHAIN_CREATE_INFO_KHR: { |
| unmarshal_VkDeviceGroupSwapchainCreateInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceGroupSwapchainCreateInfoKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_display_swapchain |
| case VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR: { |
| unmarshal_VkDisplayPresentInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkDisplayPresentInfoKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case VK_STRUCTURE_TYPE_VIDEO_QUEUE_FAMILY_PROPERTIES_2_KHR: { |
| unmarshal_VkVideoQueueFamilyProperties2KHR( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoQueueFamilyProperties2KHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_PROFILE_KHR: { |
| unmarshal_VkVideoProfileKHR(vkStream, rootType, |
| reinterpret_cast<VkVideoProfileKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_PROFILES_KHR: { |
| unmarshal_VkVideoProfilesKHR( |
| vkStream, rootType, reinterpret_cast<VkVideoProfilesKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_dynamic_rendering |
| case VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO_KHR: { |
| unmarshal_VkPipelineRenderingCreateInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineRenderingCreateInfoKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DYNAMIC_RENDERING_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceDynamicRenderingFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDynamicRenderingFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDERING_INFO_KHR: { |
| unmarshal_VkCommandBufferInheritanceRenderingInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkCommandBufferInheritanceRenderingInfoKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR: { |
| unmarshal_VkRenderingFragmentShadingRateAttachmentInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkRenderingFragmentShadingRateAttachmentInfoKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDERING_FRAGMENT_DENSITY_MAP_ATTACHMENT_INFO_EXT: { |
| unmarshal_VkRenderingFragmentDensityMapAttachmentInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkRenderingFragmentDensityMapAttachmentInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ATTACHMENT_SAMPLE_COUNT_INFO_AMD: { |
| unmarshal_VkAttachmentSampleCountInfoAMD( |
| vkStream, rootType, |
| reinterpret_cast<VkAttachmentSampleCountInfoAMD*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MULTIVIEW_PER_VIEW_ATTRIBUTES_INFO_NVX: { |
| unmarshal_VkMultiviewPerViewAttributesInfoNVX( |
| vkStream, rootType, |
| reinterpret_cast<VkMultiviewPerViewAttributesInfoNVX*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_external_memory_win32 |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_KHR: { |
| unmarshal_VkImportMemoryWin32HandleInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkImportMemoryWin32HandleInfoKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_KHR: { |
| unmarshal_VkExportMemoryWin32HandleInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkExportMemoryWin32HandleInfoKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_external_memory_fd |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_FD_INFO_KHR: { |
| unmarshal_VkImportMemoryFdInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkImportMemoryFdInfoKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_win32_keyed_mutex |
| case VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_KHR: { |
| unmarshal_VkWin32KeyedMutexAcquireReleaseInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkWin32KeyedMutexAcquireReleaseInfoKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_external_semaphore_win32 |
| case VK_STRUCTURE_TYPE_EXPORT_SEMAPHORE_WIN32_HANDLE_INFO_KHR: { |
| unmarshal_VkExportSemaphoreWin32HandleInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkExportSemaphoreWin32HandleInfoKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_D3D12_FENCE_SUBMIT_INFO_KHR: { |
| unmarshal_VkD3D12FenceSubmitInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkD3D12FenceSubmitInfoKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_push_descriptor |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PUSH_DESCRIPTOR_PROPERTIES_KHR: { |
| unmarshal_VkPhysicalDevicePushDescriptorPropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePushDescriptorPropertiesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_incremental_present |
| case VK_STRUCTURE_TYPE_PRESENT_REGIONS_KHR: { |
| unmarshal_VkPresentRegionsKHR( |
| vkStream, rootType, reinterpret_cast<VkPresentRegionsKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_shared_presentable_image |
| case VK_STRUCTURE_TYPE_SHARED_PRESENT_SURFACE_CAPABILITIES_KHR: { |
| unmarshal_VkSharedPresentSurfaceCapabilitiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkSharedPresentSurfaceCapabilitiesKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_external_fence_win32 |
| case VK_STRUCTURE_TYPE_EXPORT_FENCE_WIN32_HANDLE_INFO_KHR: { |
| unmarshal_VkExportFenceWin32HandleInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkExportFenceWin32HandleInfoKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_performance_query |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_FEATURES_KHR: { |
| unmarshal_VkPhysicalDevicePerformanceQueryFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePerformanceQueryFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_PROPERTIES_KHR: { |
| unmarshal_VkPhysicalDevicePerformanceQueryPropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePerformanceQueryPropertiesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_CREATE_INFO_KHR: { |
| unmarshal_VkQueryPoolPerformanceCreateInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkQueryPoolPerformanceCreateInfoKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PERFORMANCE_QUERY_SUBMIT_INFO_KHR: { |
| unmarshal_VkPerformanceQuerySubmitInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPerformanceQuerySubmitInfoKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_portability_subset |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_FEATURES_KHR: { |
| unmarshal_VkPhysicalDevicePortabilitySubsetFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePortabilitySubsetFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PORTABILITY_SUBSET_PROPERTIES_KHR: { |
| unmarshal_VkPhysicalDevicePortabilitySubsetPropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePortabilitySubsetPropertiesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_shader_clock |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CLOCK_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceShaderClockFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderClockFeaturesKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_shader_terminate_invocation |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_TERMINATE_INVOCATION_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_fragment_shading_rate |
| case VK_STRUCTURE_TYPE_FRAGMENT_SHADING_RATE_ATTACHMENT_INFO_KHR: { |
| unmarshal_VkFragmentShadingRateAttachmentInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkFragmentShadingRateAttachmentInfoKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_STATE_CREATE_INFO_KHR: { |
| unmarshal_VkPipelineFragmentShadingRateStateCreateInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineFragmentShadingRateStateCreateInfoKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceFragmentShadingRateFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentShadingRateFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_PROPERTIES_KHR: { |
| unmarshal_VkPhysicalDeviceFragmentShadingRatePropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentShadingRatePropertiesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_surface_protected_capabilities |
| case VK_STRUCTURE_TYPE_SURFACE_PROTECTED_CAPABILITIES_KHR: { |
| unmarshal_VkSurfaceProtectedCapabilitiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkSurfaceProtectedCapabilitiesKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_present_wait |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_WAIT_FEATURES_KHR: { |
| unmarshal_VkPhysicalDevicePresentWaitFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePresentWaitFeaturesKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_pipeline_executable_properties |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_EXECUTABLE_PROPERTIES_FEATURES_KHR: { |
| unmarshal_VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_shader_integer_dot_product |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceShaderIntegerDotProductFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderIntegerDotProductFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_DOT_PRODUCT_PROPERTIES_KHR: { |
| unmarshal_VkPhysicalDeviceShaderIntegerDotProductPropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderIntegerDotProductPropertiesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_present_id |
| case VK_STRUCTURE_TYPE_PRESENT_ID_KHR: { |
| unmarshal_VkPresentIdKHR(vkStream, rootType, |
| reinterpret_cast<VkPresentIdKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRESENT_ID_FEATURES_KHR: { |
| unmarshal_VkPhysicalDevicePresentIdFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePresentIdFeaturesKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_video_encode_queue |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_RATE_CONTROL_INFO_KHR: { |
| unmarshal_VkVideoEncodeRateControlInfoKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeRateControlInfoKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| case VK_STRUCTURE_TYPE_MEMORY_BARRIER_2_KHR: { |
| unmarshal_VkMemoryBarrier2KHR( |
| vkStream, rootType, reinterpret_cast<VkMemoryBarrier2KHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SYNCHRONIZATION_2_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceSynchronization2FeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceSynchronization2FeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_QUEUE_FAMILY_CHECKPOINT_PROPERTIES_2_NV: { |
| unmarshal_VkQueueFamilyCheckpointProperties2NV( |
| vkStream, rootType, |
| reinterpret_cast<VkQueueFamilyCheckpointProperties2NV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_shader_subgroup_uniform_control_flow |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SUBGROUP_UNIFORM_CONTROL_FLOW_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_zero_initialize_workgroup_memory |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ZERO_INITIALIZE_WORKGROUP_MEMORY_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_workgroup_memory_explicit_layout |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_WORKGROUP_MEMORY_EXPLICIT_LAYOUT_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_format_feature_flags2 |
| case VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3_KHR: { |
| unmarshal_VkFormatProperties3KHR( |
| vkStream, rootType, reinterpret_cast<VkFormatProperties3KHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_maintenance4 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceMaintenance4FeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMaintenance4FeaturesKHR*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR: { |
| unmarshal_VkPhysicalDeviceMaintenance4PropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMaintenance4PropertiesKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_ANDROID_native_buffer |
| case VK_STRUCTURE_TYPE_NATIVE_BUFFER_ANDROID: { |
| unmarshal_VkNativeBufferANDROID( |
| vkStream, rootType, reinterpret_cast<VkNativeBufferANDROID*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_debug_report |
| case VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT: { |
| unmarshal_VkDebugReportCallbackCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkDebugReportCallbackCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_rasterization_order |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD: { |
| unmarshal_VkPipelineRasterizationStateRasterizationOrderAMD( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineRasterizationStateRasterizationOrderAMD*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_dedicated_allocation |
| case VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV: { |
| unmarshal_VkDedicatedAllocationImageCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkDedicatedAllocationImageCreateInfoNV*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV: { |
| unmarshal_VkDedicatedAllocationBufferCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkDedicatedAllocationBufferCreateInfoNV*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV: { |
| unmarshal_VkDedicatedAllocationMemoryAllocateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkDedicatedAllocationMemoryAllocateInfoNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceTransformFeedbackFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceTransformFeedbackFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TRANSFORM_FEEDBACK_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceTransformFeedbackPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceTransformFeedbackPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_STREAM_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineRasterizationStateStreamCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineRasterizationStateStreamCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_video_encode_h264 |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_CAPABILITIES_EXT: { |
| unmarshal_VkVideoEncodeH264CapabilitiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH264CapabilitiesEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_CREATE_INFO_EXT: { |
| unmarshal_VkVideoEncodeH264SessionCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH264SessionCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT: { |
| unmarshal_VkVideoEncodeH264SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH264SessionParametersAddInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT: { |
| unmarshal_VkVideoEncodeH264SessionParametersCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH264SessionParametersCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_VCL_FRAME_INFO_EXT: { |
| unmarshal_VkVideoEncodeH264VclFrameInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH264VclFrameInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_EMIT_PICTURE_PARAMETERS_EXT: { |
| unmarshal_VkVideoEncodeH264EmitPictureParametersEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH264EmitPictureParametersEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H264_PROFILE_EXT: { |
| unmarshal_VkVideoEncodeH264ProfileEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH264ProfileEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_video_encode_h265 |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_CAPABILITIES_EXT: { |
| unmarshal_VkVideoEncodeH265CapabilitiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH265CapabilitiesEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_CREATE_INFO_EXT: { |
| unmarshal_VkVideoEncodeH265SessionCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH265SessionCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT: { |
| unmarshal_VkVideoEncodeH265SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH265SessionParametersAddInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT: { |
| unmarshal_VkVideoEncodeH265SessionParametersCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH265SessionParametersCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_VCL_FRAME_INFO_EXT: { |
| unmarshal_VkVideoEncodeH265VclFrameInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH265VclFrameInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_EMIT_PICTURE_PARAMETERS_EXT: { |
| unmarshal_VkVideoEncodeH265EmitPictureParametersEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH265EmitPictureParametersEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_ENCODE_H265_PROFILE_EXT: { |
| unmarshal_VkVideoEncodeH265ProfileEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoEncodeH265ProfileEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_video_decode_h264 |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_PROFILE_EXT: { |
| unmarshal_VkVideoDecodeH264ProfileEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH264ProfileEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_CAPABILITIES_EXT: { |
| unmarshal_VkVideoDecodeH264CapabilitiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH264CapabilitiesEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_CREATE_INFO_EXT: { |
| unmarshal_VkVideoDecodeH264SessionCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH264SessionCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_PARAMETERS_ADD_INFO_EXT: { |
| unmarshal_VkVideoDecodeH264SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH264SessionParametersAddInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_SESSION_PARAMETERS_CREATE_INFO_EXT: { |
| unmarshal_VkVideoDecodeH264SessionParametersCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH264SessionParametersCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_PICTURE_INFO_EXT: { |
| unmarshal_VkVideoDecodeH264PictureInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH264PictureInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_MVC_EXT: { |
| unmarshal_VkVideoDecodeH264MvcEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH264MvcEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H264_DPB_SLOT_INFO_EXT: { |
| unmarshal_VkVideoDecodeH264DpbSlotInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH264DpbSlotInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_texture_gather_bias_lod |
| case VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD: { |
| unmarshal_VkTextureLODGatherFormatPropertiesAMD( |
| vkStream, rootType, |
| reinterpret_cast<VkTextureLODGatherFormatPropertiesAMD*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_corner_sampled_image |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CORNER_SAMPLED_IMAGE_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceCornerSampledImageFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceCornerSampledImageFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_external_memory |
| case VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV: { |
| unmarshal_VkExternalMemoryImageCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkExternalMemoryImageCreateInfoNV*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV: { |
| unmarshal_VkExportMemoryAllocateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkExportMemoryAllocateInfoNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_external_memory_win32 |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV: { |
| unmarshal_VkImportMemoryWin32HandleInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkImportMemoryWin32HandleInfoNV*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV: { |
| unmarshal_VkExportMemoryWin32HandleInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkExportMemoryWin32HandleInfoNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_win32_keyed_mutex |
| case VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV: { |
| unmarshal_VkWin32KeyedMutexAcquireReleaseInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkWin32KeyedMutexAcquireReleaseInfoNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_validation_flags |
| case VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT: { |
| unmarshal_VkValidationFlagsEXT( |
| vkStream, rootType, reinterpret_cast<VkValidationFlagsEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_texture_compression_astc_hdr |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXTURE_COMPRESSION_ASTC_HDR_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_astc_decode_mode |
| case VK_STRUCTURE_TYPE_IMAGE_VIEW_ASTC_DECODE_MODE_EXT: { |
| unmarshal_VkImageViewASTCDecodeModeEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkImageViewASTCDecodeModeEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ASTC_DECODE_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceASTCDecodeFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceASTCDecodeFeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_conditional_rendering |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONDITIONAL_RENDERING_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceConditionalRenderingFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceConditionalRenderingFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_CONDITIONAL_RENDERING_INFO_EXT: { |
| unmarshal_VkCommandBufferInheritanceConditionalRenderingInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkCommandBufferInheritanceConditionalRenderingInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_clip_space_w_scaling |
| case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_W_SCALING_STATE_CREATE_INFO_NV: { |
| unmarshal_VkPipelineViewportWScalingStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineViewportWScalingStateCreateInfoNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_display_control |
| case VK_STRUCTURE_TYPE_SWAPCHAIN_COUNTER_CREATE_INFO_EXT: { |
| unmarshal_VkSwapchainCounterCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkSwapchainCounterCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_GOOGLE_display_timing |
| case VK_STRUCTURE_TYPE_PRESENT_TIMES_INFO_GOOGLE: { |
| unmarshal_VkPresentTimesInfoGOOGLE( |
| vkStream, rootType, |
| reinterpret_cast<VkPresentTimesInfoGOOGLE*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NVX_multiview_per_view_attributes |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTIVIEW_PER_VIEW_ATTRIBUTES_PROPERTIES_NVX: { |
| unmarshal_VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_viewport_swizzle |
| case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SWIZZLE_STATE_CREATE_INFO_NV: { |
| unmarshal_VkPipelineViewportSwizzleStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineViewportSwizzleStateCreateInfoNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_discard_rectangles |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DISCARD_RECTANGLE_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceDiscardRectanglePropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDiscardRectanglePropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_DISCARD_RECTANGLE_STATE_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineDiscardRectangleStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineDiscardRectangleStateCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_conservative_rasterization |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CONSERVATIVE_RASTERIZATION_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceConservativeRasterizationPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceConservativeRasterizationPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_CONSERVATIVE_STATE_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineRasterizationConservativeStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineRasterizationConservativeStateCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_depth_clip_enable |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEPTH_CLIP_ENABLE_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceDepthClipEnableFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDepthClipEnableFeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_DEPTH_CLIP_STATE_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineRasterizationDepthClipStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineRasterizationDepthClipStateCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_debug_utils |
| case VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT: { |
| unmarshal_VkDebugUtilsMessengerCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkDebugUtilsMessengerCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_ANDROID_external_memory_android_hardware_buffer |
| case VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_USAGE_ANDROID: { |
| unmarshal_VkAndroidHardwareBufferUsageANDROID( |
| vkStream, rootType, |
| reinterpret_cast<VkAndroidHardwareBufferUsageANDROID*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_ANDROID: { |
| unmarshal_VkAndroidHardwareBufferFormatPropertiesANDROID( |
| vkStream, rootType, |
| reinterpret_cast<VkAndroidHardwareBufferFormatPropertiesANDROID*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMPORT_ANDROID_HARDWARE_BUFFER_INFO_ANDROID: { |
| unmarshal_VkImportAndroidHardwareBufferInfoANDROID( |
| vkStream, rootType, |
| reinterpret_cast<VkImportAndroidHardwareBufferInfoANDROID*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_EXTERNAL_FORMAT_ANDROID: { |
| unmarshal_VkExternalFormatANDROID( |
| vkStream, rootType, |
| reinterpret_cast<VkExternalFormatANDROID*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_PROPERTIES_2_ANDROID: { |
| unmarshal_VkAndroidHardwareBufferFormatProperties2ANDROID( |
| vkStream, rootType, |
| reinterpret_cast<VkAndroidHardwareBufferFormatProperties2ANDROID*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_inline_uniform_block |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceInlineUniformBlockFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceInlineUniformBlockFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceInlineUniformBlockPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceInlineUniformBlockPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_INLINE_UNIFORM_BLOCK_EXT: { |
| unmarshal_VkWriteDescriptorSetInlineUniformBlockEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkWriteDescriptorSetInlineUniformBlockEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_INLINE_UNIFORM_BLOCK_CREATE_INFO_EXT: { |
| unmarshal_VkDescriptorPoolInlineUniformBlockCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkDescriptorPoolInlineUniformBlockCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_sample_locations |
| case VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT: { |
| unmarshal_VkSampleLocationsInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkSampleLocationsInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_SAMPLE_LOCATIONS_BEGIN_INFO_EXT: { |
| unmarshal_VkRenderPassSampleLocationsBeginInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkRenderPassSampleLocationsBeginInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineSampleLocationsStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineSampleLocationsStateCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SAMPLE_LOCATIONS_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceSampleLocationsPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceSampleLocationsPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_blend_operation_advanced |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BLEND_OPERATION_ADVANCED_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_ADVANCED_STATE_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineColorBlendAdvancedStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineColorBlendAdvancedStateCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_fragment_coverage_to_color |
| case VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_TO_COLOR_STATE_CREATE_INFO_NV: { |
| unmarshal_VkPipelineCoverageToColorStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineCoverageToColorStateCreateInfoNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_framebuffer_mixed_samples |
| case VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_MODULATION_STATE_CREATE_INFO_NV: { |
| unmarshal_VkPipelineCoverageModulationStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineCoverageModulationStateCreateInfoNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_shader_sm_builtins |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SM_BUILTINS_PROPERTIES_NV: { |
| unmarshal_VkPhysicalDeviceShaderSMBuiltinsPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderSMBuiltinsPropertiesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_SM_BUILTINS_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceShaderSMBuiltinsFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderSMBuiltinsFeaturesNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_image_drm_format_modifier |
| case VK_STRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_EXT: { |
| unmarshal_VkDrmFormatModifierPropertiesListEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkDrmFormatModifierPropertiesListEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_DRM_FORMAT_MODIFIER_INFO_EXT: { |
| unmarshal_VkPhysicalDeviceImageDrmFormatModifierInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceImageDrmFormatModifierInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_LIST_CREATE_INFO_EXT: { |
| unmarshal_VkImageDrmFormatModifierListCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkImageDrmFormatModifierListCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMAGE_DRM_FORMAT_MODIFIER_EXPLICIT_CREATE_INFO_EXT: { |
| unmarshal_VkImageDrmFormatModifierExplicitCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkImageDrmFormatModifierExplicitCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DRM_FORMAT_MODIFIER_PROPERTIES_LIST_2_EXT: { |
| unmarshal_VkDrmFormatModifierPropertiesList2EXT( |
| vkStream, rootType, |
| reinterpret_cast<VkDrmFormatModifierPropertiesList2EXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_validation_cache |
| case VK_STRUCTURE_TYPE_SHADER_MODULE_VALIDATION_CACHE_CREATE_INFO_EXT: { |
| unmarshal_VkShaderModuleValidationCacheCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkShaderModuleValidationCacheCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_shading_rate_image |
| case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_SHADING_RATE_IMAGE_STATE_CREATE_INFO_NV: { |
| unmarshal_VkPipelineViewportShadingRateImageStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineViewportShadingRateImageStateCreateInfoNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADING_RATE_IMAGE_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceShadingRateImageFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShadingRateImageFeaturesNV*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADING_RATE_IMAGE_PROPERTIES_NV: { |
| unmarshal_VkPhysicalDeviceShadingRateImagePropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShadingRateImagePropertiesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_COARSE_SAMPLE_ORDER_STATE_CREATE_INFO_NV: { |
| unmarshal_VkPipelineViewportCoarseSampleOrderStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineViewportCoarseSampleOrderStateCreateInfoNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_NV: { |
| unmarshal_VkWriteDescriptorSetAccelerationStructureNV( |
| vkStream, rootType, |
| reinterpret_cast<VkWriteDescriptorSetAccelerationStructureNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PROPERTIES_NV: { |
| unmarshal_VkPhysicalDeviceRayTracingPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceRayTracingPropertiesNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_representative_fragment_test |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_REPRESENTATIVE_FRAGMENT_TEST_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_REPRESENTATIVE_FRAGMENT_TEST_STATE_CREATE_INFO_NV: { |
| unmarshal_VkPipelineRepresentativeFragmentTestStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineRepresentativeFragmentTestStateCreateInfoNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_filter_cubic |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_VIEW_IMAGE_FORMAT_INFO_EXT: { |
| unmarshal_VkPhysicalDeviceImageViewImageFormatInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceImageViewImageFormatInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_FILTER_CUBIC_IMAGE_VIEW_IMAGE_FORMAT_PROPERTIES_EXT: { |
| unmarshal_VkFilterCubicImageViewImageFormatPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkFilterCubicImageViewImageFormatPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_global_priority |
| case VK_STRUCTURE_TYPE_DEVICE_QUEUE_GLOBAL_PRIORITY_CREATE_INFO_EXT: { |
| unmarshal_VkDeviceQueueGlobalPriorityCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceQueueGlobalPriorityCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_external_memory_host |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_HOST_POINTER_INFO_EXT: { |
| unmarshal_VkImportMemoryHostPointerInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkImportMemoryHostPointerInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_HOST_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceExternalMemoryHostPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceExternalMemoryHostPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_pipeline_compiler_control |
| case VK_STRUCTURE_TYPE_PIPELINE_COMPILER_CONTROL_CREATE_INFO_AMD: { |
| unmarshal_VkPipelineCompilerControlCreateInfoAMD( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineCompilerControlCreateInfoAMD*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_shader_core_properties |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_AMD: { |
| unmarshal_VkPhysicalDeviceShaderCorePropertiesAMD( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderCorePropertiesAMD*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_video_decode_h265 |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PROFILE_EXT: { |
| unmarshal_VkVideoDecodeH265ProfileEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH265ProfileEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_CAPABILITIES_EXT: { |
| unmarshal_VkVideoDecodeH265CapabilitiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH265CapabilitiesEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_CREATE_INFO_EXT: { |
| unmarshal_VkVideoDecodeH265SessionCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH265SessionCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_ADD_INFO_EXT: { |
| unmarshal_VkVideoDecodeH265SessionParametersAddInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH265SessionParametersAddInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_SESSION_PARAMETERS_CREATE_INFO_EXT: { |
| unmarshal_VkVideoDecodeH265SessionParametersCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH265SessionParametersCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_PICTURE_INFO_EXT: { |
| unmarshal_VkVideoDecodeH265PictureInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH265PictureInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_VIDEO_DECODE_H265_DPB_SLOT_INFO_EXT: { |
| unmarshal_VkVideoDecodeH265DpbSlotInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkVideoDecodeH265DpbSlotInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_memory_overallocation_behavior |
| case VK_STRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD: { |
| unmarshal_VkDeviceMemoryOverallocationCreateInfoAMD( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceMemoryOverallocationCreateInfoAMD*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_vertex_attribute_divisor |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineVertexInputDivisorStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineVertexInputDivisorStateCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_GGP_frame_token |
| case VK_STRUCTURE_TYPE_PRESENT_FRAME_TOKEN_GGP: { |
| unmarshal_VkPresentFrameTokenGGP( |
| vkStream, rootType, reinterpret_cast<VkPresentFrameTokenGGP*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_pipeline_creation_feedback |
| case VK_STRUCTURE_TYPE_PIPELINE_CREATION_FEEDBACK_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineCreationFeedbackCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineCreationFeedbackCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_compute_shader_derivatives |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COMPUTE_SHADER_DERIVATIVES_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceComputeShaderDerivativesFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceComputeShaderDerivativesFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_mesh_shader |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceMeshShaderFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMeshShaderFeaturesNV*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MESH_SHADER_PROPERTIES_NV: { |
| unmarshal_VkPhysicalDeviceMeshShaderPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMeshShaderPropertiesNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_fragment_shader_barycentric |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_BARYCENTRIC_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_shader_image_footprint |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_FOOTPRINT_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceShaderImageFootprintFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderImageFootprintFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_scissor_exclusive |
| case VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_EXCLUSIVE_SCISSOR_STATE_CREATE_INFO_NV: { |
| unmarshal_VkPipelineViewportExclusiveScissorStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineViewportExclusiveScissorStateCreateInfoNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXCLUSIVE_SCISSOR_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceExclusiveScissorFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceExclusiveScissorFeaturesNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_device_diagnostic_checkpoints |
| case VK_STRUCTURE_TYPE_QUEUE_FAMILY_CHECKPOINT_PROPERTIES_NV: { |
| unmarshal_VkQueueFamilyCheckpointPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkQueueFamilyCheckpointPropertiesNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_INTEL_shader_integer_functions2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_INTEGER_FUNCTIONS_2_FEATURES_INTEL: { |
| unmarshal_VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case VK_STRUCTURE_TYPE_QUERY_POOL_PERFORMANCE_QUERY_CREATE_INFO_INTEL: { |
| unmarshal_VkQueryPoolPerformanceQueryCreateInfoINTEL( |
| vkStream, rootType, |
| reinterpret_cast<VkQueryPoolPerformanceQueryCreateInfoINTEL*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_pci_bus_info |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDevicePCIBusInfoPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePCIBusInfoPropertiesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_display_native_hdr |
| case VK_STRUCTURE_TYPE_DISPLAY_NATIVE_HDR_SURFACE_CAPABILITIES_AMD: { |
| unmarshal_VkDisplayNativeHdrSurfaceCapabilitiesAMD( |
| vkStream, rootType, |
| reinterpret_cast<VkDisplayNativeHdrSurfaceCapabilitiesAMD*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SWAPCHAIN_DISPLAY_NATIVE_HDR_CREATE_INFO_AMD: { |
| unmarshal_VkSwapchainDisplayNativeHdrCreateInfoAMD( |
| vkStream, rootType, |
| reinterpret_cast<VkSwapchainDisplayNativeHdrCreateInfoAMD*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_fragment_density_map |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_FEATURES_EXT: { |
| switch (rootType) { |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FEATURES_2: { |
| unmarshal_VkPhysicalDeviceFragmentDensityMapFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentDensityMapFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO: { |
| unmarshal_VkPhysicalDeviceFragmentDensityMapFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentDensityMapFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO: { |
| unmarshal_VkImportColorBufferGOOGLE( |
| vkStream, rootType, |
| reinterpret_cast<VkImportColorBufferGOOGLE*>(structExtension_out)); |
| break; |
| } |
| default: { |
| unmarshal_VkPhysicalDeviceFragmentDensityMapFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentDensityMapFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| } |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_PROPERTIES_EXT: { |
| switch (rootType) { |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2: { |
| unmarshal_VkPhysicalDeviceFragmentDensityMapPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentDensityMapPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO: { |
| unmarshal_VkCreateBlobGOOGLE( |
| vkStream, rootType, |
| reinterpret_cast<VkCreateBlobGOOGLE*>(structExtension_out)); |
| break; |
| } |
| default: { |
| unmarshal_VkPhysicalDeviceFragmentDensityMapPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentDensityMapPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| } |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_FRAGMENT_DENSITY_MAP_CREATE_INFO_EXT: { |
| switch (rootType) { |
| case VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO: { |
| unmarshal_VkRenderPassFragmentDensityMapCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkRenderPassFragmentDensityMapCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2: { |
| unmarshal_VkRenderPassFragmentDensityMapCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkRenderPassFragmentDensityMapCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO: { |
| unmarshal_VkImportBufferGOOGLE( |
| vkStream, rootType, |
| reinterpret_cast<VkImportBufferGOOGLE*>(structExtension_out)); |
| break; |
| } |
| default: { |
| unmarshal_VkRenderPassFragmentDensityMapCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkRenderPassFragmentDensityMapCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| } |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_subgroup_size_control |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceSubgroupSizeControlFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceSubgroupSizeControlFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_SIZE_CONTROL_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceSubgroupSizeControlPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceSubgroupSizeControlPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_REQUIRED_SUBGROUP_SIZE_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_shader_core_properties2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_CORE_PROPERTIES_2_AMD: { |
| unmarshal_VkPhysicalDeviceShaderCoreProperties2AMD( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderCoreProperties2AMD*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_AMD_device_coherent_memory |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COHERENT_MEMORY_FEATURES_AMD: { |
| unmarshal_VkPhysicalDeviceCoherentMemoryFeaturesAMD( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceCoherentMemoryFeaturesAMD*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_shader_image_atomic_int64 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_IMAGE_ATOMIC_INT64_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_memory_budget |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_BUDGET_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceMemoryBudgetPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMemoryBudgetPropertiesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_memory_priority |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MEMORY_PRIORITY_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceMemoryPriorityFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMemoryPriorityFeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MEMORY_PRIORITY_ALLOCATE_INFO_EXT: { |
| unmarshal_VkMemoryPriorityAllocateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkMemoryPriorityAllocateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_dedicated_allocation_image_aliasing |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEDICATED_ALLOCATION_IMAGE_ALIASING_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_buffer_device_address |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BUFFER_DEVICE_ADDRESS_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceBufferDeviceAddressFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceBufferDeviceAddressFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BUFFER_DEVICE_ADDRESS_CREATE_INFO_EXT: { |
| unmarshal_VkBufferDeviceAddressCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkBufferDeviceAddressCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_validation_features |
| case VK_STRUCTURE_TYPE_VALIDATION_FEATURES_EXT: { |
| unmarshal_VkValidationFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkValidationFeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_cooperative_matrix |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceCooperativeMatrixFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceCooperativeMatrixFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COOPERATIVE_MATRIX_PROPERTIES_NV: { |
| unmarshal_VkPhysicalDeviceCooperativeMatrixPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceCooperativeMatrixPropertiesNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_coverage_reduction_mode |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COVERAGE_REDUCTION_MODE_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceCoverageReductionModeFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceCoverageReductionModeFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_COVERAGE_REDUCTION_STATE_CREATE_INFO_NV: { |
| unmarshal_VkPipelineCoverageReductionStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineCoverageReductionStateCreateInfoNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_fragment_shader_interlock |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADER_INTERLOCK_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_ycbcr_image_arrays |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_IMAGE_ARRAYS_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceYcbcrImageArraysFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceYcbcrImageArraysFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_provoking_vertex |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceProvokingVertexFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceProvokingVertexFeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROVOKING_VERTEX_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceProvokingVertexPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceProvokingVertexPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_PROVOKING_VERTEX_STATE_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineRasterizationProvokingVertexStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineRasterizationProvokingVertexStateCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_full_screen_exclusive |
| case VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_INFO_EXT: { |
| unmarshal_VkSurfaceFullScreenExclusiveInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkSurfaceFullScreenExclusiveInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SURFACE_CAPABILITIES_FULL_SCREEN_EXCLUSIVE_EXT: { |
| unmarshal_VkSurfaceCapabilitiesFullScreenExclusiveEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkSurfaceCapabilitiesFullScreenExclusiveEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SURFACE_FULL_SCREEN_EXCLUSIVE_WIN32_INFO_EXT: { |
| unmarshal_VkSurfaceFullScreenExclusiveWin32InfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkSurfaceFullScreenExclusiveWin32InfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_line_rasterization |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceLineRasterizationFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceLineRasterizationFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_LINE_RASTERIZATION_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceLineRasterizationPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceLineRasterizationPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_LINE_STATE_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineRasterizationLineStateCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineRasterizationLineStateCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_shader_atomic_float |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceShaderAtomicFloatFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderAtomicFloatFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_index_type_uint8 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INDEX_TYPE_UINT8_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceIndexTypeUint8FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceIndexTypeUint8FeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceExtendedDynamicStateFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceExtendedDynamicStateFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_shader_atomic_float2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_ATOMIC_FLOAT_2_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_shader_demote_to_helper_invocation |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_DEMOTE_TO_HELPER_INVOCATION_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_device_generated_commands |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_PROPERTIES_NV: { |
| unmarshal_VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_GENERATED_COMMANDS_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_SHADER_GROUPS_CREATE_INFO_NV: { |
| unmarshal_VkGraphicsPipelineShaderGroupsCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkGraphicsPipelineShaderGroupsCreateInfoNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_inherited_viewport_scissor |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INHERITED_VIEWPORT_SCISSOR_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceInheritedViewportScissorFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceInheritedViewportScissorFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_VIEWPORT_SCISSOR_INFO_NV: { |
| unmarshal_VkCommandBufferInheritanceViewportScissorInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkCommandBufferInheritanceViewportScissorInfoNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_texel_buffer_alignment |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TEXEL_BUFFER_ALIGNMENT_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_QCOM_render_pass_transform |
| case VK_STRUCTURE_TYPE_RENDER_PASS_TRANSFORM_BEGIN_INFO_QCOM: { |
| unmarshal_VkRenderPassTransformBeginInfoQCOM( |
| vkStream, rootType, |
| reinterpret_cast<VkRenderPassTransformBeginInfoQCOM*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_RENDER_PASS_TRANSFORM_INFO_QCOM: { |
| unmarshal_VkCommandBufferInheritanceRenderPassTransformInfoQCOM( |
| vkStream, rootType, |
| reinterpret_cast<VkCommandBufferInheritanceRenderPassTransformInfoQCOM*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_device_memory_report |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DEVICE_MEMORY_REPORT_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceDeviceMemoryReportFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDeviceMemoryReportFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_DEVICE_MEMORY_REPORT_CREATE_INFO_EXT: { |
| unmarshal_VkDeviceDeviceMemoryReportCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceDeviceMemoryReportCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_robustness2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceRobustness2FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceRobustness2FeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ROBUSTNESS_2_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceRobustness2PropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceRobustness2PropertiesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_custom_border_color |
| case VK_STRUCTURE_TYPE_SAMPLER_CUSTOM_BORDER_COLOR_CREATE_INFO_EXT: { |
| unmarshal_VkSamplerCustomBorderColorCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkSamplerCustomBorderColorCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceCustomBorderColorPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceCustomBorderColorPropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_CUSTOM_BORDER_COLOR_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceCustomBorderColorFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceCustomBorderColorFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_private_data |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIVATE_DATA_FEATURES_EXT: { |
| unmarshal_VkPhysicalDevicePrivateDataFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePrivateDataFeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_PRIVATE_DATA_CREATE_INFO_EXT: { |
| unmarshal_VkDevicePrivateDataCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkDevicePrivateDataCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_pipeline_creation_cache_control |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PIPELINE_CREATION_CACHE_CONTROL_FEATURES_EXT: { |
| unmarshal_VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_device_diagnostics_config |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DIAGNOSTICS_CONFIG_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceDiagnosticsConfigFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDiagnosticsConfigFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_DEVICE_DIAGNOSTICS_CONFIG_CREATE_INFO_NV: { |
| unmarshal_VkDeviceDiagnosticsConfigCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkDeviceDiagnosticsConfigCreateInfoNV*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_fragment_shading_rate_enums |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_SHADING_RATE_ENUMS_PROPERTIES_NV: { |
| unmarshal_VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_FRAGMENT_SHADING_RATE_ENUM_STATE_CREATE_INFO_NV: { |
| unmarshal_VkPipelineFragmentShadingRateEnumStateCreateInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineFragmentShadingRateEnumStateCreateInfoNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing_motion_blur |
| case VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_GEOMETRY_MOTION_TRIANGLES_DATA_NV: { |
| unmarshal_VkAccelerationStructureGeometryMotionTrianglesDataNV( |
| vkStream, rootType, |
| reinterpret_cast<VkAccelerationStructureGeometryMotionTrianglesDataNV*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_ACCELERATION_STRUCTURE_MOTION_INFO_NV: { |
| unmarshal_VkAccelerationStructureMotionInfoNV( |
| vkStream, rootType, |
| reinterpret_cast<VkAccelerationStructureMotionInfoNV*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_MOTION_BLUR_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceRayTracingMotionBlurFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceRayTracingMotionBlurFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_ycbcr_2plane_444_formats |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_YCBCR_2_PLANE_444_FORMATS_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_fragment_density_map2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceFragmentDensityMap2FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentDensityMap2FeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_FRAGMENT_DENSITY_MAP_2_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceFragmentDensityMap2PropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceFragmentDensityMap2PropertiesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_QCOM_rotated_copy_commands |
| case VK_STRUCTURE_TYPE_COPY_COMMAND_TRANSFORM_INFO_QCOM: { |
| unmarshal_VkCopyCommandTransformInfoQCOM( |
| vkStream, rootType, |
| reinterpret_cast<VkCopyCommandTransformInfoQCOM*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_image_robustness |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceImageRobustnessFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceImageRobustnessFeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_4444_formats |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT: { |
| unmarshal_VkPhysicalDevice4444FormatsFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevice4444FormatsFeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_rgba10x6_formats |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RGBA10X6_FORMATS_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_VALVE_mutable_descriptor_type |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MUTABLE_DESCRIPTOR_TYPE_FEATURES_VALVE: { |
| unmarshal_VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_MUTABLE_DESCRIPTOR_TYPE_CREATE_INFO_VALVE: { |
| unmarshal_VkMutableDescriptorTypeCreateInfoVALVE( |
| vkStream, rootType, |
| reinterpret_cast<VkMutableDescriptorTypeCreateInfoVALVE*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_vertex_input_dynamic_state |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_INPUT_DYNAMIC_STATE_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_physical_device_drm |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_DRM_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceDrmPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceDrmPropertiesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_primitive_topology_list_restart |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PRIMITIVE_TOPOLOGY_LIST_RESTART_FEATURES_EXT: { |
| unmarshal_VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_external_memory |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_ZIRCON_HANDLE_INFO_FUCHSIA: { |
| unmarshal_VkImportMemoryZirconHandleInfoFUCHSIA( |
| vkStream, rootType, |
| reinterpret_cast<VkImportMemoryZirconHandleInfoFUCHSIA*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_buffer_collection |
| case VK_STRUCTURE_TYPE_IMPORT_MEMORY_BUFFER_COLLECTION_FUCHSIA: { |
| unmarshal_VkImportMemoryBufferCollectionFUCHSIA( |
| vkStream, rootType, |
| reinterpret_cast<VkImportMemoryBufferCollectionFUCHSIA*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BUFFER_COLLECTION_IMAGE_CREATE_INFO_FUCHSIA: { |
| unmarshal_VkBufferCollectionImageCreateInfoFUCHSIA( |
| vkStream, rootType, |
| reinterpret_cast<VkBufferCollectionImageCreateInfoFUCHSIA*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_BUFFER_COLLECTION_BUFFER_CREATE_INFO_FUCHSIA: { |
| unmarshal_VkBufferCollectionBufferCreateInfoFUCHSIA( |
| vkStream, rootType, |
| reinterpret_cast<VkBufferCollectionBufferCreateInfoFUCHSIA*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_HUAWEI_subpass_shading |
| case VK_STRUCTURE_TYPE_SUBPASS_SHADING_PIPELINE_CREATE_INFO_HUAWEI: { |
| unmarshal_VkSubpassShadingPipelineCreateInfoHUAWEI( |
| vkStream, rootType, |
| reinterpret_cast<VkSubpassShadingPipelineCreateInfoHUAWEI*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_FEATURES_HUAWEI: { |
| unmarshal_VkPhysicalDeviceSubpassShadingFeaturesHUAWEI( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceSubpassShadingFeaturesHUAWEI*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBPASS_SHADING_PROPERTIES_HUAWEI: { |
| unmarshal_VkPhysicalDeviceSubpassShadingPropertiesHUAWEI( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceSubpassShadingPropertiesHUAWEI*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_HUAWEI_invocation_mask |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INVOCATION_MASK_FEATURES_HUAWEI: { |
| unmarshal_VkPhysicalDeviceInvocationMaskFeaturesHUAWEI( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceInvocationMaskFeaturesHUAWEI*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_NV_external_memory_rdma |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTERNAL_MEMORY_RDMA_FEATURES_NV: { |
| unmarshal_VkPhysicalDeviceExternalMemoryRDMAFeaturesNV( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceExternalMemoryRDMAFeaturesNV*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state2 |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_2_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceExtendedDynamicState2FeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceExtendedDynamicState2FeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_color_write_enable |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_COLOR_WRITE_ENABLE_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceColorWriteEnableFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceColorWriteEnableFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PIPELINE_COLOR_WRITE_CREATE_INFO_EXT: { |
| unmarshal_VkPipelineColorWriteCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPipelineColorWriteCreateInfoEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_GOOGLE_gfxstream |
| case VK_STRUCTURE_TYPE_IMPORT_COLOR_BUFFER_GOOGLE: { |
| unmarshal_VkImportColorBufferGOOGLE( |
| vkStream, rootType, |
| reinterpret_cast<VkImportColorBufferGOOGLE*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_IMPORT_BUFFER_GOOGLE: { |
| unmarshal_VkImportBufferGOOGLE( |
| vkStream, rootType, reinterpret_cast<VkImportBufferGOOGLE*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_CREATE_BLOB_GOOGLE: { |
| unmarshal_VkCreateBlobGOOGLE( |
| vkStream, rootType, reinterpret_cast<VkCreateBlobGOOGLE*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_global_priority_query |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_GLOBAL_PRIORITY_QUERY_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceGlobalPriorityQueryFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_QUEUE_FAMILY_GLOBAL_PRIORITY_PROPERTIES_EXT: { |
| unmarshal_VkQueueFamilyGlobalPriorityPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkQueueFamilyGlobalPriorityPropertiesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_multi_draw |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceMultiDrawFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMultiDrawFeaturesEXT*>(structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MULTI_DRAW_PROPERTIES_EXT: { |
| unmarshal_VkPhysicalDeviceMultiDrawPropertiesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceMultiDrawPropertiesEXT*>(structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_border_color_swizzle |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_BORDER_COLOR_SWIZZLE_FEATURES_EXT: { |
| unmarshal_VkPhysicalDeviceBorderColorSwizzleFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceBorderColorSwizzleFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_SAMPLER_BORDER_COLOR_COMPONENT_MAPPING_CREATE_INFO_EXT: { |
| unmarshal_VkSamplerBorderColorComponentMappingCreateInfoEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkSamplerBorderColorComponentMappingCreateInfoEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_EXT_pageable_device_local_memory |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PAGEABLE_DEVICE_LOCAL_MEMORY_FEATURES_EXT: { |
| unmarshal_VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDevicePageableDeviceLocalMemoryFeaturesEXT*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET_ACCELERATION_STRUCTURE_KHR: { |
| unmarshal_VkWriteDescriptorSetAccelerationStructureKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkWriteDescriptorSetAccelerationStructureKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceAccelerationStructureFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceAccelerationStructureFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ACCELERATION_STRUCTURE_PROPERTIES_KHR: { |
| unmarshal_VkPhysicalDeviceAccelerationStructurePropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceAccelerationStructurePropertiesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_ray_tracing_pipeline |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceRayTracingPipelineFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceRayTracingPipelineFeaturesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_TRACING_PIPELINE_PROPERTIES_KHR: { |
| unmarshal_VkPhysicalDeviceRayTracingPipelinePropertiesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceRayTracingPipelinePropertiesKHR*>( |
| structExtension_out)); |
| break; |
| } |
| #endif |
| #ifdef VK_KHR_ray_query |
| case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_RAY_QUERY_FEATURES_KHR: { |
| unmarshal_VkPhysicalDeviceRayQueryFeaturesKHR( |
| vkStream, rootType, |
| reinterpret_cast<VkPhysicalDeviceRayQueryFeaturesKHR*>(structExtension_out)); |
| break; |
| } |
| #endif |
| default: { |
| // fatal; the switch is only taken if the extension struct is known |
| abort(); |
| } |
| } |
| } |
| |
| const char* api_opcode_to_string(const uint32_t opcode) { |
| switch (opcode) { |
| #ifdef VK_VERSION_1_0 |
| case OP_vkCreateInstance: { |
| return "OP_vkCreateInstance"; |
| } |
| case OP_vkDestroyInstance: { |
| return "OP_vkDestroyInstance"; |
| } |
| case OP_vkEnumeratePhysicalDevices: { |
| return "OP_vkEnumeratePhysicalDevices"; |
| } |
| case OP_vkGetPhysicalDeviceFeatures: { |
| return "OP_vkGetPhysicalDeviceFeatures"; |
| } |
| case OP_vkGetPhysicalDeviceFormatProperties: { |
| return "OP_vkGetPhysicalDeviceFormatProperties"; |
| } |
| case OP_vkGetPhysicalDeviceImageFormatProperties: { |
| return "OP_vkGetPhysicalDeviceImageFormatProperties"; |
| } |
| case OP_vkGetPhysicalDeviceProperties: { |
| return "OP_vkGetPhysicalDeviceProperties"; |
| } |
| case OP_vkGetPhysicalDeviceQueueFamilyProperties: { |
| return "OP_vkGetPhysicalDeviceQueueFamilyProperties"; |
| } |
| case OP_vkGetPhysicalDeviceMemoryProperties: { |
| return "OP_vkGetPhysicalDeviceMemoryProperties"; |
| } |
| case OP_vkGetInstanceProcAddr: { |
| return "OP_vkGetInstanceProcAddr"; |
| } |
| case OP_vkGetDeviceProcAddr: { |
| return "OP_vkGetDeviceProcAddr"; |
| } |
| case OP_vkCreateDevice: { |
| return "OP_vkCreateDevice"; |
| } |
| case OP_vkDestroyDevice: { |
| return "OP_vkDestroyDevice"; |
| } |
| case OP_vkEnumerateInstanceExtensionProperties: { |
| return "OP_vkEnumerateInstanceExtensionProperties"; |
| } |
| case OP_vkEnumerateDeviceExtensionProperties: { |
| return "OP_vkEnumerateDeviceExtensionProperties"; |
| } |
| case OP_vkEnumerateInstanceLayerProperties: { |
| return "OP_vkEnumerateInstanceLayerProperties"; |
| } |
| case OP_vkEnumerateDeviceLayerProperties: { |
| return "OP_vkEnumerateDeviceLayerProperties"; |
| } |
| case OP_vkGetDeviceQueue: { |
| return "OP_vkGetDeviceQueue"; |
| } |
| case OP_vkQueueSubmit: { |
| return "OP_vkQueueSubmit"; |
| } |
| case OP_vkQueueWaitIdle: { |
| return "OP_vkQueueWaitIdle"; |
| } |
| case OP_vkDeviceWaitIdle: { |
| return "OP_vkDeviceWaitIdle"; |
| } |
| case OP_vkAllocateMemory: { |
| return "OP_vkAllocateMemory"; |
| } |
| case OP_vkFreeMemory: { |
| return "OP_vkFreeMemory"; |
| } |
| case OP_vkMapMemory: { |
| return "OP_vkMapMemory"; |
| } |
| case OP_vkUnmapMemory: { |
| return "OP_vkUnmapMemory"; |
| } |
| case OP_vkFlushMappedMemoryRanges: { |
| return "OP_vkFlushMappedMemoryRanges"; |
| } |
| case OP_vkInvalidateMappedMemoryRanges: { |
| return "OP_vkInvalidateMappedMemoryRanges"; |
| } |
| case OP_vkGetDeviceMemoryCommitment: { |
| return "OP_vkGetDeviceMemoryCommitment"; |
| } |
| case OP_vkBindBufferMemory: { |
| return "OP_vkBindBufferMemory"; |
| } |
| case OP_vkBindImageMemory: { |
| return "OP_vkBindImageMemory"; |
| } |
| case OP_vkGetBufferMemoryRequirements: { |
| return "OP_vkGetBufferMemoryRequirements"; |
| } |
| case OP_vkGetImageMemoryRequirements: { |
| return "OP_vkGetImageMemoryRequirements"; |
| } |
| case OP_vkGetImageSparseMemoryRequirements: { |
| return "OP_vkGetImageSparseMemoryRequirements"; |
| } |
| case OP_vkGetPhysicalDeviceSparseImageFormatProperties: { |
| return "OP_vkGetPhysicalDeviceSparseImageFormatProperties"; |
| } |
| case OP_vkQueueBindSparse: { |
| return "OP_vkQueueBindSparse"; |
| } |
| case OP_vkCreateFence: { |
| return "OP_vkCreateFence"; |
| } |
| case OP_vkDestroyFence: { |
| return "OP_vkDestroyFence"; |
| } |
| case OP_vkResetFences: { |
| return "OP_vkResetFences"; |
| } |
| case OP_vkGetFenceStatus: { |
| return "OP_vkGetFenceStatus"; |
| } |
| case OP_vkWaitForFences: { |
| return "OP_vkWaitForFences"; |
| } |
| case OP_vkCreateSemaphore: { |
| return "OP_vkCreateSemaphore"; |
| } |
| case OP_vkDestroySemaphore: { |
| return "OP_vkDestroySemaphore"; |
| } |
| case OP_vkCreateEvent: { |
| return "OP_vkCreateEvent"; |
| } |
| case OP_vkDestroyEvent: { |
| return "OP_vkDestroyEvent"; |
| } |
| case OP_vkGetEventStatus: { |
| return "OP_vkGetEventStatus"; |
| } |
| case OP_vkSetEvent: { |
| return "OP_vkSetEvent"; |
| } |
| case OP_vkResetEvent: { |
| return "OP_vkResetEvent"; |
| } |
| case OP_vkCreateQueryPool: { |
| return "OP_vkCreateQueryPool"; |
| } |
| case OP_vkDestroyQueryPool: { |
| return "OP_vkDestroyQueryPool"; |
| } |
| case OP_vkGetQueryPoolResults: { |
| return "OP_vkGetQueryPoolResults"; |
| } |
| case OP_vkCreateBuffer: { |
| return "OP_vkCreateBuffer"; |
| } |
| case OP_vkDestroyBuffer: { |
| return "OP_vkDestroyBuffer"; |
| } |
| case OP_vkCreateBufferView: { |
| return "OP_vkCreateBufferView"; |
| } |
| case OP_vkDestroyBufferView: { |
| return "OP_vkDestroyBufferView"; |
| } |
| case OP_vkCreateImage: { |
| return "OP_vkCreateImage"; |
| } |
| case OP_vkDestroyImage: { |
| return "OP_vkDestroyImage"; |
| } |
| case OP_vkGetImageSubresourceLayout: { |
| return "OP_vkGetImageSubresourceLayout"; |
| } |
| case OP_vkCreateImageView: { |
| return "OP_vkCreateImageView"; |
| } |
| case OP_vkDestroyImageView: { |
| return "OP_vkDestroyImageView"; |
| } |
| case OP_vkCreateShaderModule: { |
| return "OP_vkCreateShaderModule"; |
| } |
| case OP_vkDestroyShaderModule: { |
| return "OP_vkDestroyShaderModule"; |
| } |
| case OP_vkCreatePipelineCache: { |
| return "OP_vkCreatePipelineCache"; |
| } |
| case OP_vkDestroyPipelineCache: { |
| return "OP_vkDestroyPipelineCache"; |
| } |
| case OP_vkGetPipelineCacheData: { |
| return "OP_vkGetPipelineCacheData"; |
| } |
| case OP_vkMergePipelineCaches: { |
| return "OP_vkMergePipelineCaches"; |
| } |
| case OP_vkCreateGraphicsPipelines: { |
| return "OP_vkCreateGraphicsPipelines"; |
| } |
| case OP_vkCreateComputePipelines: { |
| return "OP_vkCreateComputePipelines"; |
| } |
| case OP_vkDestroyPipeline: { |
| return "OP_vkDestroyPipeline"; |
| } |
| case OP_vkCreatePipelineLayout: { |
| return "OP_vkCreatePipelineLayout"; |
| } |
| case OP_vkDestroyPipelineLayout: { |
| return "OP_vkDestroyPipelineLayout"; |
| } |
| case OP_vkCreateSampler: { |
| return "OP_vkCreateSampler"; |
| } |
| case OP_vkDestroySampler: { |
| return "OP_vkDestroySampler"; |
| } |
| case OP_vkCreateDescriptorSetLayout: { |
| return "OP_vkCreateDescriptorSetLayout"; |
| } |
| case OP_vkDestroyDescriptorSetLayout: { |
| return "OP_vkDestroyDescriptorSetLayout"; |
| } |
| case OP_vkCreateDescriptorPool: { |
| return "OP_vkCreateDescriptorPool"; |
| } |
| case OP_vkDestroyDescriptorPool: { |
| return "OP_vkDestroyDescriptorPool"; |
| } |
| case OP_vkResetDescriptorPool: { |
| return "OP_vkResetDescriptorPool"; |
| } |
| case OP_vkAllocateDescriptorSets: { |
| return "OP_vkAllocateDescriptorSets"; |
| } |
| case OP_vkFreeDescriptorSets: { |
| return "OP_vkFreeDescriptorSets"; |
| } |
| case OP_vkUpdateDescriptorSets: { |
| return "OP_vkUpdateDescriptorSets"; |
| } |
| case OP_vkCreateFramebuffer: { |
| return "OP_vkCreateFramebuffer"; |
| } |
| case OP_vkDestroyFramebuffer: { |
| return "OP_vkDestroyFramebuffer"; |
| } |
| case OP_vkCreateRenderPass: { |
| return "OP_vkCreateRenderPass"; |
| } |
| case OP_vkDestroyRenderPass: { |
| return "OP_vkDestroyRenderPass"; |
| } |
| case OP_vkGetRenderAreaGranularity: { |
| return "OP_vkGetRenderAreaGranularity"; |
| } |
| case OP_vkCreateCommandPool: { |
| return "OP_vkCreateCommandPool"; |
| } |
| case OP_vkDestroyCommandPool: { |
| return "OP_vkDestroyCommandPool"; |
| } |
| case OP_vkResetCommandPool: { |
| return "OP_vkResetCommandPool"; |
| } |
| case OP_vkAllocateCommandBuffers: { |
| return "OP_vkAllocateCommandBuffers"; |
| } |
| case OP_vkFreeCommandBuffers: { |
| return "OP_vkFreeCommandBuffers"; |
| } |
| case OP_vkBeginCommandBuffer: { |
| return "OP_vkBeginCommandBuffer"; |
| } |
| case OP_vkEndCommandBuffer: { |
| return "OP_vkEndCommandBuffer"; |
| } |
| case OP_vkResetCommandBuffer: { |
| return "OP_vkResetCommandBuffer"; |
| } |
| case OP_vkCmdBindPipeline: { |
| return "OP_vkCmdBindPipeline"; |
| } |
| case OP_vkCmdSetViewport: { |
| return "OP_vkCmdSetViewport"; |
| } |
| case OP_vkCmdSetScissor: { |
| return "OP_vkCmdSetScissor"; |
| } |
| case OP_vkCmdSetLineWidth: { |
| return "OP_vkCmdSetLineWidth"; |
| } |
| case OP_vkCmdSetDepthBias: { |
| return "OP_vkCmdSetDepthBias"; |
| } |
| case OP_vkCmdSetBlendConstants: { |
| return "OP_vkCmdSetBlendConstants"; |
| } |
| case OP_vkCmdSetDepthBounds: { |
| return "OP_vkCmdSetDepthBounds"; |
| } |
| case OP_vkCmdSetStencilCompareMask: { |
| return "OP_vkCmdSetStencilCompareMask"; |
| } |
| case OP_vkCmdSetStencilWriteMask: { |
| return "OP_vkCmdSetStencilWriteMask"; |
| } |
| case OP_vkCmdSetStencilReference: { |
| return "OP_vkCmdSetStencilReference"; |
| } |
| case OP_vkCmdBindDescriptorSets: { |
| return "OP_vkCmdBindDescriptorSets"; |
| } |
| case OP_vkCmdBindIndexBuffer: { |
| return "OP_vkCmdBindIndexBuffer"; |
| } |
| case OP_vkCmdBindVertexBuffers: { |
| return "OP_vkCmdBindVertexBuffers"; |
| } |
| case OP_vkCmdDraw: { |
| return "OP_vkCmdDraw"; |
| } |
| case OP_vkCmdDrawIndexed: { |
| return "OP_vkCmdDrawIndexed"; |
| } |
| case OP_vkCmdDrawIndirect: { |
| return "OP_vkCmdDrawIndirect"; |
| } |
| case OP_vkCmdDrawIndexedIndirect: { |
| return "OP_vkCmdDrawIndexedIndirect"; |
| } |
| case OP_vkCmdDispatch: { |
| return "OP_vkCmdDispatch"; |
| } |
| case OP_vkCmdDispatchIndirect: { |
| return "OP_vkCmdDispatchIndirect"; |
| } |
| case OP_vkCmdCopyBuffer: { |
| return "OP_vkCmdCopyBuffer"; |
| } |
| case OP_vkCmdCopyImage: { |
| return "OP_vkCmdCopyImage"; |
| } |
| case OP_vkCmdBlitImage: { |
| return "OP_vkCmdBlitImage"; |
| } |
| case OP_vkCmdCopyBufferToImage: { |
| return "OP_vkCmdCopyBufferToImage"; |
| } |
| case OP_vkCmdCopyImageToBuffer: { |
| return "OP_vkCmdCopyImageToBuffer"; |
| } |
| case OP_vkCmdUpdateBuffer: { |
| return "OP_vkCmdUpdateBuffer"; |
| } |
| case OP_vkCmdFillBuffer: { |
| return "OP_vkCmdFillBuffer"; |
| } |
| case OP_vkCmdClearColorImage: { |
| return "OP_vkCmdClearColorImage"; |
| } |
| case OP_vkCmdClearDepthStencilImage: { |
| return "OP_vkCmdClearDepthStencilImage"; |
| } |
| case OP_vkCmdClearAttachments: { |
| return "OP_vkCmdClearAttachments"; |
| } |
| case OP_vkCmdResolveImage: { |
| return "OP_vkCmdResolveImage"; |
| } |
| case OP_vkCmdSetEvent: { |
| return "OP_vkCmdSetEvent"; |
| } |
| case OP_vkCmdResetEvent: { |
| return "OP_vkCmdResetEvent"; |
| } |
| case OP_vkCmdWaitEvents: { |
| return "OP_vkCmdWaitEvents"; |
| } |
| case OP_vkCmdPipelineBarrier: { |
| return "OP_vkCmdPipelineBarrier"; |
| } |
| case OP_vkCmdBeginQuery: { |
| return "OP_vkCmdBeginQuery"; |
| } |
| case OP_vkCmdEndQuery: { |
| return "OP_vkCmdEndQuery"; |
| } |
| case OP_vkCmdResetQueryPool: { |
| return "OP_vkCmdResetQueryPool"; |
| } |
| case OP_vkCmdWriteTimestamp: { |
| return "OP_vkCmdWriteTimestamp"; |
| } |
| case OP_vkCmdCopyQueryPoolResults: { |
| return "OP_vkCmdCopyQueryPoolResults"; |
| } |
| case OP_vkCmdPushConstants: { |
| return "OP_vkCmdPushConstants"; |
| } |
| case OP_vkCmdBeginRenderPass: { |
| return "OP_vkCmdBeginRenderPass"; |
| } |
| case OP_vkCmdNextSubpass: { |
| return "OP_vkCmdNextSubpass"; |
| } |
| case OP_vkCmdEndRenderPass: { |
| return "OP_vkCmdEndRenderPass"; |
| } |
| case OP_vkCmdExecuteCommands: { |
| return "OP_vkCmdExecuteCommands"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_1 |
| case OP_vkEnumerateInstanceVersion: { |
| return "OP_vkEnumerateInstanceVersion"; |
| } |
| case OP_vkBindBufferMemory2: { |
| return "OP_vkBindBufferMemory2"; |
| } |
| case OP_vkBindImageMemory2: { |
| return "OP_vkBindImageMemory2"; |
| } |
| case OP_vkGetDeviceGroupPeerMemoryFeatures: { |
| return "OP_vkGetDeviceGroupPeerMemoryFeatures"; |
| } |
| case OP_vkCmdSetDeviceMask: { |
| return "OP_vkCmdSetDeviceMask"; |
| } |
| case OP_vkCmdDispatchBase: { |
| return "OP_vkCmdDispatchBase"; |
| } |
| case OP_vkEnumeratePhysicalDeviceGroups: { |
| return "OP_vkEnumeratePhysicalDeviceGroups"; |
| } |
| case OP_vkGetImageMemoryRequirements2: { |
| return "OP_vkGetImageMemoryRequirements2"; |
| } |
| case OP_vkGetBufferMemoryRequirements2: { |
| return "OP_vkGetBufferMemoryRequirements2"; |
| } |
| case OP_vkGetImageSparseMemoryRequirements2: { |
| return "OP_vkGetImageSparseMemoryRequirements2"; |
| } |
| case OP_vkGetPhysicalDeviceFeatures2: { |
| return "OP_vkGetPhysicalDeviceFeatures2"; |
| } |
| case OP_vkGetPhysicalDeviceProperties2: { |
| return "OP_vkGetPhysicalDeviceProperties2"; |
| } |
| case OP_vkGetPhysicalDeviceFormatProperties2: { |
| return "OP_vkGetPhysicalDeviceFormatProperties2"; |
| } |
| case OP_vkGetPhysicalDeviceImageFormatProperties2: { |
| return "OP_vkGetPhysicalDeviceImageFormatProperties2"; |
| } |
| case OP_vkGetPhysicalDeviceQueueFamilyProperties2: { |
| return "OP_vkGetPhysicalDeviceQueueFamilyProperties2"; |
| } |
| case OP_vkGetPhysicalDeviceMemoryProperties2: { |
| return "OP_vkGetPhysicalDeviceMemoryProperties2"; |
| } |
| case OP_vkGetPhysicalDeviceSparseImageFormatProperties2: { |
| return "OP_vkGetPhysicalDeviceSparseImageFormatProperties2"; |
| } |
| case OP_vkTrimCommandPool: { |
| return "OP_vkTrimCommandPool"; |
| } |
| case OP_vkGetDeviceQueue2: { |
| return "OP_vkGetDeviceQueue2"; |
| } |
| case OP_vkCreateSamplerYcbcrConversion: { |
| return "OP_vkCreateSamplerYcbcrConversion"; |
| } |
| case OP_vkDestroySamplerYcbcrConversion: { |
| return "OP_vkDestroySamplerYcbcrConversion"; |
| } |
| case OP_vkCreateDescriptorUpdateTemplate: { |
| return "OP_vkCreateDescriptorUpdateTemplate"; |
| } |
| case OP_vkDestroyDescriptorUpdateTemplate: { |
| return "OP_vkDestroyDescriptorUpdateTemplate"; |
| } |
| case OP_vkUpdateDescriptorSetWithTemplate: { |
| return "OP_vkUpdateDescriptorSetWithTemplate"; |
| } |
| case OP_vkGetPhysicalDeviceExternalBufferProperties: { |
| return "OP_vkGetPhysicalDeviceExternalBufferProperties"; |
| } |
| case OP_vkGetPhysicalDeviceExternalFenceProperties: { |
| return "OP_vkGetPhysicalDeviceExternalFenceProperties"; |
| } |
| case OP_vkGetPhysicalDeviceExternalSemaphoreProperties: { |
| return "OP_vkGetPhysicalDeviceExternalSemaphoreProperties"; |
| } |
| case OP_vkGetDescriptorSetLayoutSupport: { |
| return "OP_vkGetDescriptorSetLayoutSupport"; |
| } |
| #endif |
| #ifdef VK_KHR_surface |
| case OP_vkDestroySurfaceKHR: { |
| return "OP_vkDestroySurfaceKHR"; |
| } |
| case OP_vkGetPhysicalDeviceSurfaceSupportKHR: { |
| return "OP_vkGetPhysicalDeviceSurfaceSupportKHR"; |
| } |
| case OP_vkGetPhysicalDeviceSurfaceCapabilitiesKHR: { |
| return "OP_vkGetPhysicalDeviceSurfaceCapabilitiesKHR"; |
| } |
| case OP_vkGetPhysicalDeviceSurfaceFormatsKHR: { |
| return "OP_vkGetPhysicalDeviceSurfaceFormatsKHR"; |
| } |
| case OP_vkGetPhysicalDeviceSurfacePresentModesKHR: { |
| return "OP_vkGetPhysicalDeviceSurfacePresentModesKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_swapchain |
| case OP_vkCreateSwapchainKHR: { |
| return "OP_vkCreateSwapchainKHR"; |
| } |
| case OP_vkDestroySwapchainKHR: { |
| return "OP_vkDestroySwapchainKHR"; |
| } |
| case OP_vkGetSwapchainImagesKHR: { |
| return "OP_vkGetSwapchainImagesKHR"; |
| } |
| case OP_vkAcquireNextImageKHR: { |
| return "OP_vkAcquireNextImageKHR"; |
| } |
| case OP_vkQueuePresentKHR: { |
| return "OP_vkQueuePresentKHR"; |
| } |
| case OP_vkGetDeviceGroupPresentCapabilitiesKHR: { |
| return "OP_vkGetDeviceGroupPresentCapabilitiesKHR"; |
| } |
| case OP_vkGetDeviceGroupSurfacePresentModesKHR: { |
| return "OP_vkGetDeviceGroupSurfacePresentModesKHR"; |
| } |
| case OP_vkGetPhysicalDevicePresentRectanglesKHR: { |
| return "OP_vkGetPhysicalDevicePresentRectanglesKHR"; |
| } |
| case OP_vkAcquireNextImage2KHR: { |
| return "OP_vkAcquireNextImage2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_display |
| case OP_vkGetPhysicalDeviceDisplayPropertiesKHR: { |
| return "OP_vkGetPhysicalDeviceDisplayPropertiesKHR"; |
| } |
| case OP_vkGetPhysicalDeviceDisplayPlanePropertiesKHR: { |
| return "OP_vkGetPhysicalDeviceDisplayPlanePropertiesKHR"; |
| } |
| case OP_vkGetDisplayPlaneSupportedDisplaysKHR: { |
| return "OP_vkGetDisplayPlaneSupportedDisplaysKHR"; |
| } |
| case OP_vkGetDisplayModePropertiesKHR: { |
| return "OP_vkGetDisplayModePropertiesKHR"; |
| } |
| case OP_vkCreateDisplayModeKHR: { |
| return "OP_vkCreateDisplayModeKHR"; |
| } |
| case OP_vkGetDisplayPlaneCapabilitiesKHR: { |
| return "OP_vkGetDisplayPlaneCapabilitiesKHR"; |
| } |
| case OP_vkCreateDisplayPlaneSurfaceKHR: { |
| return "OP_vkCreateDisplayPlaneSurfaceKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_display_swapchain |
| case OP_vkCreateSharedSwapchainsKHR: { |
| return "OP_vkCreateSharedSwapchainsKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_xlib_surface |
| case OP_vkCreateXlibSurfaceKHR: { |
| return "OP_vkCreateXlibSurfaceKHR"; |
| } |
| case OP_vkGetPhysicalDeviceXlibPresentationSupportKHR: { |
| return "OP_vkGetPhysicalDeviceXlibPresentationSupportKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_xcb_surface |
| case OP_vkCreateXcbSurfaceKHR: { |
| return "OP_vkCreateXcbSurfaceKHR"; |
| } |
| case OP_vkGetPhysicalDeviceXcbPresentationSupportKHR: { |
| return "OP_vkGetPhysicalDeviceXcbPresentationSupportKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_wayland_surface |
| case OP_vkCreateWaylandSurfaceKHR: { |
| return "OP_vkCreateWaylandSurfaceKHR"; |
| } |
| case OP_vkGetPhysicalDeviceWaylandPresentationSupportKHR: { |
| return "OP_vkGetPhysicalDeviceWaylandPresentationSupportKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_android_surface |
| case OP_vkCreateAndroidSurfaceKHR: { |
| return "OP_vkCreateAndroidSurfaceKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_win32_surface |
| case OP_vkCreateWin32SurfaceKHR: { |
| return "OP_vkCreateWin32SurfaceKHR"; |
| } |
| case OP_vkGetPhysicalDeviceWin32PresentationSupportKHR: { |
| return "OP_vkGetPhysicalDeviceWin32PresentationSupportKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_get_physical_device_properties2 |
| case OP_vkGetPhysicalDeviceFeatures2KHR: { |
| return "OP_vkGetPhysicalDeviceFeatures2KHR"; |
| } |
| case OP_vkGetPhysicalDeviceProperties2KHR: { |
| return "OP_vkGetPhysicalDeviceProperties2KHR"; |
| } |
| case OP_vkGetPhysicalDeviceFormatProperties2KHR: { |
| return "OP_vkGetPhysicalDeviceFormatProperties2KHR"; |
| } |
| case OP_vkGetPhysicalDeviceImageFormatProperties2KHR: { |
| return "OP_vkGetPhysicalDeviceImageFormatProperties2KHR"; |
| } |
| case OP_vkGetPhysicalDeviceQueueFamilyProperties2KHR: { |
| return "OP_vkGetPhysicalDeviceQueueFamilyProperties2KHR"; |
| } |
| case OP_vkGetPhysicalDeviceMemoryProperties2KHR: { |
| return "OP_vkGetPhysicalDeviceMemoryProperties2KHR"; |
| } |
| case OP_vkGetPhysicalDeviceSparseImageFormatProperties2KHR: { |
| return "OP_vkGetPhysicalDeviceSparseImageFormatProperties2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_device_group |
| case OP_vkGetDeviceGroupPeerMemoryFeaturesKHR: { |
| return "OP_vkGetDeviceGroupPeerMemoryFeaturesKHR"; |
| } |
| case OP_vkCmdSetDeviceMaskKHR: { |
| return "OP_vkCmdSetDeviceMaskKHR"; |
| } |
| case OP_vkCmdDispatchBaseKHR: { |
| return "OP_vkCmdDispatchBaseKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_maintenance1 |
| case OP_vkTrimCommandPoolKHR: { |
| return "OP_vkTrimCommandPoolKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_device_group_creation |
| case OP_vkEnumeratePhysicalDeviceGroupsKHR: { |
| return "OP_vkEnumeratePhysicalDeviceGroupsKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_external_memory_capabilities |
| case OP_vkGetPhysicalDeviceExternalBufferPropertiesKHR: { |
| return "OP_vkGetPhysicalDeviceExternalBufferPropertiesKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_external_memory_win32 |
| case OP_vkGetMemoryWin32HandleKHR: { |
| return "OP_vkGetMemoryWin32HandleKHR"; |
| } |
| case OP_vkGetMemoryWin32HandlePropertiesKHR: { |
| return "OP_vkGetMemoryWin32HandlePropertiesKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_external_memory_fd |
| case OP_vkGetMemoryFdKHR: { |
| return "OP_vkGetMemoryFdKHR"; |
| } |
| case OP_vkGetMemoryFdPropertiesKHR: { |
| return "OP_vkGetMemoryFdPropertiesKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_external_semaphore_capabilities |
| case OP_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR: { |
| return "OP_vkGetPhysicalDeviceExternalSemaphorePropertiesKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_external_semaphore_win32 |
| case OP_vkImportSemaphoreWin32HandleKHR: { |
| return "OP_vkImportSemaphoreWin32HandleKHR"; |
| } |
| case OP_vkGetSemaphoreWin32HandleKHR: { |
| return "OP_vkGetSemaphoreWin32HandleKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_external_semaphore_fd |
| case OP_vkImportSemaphoreFdKHR: { |
| return "OP_vkImportSemaphoreFdKHR"; |
| } |
| case OP_vkGetSemaphoreFdKHR: { |
| return "OP_vkGetSemaphoreFdKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_push_descriptor |
| case OP_vkCmdPushDescriptorSetKHR: { |
| return "OP_vkCmdPushDescriptorSetKHR"; |
| } |
| case OP_vkCmdPushDescriptorSetWithTemplateKHR: { |
| return "OP_vkCmdPushDescriptorSetWithTemplateKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_descriptor_update_template |
| case OP_vkCreateDescriptorUpdateTemplateKHR: { |
| return "OP_vkCreateDescriptorUpdateTemplateKHR"; |
| } |
| case OP_vkDestroyDescriptorUpdateTemplateKHR: { |
| return "OP_vkDestroyDescriptorUpdateTemplateKHR"; |
| } |
| case OP_vkUpdateDescriptorSetWithTemplateKHR: { |
| return "OP_vkUpdateDescriptorSetWithTemplateKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_create_renderpass2 |
| case OP_vkCreateRenderPass2KHR: { |
| return "OP_vkCreateRenderPass2KHR"; |
| } |
| case OP_vkCmdBeginRenderPass2KHR: { |
| return "OP_vkCmdBeginRenderPass2KHR"; |
| } |
| case OP_vkCmdNextSubpass2KHR: { |
| return "OP_vkCmdNextSubpass2KHR"; |
| } |
| case OP_vkCmdEndRenderPass2KHR: { |
| return "OP_vkCmdEndRenderPass2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_shared_presentable_image |
| case OP_vkGetSwapchainStatusKHR: { |
| return "OP_vkGetSwapchainStatusKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_external_fence_capabilities |
| case OP_vkGetPhysicalDeviceExternalFencePropertiesKHR: { |
| return "OP_vkGetPhysicalDeviceExternalFencePropertiesKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_external_fence_win32 |
| case OP_vkImportFenceWin32HandleKHR: { |
| return "OP_vkImportFenceWin32HandleKHR"; |
| } |
| case OP_vkGetFenceWin32HandleKHR: { |
| return "OP_vkGetFenceWin32HandleKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_external_fence_fd |
| case OP_vkImportFenceFdKHR: { |
| return "OP_vkImportFenceFdKHR"; |
| } |
| case OP_vkGetFenceFdKHR: { |
| return "OP_vkGetFenceFdKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_get_surface_capabilities2 |
| case OP_vkGetPhysicalDeviceSurfaceCapabilities2KHR: { |
| return "OP_vkGetPhysicalDeviceSurfaceCapabilities2KHR"; |
| } |
| case OP_vkGetPhysicalDeviceSurfaceFormats2KHR: { |
| return "OP_vkGetPhysicalDeviceSurfaceFormats2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_get_display_properties2 |
| case OP_vkGetPhysicalDeviceDisplayProperties2KHR: { |
| return "OP_vkGetPhysicalDeviceDisplayProperties2KHR"; |
| } |
| case OP_vkGetPhysicalDeviceDisplayPlaneProperties2KHR: { |
| return "OP_vkGetPhysicalDeviceDisplayPlaneProperties2KHR"; |
| } |
| case OP_vkGetDisplayModeProperties2KHR: { |
| return "OP_vkGetDisplayModeProperties2KHR"; |
| } |
| case OP_vkGetDisplayPlaneCapabilities2KHR: { |
| return "OP_vkGetDisplayPlaneCapabilities2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_get_memory_requirements2 |
| case OP_vkGetImageMemoryRequirements2KHR: { |
| return "OP_vkGetImageMemoryRequirements2KHR"; |
| } |
| case OP_vkGetBufferMemoryRequirements2KHR: { |
| return "OP_vkGetBufferMemoryRequirements2KHR"; |
| } |
| case OP_vkGetImageSparseMemoryRequirements2KHR: { |
| return "OP_vkGetImageSparseMemoryRequirements2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_sampler_ycbcr_conversion |
| case OP_vkCreateSamplerYcbcrConversionKHR: { |
| return "OP_vkCreateSamplerYcbcrConversionKHR"; |
| } |
| case OP_vkDestroySamplerYcbcrConversionKHR: { |
| return "OP_vkDestroySamplerYcbcrConversionKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_bind_memory2 |
| case OP_vkBindBufferMemory2KHR: { |
| return "OP_vkBindBufferMemory2KHR"; |
| } |
| case OP_vkBindImageMemory2KHR: { |
| return "OP_vkBindImageMemory2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_maintenance3 |
| case OP_vkGetDescriptorSetLayoutSupportKHR: { |
| return "OP_vkGetDescriptorSetLayoutSupportKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_draw_indirect_count |
| case OP_vkCmdDrawIndirectCountKHR: { |
| return "OP_vkCmdDrawIndirectCountKHR"; |
| } |
| case OP_vkCmdDrawIndexedIndirectCountKHR: { |
| return "OP_vkCmdDrawIndexedIndirectCountKHR"; |
| } |
| #endif |
| #ifdef VK_ANDROID_native_buffer |
| case OP_vkGetSwapchainGrallocUsageANDROID: { |
| return "OP_vkGetSwapchainGrallocUsageANDROID"; |
| } |
| case OP_vkAcquireImageANDROID: { |
| return "OP_vkAcquireImageANDROID"; |
| } |
| case OP_vkQueueSignalReleaseImageANDROID: { |
| return "OP_vkQueueSignalReleaseImageANDROID"; |
| } |
| #endif |
| #ifdef VK_EXT_debug_report |
| case OP_vkCreateDebugReportCallbackEXT: { |
| return "OP_vkCreateDebugReportCallbackEXT"; |
| } |
| case OP_vkDestroyDebugReportCallbackEXT: { |
| return "OP_vkDestroyDebugReportCallbackEXT"; |
| } |
| case OP_vkDebugReportMessageEXT: { |
| return "OP_vkDebugReportMessageEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_debug_marker |
| case OP_vkDebugMarkerSetObjectTagEXT: { |
| return "OP_vkDebugMarkerSetObjectTagEXT"; |
| } |
| case OP_vkDebugMarkerSetObjectNameEXT: { |
| return "OP_vkDebugMarkerSetObjectNameEXT"; |
| } |
| case OP_vkCmdDebugMarkerBeginEXT: { |
| return "OP_vkCmdDebugMarkerBeginEXT"; |
| } |
| case OP_vkCmdDebugMarkerEndEXT: { |
| return "OP_vkCmdDebugMarkerEndEXT"; |
| } |
| case OP_vkCmdDebugMarkerInsertEXT: { |
| return "OP_vkCmdDebugMarkerInsertEXT"; |
| } |
| #endif |
| #ifdef VK_AMD_draw_indirect_count |
| case OP_vkCmdDrawIndirectCountAMD: { |
| return "OP_vkCmdDrawIndirectCountAMD"; |
| } |
| case OP_vkCmdDrawIndexedIndirectCountAMD: { |
| return "OP_vkCmdDrawIndexedIndirectCountAMD"; |
| } |
| #endif |
| #ifdef VK_AMD_shader_info |
| case OP_vkGetShaderInfoAMD: { |
| return "OP_vkGetShaderInfoAMD"; |
| } |
| #endif |
| #ifdef VK_NV_external_memory_capabilities |
| case OP_vkGetPhysicalDeviceExternalImageFormatPropertiesNV: { |
| return "OP_vkGetPhysicalDeviceExternalImageFormatPropertiesNV"; |
| } |
| #endif |
| #ifdef VK_NV_external_memory_win32 |
| case OP_vkGetMemoryWin32HandleNV: { |
| return "OP_vkGetMemoryWin32HandleNV"; |
| } |
| #endif |
| #ifdef VK_NN_vi_surface |
| case OP_vkCreateViSurfaceNN: { |
| return "OP_vkCreateViSurfaceNN"; |
| } |
| #endif |
| #ifdef VK_EXT_conditional_rendering |
| case OP_vkCmdBeginConditionalRenderingEXT: { |
| return "OP_vkCmdBeginConditionalRenderingEXT"; |
| } |
| case OP_vkCmdEndConditionalRenderingEXT: { |
| return "OP_vkCmdEndConditionalRenderingEXT"; |
| } |
| #endif |
| #ifdef VK_NV_clip_space_w_scaling |
| case OP_vkCmdSetViewportWScalingNV: { |
| return "OP_vkCmdSetViewportWScalingNV"; |
| } |
| #endif |
| #ifdef VK_EXT_direct_mode_display |
| case OP_vkReleaseDisplayEXT: { |
| return "OP_vkReleaseDisplayEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_acquire_xlib_display |
| case OP_vkAcquireXlibDisplayEXT: { |
| return "OP_vkAcquireXlibDisplayEXT"; |
| } |
| case OP_vkGetRandROutputDisplayEXT: { |
| return "OP_vkGetRandROutputDisplayEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_display_surface_counter |
| case OP_vkGetPhysicalDeviceSurfaceCapabilities2EXT: { |
| return "OP_vkGetPhysicalDeviceSurfaceCapabilities2EXT"; |
| } |
| #endif |
| #ifdef VK_EXT_display_control |
| case OP_vkDisplayPowerControlEXT: { |
| return "OP_vkDisplayPowerControlEXT"; |
| } |
| case OP_vkRegisterDeviceEventEXT: { |
| return "OP_vkRegisterDeviceEventEXT"; |
| } |
| case OP_vkRegisterDisplayEventEXT: { |
| return "OP_vkRegisterDisplayEventEXT"; |
| } |
| case OP_vkGetSwapchainCounterEXT: { |
| return "OP_vkGetSwapchainCounterEXT"; |
| } |
| #endif |
| #ifdef VK_GOOGLE_display_timing |
| case OP_vkGetRefreshCycleDurationGOOGLE: { |
| return "OP_vkGetRefreshCycleDurationGOOGLE"; |
| } |
| case OP_vkGetPastPresentationTimingGOOGLE: { |
| return "OP_vkGetPastPresentationTimingGOOGLE"; |
| } |
| #endif |
| #ifdef VK_EXT_discard_rectangles |
| case OP_vkCmdSetDiscardRectangleEXT: { |
| return "OP_vkCmdSetDiscardRectangleEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_hdr_metadata |
| case OP_vkSetHdrMetadataEXT: { |
| return "OP_vkSetHdrMetadataEXT"; |
| } |
| #endif |
| #ifdef VK_MVK_ios_surface |
| case OP_vkCreateIOSSurfaceMVK: { |
| return "OP_vkCreateIOSSurfaceMVK"; |
| } |
| #endif |
| #ifdef VK_MVK_macos_surface |
| case OP_vkCreateMacOSSurfaceMVK: { |
| return "OP_vkCreateMacOSSurfaceMVK"; |
| } |
| #endif |
| #ifdef VK_EXT_debug_utils |
| case OP_vkSetDebugUtilsObjectNameEXT: { |
| return "OP_vkSetDebugUtilsObjectNameEXT"; |
| } |
| case OP_vkSetDebugUtilsObjectTagEXT: { |
| return "OP_vkSetDebugUtilsObjectTagEXT"; |
| } |
| case OP_vkQueueBeginDebugUtilsLabelEXT: { |
| return "OP_vkQueueBeginDebugUtilsLabelEXT"; |
| } |
| case OP_vkQueueEndDebugUtilsLabelEXT: { |
| return "OP_vkQueueEndDebugUtilsLabelEXT"; |
| } |
| case OP_vkQueueInsertDebugUtilsLabelEXT: { |
| return "OP_vkQueueInsertDebugUtilsLabelEXT"; |
| } |
| case OP_vkCmdBeginDebugUtilsLabelEXT: { |
| return "OP_vkCmdBeginDebugUtilsLabelEXT"; |
| } |
| case OP_vkCmdEndDebugUtilsLabelEXT: { |
| return "OP_vkCmdEndDebugUtilsLabelEXT"; |
| } |
| case OP_vkCmdInsertDebugUtilsLabelEXT: { |
| return "OP_vkCmdInsertDebugUtilsLabelEXT"; |
| } |
| case OP_vkCreateDebugUtilsMessengerEXT: { |
| return "OP_vkCreateDebugUtilsMessengerEXT"; |
| } |
| case OP_vkDestroyDebugUtilsMessengerEXT: { |
| return "OP_vkDestroyDebugUtilsMessengerEXT"; |
| } |
| case OP_vkSubmitDebugUtilsMessageEXT: { |
| return "OP_vkSubmitDebugUtilsMessageEXT"; |
| } |
| #endif |
| #ifdef VK_ANDROID_external_memory_android_hardware_buffer |
| case OP_vkGetAndroidHardwareBufferPropertiesANDROID: { |
| return "OP_vkGetAndroidHardwareBufferPropertiesANDROID"; |
| } |
| case OP_vkGetMemoryAndroidHardwareBufferANDROID: { |
| return "OP_vkGetMemoryAndroidHardwareBufferANDROID"; |
| } |
| #endif |
| #ifdef VK_EXT_sample_locations |
| case OP_vkCmdSetSampleLocationsEXT: { |
| return "OP_vkCmdSetSampleLocationsEXT"; |
| } |
| case OP_vkGetPhysicalDeviceMultisamplePropertiesEXT: { |
| return "OP_vkGetPhysicalDeviceMultisamplePropertiesEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_validation_cache |
| case OP_vkCreateValidationCacheEXT: { |
| return "OP_vkCreateValidationCacheEXT"; |
| } |
| case OP_vkDestroyValidationCacheEXT: { |
| return "OP_vkDestroyValidationCacheEXT"; |
| } |
| case OP_vkMergeValidationCachesEXT: { |
| return "OP_vkMergeValidationCachesEXT"; |
| } |
| case OP_vkGetValidationCacheDataEXT: { |
| return "OP_vkGetValidationCacheDataEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_external_memory_host |
| case OP_vkGetMemoryHostPointerPropertiesEXT: { |
| return "OP_vkGetMemoryHostPointerPropertiesEXT"; |
| } |
| #endif |
| #ifdef VK_AMD_buffer_marker |
| case OP_vkCmdWriteBufferMarkerAMD: { |
| return "OP_vkCmdWriteBufferMarkerAMD"; |
| } |
| #endif |
| #ifdef VK_NV_device_diagnostic_checkpoints |
| case OP_vkCmdSetCheckpointNV: { |
| return "OP_vkCmdSetCheckpointNV"; |
| } |
| case OP_vkGetQueueCheckpointDataNV: { |
| return "OP_vkGetQueueCheckpointDataNV"; |
| } |
| #endif |
| #ifdef VK_GOOGLE_gfxstream |
| case OP_vkMapMemoryIntoAddressSpaceGOOGLE: { |
| return "OP_vkMapMemoryIntoAddressSpaceGOOGLE"; |
| } |
| case OP_vkUpdateDescriptorSetWithTemplateSizedGOOGLE: { |
| return "OP_vkUpdateDescriptorSetWithTemplateSizedGOOGLE"; |
| } |
| case OP_vkBeginCommandBufferAsyncGOOGLE: { |
| return "OP_vkBeginCommandBufferAsyncGOOGLE"; |
| } |
| case OP_vkEndCommandBufferAsyncGOOGLE: { |
| return "OP_vkEndCommandBufferAsyncGOOGLE"; |
| } |
| case OP_vkResetCommandBufferAsyncGOOGLE: { |
| return "OP_vkResetCommandBufferAsyncGOOGLE"; |
| } |
| case OP_vkCommandBufferHostSyncGOOGLE: { |
| return "OP_vkCommandBufferHostSyncGOOGLE"; |
| } |
| case OP_vkCreateImageWithRequirementsGOOGLE: { |
| return "OP_vkCreateImageWithRequirementsGOOGLE"; |
| } |
| case OP_vkCreateBufferWithRequirementsGOOGLE: { |
| return "OP_vkCreateBufferWithRequirementsGOOGLE"; |
| } |
| case OP_vkGetMemoryHostAddressInfoGOOGLE: { |
| return "OP_vkGetMemoryHostAddressInfoGOOGLE"; |
| } |
| case OP_vkFreeMemorySyncGOOGLE: { |
| return "OP_vkFreeMemorySyncGOOGLE"; |
| } |
| case OP_vkQueueHostSyncGOOGLE: { |
| return "OP_vkQueueHostSyncGOOGLE"; |
| } |
| case OP_vkQueueSubmitAsyncGOOGLE: { |
| return "OP_vkQueueSubmitAsyncGOOGLE"; |
| } |
| case OP_vkQueueWaitIdleAsyncGOOGLE: { |
| return "OP_vkQueueWaitIdleAsyncGOOGLE"; |
| } |
| case OP_vkQueueBindSparseAsyncGOOGLE: { |
| return "OP_vkQueueBindSparseAsyncGOOGLE"; |
| } |
| case OP_vkGetLinearImageLayoutGOOGLE: { |
| return "OP_vkGetLinearImageLayoutGOOGLE"; |
| } |
| #endif |
| #ifdef VK_MVK_moltenvk |
| case OP_vkGetMTLDeviceMVK: { |
| return "OP_vkGetMTLDeviceMVK"; |
| } |
| case OP_vkSetMTLTextureMVK: { |
| return "OP_vkSetMTLTextureMVK"; |
| } |
| case OP_vkGetMTLTextureMVK: { |
| return "OP_vkGetMTLTextureMVK"; |
| } |
| case OP_vkGetMTLBufferMVK: { |
| return "OP_vkGetMTLBufferMVK"; |
| } |
| case OP_vkUseIOSurfaceMVK: { |
| return "OP_vkUseIOSurfaceMVK"; |
| } |
| case OP_vkGetIOSurfaceMVK: { |
| return "OP_vkGetIOSurfaceMVK"; |
| } |
| #endif |
| #ifdef VK_GOOGLE_gfxstream |
| case OP_vkQueueFlushCommandsGOOGLE: { |
| return "OP_vkQueueFlushCommandsGOOGLE"; |
| } |
| case OP_vkGetBlobGOOGLE: { |
| return "OP_vkGetBlobGOOGLE"; |
| } |
| #endif |
| #ifdef VK_KHR_dynamic_rendering |
| case OP_vkCmdEndRenderingKHR: { |
| return "OP_vkCmdEndRenderingKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_full_screen_exclusive |
| case OP_vkAcquireFullScreenExclusiveModeEXT: { |
| return "OP_vkAcquireFullScreenExclusiveModeEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| case OP_vkCmdPipelineBarrier2KHR: { |
| return "OP_vkCmdPipelineBarrier2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_maintenance4 |
| case OP_vkGetDeviceBufferMemoryRequirementsKHR: { |
| return "OP_vkGetDeviceBufferMemoryRequirementsKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_color_write_enable |
| case OP_vkCmdSetColorWriteEnableEXT: { |
| return "OP_vkCmdSetColorWriteEnableEXT"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkBindAccelerationStructureMemoryNV: { |
| return "OP_vkBindAccelerationStructureMemoryNV"; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case OP_vkInitializePerformanceApiINTEL: { |
| return "OP_vkInitializePerformanceApiINTEL"; |
| } |
| #endif |
| #ifdef VK_KHR_deferred_host_operations |
| case OP_vkGetDeferredOperationMaxConcurrencyKHR: { |
| return "OP_vkGetDeferredOperationMaxConcurrencyKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_calibrated_timestamps |
| case OP_vkGetCalibratedTimestampsEXT: { |
| return "OP_vkGetCalibratedTimestampsEXT"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkCreateRayTracingPipelinesNV: { |
| return "OP_vkCreateRayTracingPipelinesNV"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkCmdCopyMemoryToAccelerationStructureKHR: { |
| return "OP_vkCmdCopyMemoryToAccelerationStructureKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_fragment_shading_rate |
| case OP_vkCmdSetFragmentShadingRateKHR: { |
| return "OP_vkCmdSetFragmentShadingRateKHR"; |
| } |
| #endif |
| #ifdef VK_NVX_image_view_handle |
| case OP_vkGetImageViewHandleNVX: { |
| return "OP_vkGetImageViewHandleNVX"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetScissorWithCountEXT: { |
| return "OP_vkCmdSetScissorWithCountEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_ray_tracing_pipeline |
| case OP_vkGetRayTracingShaderGroupStackSizeKHR: { |
| return "OP_vkGetRayTracingShaderGroupStackSizeKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_full_screen_exclusive |
| case OP_vkGetDeviceGroupSurfacePresentModes2EXT: { |
| return "OP_vkGetDeviceGroupSurfacePresentModes2EXT"; |
| } |
| #endif |
| #ifdef VK_NV_mesh_shader |
| case OP_vkCmdDrawMeshTasksNV: { |
| return "OP_vkCmdDrawMeshTasksNV"; |
| } |
| #endif |
| #ifdef VK_NVX_binary_import |
| case OP_vkCreateCuFunctionNVX: { |
| return "OP_vkCreateCuFunctionNVX"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkCmdWriteAccelerationStructuresPropertiesNV: { |
| return "OP_vkCmdWriteAccelerationStructuresPropertiesNV"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state2 |
| case OP_vkCmdSetPatchControlPointsEXT: { |
| return "OP_vkCmdSetPatchControlPointsEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_private_data |
| case OP_vkDestroyPrivateDataSlotEXT: { |
| return "OP_vkDestroyPrivateDataSlotEXT"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkCmdTraceRaysNV: { |
| return "OP_vkCmdTraceRaysNV"; |
| } |
| #endif |
| #ifdef VK_NVX_image_view_handle |
| case OP_vkGetImageViewAddressNVX: { |
| return "OP_vkGetImageViewAddressNVX"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkCmdCopyAccelerationStructureNV: { |
| return "OP_vkCmdCopyAccelerationStructureNV"; |
| } |
| #endif |
| #ifdef VK_EXT_vertex_input_dynamic_state |
| case OP_vkCmdSetVertexInputEXT: { |
| return "OP_vkCmdSetVertexInputEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_ray_tracing_pipeline |
| case OP_vkCmdTraceRaysIndirectKHR: { |
| return "OP_vkCmdTraceRaysIndirectKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetFrontFaceEXT: { |
| return "OP_vkCmdSetFrontFaceEXT"; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_buffer_collection |
| case OP_vkSetBufferCollectionBufferConstraintsFUCHSIA: { |
| return "OP_vkSetBufferCollectionBufferConstraintsFUCHSIA"; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_external_memory |
| case OP_vkGetMemoryZirconHandlePropertiesFUCHSIA: { |
| return "OP_vkGetMemoryZirconHandlePropertiesFUCHSIA"; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case OP_vkGetPerformanceParameterINTEL: { |
| return "OP_vkGetPerformanceParameterINTEL"; |
| } |
| #endif |
| #ifdef VK_GOOGLE_gfxstream |
| case OP_vkCollectDescriptorPoolIdsGOOGLE: { |
| return "OP_vkCollectDescriptorPoolIdsGOOGLE"; |
| } |
| #endif |
| #ifdef VK_KHR_ray_tracing_pipeline |
| case OP_vkCmdTraceRaysKHR: { |
| return "OP_vkCmdTraceRaysKHR"; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_external_memory |
| case OP_vkGetMemoryZirconHandleFUCHSIA: { |
| return "OP_vkGetMemoryZirconHandleFUCHSIA"; |
| } |
| #endif |
| #ifdef VK_NV_shading_rate_image |
| case OP_vkCmdSetViewportShadingRatePaletteNV: { |
| return "OP_vkCmdSetViewportShadingRatePaletteNV"; |
| } |
| #endif |
| #ifdef VK_KHR_deferred_host_operations |
| case OP_vkDestroyDeferredOperationKHR: { |
| return "OP_vkDestroyDeferredOperationKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkBindVideoSessionMemoryKHR: { |
| return "OP_vkBindVideoSessionMemoryKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_deferred_host_operations |
| case OP_vkDeferredOperationJoinKHR: { |
| return "OP_vkDeferredOperationJoinKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetDepthWriteEnableEXT: { |
| return "OP_vkCmdSetDepthWriteEnableEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_buffer_device_address |
| case OP_vkGetBufferDeviceAddressKHR: { |
| return "OP_vkGetBufferDeviceAddressKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkGetAccelerationStructureBuildSizesKHR: { |
| return "OP_vkGetAccelerationStructureBuildSizesKHR"; |
| } |
| #endif |
| #ifdef VK_NVX_binary_import |
| case OP_vkCmdCuLaunchKernelNVX: { |
| return "OP_vkCmdCuLaunchKernelNVX"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkGetAccelerationStructureMemoryRequirementsNV: { |
| return "OP_vkGetAccelerationStructureMemoryRequirementsNV"; |
| } |
| #endif |
| #ifdef VK_HUAWEI_subpass_shading |
| case OP_vkCmdSubpassShadingHUAWEI: { |
| return "OP_vkCmdSubpassShadingHUAWEI"; |
| } |
| #endif |
| #ifdef VK_EXT_directfb_surface |
| case OP_vkCreateDirectFBSurfaceEXT: { |
| return "OP_vkCreateDirectFBSurfaceEXT"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkCmdEndRenderPass2: { |
| return "OP_vkCmdEndRenderPass2"; |
| } |
| #endif |
| #ifdef VK_KHR_ray_tracing_pipeline |
| case OP_vkGetRayTracingCaptureReplayShaderGroupHandlesKHR: { |
| return "OP_vkGetRayTracingCaptureReplayShaderGroupHandlesKHR"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkGetBufferDeviceAddress: { |
| return "OP_vkGetBufferDeviceAddress"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetDepthBoundsTestEnableEXT: { |
| return "OP_vkCmdSetDepthBoundsTestEnableEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkGetAccelerationStructureDeviceAddressKHR: { |
| return "OP_vkGetAccelerationStructureDeviceAddressKHR"; |
| } |
| case OP_vkCmdCopyAccelerationStructureToMemoryKHR: { |
| return "OP_vkCmdCopyAccelerationStructureToMemoryKHR"; |
| } |
| #endif |
| #ifdef VK_NV_mesh_shader |
| case OP_vkCmdDrawMeshTasksIndirectCountNV: { |
| return "OP_vkCmdDrawMeshTasksIndirectCountNV"; |
| } |
| #endif |
| #ifdef VK_KHR_performance_query |
| case OP_vkReleaseProfilingLockKHR: { |
| return "OP_vkReleaseProfilingLockKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkDestroyAccelerationStructureKHR: { |
| return "OP_vkDestroyAccelerationStructureKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_pageable_device_local_memory |
| case OP_vkSetDeviceMemoryPriorityEXT: { |
| return "OP_vkSetDeviceMemoryPriorityEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_buffer_device_address |
| case OP_vkGetBufferDeviceAddressEXT: { |
| return "OP_vkGetBufferDeviceAddressEXT"; |
| } |
| #endif |
| #ifdef VK_QNX_screen_surface |
| case OP_vkCreateScreenSurfaceQNX: { |
| return "OP_vkCreateScreenSurfaceQNX"; |
| } |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| case OP_vkCmdWriteBufferMarker2AMD: { |
| return "OP_vkCmdWriteBufferMarker2AMD"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkWaitSemaphores: { |
| return "OP_vkWaitSemaphores"; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_buffer_collection |
| case OP_vkDestroyBufferCollectionFUCHSIA: { |
| return "OP_vkDestroyBufferCollectionFUCHSIA"; |
| } |
| #endif |
| #ifdef VK_EXT_private_data |
| case OP_vkSetPrivateDataEXT: { |
| return "OP_vkSetPrivateDataEXT"; |
| } |
| #endif |
| #ifdef VK_HUAWEI_subpass_shading |
| case OP_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI: { |
| return "OP_vkGetDeviceSubpassShadingMaxWorkgroupSizeHUAWEI"; |
| } |
| #endif |
| #ifdef VK_NV_scissor_exclusive |
| case OP_vkCmdSetExclusiveScissorNV: { |
| return "OP_vkCmdSetExclusiveScissorNV"; |
| } |
| #endif |
| #ifdef VK_KHR_copy_commands2 |
| case OP_vkCmdCopyImage2KHR: { |
| return "OP_vkCmdCopyImage2KHR"; |
| } |
| #endif |
| #ifdef VK_NVX_binary_import |
| case OP_vkCreateCuModuleNVX: { |
| return "OP_vkCreateCuModuleNVX"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkCreateVideoSessionKHR: { |
| return "OP_vkCreateVideoSessionKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_timeline_semaphore |
| case OP_vkGetSemaphoreCounterValueKHR: { |
| return "OP_vkGetSemaphoreCounterValueKHR"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkGetRayTracingShaderGroupHandlesNV: { |
| return "OP_vkGetRayTracingShaderGroupHandlesNV"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkGetBufferOpaqueCaptureAddress: { |
| return "OP_vkGetBufferOpaqueCaptureAddress"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetDepthTestEnableEXT: { |
| return "OP_vkCmdSetDepthTestEnableEXT"; |
| } |
| #endif |
| #ifdef VK_NV_device_generated_commands |
| case OP_vkCmdExecuteGeneratedCommandsNV: { |
| return "OP_vkCmdExecuteGeneratedCommandsNV"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkCmdBeginRenderPass2: { |
| return "OP_vkCmdBeginRenderPass2"; |
| } |
| #endif |
| #ifdef VK_EXT_private_data |
| case OP_vkCreatePrivateDataSlotEXT: { |
| return "OP_vkCreatePrivateDataSlotEXT"; |
| } |
| #endif |
| #ifdef VK_NV_shading_rate_image |
| case OP_vkCmdSetCoarseSampleOrderNV: { |
| return "OP_vkCmdSetCoarseSampleOrderNV"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkDestroyVideoSessionParametersKHR: { |
| return "OP_vkDestroyVideoSessionParametersKHR"; |
| } |
| #endif |
| #ifdef VK_NV_shading_rate_image |
| case OP_vkCmdBindShadingRateImageNV: { |
| return "OP_vkCmdBindShadingRateImageNV"; |
| } |
| #endif |
| #ifdef VK_KHR_performance_query |
| case OP_vkAcquireProfilingLockKHR: { |
| return "OP_vkAcquireProfilingLockKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkDestroyVideoSessionKHR: { |
| return "OP_vkDestroyVideoSessionKHR"; |
| } |
| case OP_vkCmdBeginVideoCodingKHR: { |
| return "OP_vkCmdBeginVideoCodingKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkCopyAccelerationStructureKHR: { |
| return "OP_vkCopyAccelerationStructureKHR"; |
| } |
| #endif |
| #ifdef VK_GGP_stream_descriptor_surface |
| case OP_vkCreateStreamDescriptorSurfaceGGP: { |
| return "OP_vkCreateStreamDescriptorSurfaceGGP"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkBuildAccelerationStructuresKHR: { |
| return "OP_vkBuildAccelerationStructuresKHR"; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_buffer_collection |
| case OP_vkGetBufferCollectionPropertiesFUCHSIA: { |
| return "OP_vkGetBufferCollectionPropertiesFUCHSIA"; |
| } |
| #endif |
| #ifdef VK_EXT_host_query_reset |
| case OP_vkResetQueryPoolEXT: { |
| return "OP_vkResetQueryPoolEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_maintenance4 |
| case OP_vkGetDeviceImageMemoryRequirementsKHR: { |
| return "OP_vkGetDeviceImageMemoryRequirementsKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdBindVertexBuffers2EXT: { |
| return "OP_vkCmdBindVertexBuffers2EXT"; |
| } |
| #endif |
| #ifdef VK_GOOGLE_gfxstream |
| case OP_vkQueueSignalReleaseImageANDROIDAsyncGOOGLE: { |
| return "OP_vkQueueSignalReleaseImageANDROIDAsyncGOOGLE"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkCmdNextSubpass2: { |
| return "OP_vkCmdNextSubpass2"; |
| } |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| case OP_vkCmdWaitEvents2KHR: { |
| return "OP_vkCmdWaitEvents2KHR"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkCmdDrawIndexedIndirectCount: { |
| return "OP_vkCmdDrawIndexedIndirectCount"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state2 |
| case OP_vkCmdSetRasterizerDiscardEnableEXT: { |
| return "OP_vkCmdSetRasterizerDiscardEnableEXT"; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case OP_vkAcquirePerformanceConfigurationINTEL: { |
| return "OP_vkAcquirePerformanceConfigurationINTEL"; |
| } |
| #endif |
| #ifdef VK_KHR_ray_tracing_pipeline |
| case OP_vkCreateRayTracingPipelinesKHR: { |
| return "OP_vkCreateRayTracingPipelinesKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetDepthCompareOpEXT: { |
| return "OP_vkCmdSetDepthCompareOpEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_copy_commands2 |
| case OP_vkCmdCopyBuffer2KHR: { |
| return "OP_vkCmdCopyBuffer2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkGetPhysicalDeviceVideoCapabilitiesKHR: { |
| return "OP_vkGetPhysicalDeviceVideoCapabilitiesKHR"; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_external_semaphore |
| case OP_vkGetSemaphoreZirconHandleFUCHSIA: { |
| return "OP_vkGetSemaphoreZirconHandleFUCHSIA"; |
| } |
| #endif |
| #ifdef VK_KHR_copy_commands2 |
| case OP_vkCmdCopyBufferToImage2KHR: { |
| return "OP_vkCmdCopyBufferToImage2KHR"; |
| } |
| #endif |
| #ifdef VK_NV_device_generated_commands |
| case OP_vkGetGeneratedCommandsMemoryRequirementsNV: { |
| return "OP_vkGetGeneratedCommandsMemoryRequirementsNV"; |
| } |
| #endif |
| #ifdef VK_EXT_acquire_drm_display |
| case OP_vkAcquireDrmDisplayEXT: { |
| return "OP_vkAcquireDrmDisplayEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_image_drm_format_modifier |
| case OP_vkGetImageDrmFormatModifierPropertiesEXT: { |
| return "OP_vkGetImageDrmFormatModifierPropertiesEXT"; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case OP_vkCmdSetPerformanceOverrideINTEL: { |
| return "OP_vkCmdSetPerformanceOverrideINTEL"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkResetQueryPool: { |
| return "OP_vkResetQueryPool"; |
| } |
| #endif |
| #ifdef VK_KHR_copy_commands2 |
| case OP_vkCmdCopyImageToBuffer2KHR: { |
| return "OP_vkCmdCopyImageToBuffer2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| case OP_vkCmdWriteTimestamp2KHR: { |
| return "OP_vkCmdWriteTimestamp2KHR"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkDestroyAccelerationStructureNV: { |
| return "OP_vkDestroyAccelerationStructureNV"; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case OP_vkReleasePerformanceConfigurationINTEL: { |
| return "OP_vkReleasePerformanceConfigurationINTEL"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkCmdControlVideoCodingKHR: { |
| return "OP_vkCmdControlVideoCodingKHR"; |
| } |
| #endif |
| #ifdef VK_NVX_binary_import |
| case OP_vkDestroyCuFunctionNVX: { |
| return "OP_vkDestroyCuFunctionNVX"; |
| } |
| #endif |
| #ifdef VK_KHR_copy_commands2 |
| case OP_vkCmdResolveImage2KHR: { |
| return "OP_vkCmdResolveImage2KHR"; |
| } |
| #endif |
| #ifdef VK_EXT_metal_surface |
| case OP_vkCreateMetalSurfaceEXT: { |
| return "OP_vkCreateMetalSurfaceEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkCopyAccelerationStructureToMemoryKHR: { |
| return "OP_vkCopyAccelerationStructureToMemoryKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkGetVideoSessionMemoryRequirementsKHR: { |
| return "OP_vkGetVideoSessionMemoryRequirementsKHR"; |
| } |
| #endif |
| #ifdef VK_NV_external_memory_rdma |
| case OP_vkGetMemoryRemoteAddressNV: { |
| return "OP_vkGetMemoryRemoteAddressNV"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetViewportWithCountEXT: { |
| return "OP_vkCmdSetViewportWithCountEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_full_screen_exclusive |
| case OP_vkReleaseFullScreenExclusiveModeEXT: { |
| return "OP_vkReleaseFullScreenExclusiveModeEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkCmdBuildAccelerationStructuresIndirectKHR: { |
| return "OP_vkCmdBuildAccelerationStructuresIndirectKHR"; |
| } |
| #endif |
| #ifdef VK_QNX_screen_surface |
| case OP_vkGetPhysicalDeviceScreenPresentationSupportQNX: { |
| return "OP_vkGetPhysicalDeviceScreenPresentationSupportQNX"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkCreateAccelerationStructureKHR: { |
| return "OP_vkCreateAccelerationStructureKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state2 |
| case OP_vkCmdSetDepthBiasEnableEXT: { |
| return "OP_vkCmdSetDepthBiasEnableEXT"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkCreateAccelerationStructureNV: { |
| return "OP_vkCreateAccelerationStructureNV"; |
| } |
| #endif |
| #ifdef VK_KHR_copy_commands2 |
| case OP_vkCmdBlitImage2KHR: { |
| return "OP_vkCmdBlitImage2KHR"; |
| } |
| #endif |
| #ifdef VK_KHR_ray_tracing_pipeline |
| case OP_vkCmdSetRayTracingPipelineStackSizeKHR: { |
| return "OP_vkCmdSetRayTracingPipelineStackSizeKHR"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkGetDeviceMemoryOpaqueCaptureAddress: { |
| return "OP_vkGetDeviceMemoryOpaqueCaptureAddress"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetPrimitiveTopologyEXT: { |
| return "OP_vkCmdSetPrimitiveTopologyEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkUpdateVideoSessionParametersKHR: { |
| return "OP_vkUpdateVideoSessionParametersKHR"; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case OP_vkCmdSetPerformanceStreamMarkerINTEL: { |
| return "OP_vkCmdSetPerformanceStreamMarkerINTEL"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkCopyMemoryToAccelerationStructureKHR: { |
| return "OP_vkCopyMemoryToAccelerationStructureKHR"; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_imagepipe_surface |
| case OP_vkCreateImagePipeSurfaceFUCHSIA: { |
| return "OP_vkCreateImagePipeSurfaceFUCHSIA"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkGetPhysicalDeviceVideoFormatPropertiesKHR: { |
| return "OP_vkGetPhysicalDeviceVideoFormatPropertiesKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_present_wait |
| case OP_vkWaitForPresentKHR: { |
| return "OP_vkWaitForPresentKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_multi_draw |
| case OP_vkCmdDrawMultiEXT: { |
| return "OP_vkCmdDrawMultiEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_deferred_host_operations |
| case OP_vkGetDeferredOperationResultKHR: { |
| return "OP_vkGetDeferredOperationResultKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_line_rasterization |
| case OP_vkCmdSetLineStippleEXT: { |
| return "OP_vkCmdSetLineStippleEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_timeline_semaphore |
| case OP_vkWaitSemaphoresKHR: { |
| return "OP_vkWaitSemaphoresKHR"; |
| } |
| #endif |
| #ifdef VK_NV_fragment_shading_rate_enums |
| case OP_vkCmdSetFragmentShadingRateEnumNV: { |
| return "OP_vkCmdSetFragmentShadingRateEnumNV"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkCreateVideoSessionParametersKHR: { |
| return "OP_vkCreateVideoSessionParametersKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetCullModeEXT: { |
| return "OP_vkCmdSetCullModeEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkGetDeviceAccelerationStructureCompatibilityKHR: { |
| return "OP_vkGetDeviceAccelerationStructureCompatibilityKHR"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkGetSemaphoreCounterValue: { |
| return "OP_vkGetSemaphoreCounterValue"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state2 |
| case OP_vkCmdSetLogicOpEXT: { |
| return "OP_vkCmdSetLogicOpEXT"; |
| } |
| #endif |
| #ifdef VK_AMD_display_native_hdr |
| case OP_vkSetLocalDimmingAMD: { |
| return "OP_vkSetLocalDimmingAMD"; |
| } |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| case OP_vkCmdBindTransformFeedbackBuffersEXT: { |
| return "OP_vkCmdBindTransformFeedbackBuffersEXT"; |
| } |
| #endif |
| #ifdef VK_GOOGLE_gfxstream |
| case OP_vkQueueCommitDescriptorSetUpdatesGOOGLE: { |
| return "OP_vkQueueCommitDescriptorSetUpdatesGOOGLE"; |
| } |
| #endif |
| #ifdef VK_EXT_full_screen_exclusive |
| case OP_vkGetPhysicalDeviceSurfacePresentModes2EXT: { |
| return "OP_vkGetPhysicalDeviceSurfacePresentModes2EXT"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkCmdBuildAccelerationStructureNV: { |
| return "OP_vkCmdBuildAccelerationStructureNV"; |
| } |
| #endif |
| #ifdef VK_KHR_pipeline_executable_properties |
| case OP_vkGetPipelineExecutablePropertiesKHR: { |
| return "OP_vkGetPipelineExecutablePropertiesKHR"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkGetAccelerationStructureHandleNV: { |
| return "OP_vkGetAccelerationStructureHandleNV"; |
| } |
| #endif |
| #ifdef VK_KHR_timeline_semaphore |
| case OP_vkSignalSemaphoreKHR: { |
| return "OP_vkSignalSemaphoreKHR"; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case OP_vkCmdSetPerformanceMarkerINTEL: { |
| return "OP_vkCmdSetPerformanceMarkerINTEL"; |
| } |
| #endif |
| #ifdef VK_NV_device_generated_commands |
| case OP_vkCmdBindPipelineShaderGroupNV: { |
| return "OP_vkCmdBindPipelineShaderGroupNV"; |
| } |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| case OP_vkCmdSetEvent2KHR: { |
| return "OP_vkCmdSetEvent2KHR"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkSignalSemaphore: { |
| return "OP_vkSignalSemaphore"; |
| } |
| #endif |
| #ifdef VK_KHR_pipeline_executable_properties |
| case OP_vkGetPipelineExecutableStatisticsKHR: { |
| return "OP_vkGetPipelineExecutableStatisticsKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkCmdWriteAccelerationStructuresPropertiesKHR: { |
| return "OP_vkCmdWriteAccelerationStructuresPropertiesKHR"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkGetRayTracingShaderGroupHandlesKHR: { |
| return "OP_vkGetRayTracingShaderGroupHandlesKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| case OP_vkCmdEndTransformFeedbackEXT: { |
| return "OP_vkCmdEndTransformFeedbackEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkCmdBuildAccelerationStructuresKHR: { |
| return "OP_vkCmdBuildAccelerationStructuresKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_fragment_shading_rate |
| case OP_vkGetPhysicalDeviceFragmentShadingRatesKHR: { |
| return "OP_vkGetPhysicalDeviceFragmentShadingRatesKHR"; |
| } |
| #endif |
| #ifdef VK_NVX_binary_import |
| case OP_vkDestroyCuModuleNVX: { |
| return "OP_vkDestroyCuModuleNVX"; |
| } |
| #endif |
| #ifdef VK_NV_mesh_shader |
| case OP_vkCmdDrawMeshTasksIndirectNV: { |
| return "OP_vkCmdDrawMeshTasksIndirectNV"; |
| } |
| #endif |
| #ifdef VK_KHR_pipeline_executable_properties |
| case OP_vkGetPipelineExecutableInternalRepresentationsKHR: { |
| return "OP_vkGetPipelineExecutableInternalRepresentationsKHR"; |
| } |
| #endif |
| #ifdef VK_NV_acquire_winrt_display |
| case OP_vkAcquireWinrtDisplayNV: { |
| return "OP_vkAcquireWinrtDisplayNV"; |
| } |
| #endif |
| #ifdef VK_KHR_deferred_host_operations |
| case OP_vkCreateDeferredOperationKHR: { |
| return "OP_vkCreateDeferredOperationKHR"; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_buffer_collection |
| case OP_vkSetBufferCollectionImageConstraintsFUCHSIA: { |
| return "OP_vkSetBufferCollectionImageConstraintsFUCHSIA"; |
| } |
| #endif |
| #ifdef VK_KHR_maintenance4 |
| case OP_vkGetDeviceImageSparseMemoryRequirementsKHR: { |
| return "OP_vkGetDeviceImageSparseMemoryRequirementsKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_video_decode_queue |
| case OP_vkCmdDecodeVideoKHR: { |
| return "OP_vkCmdDecodeVideoKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| case OP_vkCmdBeginQueryIndexedEXT: { |
| return "OP_vkCmdBeginQueryIndexedEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetStencilOpEXT: { |
| return "OP_vkCmdSetStencilOpEXT"; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_buffer_collection |
| case OP_vkCreateBufferCollectionFUCHSIA: { |
| return "OP_vkCreateBufferCollectionFUCHSIA"; |
| } |
| #endif |
| #ifdef VK_NV_ray_tracing |
| case OP_vkCompileDeferredNV: { |
| return "OP_vkCompileDeferredNV"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkCmdCopyAccelerationStructureKHR: { |
| return "OP_vkCmdCopyAccelerationStructureKHR"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkCreateRenderPass2: { |
| return "OP_vkCreateRenderPass2"; |
| } |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| case OP_vkCmdEndQueryIndexedEXT: { |
| return "OP_vkCmdEndQueryIndexedEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_video_queue |
| case OP_vkCmdEndVideoCodingKHR: { |
| return "OP_vkCmdEndVideoCodingKHR"; |
| } |
| #endif |
| #ifdef VK_KHR_performance_query |
| case OP_vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR: { |
| return "OP_vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_tooling_info |
| case OP_vkGetPhysicalDeviceToolPropertiesEXT: { |
| return "OP_vkGetPhysicalDeviceToolPropertiesEXT"; |
| } |
| #endif |
| #ifdef VK_GOOGLE_gfxstream |
| case OP_vkGetLinearImageLayout2GOOGLE: { |
| return "OP_vkGetLinearImageLayout2GOOGLE"; |
| } |
| #endif |
| #ifdef VK_EXT_acquire_drm_display |
| case OP_vkGetDrmDisplayEXT: { |
| return "OP_vkGetDrmDisplayEXT"; |
| } |
| #endif |
| #ifdef VK_VERSION_1_2 |
| case OP_vkCmdDrawIndirectCount: { |
| return "OP_vkCmdDrawIndirectCount"; |
| } |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| case OP_vkCmdResetEvent2KHR: { |
| return "OP_vkCmdResetEvent2KHR"; |
| } |
| #endif |
| #ifdef VK_EXT_multi_draw |
| case OP_vkCmdDrawMultiIndexedEXT: { |
| return "OP_vkCmdDrawMultiIndexedEXT"; |
| } |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| case OP_vkCmdDrawIndirectByteCountEXT: { |
| return "OP_vkCmdDrawIndirectByteCountEXT"; |
| } |
| #endif |
| #ifdef VK_NV_device_generated_commands |
| case OP_vkCreateIndirectCommandsLayoutNV: { |
| return "OP_vkCreateIndirectCommandsLayoutNV"; |
| } |
| #endif |
| #ifdef VK_EXT_directfb_surface |
| case OP_vkGetPhysicalDeviceDirectFBPresentationSupportEXT: { |
| return "OP_vkGetPhysicalDeviceDirectFBPresentationSupportEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_buffer_device_address |
| case OP_vkGetBufferOpaqueCaptureAddressKHR: { |
| return "OP_vkGetBufferOpaqueCaptureAddressKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| case OP_vkCmdSetStencilTestEnableEXT: { |
| return "OP_vkCmdSetStencilTestEnableEXT"; |
| } |
| #endif |
| #ifdef VK_NV_cooperative_matrix |
| case OP_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV: { |
| return "OP_vkGetPhysicalDeviceCooperativeMatrixPropertiesNV"; |
| } |
| #endif |
| #ifdef VK_KHR_acceleration_structure |
| case OP_vkWriteAccelerationStructuresPropertiesKHR: { |
| return "OP_vkWriteAccelerationStructuresPropertiesKHR"; |
| } |
| #endif |
| #ifdef VK_GOOGLE_gfxstream |
| case OP_vkQueueFlushCommandsFromAuxMemoryGOOGLE: { |
| return "OP_vkQueueFlushCommandsFromAuxMemoryGOOGLE"; |
| } |
| #endif |
| #ifdef VK_EXT_private_data |
| case OP_vkGetPrivateDataEXT: { |
| return "OP_vkGetPrivateDataEXT"; |
| } |
| #endif |
| #ifdef VK_NV_coverage_reduction_mode |
| case OP_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV: { |
| return "OP_vkGetPhysicalDeviceSupportedFramebufferMixedSamplesCombinationsNV"; |
| } |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| case OP_vkGetQueueCheckpointData2NV: { |
| return "OP_vkGetQueueCheckpointData2NV"; |
| } |
| #endif |
| #ifdef VK_NV_device_generated_commands |
| case OP_vkDestroyIndirectCommandsLayoutNV: { |
| return "OP_vkDestroyIndirectCommandsLayoutNV"; |
| } |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| case OP_vkQueueSubmit2KHR: { |
| return "OP_vkQueueSubmit2KHR"; |
| } |
| #endif |
| #ifdef VK_NV_acquire_winrt_display |
| case OP_vkGetWinrtDisplayNV: { |
| return "OP_vkGetWinrtDisplayNV"; |
| } |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| case OP_vkCmdBeginTransformFeedbackEXT: { |
| return "OP_vkCmdBeginTransformFeedbackEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_buffer_device_address |
| case OP_vkGetDeviceMemoryOpaqueCaptureAddressKHR: { |
| return "OP_vkGetDeviceMemoryOpaqueCaptureAddressKHR"; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case OP_vkQueueSetPerformanceConfigurationINTEL: { |
| return "OP_vkQueueSetPerformanceConfigurationINTEL"; |
| } |
| #endif |
| #ifdef VK_EXT_calibrated_timestamps |
| case OP_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT: { |
| return "OP_vkGetPhysicalDeviceCalibrateableTimeDomainsEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_video_encode_queue |
| case OP_vkCmdEncodeVideoKHR: { |
| return "OP_vkCmdEncodeVideoKHR"; |
| } |
| #endif |
| #ifdef VK_INTEL_performance_query |
| case OP_vkUninitializePerformanceApiINTEL: { |
| return "OP_vkUninitializePerformanceApiINTEL"; |
| } |
| #endif |
| #ifdef VK_NV_device_generated_commands |
| case OP_vkCmdPreprocessGeneratedCommandsNV: { |
| return "OP_vkCmdPreprocessGeneratedCommandsNV"; |
| } |
| #endif |
| #ifdef VK_KHR_dynamic_rendering |
| case OP_vkCmdBeginRenderingKHR: { |
| return "OP_vkCmdBeginRenderingKHR"; |
| } |
| #endif |
| #ifdef VK_EXT_headless_surface |
| case OP_vkCreateHeadlessSurfaceEXT: { |
| return "OP_vkCreateHeadlessSurfaceEXT"; |
| } |
| #endif |
| #ifdef VK_KHR_performance_query |
| case OP_vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR: { |
| return "OP_vkEnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR"; |
| } |
| #endif |
| #ifdef VK_HUAWEI_invocation_mask |
| case OP_vkCmdBindInvocationMaskHUAWEI: { |
| return "OP_vkCmdBindInvocationMaskHUAWEI"; |
| } |
| #endif |
| #ifdef VK_FUCHSIA_external_semaphore |
| case OP_vkImportSemaphoreZirconHandleFUCHSIA: { |
| return "OP_vkImportSemaphoreZirconHandleFUCHSIA"; |
| } |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state2 |
| case OP_vkCmdSetPrimitiveRestartEnableEXT: { |
| return "OP_vkCmdSetPrimitiveRestartEnableEXT"; |
| } |
| #endif |
| default: { |
| return "OP_UNKNOWN_API_CALL"; |
| } |
| } |
| } |
| |
| } // namespace vk |
| } // namespace gfxstream |