| // 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_deepcopy_guest |
| // |
| // (impl) generated by codegen/vulkan/scripts/genvk.py -registry codegen/vulkan/xml/vk.xml |
| // -registryGfxstream codegen/vulkan/xml/vk_gfxstream.xml cereal -o host/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_deepcopy_guest.h" |
| |
| #include <cstring> |
| |
| #include "goldfish_vk_extension_structs_guest.h" |
| #include "goldfish_vk_private_defs.h" |
| #include "vk_util.h" |
| |
| namespace gfxstream { |
| namespace vk { |
| |
| void deepcopy_extension_struct(Allocator* alloc, VkStructureType rootType, |
| const void* structExtension, void* structExtension_out); |
| |
| #ifdef VK_VERSION_1_0 |
| void deepcopy_VkExtent2D(Allocator* alloc, VkStructureType rootType, const VkExtent2D* from, |
| VkExtent2D* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkExtent3D(Allocator* alloc, VkStructureType rootType, const VkExtent3D* from, |
| VkExtent3D* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkOffset2D(Allocator* alloc, VkStructureType rootType, const VkOffset2D* from, |
| VkOffset2D* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkOffset3D(Allocator* alloc, VkStructureType rootType, const VkOffset3D* from, |
| VkOffset3D* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkRect2D(Allocator* alloc, VkStructureType rootType, const VkRect2D* from, |
| VkRect2D* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkOffset2D(alloc, rootType, &from->offset, (VkOffset2D*)(&to->offset)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->extent, (VkExtent2D*)(&to->extent)); |
| } |
| |
| void deepcopy_VkBaseInStructure(Allocator* alloc, VkStructureType rootType, |
| const VkBaseInStructure* from, VkBaseInStructure* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (VkBaseInStructure*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBaseOutStructure(Allocator* alloc, VkStructureType rootType, |
| const VkBaseOutStructure* from, VkBaseOutStructure* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (VkBaseOutStructure*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBufferMemoryBarrier(Allocator* alloc, VkStructureType rootType, |
| const VkBufferMemoryBarrier* from, VkBufferMemoryBarrier* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDispatchIndirectCommand(Allocator* alloc, VkStructureType rootType, |
| const VkDispatchIndirectCommand* from, |
| VkDispatchIndirectCommand* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkDrawIndexedIndirectCommand(Allocator* alloc, VkStructureType rootType, |
| const VkDrawIndexedIndirectCommand* from, |
| VkDrawIndexedIndirectCommand* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkDrawIndirectCommand(Allocator* alloc, VkStructureType rootType, |
| const VkDrawIndirectCommand* from, VkDrawIndirectCommand* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkImageSubresourceRange(Allocator* alloc, VkStructureType rootType, |
| const VkImageSubresourceRange* from, |
| VkImageSubresourceRange* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkImageMemoryBarrier(Allocator* alloc, VkStructureType rootType, |
| const VkImageMemoryBarrier* from, VkImageMemoryBarrier* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkImageSubresourceRange(alloc, rootType, &from->subresourceRange, |
| (VkImageSubresourceRange*)(&to->subresourceRange)); |
| } |
| |
| void deepcopy_VkMemoryBarrier(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryBarrier* from, VkMemoryBarrier* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineCacheHeaderVersionOne(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineCacheHeaderVersionOne* from, |
| VkPipelineCacheHeaderVersionOne* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| memcpy(to->pipelineCacheUUID, from->pipelineCacheUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| } |
| |
| void deepcopy_VkAllocationCallbacks(Allocator* alloc, VkStructureType rootType, |
| const VkAllocationCallbacks* from, VkAllocationCallbacks* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| to->pUserData = nullptr; |
| if (from->pUserData) { |
| to->pUserData = (void*)alloc->dupArray(from->pUserData, sizeof(uint8_t)); |
| } |
| } |
| |
| void deepcopy_VkApplicationInfo(Allocator* alloc, VkStructureType rootType, |
| const VkApplicationInfo* from, VkApplicationInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pApplicationName = nullptr; |
| if (from->pApplicationName) { |
| to->pApplicationName = alloc->strDup(from->pApplicationName); |
| } |
| to->pEngineName = nullptr; |
| if (from->pEngineName) { |
| to->pEngineName = alloc->strDup(from->pEngineName); |
| } |
| } |
| |
| void deepcopy_VkFormatProperties(Allocator* alloc, VkStructureType rootType, |
| const VkFormatProperties* from, VkFormatProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkImageFormatProperties(Allocator* alloc, VkStructureType rootType, |
| const VkImageFormatProperties* from, |
| VkImageFormatProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkExtent3D(alloc, rootType, &from->maxExtent, (VkExtent3D*)(&to->maxExtent)); |
| } |
| |
| void deepcopy_VkInstanceCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkInstanceCreateInfo* from, VkInstanceCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pApplicationInfo = nullptr; |
| if (from->pApplicationInfo) { |
| to->pApplicationInfo = (VkApplicationInfo*)alloc->alloc(sizeof(const VkApplicationInfo)); |
| deepcopy_VkApplicationInfo(alloc, rootType, from->pApplicationInfo, |
| (VkApplicationInfo*)(to->pApplicationInfo)); |
| } |
| to->ppEnabledLayerNames = nullptr; |
| if (from->ppEnabledLayerNames && from->enabledLayerCount) { |
| to->ppEnabledLayerNames = |
| alloc->strDupArray(from->ppEnabledLayerNames, from->enabledLayerCount); |
| } |
| to->ppEnabledExtensionNames = nullptr; |
| if (from->ppEnabledExtensionNames && from->enabledExtensionCount) { |
| to->ppEnabledExtensionNames = |
| alloc->strDupArray(from->ppEnabledExtensionNames, from->enabledExtensionCount); |
| } |
| } |
| |
| void deepcopy_VkMemoryHeap(Allocator* alloc, VkStructureType rootType, const VkMemoryHeap* from, |
| VkMemoryHeap* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkMemoryType(Allocator* alloc, VkStructureType rootType, const VkMemoryType* from, |
| VkMemoryType* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPhysicalDeviceFeatures(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceFeatures* from, |
| VkPhysicalDeviceFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPhysicalDeviceLimits(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceLimits* from, |
| VkPhysicalDeviceLimits* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| memcpy(to->maxComputeWorkGroupCount, from->maxComputeWorkGroupCount, 3 * sizeof(uint32_t)); |
| memcpy(to->maxComputeWorkGroupSize, from->maxComputeWorkGroupSize, 3 * sizeof(uint32_t)); |
| memcpy(to->maxViewportDimensions, from->maxViewportDimensions, 2 * sizeof(uint32_t)); |
| memcpy(to->viewportBoundsRange, from->viewportBoundsRange, 2 * sizeof(float)); |
| memcpy(to->pointSizeRange, from->pointSizeRange, 2 * sizeof(float)); |
| memcpy(to->lineWidthRange, from->lineWidthRange, 2 * sizeof(float)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceMemoryProperties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceMemoryProperties* from, |
| VkPhysicalDeviceMemoryProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| for (uint32_t i = 0; i < (uint32_t)VK_MAX_MEMORY_TYPES; ++i) { |
| deepcopy_VkMemoryType(alloc, rootType, from->memoryTypes + i, |
| (VkMemoryType*)(to->memoryTypes + i)); |
| } |
| for (uint32_t i = 0; i < (uint32_t)VK_MAX_MEMORY_HEAPS; ++i) { |
| deepcopy_VkMemoryHeap(alloc, rootType, from->memoryHeaps + i, |
| (VkMemoryHeap*)(to->memoryHeaps + i)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceSparseProperties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceSparseProperties* from, |
| VkPhysicalDeviceSparseProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPhysicalDeviceProperties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceProperties* from, |
| VkPhysicalDeviceProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| memcpy(to->deviceName, from->deviceName, VK_MAX_PHYSICAL_DEVICE_NAME_SIZE * sizeof(char)); |
| memcpy(to->pipelineCacheUUID, from->pipelineCacheUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| deepcopy_VkPhysicalDeviceLimits(alloc, rootType, &from->limits, |
| (VkPhysicalDeviceLimits*)(&to->limits)); |
| deepcopy_VkPhysicalDeviceSparseProperties( |
| alloc, rootType, &from->sparseProperties, |
| (VkPhysicalDeviceSparseProperties*)(&to->sparseProperties)); |
| } |
| |
| void deepcopy_VkQueueFamilyProperties(Allocator* alloc, VkStructureType rootType, |
| const VkQueueFamilyProperties* from, |
| VkQueueFamilyProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkExtent3D(alloc, rootType, &from->minImageTransferGranularity, |
| (VkExtent3D*)(&to->minImageTransferGranularity)); |
| } |
| |
| void deepcopy_VkDeviceQueueCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceQueueCreateInfo* from, |
| VkDeviceQueueCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pQueuePriorities = nullptr; |
| if (from->pQueuePriorities) { |
| to->pQueuePriorities = |
| (float*)alloc->dupArray(from->pQueuePriorities, from->queueCount * sizeof(const float)); |
| } |
| } |
| |
| void deepcopy_VkDeviceCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceCreateInfo* from, VkDeviceCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pQueueCreateInfos = nullptr; |
| if (from->pQueueCreateInfos) { |
| to->pQueueCreateInfos = (VkDeviceQueueCreateInfo*)alloc->alloc( |
| from->queueCreateInfoCount * sizeof(const VkDeviceQueueCreateInfo)); |
| to->queueCreateInfoCount = from->queueCreateInfoCount; |
| for (uint32_t i = 0; i < (uint32_t)from->queueCreateInfoCount; ++i) { |
| deepcopy_VkDeviceQueueCreateInfo( |
| alloc, rootType, from->pQueueCreateInfos + i, |
| (VkDeviceQueueCreateInfo*)(to->pQueueCreateInfos + i)); |
| } |
| } |
| } |
| to->ppEnabledLayerNames = nullptr; |
| if (from->ppEnabledLayerNames && from->enabledLayerCount) { |
| to->ppEnabledLayerNames = |
| alloc->strDupArray(from->ppEnabledLayerNames, from->enabledLayerCount); |
| } |
| to->ppEnabledExtensionNames = nullptr; |
| if (from->ppEnabledExtensionNames && from->enabledExtensionCount) { |
| to->ppEnabledExtensionNames = |
| alloc->strDupArray(from->ppEnabledExtensionNames, from->enabledExtensionCount); |
| } |
| to->pEnabledFeatures = nullptr; |
| if (from->pEnabledFeatures) { |
| to->pEnabledFeatures = |
| (VkPhysicalDeviceFeatures*)alloc->alloc(sizeof(const VkPhysicalDeviceFeatures)); |
| deepcopy_VkPhysicalDeviceFeatures(alloc, rootType, from->pEnabledFeatures, |
| (VkPhysicalDeviceFeatures*)(to->pEnabledFeatures)); |
| } |
| } |
| |
| void deepcopy_VkExtensionProperties(Allocator* alloc, VkStructureType rootType, |
| const VkExtensionProperties* from, VkExtensionProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| memcpy(to->extensionName, from->extensionName, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| } |
| |
| void deepcopy_VkLayerProperties(Allocator* alloc, VkStructureType rootType, |
| const VkLayerProperties* from, VkLayerProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| memcpy(to->layerName, from->layerName, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| memcpy(to->description, from->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| } |
| |
| void deepcopy_VkSubmitInfo(Allocator* alloc, VkStructureType rootType, const VkSubmitInfo* from, |
| VkSubmitInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pWaitSemaphores = nullptr; |
| if (from->pWaitSemaphores) { |
| to->pWaitSemaphores = (VkSemaphore*)alloc->dupArray( |
| from->pWaitSemaphores, from->waitSemaphoreCount * sizeof(const VkSemaphore)); |
| } |
| to->pWaitDstStageMask = nullptr; |
| if (from->pWaitDstStageMask) { |
| to->pWaitDstStageMask = (VkPipelineStageFlags*)alloc->dupArray( |
| from->pWaitDstStageMask, from->waitSemaphoreCount * sizeof(const VkPipelineStageFlags)); |
| } |
| to->pCommandBuffers = nullptr; |
| if (from->pCommandBuffers) { |
| to->pCommandBuffers = (VkCommandBuffer*)alloc->dupArray( |
| from->pCommandBuffers, from->commandBufferCount * sizeof(const VkCommandBuffer)); |
| } |
| to->pSignalSemaphores = nullptr; |
| if (from->pSignalSemaphores) { |
| to->pSignalSemaphores = (VkSemaphore*)alloc->dupArray( |
| from->pSignalSemaphores, from->signalSemaphoreCount * sizeof(const VkSemaphore)); |
| } |
| } |
| |
| void deepcopy_VkMappedMemoryRange(Allocator* alloc, VkStructureType rootType, |
| const VkMappedMemoryRange* from, VkMappedMemoryRange* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryAllocateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryAllocateInfo* from, VkMemoryAllocateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryRequirements(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryRequirements* from, VkMemoryRequirements* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkSparseMemoryBind(Allocator* alloc, VkStructureType rootType, |
| const VkSparseMemoryBind* from, VkSparseMemoryBind* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkSparseBufferMemoryBindInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSparseBufferMemoryBindInfo* from, |
| VkSparseBufferMemoryBindInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (from) { |
| to->pBinds = nullptr; |
| if (from->pBinds) { |
| to->pBinds = (VkSparseMemoryBind*)alloc->alloc(from->bindCount * |
| sizeof(const VkSparseMemoryBind)); |
| to->bindCount = from->bindCount; |
| for (uint32_t i = 0; i < (uint32_t)from->bindCount; ++i) { |
| deepcopy_VkSparseMemoryBind(alloc, rootType, from->pBinds + i, |
| (VkSparseMemoryBind*)(to->pBinds + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkSparseImageOpaqueMemoryBindInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSparseImageOpaqueMemoryBindInfo* from, |
| VkSparseImageOpaqueMemoryBindInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (from) { |
| to->pBinds = nullptr; |
| if (from->pBinds) { |
| to->pBinds = (VkSparseMemoryBind*)alloc->alloc(from->bindCount * |
| sizeof(const VkSparseMemoryBind)); |
| to->bindCount = from->bindCount; |
| for (uint32_t i = 0; i < (uint32_t)from->bindCount; ++i) { |
| deepcopy_VkSparseMemoryBind(alloc, rootType, from->pBinds + i, |
| (VkSparseMemoryBind*)(to->pBinds + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkImageSubresource(Allocator* alloc, VkStructureType rootType, |
| const VkImageSubresource* from, VkImageSubresource* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkSparseImageMemoryBind(Allocator* alloc, VkStructureType rootType, |
| const VkSparseImageMemoryBind* from, |
| VkSparseImageMemoryBind* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkImageSubresource(alloc, rootType, &from->subresource, |
| (VkImageSubresource*)(&to->subresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->offset, (VkOffset3D*)(&to->offset)); |
| deepcopy_VkExtent3D(alloc, rootType, &from->extent, (VkExtent3D*)(&to->extent)); |
| } |
| |
| void deepcopy_VkSparseImageMemoryBindInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSparseImageMemoryBindInfo* from, |
| VkSparseImageMemoryBindInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (from) { |
| to->pBinds = nullptr; |
| if (from->pBinds) { |
| to->pBinds = (VkSparseImageMemoryBind*)alloc->alloc( |
| from->bindCount * sizeof(const VkSparseImageMemoryBind)); |
| to->bindCount = from->bindCount; |
| for (uint32_t i = 0; i < (uint32_t)from->bindCount; ++i) { |
| deepcopy_VkSparseImageMemoryBind(alloc, rootType, from->pBinds + i, |
| (VkSparseImageMemoryBind*)(to->pBinds + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkBindSparseInfo(Allocator* alloc, VkStructureType rootType, |
| const VkBindSparseInfo* from, VkBindSparseInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pWaitSemaphores = nullptr; |
| if (from->pWaitSemaphores) { |
| to->pWaitSemaphores = (VkSemaphore*)alloc->dupArray( |
| from->pWaitSemaphores, from->waitSemaphoreCount * sizeof(const VkSemaphore)); |
| } |
| if (from) { |
| to->pBufferBinds = nullptr; |
| if (from->pBufferBinds) { |
| to->pBufferBinds = (VkSparseBufferMemoryBindInfo*)alloc->alloc( |
| from->bufferBindCount * sizeof(const VkSparseBufferMemoryBindInfo)); |
| to->bufferBindCount = from->bufferBindCount; |
| for (uint32_t i = 0; i < (uint32_t)from->bufferBindCount; ++i) { |
| deepcopy_VkSparseBufferMemoryBindInfo( |
| alloc, rootType, from->pBufferBinds + i, |
| (VkSparseBufferMemoryBindInfo*)(to->pBufferBinds + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pImageOpaqueBinds = nullptr; |
| if (from->pImageOpaqueBinds) { |
| to->pImageOpaqueBinds = (VkSparseImageOpaqueMemoryBindInfo*)alloc->alloc( |
| from->imageOpaqueBindCount * sizeof(const VkSparseImageOpaqueMemoryBindInfo)); |
| to->imageOpaqueBindCount = from->imageOpaqueBindCount; |
| for (uint32_t i = 0; i < (uint32_t)from->imageOpaqueBindCount; ++i) { |
| deepcopy_VkSparseImageOpaqueMemoryBindInfo( |
| alloc, rootType, from->pImageOpaqueBinds + i, |
| (VkSparseImageOpaqueMemoryBindInfo*)(to->pImageOpaqueBinds + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pImageBinds = nullptr; |
| if (from->pImageBinds) { |
| to->pImageBinds = (VkSparseImageMemoryBindInfo*)alloc->alloc( |
| from->imageBindCount * sizeof(const VkSparseImageMemoryBindInfo)); |
| to->imageBindCount = from->imageBindCount; |
| for (uint32_t i = 0; i < (uint32_t)from->imageBindCount; ++i) { |
| deepcopy_VkSparseImageMemoryBindInfo( |
| alloc, rootType, from->pImageBinds + i, |
| (VkSparseImageMemoryBindInfo*)(to->pImageBinds + i)); |
| } |
| } |
| } |
| to->pSignalSemaphores = nullptr; |
| if (from->pSignalSemaphores) { |
| to->pSignalSemaphores = (VkSemaphore*)alloc->dupArray( |
| from->pSignalSemaphores, from->signalSemaphoreCount * sizeof(const VkSemaphore)); |
| } |
| } |
| |
| void deepcopy_VkSparseImageFormatProperties(Allocator* alloc, VkStructureType rootType, |
| const VkSparseImageFormatProperties* from, |
| VkSparseImageFormatProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkExtent3D(alloc, rootType, &from->imageGranularity, |
| (VkExtent3D*)(&to->imageGranularity)); |
| } |
| |
| void deepcopy_VkSparseImageMemoryRequirements(Allocator* alloc, VkStructureType rootType, |
| const VkSparseImageMemoryRequirements* from, |
| VkSparseImageMemoryRequirements* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkSparseImageFormatProperties(alloc, rootType, &from->formatProperties, |
| (VkSparseImageFormatProperties*)(&to->formatProperties)); |
| } |
| |
| void deepcopy_VkFenceCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkFenceCreateInfo* from, VkFenceCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSemaphoreCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSemaphoreCreateInfo* from, VkSemaphoreCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkEventCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkEventCreateInfo* from, VkEventCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkQueryPoolCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkQueryPoolCreateInfo* from, VkQueryPoolCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBufferCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkBufferCreateInfo* from, VkBufferCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pQueueFamilyIndices = nullptr; |
| if (from->pQueueFamilyIndices) { |
| to->pQueueFamilyIndices = (uint32_t*)alloc->dupArray( |
| from->pQueueFamilyIndices, from->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkBufferViewCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkBufferViewCreateInfo* from, |
| VkBufferViewCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkImageCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkImageCreateInfo* from, VkImageCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent3D(alloc, rootType, &from->extent, (VkExtent3D*)(&to->extent)); |
| to->pQueueFamilyIndices = nullptr; |
| if (from->pQueueFamilyIndices) { |
| to->pQueueFamilyIndices = (uint32_t*)alloc->dupArray( |
| from->pQueueFamilyIndices, from->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkSubresourceLayout(Allocator* alloc, VkStructureType rootType, |
| const VkSubresourceLayout* from, VkSubresourceLayout* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkComponentMapping(Allocator* alloc, VkStructureType rootType, |
| const VkComponentMapping* from, VkComponentMapping* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkImageViewCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkImageViewCreateInfo* from, VkImageViewCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkComponentMapping(alloc, rootType, &from->components, |
| (VkComponentMapping*)(&to->components)); |
| deepcopy_VkImageSubresourceRange(alloc, rootType, &from->subresourceRange, |
| (VkImageSubresourceRange*)(&to->subresourceRange)); |
| } |
| |
| void deepcopy_VkShaderModuleCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkShaderModuleCreateInfo* from, |
| VkShaderModuleCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pCode = nullptr; |
| if (from->pCode) { |
| to->pCode = |
| (uint32_t*)alloc->dupArray(from->pCode, (from->codeSize / 4) * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkPipelineCacheCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineCacheCreateInfo* from, |
| VkPipelineCacheCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pInitialData = nullptr; |
| if (from->pInitialData) { |
| to->pInitialData = (void*)alloc->dupArray(from->pInitialData, |
| from->initialDataSize * sizeof(const uint8_t)); |
| } |
| } |
| |
| void deepcopy_VkSpecializationMapEntry(Allocator* alloc, VkStructureType rootType, |
| const VkSpecializationMapEntry* from, |
| VkSpecializationMapEntry* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkSpecializationInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSpecializationInfo* from, VkSpecializationInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (from) { |
| to->pMapEntries = nullptr; |
| if (from->pMapEntries) { |
| to->pMapEntries = (VkSpecializationMapEntry*)alloc->alloc( |
| from->mapEntryCount * sizeof(const VkSpecializationMapEntry)); |
| to->mapEntryCount = from->mapEntryCount; |
| for (uint32_t i = 0; i < (uint32_t)from->mapEntryCount; ++i) { |
| deepcopy_VkSpecializationMapEntry(alloc, rootType, from->pMapEntries + i, |
| (VkSpecializationMapEntry*)(to->pMapEntries + i)); |
| } |
| } |
| } |
| to->pData = nullptr; |
| if (from->pData) { |
| to->pData = (void*)alloc->dupArray(from->pData, from->dataSize * sizeof(const uint8_t)); |
| } |
| } |
| |
| void deepcopy_VkPipelineShaderStageCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineShaderStageCreateInfo* from, |
| VkPipelineShaderStageCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pName = nullptr; |
| if (from->pName) { |
| to->pName = alloc->strDup(from->pName); |
| } |
| to->pSpecializationInfo = nullptr; |
| if (from->pSpecializationInfo) { |
| to->pSpecializationInfo = |
| (VkSpecializationInfo*)alloc->alloc(sizeof(const VkSpecializationInfo)); |
| deepcopy_VkSpecializationInfo(alloc, rootType, from->pSpecializationInfo, |
| (VkSpecializationInfo*)(to->pSpecializationInfo)); |
| } |
| } |
| |
| void deepcopy_VkComputePipelineCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkComputePipelineCreateInfo* from, |
| VkComputePipelineCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkPipelineShaderStageCreateInfo(alloc, rootType, &from->stage, |
| (VkPipelineShaderStageCreateInfo*)(&to->stage)); |
| } |
| |
| void deepcopy_VkVertexInputBindingDescription(Allocator* alloc, VkStructureType rootType, |
| const VkVertexInputBindingDescription* from, |
| VkVertexInputBindingDescription* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkVertexInputAttributeDescription(Allocator* alloc, VkStructureType rootType, |
| const VkVertexInputAttributeDescription* from, |
| VkVertexInputAttributeDescription* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPipelineVertexInputStateCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineVertexInputStateCreateInfo* from, |
| VkPipelineVertexInputStateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pVertexBindingDescriptions = nullptr; |
| if (from->pVertexBindingDescriptions) { |
| to->pVertexBindingDescriptions = (VkVertexInputBindingDescription*)alloc->alloc( |
| from->vertexBindingDescriptionCount * |
| sizeof(const VkVertexInputBindingDescription)); |
| to->vertexBindingDescriptionCount = from->vertexBindingDescriptionCount; |
| for (uint32_t i = 0; i < (uint32_t)from->vertexBindingDescriptionCount; ++i) { |
| deepcopy_VkVertexInputBindingDescription( |
| alloc, rootType, from->pVertexBindingDescriptions + i, |
| (VkVertexInputBindingDescription*)(to->pVertexBindingDescriptions + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pVertexAttributeDescriptions = nullptr; |
| if (from->pVertexAttributeDescriptions) { |
| to->pVertexAttributeDescriptions = (VkVertexInputAttributeDescription*)alloc->alloc( |
| from->vertexAttributeDescriptionCount * |
| sizeof(const VkVertexInputAttributeDescription)); |
| to->vertexAttributeDescriptionCount = from->vertexAttributeDescriptionCount; |
| for (uint32_t i = 0; i < (uint32_t)from->vertexAttributeDescriptionCount; ++i) { |
| deepcopy_VkVertexInputAttributeDescription( |
| alloc, rootType, from->pVertexAttributeDescriptions + i, |
| (VkVertexInputAttributeDescription*)(to->pVertexAttributeDescriptions + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkPipelineInputAssemblyStateCreateInfo( |
| Allocator* alloc, VkStructureType rootType, const VkPipelineInputAssemblyStateCreateInfo* from, |
| VkPipelineInputAssemblyStateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineTessellationStateCreateInfo( |
| Allocator* alloc, VkStructureType rootType, const VkPipelineTessellationStateCreateInfo* from, |
| VkPipelineTessellationStateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkViewport(Allocator* alloc, VkStructureType rootType, const VkViewport* from, |
| VkViewport* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPipelineViewportStateCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineViewportStateCreateInfo* from, |
| VkPipelineViewportStateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pViewports = nullptr; |
| if (from->pViewports) { |
| to->pViewports = |
| (VkViewport*)alloc->alloc(from->viewportCount * sizeof(const VkViewport)); |
| to->viewportCount = from->viewportCount; |
| for (uint32_t i = 0; i < (uint32_t)from->viewportCount; ++i) { |
| deepcopy_VkViewport(alloc, rootType, from->pViewports + i, |
| (VkViewport*)(to->pViewports + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pScissors = nullptr; |
| if (from->pScissors) { |
| to->pScissors = (VkRect2D*)alloc->alloc(from->scissorCount * sizeof(const VkRect2D)); |
| to->scissorCount = from->scissorCount; |
| for (uint32_t i = 0; i < (uint32_t)from->scissorCount; ++i) { |
| deepcopy_VkRect2D(alloc, rootType, from->pScissors + i, |
| (VkRect2D*)(to->pScissors + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkPipelineRasterizationStateCreateInfo( |
| Allocator* alloc, VkStructureType rootType, const VkPipelineRasterizationStateCreateInfo* from, |
| VkPipelineRasterizationStateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineMultisampleStateCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineMultisampleStateCreateInfo* from, |
| VkPipelineMultisampleStateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pSampleMask = nullptr; |
| if (from->pSampleMask) { |
| to->pSampleMask = (VkSampleMask*)alloc->dupArray( |
| from->pSampleMask, |
| (((from->rasterizationSamples) + 31) / 32) * sizeof(const VkSampleMask)); |
| } |
| } |
| |
| void deepcopy_VkStencilOpState(Allocator* alloc, VkStructureType rootType, |
| const VkStencilOpState* from, VkStencilOpState* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPipelineDepthStencilStateCreateInfo( |
| Allocator* alloc, VkStructureType rootType, const VkPipelineDepthStencilStateCreateInfo* from, |
| VkPipelineDepthStencilStateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkStencilOpState(alloc, rootType, &from->front, (VkStencilOpState*)(&to->front)); |
| deepcopy_VkStencilOpState(alloc, rootType, &from->back, (VkStencilOpState*)(&to->back)); |
| } |
| |
| void deepcopy_VkPipelineColorBlendAttachmentState(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineColorBlendAttachmentState* from, |
| VkPipelineColorBlendAttachmentState* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPipelineColorBlendStateCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineColorBlendStateCreateInfo* from, |
| VkPipelineColorBlendStateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pAttachments = nullptr; |
| if (from->pAttachments) { |
| to->pAttachments = (VkPipelineColorBlendAttachmentState*)alloc->alloc( |
| from->attachmentCount * sizeof(const VkPipelineColorBlendAttachmentState)); |
| to->attachmentCount = from->attachmentCount; |
| for (uint32_t i = 0; i < (uint32_t)from->attachmentCount; ++i) { |
| deepcopy_VkPipelineColorBlendAttachmentState( |
| alloc, rootType, from->pAttachments + i, |
| (VkPipelineColorBlendAttachmentState*)(to->pAttachments + i)); |
| } |
| } |
| } |
| memcpy(to->blendConstants, from->blendConstants, 4 * sizeof(float)); |
| } |
| |
| void deepcopy_VkPipelineDynamicStateCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineDynamicStateCreateInfo* from, |
| VkPipelineDynamicStateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pDynamicStates = nullptr; |
| if (from->pDynamicStates) { |
| to->pDynamicStates = (VkDynamicState*)alloc->dupArray( |
| from->pDynamicStates, from->dynamicStateCount * sizeof(const VkDynamicState)); |
| } |
| } |
| |
| void deepcopy_VkGraphicsPipelineCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkGraphicsPipelineCreateInfo* from, |
| VkGraphicsPipelineCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pStages = nullptr; |
| if (from->pStages) { |
| to->pStages = (VkPipelineShaderStageCreateInfo*)alloc->alloc( |
| from->stageCount * sizeof(const VkPipelineShaderStageCreateInfo)); |
| to->stageCount = from->stageCount; |
| for (uint32_t i = 0; i < (uint32_t)from->stageCount; ++i) { |
| deepcopy_VkPipelineShaderStageCreateInfo( |
| alloc, rootType, from->pStages + i, |
| (VkPipelineShaderStageCreateInfo*)(to->pStages + i)); |
| } |
| } |
| } |
| to->pVertexInputState = nullptr; |
| if (from->pVertexInputState) { |
| to->pVertexInputState = (VkPipelineVertexInputStateCreateInfo*)alloc->alloc( |
| sizeof(const VkPipelineVertexInputStateCreateInfo)); |
| deepcopy_VkPipelineVertexInputStateCreateInfo( |
| alloc, rootType, from->pVertexInputState, |
| (VkPipelineVertexInputStateCreateInfo*)(to->pVertexInputState)); |
| } |
| to->pInputAssemblyState = nullptr; |
| if (from->pInputAssemblyState) { |
| to->pInputAssemblyState = (VkPipelineInputAssemblyStateCreateInfo*)alloc->alloc( |
| sizeof(const VkPipelineInputAssemblyStateCreateInfo)); |
| deepcopy_VkPipelineInputAssemblyStateCreateInfo( |
| alloc, rootType, from->pInputAssemblyState, |
| (VkPipelineInputAssemblyStateCreateInfo*)(to->pInputAssemblyState)); |
| } |
| to->pTessellationState = nullptr; |
| if (from->pTessellationState) { |
| to->pTessellationState = (VkPipelineTessellationStateCreateInfo*)alloc->alloc( |
| sizeof(const VkPipelineTessellationStateCreateInfo)); |
| deepcopy_VkPipelineTessellationStateCreateInfo( |
| alloc, rootType, from->pTessellationState, |
| (VkPipelineTessellationStateCreateInfo*)(to->pTessellationState)); |
| } |
| to->pViewportState = nullptr; |
| if (from->pViewportState) { |
| to->pViewportState = (VkPipelineViewportStateCreateInfo*)alloc->alloc( |
| sizeof(const VkPipelineViewportStateCreateInfo)); |
| deepcopy_VkPipelineViewportStateCreateInfo( |
| alloc, rootType, from->pViewportState, |
| (VkPipelineViewportStateCreateInfo*)(to->pViewportState)); |
| } |
| to->pRasterizationState = nullptr; |
| if (from->pRasterizationState) { |
| to->pRasterizationState = (VkPipelineRasterizationStateCreateInfo*)alloc->alloc( |
| sizeof(const VkPipelineRasterizationStateCreateInfo)); |
| deepcopy_VkPipelineRasterizationStateCreateInfo( |
| alloc, rootType, from->pRasterizationState, |
| (VkPipelineRasterizationStateCreateInfo*)(to->pRasterizationState)); |
| } |
| to->pMultisampleState = nullptr; |
| if (from->pMultisampleState) { |
| to->pMultisampleState = (VkPipelineMultisampleStateCreateInfo*)alloc->alloc( |
| sizeof(const VkPipelineMultisampleStateCreateInfo)); |
| deepcopy_VkPipelineMultisampleStateCreateInfo( |
| alloc, rootType, from->pMultisampleState, |
| (VkPipelineMultisampleStateCreateInfo*)(to->pMultisampleState)); |
| } |
| to->pDepthStencilState = nullptr; |
| if (from->pDepthStencilState) { |
| to->pDepthStencilState = (VkPipelineDepthStencilStateCreateInfo*)alloc->alloc( |
| sizeof(const VkPipelineDepthStencilStateCreateInfo)); |
| deepcopy_VkPipelineDepthStencilStateCreateInfo( |
| alloc, rootType, from->pDepthStencilState, |
| (VkPipelineDepthStencilStateCreateInfo*)(to->pDepthStencilState)); |
| } |
| to->pColorBlendState = nullptr; |
| if (from->pColorBlendState) { |
| to->pColorBlendState = (VkPipelineColorBlendStateCreateInfo*)alloc->alloc( |
| sizeof(const VkPipelineColorBlendStateCreateInfo)); |
| deepcopy_VkPipelineColorBlendStateCreateInfo( |
| alloc, rootType, from->pColorBlendState, |
| (VkPipelineColorBlendStateCreateInfo*)(to->pColorBlendState)); |
| } |
| to->pDynamicState = nullptr; |
| if (from->pDynamicState) { |
| to->pDynamicState = (VkPipelineDynamicStateCreateInfo*)alloc->alloc( |
| sizeof(const VkPipelineDynamicStateCreateInfo)); |
| deepcopy_VkPipelineDynamicStateCreateInfo( |
| alloc, rootType, from->pDynamicState, |
| (VkPipelineDynamicStateCreateInfo*)(to->pDynamicState)); |
| } |
| } |
| |
| void deepcopy_VkPushConstantRange(Allocator* alloc, VkStructureType rootType, |
| const VkPushConstantRange* from, VkPushConstantRange* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPipelineLayoutCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineLayoutCreateInfo* from, |
| VkPipelineLayoutCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pSetLayouts = nullptr; |
| if (from->pSetLayouts) { |
| to->pSetLayouts = (VkDescriptorSetLayout*)alloc->dupArray( |
| from->pSetLayouts, from->setLayoutCount * sizeof(const VkDescriptorSetLayout)); |
| } |
| if (from) { |
| to->pPushConstantRanges = nullptr; |
| if (from->pPushConstantRanges) { |
| to->pPushConstantRanges = (VkPushConstantRange*)alloc->alloc( |
| from->pushConstantRangeCount * sizeof(const VkPushConstantRange)); |
| to->pushConstantRangeCount = from->pushConstantRangeCount; |
| for (uint32_t i = 0; i < (uint32_t)from->pushConstantRangeCount; ++i) { |
| deepcopy_VkPushConstantRange(alloc, rootType, from->pPushConstantRanges + i, |
| (VkPushConstantRange*)(to->pPushConstantRanges + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkSamplerCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSamplerCreateInfo* from, VkSamplerCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkCopyDescriptorSet(Allocator* alloc, VkStructureType rootType, |
| const VkCopyDescriptorSet* from, VkCopyDescriptorSet* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDescriptorBufferInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorBufferInfo* from, |
| VkDescriptorBufferInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkDescriptorImageInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorImageInfo* from, VkDescriptorImageInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkDescriptorPoolSize(Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorPoolSize* from, VkDescriptorPoolSize* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkDescriptorPoolCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorPoolCreateInfo* from, |
| VkDescriptorPoolCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pPoolSizes = nullptr; |
| if (from->pPoolSizes) { |
| to->pPoolSizes = (VkDescriptorPoolSize*)alloc->alloc( |
| from->poolSizeCount * sizeof(const VkDescriptorPoolSize)); |
| to->poolSizeCount = from->poolSizeCount; |
| for (uint32_t i = 0; i < (uint32_t)from->poolSizeCount; ++i) { |
| deepcopy_VkDescriptorPoolSize(alloc, rootType, from->pPoolSizes + i, |
| (VkDescriptorPoolSize*)(to->pPoolSizes + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkDescriptorSetAllocateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorSetAllocateInfo* from, |
| VkDescriptorSetAllocateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pSetLayouts = nullptr; |
| if (from->pSetLayouts) { |
| to->pSetLayouts = (VkDescriptorSetLayout*)alloc->dupArray( |
| from->pSetLayouts, from->descriptorSetCount * sizeof(const VkDescriptorSetLayout)); |
| } |
| } |
| |
| void deepcopy_VkDescriptorSetLayoutBinding(Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorSetLayoutBinding* from, |
| VkDescriptorSetLayoutBinding* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| to->pImmutableSamplers = nullptr; |
| if (from->pImmutableSamplers) { |
| to->pImmutableSamplers = (VkSampler*)alloc->dupArray( |
| from->pImmutableSamplers, from->descriptorCount * sizeof(const VkSampler)); |
| } |
| } |
| |
| void deepcopy_VkDescriptorSetLayoutCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorSetLayoutCreateInfo* from, |
| VkDescriptorSetLayoutCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pBindings = nullptr; |
| if (from->pBindings) { |
| to->pBindings = (VkDescriptorSetLayoutBinding*)alloc->alloc( |
| from->bindingCount * sizeof(const VkDescriptorSetLayoutBinding)); |
| to->bindingCount = from->bindingCount; |
| for (uint32_t i = 0; i < (uint32_t)from->bindingCount; ++i) { |
| deepcopy_VkDescriptorSetLayoutBinding( |
| alloc, rootType, from->pBindings + i, |
| (VkDescriptorSetLayoutBinding*)(to->pBindings + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkWriteDescriptorSet(Allocator* alloc, VkStructureType rootType, |
| const VkWriteDescriptorSet* from, VkWriteDescriptorSet* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pImageInfo = nullptr; |
| if (from->pImageInfo) { |
| to->pImageInfo = (VkDescriptorImageInfo*)alloc->alloc( |
| from->descriptorCount * sizeof(const VkDescriptorImageInfo)); |
| to->descriptorCount = from->descriptorCount; |
| for (uint32_t i = 0; i < (uint32_t)from->descriptorCount; ++i) { |
| deepcopy_VkDescriptorImageInfo(alloc, rootType, from->pImageInfo + i, |
| (VkDescriptorImageInfo*)(to->pImageInfo + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pBufferInfo = nullptr; |
| if (from->pBufferInfo) { |
| to->pBufferInfo = (VkDescriptorBufferInfo*)alloc->alloc( |
| from->descriptorCount * sizeof(const VkDescriptorBufferInfo)); |
| to->descriptorCount = from->descriptorCount; |
| for (uint32_t i = 0; i < (uint32_t)from->descriptorCount; ++i) { |
| deepcopy_VkDescriptorBufferInfo(alloc, rootType, from->pBufferInfo + i, |
| (VkDescriptorBufferInfo*)(to->pBufferInfo + i)); |
| } |
| } |
| } |
| to->pTexelBufferView = nullptr; |
| if (from->pTexelBufferView) { |
| to->pTexelBufferView = (VkBufferView*)alloc->dupArray( |
| from->pTexelBufferView, from->descriptorCount * sizeof(const VkBufferView)); |
| } |
| } |
| |
| void deepcopy_VkAttachmentDescription(Allocator* alloc, VkStructureType rootType, |
| const VkAttachmentDescription* from, |
| VkAttachmentDescription* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkAttachmentReference(Allocator* alloc, VkStructureType rootType, |
| const VkAttachmentReference* from, VkAttachmentReference* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkFramebufferCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkFramebufferCreateInfo* from, |
| VkFramebufferCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pAttachments = nullptr; |
| if (from->pAttachments) { |
| to->pAttachments = (VkImageView*)alloc->dupArray( |
| from->pAttachments, from->attachmentCount * sizeof(const VkImageView)); |
| } |
| } |
| |
| void deepcopy_VkSubpassDescription(Allocator* alloc, VkStructureType rootType, |
| const VkSubpassDescription* from, VkSubpassDescription* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (from) { |
| to->pInputAttachments = nullptr; |
| if (from->pInputAttachments) { |
| to->pInputAttachments = (VkAttachmentReference*)alloc->alloc( |
| from->inputAttachmentCount * sizeof(const VkAttachmentReference)); |
| to->inputAttachmentCount = from->inputAttachmentCount; |
| for (uint32_t i = 0; i < (uint32_t)from->inputAttachmentCount; ++i) { |
| deepcopy_VkAttachmentReference(alloc, rootType, from->pInputAttachments + i, |
| (VkAttachmentReference*)(to->pInputAttachments + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pColorAttachments = nullptr; |
| if (from->pColorAttachments) { |
| to->pColorAttachments = (VkAttachmentReference*)alloc->alloc( |
| from->colorAttachmentCount * sizeof(const VkAttachmentReference)); |
| to->colorAttachmentCount = from->colorAttachmentCount; |
| for (uint32_t i = 0; i < (uint32_t)from->colorAttachmentCount; ++i) { |
| deepcopy_VkAttachmentReference(alloc, rootType, from->pColorAttachments + i, |
| (VkAttachmentReference*)(to->pColorAttachments + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pResolveAttachments = nullptr; |
| if (from->pResolveAttachments) { |
| to->pResolveAttachments = (VkAttachmentReference*)alloc->alloc( |
| from->colorAttachmentCount * sizeof(const VkAttachmentReference)); |
| to->colorAttachmentCount = from->colorAttachmentCount; |
| for (uint32_t i = 0; i < (uint32_t)from->colorAttachmentCount; ++i) { |
| deepcopy_VkAttachmentReference( |
| alloc, rootType, from->pResolveAttachments + i, |
| (VkAttachmentReference*)(to->pResolveAttachments + i)); |
| } |
| } |
| } |
| to->pDepthStencilAttachment = nullptr; |
| if (from->pDepthStencilAttachment) { |
| to->pDepthStencilAttachment = |
| (VkAttachmentReference*)alloc->alloc(sizeof(const VkAttachmentReference)); |
| deepcopy_VkAttachmentReference(alloc, rootType, from->pDepthStencilAttachment, |
| (VkAttachmentReference*)(to->pDepthStencilAttachment)); |
| } |
| to->pPreserveAttachments = nullptr; |
| if (from->pPreserveAttachments) { |
| to->pPreserveAttachments = (uint32_t*)alloc->dupArray( |
| from->pPreserveAttachments, from->preserveAttachmentCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkSubpassDependency(Allocator* alloc, VkStructureType rootType, |
| const VkSubpassDependency* from, VkSubpassDependency* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkRenderPassCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkRenderPassCreateInfo* from, |
| VkRenderPassCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pAttachments = nullptr; |
| if (from->pAttachments) { |
| to->pAttachments = (VkAttachmentDescription*)alloc->alloc( |
| from->attachmentCount * sizeof(const VkAttachmentDescription)); |
| to->attachmentCount = from->attachmentCount; |
| for (uint32_t i = 0; i < (uint32_t)from->attachmentCount; ++i) { |
| deepcopy_VkAttachmentDescription(alloc, rootType, from->pAttachments + i, |
| (VkAttachmentDescription*)(to->pAttachments + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pSubpasses = nullptr; |
| if (from->pSubpasses) { |
| to->pSubpasses = (VkSubpassDescription*)alloc->alloc( |
| from->subpassCount * sizeof(const VkSubpassDescription)); |
| to->subpassCount = from->subpassCount; |
| for (uint32_t i = 0; i < (uint32_t)from->subpassCount; ++i) { |
| deepcopy_VkSubpassDescription(alloc, rootType, from->pSubpasses + i, |
| (VkSubpassDescription*)(to->pSubpasses + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pDependencies = nullptr; |
| if (from->pDependencies) { |
| to->pDependencies = (VkSubpassDependency*)alloc->alloc( |
| from->dependencyCount * sizeof(const VkSubpassDependency)); |
| to->dependencyCount = from->dependencyCount; |
| for (uint32_t i = 0; i < (uint32_t)from->dependencyCount; ++i) { |
| deepcopy_VkSubpassDependency(alloc, rootType, from->pDependencies + i, |
| (VkSubpassDependency*)(to->pDependencies + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkCommandPoolCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkCommandPoolCreateInfo* from, |
| VkCommandPoolCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkCommandBufferAllocateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkCommandBufferAllocateInfo* from, |
| VkCommandBufferAllocateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkCommandBufferInheritanceInfo(Allocator* alloc, VkStructureType rootType, |
| const VkCommandBufferInheritanceInfo* from, |
| VkCommandBufferInheritanceInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkCommandBufferBeginInfo(Allocator* alloc, VkStructureType rootType, |
| const VkCommandBufferBeginInfo* from, |
| VkCommandBufferBeginInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pInheritanceInfo = nullptr; |
| if (from->pInheritanceInfo) { |
| to->pInheritanceInfo = (VkCommandBufferInheritanceInfo*)alloc->alloc( |
| sizeof(const VkCommandBufferInheritanceInfo)); |
| deepcopy_VkCommandBufferInheritanceInfo( |
| alloc, rootType, from->pInheritanceInfo, |
| (VkCommandBufferInheritanceInfo*)(to->pInheritanceInfo)); |
| } |
| } |
| |
| void deepcopy_VkBufferCopy(Allocator* alloc, VkStructureType rootType, const VkBufferCopy* from, |
| VkBufferCopy* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkImageSubresourceLayers(Allocator* alloc, VkStructureType rootType, |
| const VkImageSubresourceLayers* from, |
| VkImageSubresourceLayers* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkBufferImageCopy(Allocator* alloc, VkStructureType rootType, |
| const VkBufferImageCopy* from, VkBufferImageCopy* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->imageSubresource, |
| (VkImageSubresourceLayers*)(&to->imageSubresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->imageOffset, (VkOffset3D*)(&to->imageOffset)); |
| deepcopy_VkExtent3D(alloc, rootType, &from->imageExtent, (VkExtent3D*)(&to->imageExtent)); |
| } |
| |
| void deepcopy_VkClearColorValue(Allocator* alloc, VkStructureType rootType, |
| const VkClearColorValue* from, VkClearColorValue* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| memcpy(to->float32, from->float32, 4 * sizeof(float)); |
| memcpy(to->int32, from->int32, 4 * sizeof(int32_t)); |
| memcpy(to->uint32, from->uint32, 4 * sizeof(uint32_t)); |
| } |
| |
| void deepcopy_VkClearDepthStencilValue(Allocator* alloc, VkStructureType rootType, |
| const VkClearDepthStencilValue* from, |
| VkClearDepthStencilValue* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkClearValue(Allocator* alloc, VkStructureType rootType, const VkClearValue* from, |
| VkClearValue* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkClearColorValue(alloc, rootType, &from->color, (VkClearColorValue*)(&to->color)); |
| deepcopy_VkClearDepthStencilValue(alloc, rootType, &from->depthStencil, |
| (VkClearDepthStencilValue*)(&to->depthStencil)); |
| } |
| |
| void deepcopy_VkClearAttachment(Allocator* alloc, VkStructureType rootType, |
| const VkClearAttachment* from, VkClearAttachment* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkClearValue(alloc, rootType, &from->clearValue, (VkClearValue*)(&to->clearValue)); |
| } |
| |
| void deepcopy_VkClearRect(Allocator* alloc, VkStructureType rootType, const VkClearRect* from, |
| VkClearRect* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkRect2D(alloc, rootType, &from->rect, (VkRect2D*)(&to->rect)); |
| } |
| |
| void deepcopy_VkImageBlit(Allocator* alloc, VkStructureType rootType, const VkImageBlit* from, |
| VkImageBlit* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->srcSubresource, |
| (VkImageSubresourceLayers*)(&to->srcSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| deepcopy_VkOffset3D(alloc, rootType, from->srcOffsets + i, |
| (VkOffset3D*)(to->srcOffsets + i)); |
| } |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->dstSubresource, |
| (VkImageSubresourceLayers*)(&to->dstSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| deepcopy_VkOffset3D(alloc, rootType, from->dstOffsets + i, |
| (VkOffset3D*)(to->dstOffsets + i)); |
| } |
| } |
| |
| void deepcopy_VkImageCopy(Allocator* alloc, VkStructureType rootType, const VkImageCopy* from, |
| VkImageCopy* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->srcSubresource, |
| (VkImageSubresourceLayers*)(&to->srcSubresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->srcOffset, (VkOffset3D*)(&to->srcOffset)); |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->dstSubresource, |
| (VkImageSubresourceLayers*)(&to->dstSubresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->dstOffset, (VkOffset3D*)(&to->dstOffset)); |
| deepcopy_VkExtent3D(alloc, rootType, &from->extent, (VkExtent3D*)(&to->extent)); |
| } |
| |
| void deepcopy_VkImageResolve(Allocator* alloc, VkStructureType rootType, const VkImageResolve* from, |
| VkImageResolve* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->srcSubresource, |
| (VkImageSubresourceLayers*)(&to->srcSubresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->srcOffset, (VkOffset3D*)(&to->srcOffset)); |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->dstSubresource, |
| (VkImageSubresourceLayers*)(&to->dstSubresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->dstOffset, (VkOffset3D*)(&to->dstOffset)); |
| deepcopy_VkExtent3D(alloc, rootType, &from->extent, (VkExtent3D*)(&to->extent)); |
| } |
| |
| void deepcopy_VkRenderPassBeginInfo(Allocator* alloc, VkStructureType rootType, |
| const VkRenderPassBeginInfo* from, VkRenderPassBeginInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkRect2D(alloc, rootType, &from->renderArea, (VkRect2D*)(&to->renderArea)); |
| if (from) { |
| to->pClearValues = nullptr; |
| if (from->pClearValues) { |
| to->pClearValues = |
| (VkClearValue*)alloc->alloc(from->clearValueCount * sizeof(const VkClearValue)); |
| to->clearValueCount = from->clearValueCount; |
| for (uint32_t i = 0; i < (uint32_t)from->clearValueCount; ++i) { |
| deepcopy_VkClearValue(alloc, rootType, from->pClearValues + i, |
| (VkClearValue*)(to->pClearValues + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_VERSION_1_1 |
| void deepcopy_VkPhysicalDeviceSubgroupProperties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceSubgroupProperties* from, |
| VkPhysicalDeviceSubgroupProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBindBufferMemoryInfo(Allocator* alloc, VkStructureType rootType, |
| const VkBindBufferMemoryInfo* from, |
| VkBindBufferMemoryInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBindImageMemoryInfo(Allocator* alloc, VkStructureType rootType, |
| const VkBindImageMemoryInfo* from, VkBindImageMemoryInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDevice16BitStorageFeatures(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevice16BitStorageFeatures* from, |
| VkPhysicalDevice16BitStorageFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryDedicatedRequirements(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryDedicatedRequirements* from, |
| VkMemoryDedicatedRequirements* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryDedicatedAllocateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryDedicatedAllocateInfo* from, |
| VkMemoryDedicatedAllocateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryAllocateFlagsInfo(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryAllocateFlagsInfo* from, |
| VkMemoryAllocateFlagsInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDeviceGroupRenderPassBeginInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceGroupRenderPassBeginInfo* from, |
| VkDeviceGroupRenderPassBeginInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pDeviceRenderAreas = nullptr; |
| if (from->pDeviceRenderAreas) { |
| to->pDeviceRenderAreas = |
| (VkRect2D*)alloc->alloc(from->deviceRenderAreaCount * sizeof(const VkRect2D)); |
| to->deviceRenderAreaCount = from->deviceRenderAreaCount; |
| for (uint32_t i = 0; i < (uint32_t)from->deviceRenderAreaCount; ++i) { |
| deepcopy_VkRect2D(alloc, rootType, from->pDeviceRenderAreas + i, |
| (VkRect2D*)(to->pDeviceRenderAreas + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkDeviceGroupCommandBufferBeginInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceGroupCommandBufferBeginInfo* from, |
| VkDeviceGroupCommandBufferBeginInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDeviceGroupSubmitInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceGroupSubmitInfo* from, |
| VkDeviceGroupSubmitInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pWaitSemaphoreDeviceIndices = nullptr; |
| if (from->pWaitSemaphoreDeviceIndices) { |
| to->pWaitSemaphoreDeviceIndices = (uint32_t*)alloc->dupArray( |
| from->pWaitSemaphoreDeviceIndices, from->waitSemaphoreCount * sizeof(const uint32_t)); |
| } |
| to->pCommandBufferDeviceMasks = nullptr; |
| if (from->pCommandBufferDeviceMasks) { |
| to->pCommandBufferDeviceMasks = (uint32_t*)alloc->dupArray( |
| from->pCommandBufferDeviceMasks, from->commandBufferCount * sizeof(const uint32_t)); |
| } |
| to->pSignalSemaphoreDeviceIndices = nullptr; |
| if (from->pSignalSemaphoreDeviceIndices) { |
| to->pSignalSemaphoreDeviceIndices = |
| (uint32_t*)alloc->dupArray(from->pSignalSemaphoreDeviceIndices, |
| from->signalSemaphoreCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkDeviceGroupBindSparseInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceGroupBindSparseInfo* from, |
| VkDeviceGroupBindSparseInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBindBufferMemoryDeviceGroupInfo(Allocator* alloc, VkStructureType rootType, |
| const VkBindBufferMemoryDeviceGroupInfo* from, |
| VkBindBufferMemoryDeviceGroupInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pDeviceIndices = nullptr; |
| if (from->pDeviceIndices) { |
| to->pDeviceIndices = (uint32_t*)alloc->dupArray( |
| from->pDeviceIndices, from->deviceIndexCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkBindImageMemoryDeviceGroupInfo(Allocator* alloc, VkStructureType rootType, |
| const VkBindImageMemoryDeviceGroupInfo* from, |
| VkBindImageMemoryDeviceGroupInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pDeviceIndices = nullptr; |
| if (from->pDeviceIndices) { |
| to->pDeviceIndices = (uint32_t*)alloc->dupArray( |
| from->pDeviceIndices, from->deviceIndexCount * sizeof(const uint32_t)); |
| } |
| if (from) { |
| to->pSplitInstanceBindRegions = nullptr; |
| if (from->pSplitInstanceBindRegions) { |
| to->pSplitInstanceBindRegions = (VkRect2D*)alloc->alloc( |
| from->splitInstanceBindRegionCount * sizeof(const VkRect2D)); |
| to->splitInstanceBindRegionCount = from->splitInstanceBindRegionCount; |
| for (uint32_t i = 0; i < (uint32_t)from->splitInstanceBindRegionCount; ++i) { |
| deepcopy_VkRect2D(alloc, rootType, from->pSplitInstanceBindRegions + i, |
| (VkRect2D*)(to->pSplitInstanceBindRegions + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceGroupProperties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceGroupProperties* from, |
| VkPhysicalDeviceGroupProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->physicalDevices, from->physicalDevices, |
| VK_MAX_DEVICE_GROUP_SIZE * sizeof(VkPhysicalDevice)); |
| } |
| |
| void deepcopy_VkDeviceGroupDeviceCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceGroupDeviceCreateInfo* from, |
| VkDeviceGroupDeviceCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pPhysicalDevices = nullptr; |
| if (from->pPhysicalDevices) { |
| to->pPhysicalDevices = (VkPhysicalDevice*)alloc->dupArray( |
| from->pPhysicalDevices, from->physicalDeviceCount * sizeof(const VkPhysicalDevice)); |
| } |
| } |
| |
| void deepcopy_VkBufferMemoryRequirementsInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkBufferMemoryRequirementsInfo2* from, |
| VkBufferMemoryRequirementsInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkImageMemoryRequirementsInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkImageMemoryRequirementsInfo2* from, |
| VkImageMemoryRequirementsInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkImageSparseMemoryRequirementsInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkImageSparseMemoryRequirementsInfo2* from, |
| VkImageSparseMemoryRequirementsInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryRequirements2(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryRequirements2* from, VkMemoryRequirements2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkMemoryRequirements(alloc, rootType, &from->memoryRequirements, |
| (VkMemoryRequirements*)(&to->memoryRequirements)); |
| } |
| |
| void deepcopy_VkSparseImageMemoryRequirements2(Allocator* alloc, VkStructureType rootType, |
| const VkSparseImageMemoryRequirements2* from, |
| VkSparseImageMemoryRequirements2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkSparseImageMemoryRequirements( |
| alloc, rootType, &from->memoryRequirements, |
| (VkSparseImageMemoryRequirements*)(&to->memoryRequirements)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceFeatures2(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceFeatures2* from, |
| VkPhysicalDeviceFeatures2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkPhysicalDeviceFeatures(alloc, rootType, &from->features, |
| (VkPhysicalDeviceFeatures*)(&to->features)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceProperties2(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceProperties2* from, |
| VkPhysicalDeviceProperties2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkPhysicalDeviceProperties(alloc, rootType, &from->properties, |
| (VkPhysicalDeviceProperties*)(&to->properties)); |
| } |
| |
| void deepcopy_VkFormatProperties2(Allocator* alloc, VkStructureType rootType, |
| const VkFormatProperties2* from, VkFormatProperties2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkFormatProperties(alloc, rootType, &from->formatProperties, |
| (VkFormatProperties*)(&to->formatProperties)); |
| } |
| |
| void deepcopy_VkImageFormatProperties2(Allocator* alloc, VkStructureType rootType, |
| const VkImageFormatProperties2* from, |
| VkImageFormatProperties2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkImageFormatProperties(alloc, rootType, &from->imageFormatProperties, |
| (VkImageFormatProperties*)(&to->imageFormatProperties)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceImageFormatInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceImageFormatInfo2* from, |
| VkPhysicalDeviceImageFormatInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkQueueFamilyProperties2(Allocator* alloc, VkStructureType rootType, |
| const VkQueueFamilyProperties2* from, |
| VkQueueFamilyProperties2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkQueueFamilyProperties(alloc, rootType, &from->queueFamilyProperties, |
| (VkQueueFamilyProperties*)(&to->queueFamilyProperties)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceMemoryProperties2(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceMemoryProperties2* from, |
| VkPhysicalDeviceMemoryProperties2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkPhysicalDeviceMemoryProperties( |
| alloc, rootType, &from->memoryProperties, |
| (VkPhysicalDeviceMemoryProperties*)(&to->memoryProperties)); |
| } |
| |
| void deepcopy_VkSparseImageFormatProperties2(Allocator* alloc, VkStructureType rootType, |
| const VkSparseImageFormatProperties2* from, |
| VkSparseImageFormatProperties2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkSparseImageFormatProperties(alloc, rootType, &from->properties, |
| (VkSparseImageFormatProperties*)(&to->properties)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceSparseImageFormatInfo2( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceSparseImageFormatInfo2* from, |
| VkPhysicalDeviceSparseImageFormatInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDevicePointClippingProperties( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDevicePointClippingProperties* from, |
| VkPhysicalDevicePointClippingProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkInputAttachmentAspectReference(Allocator* alloc, VkStructureType rootType, |
| const VkInputAttachmentAspectReference* from, |
| VkInputAttachmentAspectReference* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkRenderPassInputAttachmentAspectCreateInfo( |
| Allocator* alloc, VkStructureType rootType, |
| const VkRenderPassInputAttachmentAspectCreateInfo* from, |
| VkRenderPassInputAttachmentAspectCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pAspectReferences = nullptr; |
| if (from->pAspectReferences) { |
| to->pAspectReferences = (VkInputAttachmentAspectReference*)alloc->alloc( |
| from->aspectReferenceCount * sizeof(const VkInputAttachmentAspectReference)); |
| to->aspectReferenceCount = from->aspectReferenceCount; |
| for (uint32_t i = 0; i < (uint32_t)from->aspectReferenceCount; ++i) { |
| deepcopy_VkInputAttachmentAspectReference( |
| alloc, rootType, from->pAspectReferences + i, |
| (VkInputAttachmentAspectReference*)(to->pAspectReferences + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkImageViewUsageCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkImageViewUsageCreateInfo* from, |
| VkImageViewUsageCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineTessellationDomainOriginStateCreateInfo( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineTessellationDomainOriginStateCreateInfo* from, |
| VkPipelineTessellationDomainOriginStateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkRenderPassMultiviewCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkRenderPassMultiviewCreateInfo* from, |
| VkRenderPassMultiviewCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pViewMasks = nullptr; |
| if (from->pViewMasks) { |
| to->pViewMasks = (uint32_t*)alloc->dupArray(from->pViewMasks, |
| from->subpassCount * sizeof(const uint32_t)); |
| } |
| to->pViewOffsets = nullptr; |
| if (from->pViewOffsets) { |
| to->pViewOffsets = (int32_t*)alloc->dupArray(from->pViewOffsets, |
| from->dependencyCount * sizeof(const int32_t)); |
| } |
| to->pCorrelationMasks = nullptr; |
| if (from->pCorrelationMasks) { |
| to->pCorrelationMasks = (uint32_t*)alloc->dupArray( |
| from->pCorrelationMasks, from->correlationMaskCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceMultiviewFeatures(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceMultiviewFeatures* from, |
| VkPhysicalDeviceMultiviewFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceMultiviewProperties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceMultiviewProperties* from, |
| VkPhysicalDeviceMultiviewProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceVariablePointersFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceVariablePointersFeatures* from, |
| VkPhysicalDeviceVariablePointersFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceProtectedMemoryFeatures( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceProtectedMemoryFeatures* from, |
| VkPhysicalDeviceProtectedMemoryFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceProtectedMemoryProperties( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceProtectedMemoryProperties* from, |
| VkPhysicalDeviceProtectedMemoryProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDeviceQueueInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceQueueInfo2* from, VkDeviceQueueInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkProtectedSubmitInfo(Allocator* alloc, VkStructureType rootType, |
| const VkProtectedSubmitInfo* from, VkProtectedSubmitInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSamplerYcbcrConversionCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSamplerYcbcrConversionCreateInfo* from, |
| VkSamplerYcbcrConversionCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkComponentMapping(alloc, rootType, &from->components, |
| (VkComponentMapping*)(&to->components)); |
| } |
| |
| void deepcopy_VkSamplerYcbcrConversionInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSamplerYcbcrConversionInfo* from, |
| VkSamplerYcbcrConversionInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBindImagePlaneMemoryInfo(Allocator* alloc, VkStructureType rootType, |
| const VkBindImagePlaneMemoryInfo* from, |
| VkBindImagePlaneMemoryInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkImagePlaneMemoryRequirementsInfo(Allocator* alloc, VkStructureType rootType, |
| const VkImagePlaneMemoryRequirementsInfo* from, |
| VkImagePlaneMemoryRequirementsInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceSamplerYcbcrConversionFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceSamplerYcbcrConversionFeatures* from, |
| VkPhysicalDeviceSamplerYcbcrConversionFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSamplerYcbcrConversionImageFormatProperties( |
| Allocator* alloc, VkStructureType rootType, |
| const VkSamplerYcbcrConversionImageFormatProperties* from, |
| VkSamplerYcbcrConversionImageFormatProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDescriptorUpdateTemplateEntry(Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorUpdateTemplateEntry* from, |
| VkDescriptorUpdateTemplateEntry* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkDescriptorUpdateTemplateCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorUpdateTemplateCreateInfo* from, |
| VkDescriptorUpdateTemplateCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pDescriptorUpdateEntries = nullptr; |
| if (from->pDescriptorUpdateEntries) { |
| to->pDescriptorUpdateEntries = (VkDescriptorUpdateTemplateEntry*)alloc->alloc( |
| from->descriptorUpdateEntryCount * sizeof(const VkDescriptorUpdateTemplateEntry)); |
| to->descriptorUpdateEntryCount = from->descriptorUpdateEntryCount; |
| for (uint32_t i = 0; i < (uint32_t)from->descriptorUpdateEntryCount; ++i) { |
| deepcopy_VkDescriptorUpdateTemplateEntry( |
| alloc, rootType, from->pDescriptorUpdateEntries + i, |
| (VkDescriptorUpdateTemplateEntry*)(to->pDescriptorUpdateEntries + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkExternalMemoryProperties(Allocator* alloc, VkStructureType rootType, |
| const VkExternalMemoryProperties* from, |
| VkExternalMemoryProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPhysicalDeviceExternalImageFormatInfo( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceExternalImageFormatInfo* from, |
| VkPhysicalDeviceExternalImageFormatInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExternalImageFormatProperties(Allocator* alloc, VkStructureType rootType, |
| const VkExternalImageFormatProperties* from, |
| VkExternalImageFormatProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExternalMemoryProperties( |
| alloc, rootType, &from->externalMemoryProperties, |
| (VkExternalMemoryProperties*)(&to->externalMemoryProperties)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceExternalBufferInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceExternalBufferInfo* from, |
| VkPhysicalDeviceExternalBufferInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExternalBufferProperties(Allocator* alloc, VkStructureType rootType, |
| const VkExternalBufferProperties* from, |
| VkExternalBufferProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExternalMemoryProperties( |
| alloc, rootType, &from->externalMemoryProperties, |
| (VkExternalMemoryProperties*)(&to->externalMemoryProperties)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceIDProperties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceIDProperties* from, |
| VkPhysicalDeviceIDProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->deviceUUID, from->deviceUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| memcpy(to->driverUUID, from->driverUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| memcpy(to->deviceLUID, from->deviceLUID, VK_LUID_SIZE * sizeof(uint8_t)); |
| } |
| |
| void deepcopy_VkExternalMemoryImageCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkExternalMemoryImageCreateInfo* from, |
| VkExternalMemoryImageCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExternalMemoryBufferCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkExternalMemoryBufferCreateInfo* from, |
| VkExternalMemoryBufferCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExportMemoryAllocateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkExportMemoryAllocateInfo* from, |
| VkExportMemoryAllocateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceExternalFenceInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceExternalFenceInfo* from, |
| VkPhysicalDeviceExternalFenceInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExternalFenceProperties(Allocator* alloc, VkStructureType rootType, |
| const VkExternalFenceProperties* from, |
| VkExternalFenceProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExportFenceCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkExportFenceCreateInfo* from, |
| VkExportFenceCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExportSemaphoreCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkExportSemaphoreCreateInfo* from, |
| VkExportSemaphoreCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceExternalSemaphoreInfo( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceExternalSemaphoreInfo* from, |
| VkPhysicalDeviceExternalSemaphoreInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExternalSemaphoreProperties(Allocator* alloc, VkStructureType rootType, |
| const VkExternalSemaphoreProperties* from, |
| VkExternalSemaphoreProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceMaintenance3Properties( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceMaintenance3Properties* from, |
| VkPhysicalDeviceMaintenance3Properties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDescriptorSetLayoutSupport(Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorSetLayoutSupport* from, |
| VkDescriptorSetLayoutSupport* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceShaderDrawParametersFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceShaderDrawParametersFeatures* from, |
| VkPhysicalDeviceShaderDrawParametersFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_VERSION_1_2 |
| void deepcopy_VkPhysicalDeviceVulkan11Features(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan11Features* from, |
| VkPhysicalDeviceVulkan11Features* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceVulkan11Properties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan11Properties* from, |
| VkPhysicalDeviceVulkan11Properties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->deviceUUID, from->deviceUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| memcpy(to->driverUUID, from->driverUUID, VK_UUID_SIZE * sizeof(uint8_t)); |
| memcpy(to->deviceLUID, from->deviceLUID, VK_LUID_SIZE * sizeof(uint8_t)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceVulkan12Features(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan12Features* from, |
| VkPhysicalDeviceVulkan12Features* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkConformanceVersion(Allocator* alloc, VkStructureType rootType, |
| const VkConformanceVersion* from, VkConformanceVersion* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPhysicalDeviceVulkan12Properties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan12Properties* from, |
| VkPhysicalDeviceVulkan12Properties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->driverName, from->driverName, VK_MAX_DRIVER_NAME_SIZE * sizeof(char)); |
| memcpy(to->driverInfo, from->driverInfo, VK_MAX_DRIVER_INFO_SIZE * sizeof(char)); |
| deepcopy_VkConformanceVersion(alloc, rootType, &from->conformanceVersion, |
| (VkConformanceVersion*)(&to->conformanceVersion)); |
| } |
| |
| void deepcopy_VkImageFormatListCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkImageFormatListCreateInfo* from, |
| VkImageFormatListCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pViewFormats = nullptr; |
| if (from->pViewFormats) { |
| to->pViewFormats = (VkFormat*)alloc->dupArray( |
| from->pViewFormats, from->viewFormatCount * sizeof(const VkFormat)); |
| } |
| } |
| |
| void deepcopy_VkAttachmentDescription2(Allocator* alloc, VkStructureType rootType, |
| const VkAttachmentDescription2* from, |
| VkAttachmentDescription2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkAttachmentReference2(Allocator* alloc, VkStructureType rootType, |
| const VkAttachmentReference2* from, |
| VkAttachmentReference2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSubpassDescription2(Allocator* alloc, VkStructureType rootType, |
| const VkSubpassDescription2* from, VkSubpassDescription2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pInputAttachments = nullptr; |
| if (from->pInputAttachments) { |
| to->pInputAttachments = (VkAttachmentReference2*)alloc->alloc( |
| from->inputAttachmentCount * sizeof(const VkAttachmentReference2)); |
| to->inputAttachmentCount = from->inputAttachmentCount; |
| for (uint32_t i = 0; i < (uint32_t)from->inputAttachmentCount; ++i) { |
| deepcopy_VkAttachmentReference2( |
| alloc, rootType, from->pInputAttachments + i, |
| (VkAttachmentReference2*)(to->pInputAttachments + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pColorAttachments = nullptr; |
| if (from->pColorAttachments) { |
| to->pColorAttachments = (VkAttachmentReference2*)alloc->alloc( |
| from->colorAttachmentCount * sizeof(const VkAttachmentReference2)); |
| to->colorAttachmentCount = from->colorAttachmentCount; |
| for (uint32_t i = 0; i < (uint32_t)from->colorAttachmentCount; ++i) { |
| deepcopy_VkAttachmentReference2( |
| alloc, rootType, from->pColorAttachments + i, |
| (VkAttachmentReference2*)(to->pColorAttachments + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pResolveAttachments = nullptr; |
| if (from->pResolveAttachments) { |
| to->pResolveAttachments = (VkAttachmentReference2*)alloc->alloc( |
| from->colorAttachmentCount * sizeof(const VkAttachmentReference2)); |
| to->colorAttachmentCount = from->colorAttachmentCount; |
| for (uint32_t i = 0; i < (uint32_t)from->colorAttachmentCount; ++i) { |
| deepcopy_VkAttachmentReference2( |
| alloc, rootType, from->pResolveAttachments + i, |
| (VkAttachmentReference2*)(to->pResolveAttachments + i)); |
| } |
| } |
| } |
| to->pDepthStencilAttachment = nullptr; |
| if (from->pDepthStencilAttachment) { |
| to->pDepthStencilAttachment = |
| (VkAttachmentReference2*)alloc->alloc(sizeof(const VkAttachmentReference2)); |
| deepcopy_VkAttachmentReference2(alloc, rootType, from->pDepthStencilAttachment, |
| (VkAttachmentReference2*)(to->pDepthStencilAttachment)); |
| } |
| to->pPreserveAttachments = nullptr; |
| if (from->pPreserveAttachments) { |
| to->pPreserveAttachments = (uint32_t*)alloc->dupArray( |
| from->pPreserveAttachments, from->preserveAttachmentCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkSubpassDependency2(Allocator* alloc, VkStructureType rootType, |
| const VkSubpassDependency2* from, VkSubpassDependency2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkRenderPassCreateInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkRenderPassCreateInfo2* from, |
| VkRenderPassCreateInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pAttachments = nullptr; |
| if (from->pAttachments) { |
| to->pAttachments = (VkAttachmentDescription2*)alloc->alloc( |
| from->attachmentCount * sizeof(const VkAttachmentDescription2)); |
| to->attachmentCount = from->attachmentCount; |
| for (uint32_t i = 0; i < (uint32_t)from->attachmentCount; ++i) { |
| deepcopy_VkAttachmentDescription2( |
| alloc, rootType, from->pAttachments + i, |
| (VkAttachmentDescription2*)(to->pAttachments + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pSubpasses = nullptr; |
| if (from->pSubpasses) { |
| to->pSubpasses = (VkSubpassDescription2*)alloc->alloc( |
| from->subpassCount * sizeof(const VkSubpassDescription2)); |
| to->subpassCount = from->subpassCount; |
| for (uint32_t i = 0; i < (uint32_t)from->subpassCount; ++i) { |
| deepcopy_VkSubpassDescription2(alloc, rootType, from->pSubpasses + i, |
| (VkSubpassDescription2*)(to->pSubpasses + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pDependencies = nullptr; |
| if (from->pDependencies) { |
| to->pDependencies = (VkSubpassDependency2*)alloc->alloc( |
| from->dependencyCount * sizeof(const VkSubpassDependency2)); |
| to->dependencyCount = from->dependencyCount; |
| for (uint32_t i = 0; i < (uint32_t)from->dependencyCount; ++i) { |
| deepcopy_VkSubpassDependency2(alloc, rootType, from->pDependencies + i, |
| (VkSubpassDependency2*)(to->pDependencies + i)); |
| } |
| } |
| } |
| to->pCorrelatedViewMasks = nullptr; |
| if (from->pCorrelatedViewMasks) { |
| to->pCorrelatedViewMasks = (uint32_t*)alloc->dupArray( |
| from->pCorrelatedViewMasks, from->correlatedViewMaskCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkSubpassBeginInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSubpassBeginInfo* from, VkSubpassBeginInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSubpassEndInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSubpassEndInfo* from, VkSubpassEndInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDevice8BitStorageFeatures(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevice8BitStorageFeatures* from, |
| VkPhysicalDevice8BitStorageFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceDriverProperties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceDriverProperties* from, |
| VkPhysicalDeviceDriverProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->driverName, from->driverName, VK_MAX_DRIVER_NAME_SIZE * sizeof(char)); |
| memcpy(to->driverInfo, from->driverInfo, VK_MAX_DRIVER_INFO_SIZE * sizeof(char)); |
| deepcopy_VkConformanceVersion(alloc, rootType, &from->conformanceVersion, |
| (VkConformanceVersion*)(&to->conformanceVersion)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceShaderAtomicInt64Features( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceShaderAtomicInt64Features* from, |
| VkPhysicalDeviceShaderAtomicInt64Features* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceShaderFloat16Int8Features( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceShaderFloat16Int8Features* from, |
| VkPhysicalDeviceShaderFloat16Int8Features* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceFloatControlsProperties( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceFloatControlsProperties* from, |
| VkPhysicalDeviceFloatControlsProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDescriptorSetLayoutBindingFlagsCreateInfo( |
| Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorSetLayoutBindingFlagsCreateInfo* from, |
| VkDescriptorSetLayoutBindingFlagsCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pBindingFlags = nullptr; |
| if (from->pBindingFlags) { |
| to->pBindingFlags = (VkDescriptorBindingFlags*)alloc->dupArray( |
| from->pBindingFlags, from->bindingCount * sizeof(const VkDescriptorBindingFlags)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceDescriptorIndexingFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceDescriptorIndexingFeatures* from, |
| VkPhysicalDeviceDescriptorIndexingFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceDescriptorIndexingProperties( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceDescriptorIndexingProperties* from, |
| VkPhysicalDeviceDescriptorIndexingProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDescriptorSetVariableDescriptorCountAllocateInfo( |
| Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorSetVariableDescriptorCountAllocateInfo* from, |
| VkDescriptorSetVariableDescriptorCountAllocateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pDescriptorCounts = nullptr; |
| if (from->pDescriptorCounts) { |
| to->pDescriptorCounts = (uint32_t*)alloc->dupArray( |
| from->pDescriptorCounts, from->descriptorSetCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkDescriptorSetVariableDescriptorCountLayoutSupport( |
| Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorSetVariableDescriptorCountLayoutSupport* from, |
| VkDescriptorSetVariableDescriptorCountLayoutSupport* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSubpassDescriptionDepthStencilResolve( |
| Allocator* alloc, VkStructureType rootType, const VkSubpassDescriptionDepthStencilResolve* from, |
| VkSubpassDescriptionDepthStencilResolve* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pDepthStencilResolveAttachment = nullptr; |
| if (from->pDepthStencilResolveAttachment) { |
| to->pDepthStencilResolveAttachment = |
| (VkAttachmentReference2*)alloc->alloc(sizeof(const VkAttachmentReference2)); |
| deepcopy_VkAttachmentReference2( |
| alloc, rootType, from->pDepthStencilResolveAttachment, |
| (VkAttachmentReference2*)(to->pDepthStencilResolveAttachment)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceDepthStencilResolveProperties( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceDepthStencilResolveProperties* from, |
| VkPhysicalDeviceDepthStencilResolveProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceScalarBlockLayoutFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceScalarBlockLayoutFeatures* from, |
| VkPhysicalDeviceScalarBlockLayoutFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkImageStencilUsageCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkImageStencilUsageCreateInfo* from, |
| VkImageStencilUsageCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSamplerReductionModeCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSamplerReductionModeCreateInfo* from, |
| VkSamplerReductionModeCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceSamplerFilterMinmaxProperties( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceSamplerFilterMinmaxProperties* from, |
| VkPhysicalDeviceSamplerFilterMinmaxProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceVulkanMemoryModelFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceVulkanMemoryModelFeatures* from, |
| VkPhysicalDeviceVulkanMemoryModelFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceImagelessFramebufferFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceImagelessFramebufferFeatures* from, |
| VkPhysicalDeviceImagelessFramebufferFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkFramebufferAttachmentImageInfo(Allocator* alloc, VkStructureType rootType, |
| const VkFramebufferAttachmentImageInfo* from, |
| VkFramebufferAttachmentImageInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pViewFormats = nullptr; |
| if (from->pViewFormats) { |
| to->pViewFormats = (VkFormat*)alloc->dupArray( |
| from->pViewFormats, from->viewFormatCount * sizeof(const VkFormat)); |
| } |
| } |
| |
| void deepcopy_VkFramebufferAttachmentsCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkFramebufferAttachmentsCreateInfo* from, |
| VkFramebufferAttachmentsCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pAttachmentImageInfos = nullptr; |
| if (from->pAttachmentImageInfos) { |
| to->pAttachmentImageInfos = (VkFramebufferAttachmentImageInfo*)alloc->alloc( |
| from->attachmentImageInfoCount * sizeof(const VkFramebufferAttachmentImageInfo)); |
| to->attachmentImageInfoCount = from->attachmentImageInfoCount; |
| for (uint32_t i = 0; i < (uint32_t)from->attachmentImageInfoCount; ++i) { |
| deepcopy_VkFramebufferAttachmentImageInfo( |
| alloc, rootType, from->pAttachmentImageInfos + i, |
| (VkFramebufferAttachmentImageInfo*)(to->pAttachmentImageInfos + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkRenderPassAttachmentBeginInfo(Allocator* alloc, VkStructureType rootType, |
| const VkRenderPassAttachmentBeginInfo* from, |
| VkRenderPassAttachmentBeginInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pAttachments = nullptr; |
| if (from->pAttachments) { |
| to->pAttachments = (VkImageView*)alloc->dupArray( |
| from->pAttachments, from->attachmentCount * sizeof(const VkImageView)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceUniformBufferStandardLayoutFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceUniformBufferStandardLayoutFeatures* from, |
| VkPhysicalDeviceUniformBufferStandardLayoutFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures* from, |
| VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures* from, |
| VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkAttachmentReferenceStencilLayout(Allocator* alloc, VkStructureType rootType, |
| const VkAttachmentReferenceStencilLayout* from, |
| VkAttachmentReferenceStencilLayout* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkAttachmentDescriptionStencilLayout(Allocator* alloc, VkStructureType rootType, |
| const VkAttachmentDescriptionStencilLayout* from, |
| VkAttachmentDescriptionStencilLayout* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceHostQueryResetFeatures( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceHostQueryResetFeatures* from, |
| VkPhysicalDeviceHostQueryResetFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceTimelineSemaphoreFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceTimelineSemaphoreFeatures* from, |
| VkPhysicalDeviceTimelineSemaphoreFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceTimelineSemaphoreProperties( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceTimelineSemaphoreProperties* from, |
| VkPhysicalDeviceTimelineSemaphoreProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSemaphoreTypeCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSemaphoreTypeCreateInfo* from, |
| VkSemaphoreTypeCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkTimelineSemaphoreSubmitInfo(Allocator* alloc, VkStructureType rootType, |
| const VkTimelineSemaphoreSubmitInfo* from, |
| VkTimelineSemaphoreSubmitInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pWaitSemaphoreValues = nullptr; |
| if (from->pWaitSemaphoreValues) { |
| to->pWaitSemaphoreValues = (uint64_t*)alloc->dupArray( |
| from->pWaitSemaphoreValues, from->waitSemaphoreValueCount * sizeof(const uint64_t)); |
| } |
| to->pSignalSemaphoreValues = nullptr; |
| if (from->pSignalSemaphoreValues) { |
| to->pSignalSemaphoreValues = (uint64_t*)alloc->dupArray( |
| from->pSignalSemaphoreValues, from->signalSemaphoreValueCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| void deepcopy_VkSemaphoreWaitInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSemaphoreWaitInfo* from, VkSemaphoreWaitInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pSemaphores = nullptr; |
| if (from->pSemaphores) { |
| to->pSemaphores = (VkSemaphore*)alloc->dupArray( |
| from->pSemaphores, from->semaphoreCount * sizeof(const VkSemaphore)); |
| } |
| to->pValues = nullptr; |
| if (from->pValues) { |
| to->pValues = (uint64_t*)alloc->dupArray(from->pValues, |
| from->semaphoreCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| void deepcopy_VkSemaphoreSignalInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSemaphoreSignalInfo* from, VkSemaphoreSignalInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceBufferDeviceAddressFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceBufferDeviceAddressFeatures* from, |
| VkPhysicalDeviceBufferDeviceAddressFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBufferDeviceAddressInfo(Allocator* alloc, VkStructureType rootType, |
| const VkBufferDeviceAddressInfo* from, |
| VkBufferDeviceAddressInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBufferOpaqueCaptureAddressCreateInfo( |
| Allocator* alloc, VkStructureType rootType, const VkBufferOpaqueCaptureAddressCreateInfo* from, |
| VkBufferOpaqueCaptureAddressCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryOpaqueCaptureAddressAllocateInfo( |
| Allocator* alloc, VkStructureType rootType, |
| const VkMemoryOpaqueCaptureAddressAllocateInfo* from, |
| VkMemoryOpaqueCaptureAddressAllocateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDeviceMemoryOpaqueCaptureAddressInfo( |
| Allocator* alloc, VkStructureType rootType, const VkDeviceMemoryOpaqueCaptureAddressInfo* from, |
| VkDeviceMemoryOpaqueCaptureAddressInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_VERSION_1_3 |
| void deepcopy_VkPhysicalDeviceVulkan13Features(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan13Features* from, |
| VkPhysicalDeviceVulkan13Features* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceVulkan13Properties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan13Properties* from, |
| VkPhysicalDeviceVulkan13Properties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineCreationFeedback(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineCreationFeedback* from, |
| VkPipelineCreationFeedback* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPipelineCreationFeedbackCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineCreationFeedbackCreateInfo* from, |
| VkPipelineCreationFeedbackCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pPipelineCreationFeedback = nullptr; |
| if (from->pPipelineCreationFeedback) { |
| to->pPipelineCreationFeedback = |
| (VkPipelineCreationFeedback*)alloc->alloc(sizeof(VkPipelineCreationFeedback)); |
| deepcopy_VkPipelineCreationFeedback( |
| alloc, rootType, from->pPipelineCreationFeedback, |
| (VkPipelineCreationFeedback*)(to->pPipelineCreationFeedback)); |
| } |
| if (from) { |
| to->pPipelineStageCreationFeedbacks = nullptr; |
| if (from->pPipelineStageCreationFeedbacks) { |
| to->pPipelineStageCreationFeedbacks = (VkPipelineCreationFeedback*)alloc->alloc( |
| from->pipelineStageCreationFeedbackCount * sizeof(VkPipelineCreationFeedback)); |
| to->pipelineStageCreationFeedbackCount = from->pipelineStageCreationFeedbackCount; |
| for (uint32_t i = 0; i < (uint32_t)from->pipelineStageCreationFeedbackCount; ++i) { |
| deepcopy_VkPipelineCreationFeedback( |
| alloc, rootType, from->pPipelineStageCreationFeedbacks + i, |
| (VkPipelineCreationFeedback*)(to->pPipelineStageCreationFeedbacks + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceShaderTerminateInvocationFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceShaderTerminateInvocationFeatures* from, |
| VkPhysicalDeviceShaderTerminateInvocationFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceToolProperties(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceToolProperties* from, |
| VkPhysicalDeviceToolProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->name, from->name, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| memcpy(to->version, from->version, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| memcpy(to->description, from->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| memcpy(to->layer, from->layer, VK_MAX_EXTENSION_NAME_SIZE * sizeof(char)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures* from, |
| VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDevicePrivateDataFeatures(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePrivateDataFeatures* from, |
| VkPhysicalDevicePrivateDataFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDevicePrivateDataCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDevicePrivateDataCreateInfo* from, |
| VkDevicePrivateDataCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPrivateDataSlotCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPrivateDataSlotCreateInfo* from, |
| VkPrivateDataSlotCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDevicePipelineCreationCacheControlFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePipelineCreationCacheControlFeatures* from, |
| VkPhysicalDevicePipelineCreationCacheControlFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryBarrier2(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryBarrier2* from, VkMemoryBarrier2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBufferMemoryBarrier2(Allocator* alloc, VkStructureType rootType, |
| const VkBufferMemoryBarrier2* from, |
| VkBufferMemoryBarrier2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkImageMemoryBarrier2(Allocator* alloc, VkStructureType rootType, |
| const VkImageMemoryBarrier2* from, VkImageMemoryBarrier2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkImageSubresourceRange(alloc, rootType, &from->subresourceRange, |
| (VkImageSubresourceRange*)(&to->subresourceRange)); |
| } |
| |
| void deepcopy_VkDependencyInfo(Allocator* alloc, VkStructureType rootType, |
| const VkDependencyInfo* from, VkDependencyInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pMemoryBarriers = nullptr; |
| if (from->pMemoryBarriers) { |
| to->pMemoryBarriers = (VkMemoryBarrier2*)alloc->alloc(from->memoryBarrierCount * |
| sizeof(const VkMemoryBarrier2)); |
| to->memoryBarrierCount = from->memoryBarrierCount; |
| for (uint32_t i = 0; i < (uint32_t)from->memoryBarrierCount; ++i) { |
| deepcopy_VkMemoryBarrier2(alloc, rootType, from->pMemoryBarriers + i, |
| (VkMemoryBarrier2*)(to->pMemoryBarriers + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pBufferMemoryBarriers = nullptr; |
| if (from->pBufferMemoryBarriers) { |
| to->pBufferMemoryBarriers = (VkBufferMemoryBarrier2*)alloc->alloc( |
| from->bufferMemoryBarrierCount * sizeof(const VkBufferMemoryBarrier2)); |
| to->bufferMemoryBarrierCount = from->bufferMemoryBarrierCount; |
| for (uint32_t i = 0; i < (uint32_t)from->bufferMemoryBarrierCount; ++i) { |
| deepcopy_VkBufferMemoryBarrier2( |
| alloc, rootType, from->pBufferMemoryBarriers + i, |
| (VkBufferMemoryBarrier2*)(to->pBufferMemoryBarriers + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pImageMemoryBarriers = nullptr; |
| if (from->pImageMemoryBarriers) { |
| to->pImageMemoryBarriers = (VkImageMemoryBarrier2*)alloc->alloc( |
| from->imageMemoryBarrierCount * sizeof(const VkImageMemoryBarrier2)); |
| to->imageMemoryBarrierCount = from->imageMemoryBarrierCount; |
| for (uint32_t i = 0; i < (uint32_t)from->imageMemoryBarrierCount; ++i) { |
| deepcopy_VkImageMemoryBarrier2( |
| alloc, rootType, from->pImageMemoryBarriers + i, |
| (VkImageMemoryBarrier2*)(to->pImageMemoryBarriers + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkSemaphoreSubmitInfo(Allocator* alloc, VkStructureType rootType, |
| const VkSemaphoreSubmitInfo* from, VkSemaphoreSubmitInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkCommandBufferSubmitInfo(Allocator* alloc, VkStructureType rootType, |
| const VkCommandBufferSubmitInfo* from, |
| VkCommandBufferSubmitInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSubmitInfo2(Allocator* alloc, VkStructureType rootType, const VkSubmitInfo2* from, |
| VkSubmitInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pWaitSemaphoreInfos = nullptr; |
| if (from->pWaitSemaphoreInfos) { |
| to->pWaitSemaphoreInfos = (VkSemaphoreSubmitInfo*)alloc->alloc( |
| from->waitSemaphoreInfoCount * sizeof(const VkSemaphoreSubmitInfo)); |
| to->waitSemaphoreInfoCount = from->waitSemaphoreInfoCount; |
| for (uint32_t i = 0; i < (uint32_t)from->waitSemaphoreInfoCount; ++i) { |
| deepcopy_VkSemaphoreSubmitInfo( |
| alloc, rootType, from->pWaitSemaphoreInfos + i, |
| (VkSemaphoreSubmitInfo*)(to->pWaitSemaphoreInfos + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pCommandBufferInfos = nullptr; |
| if (from->pCommandBufferInfos) { |
| to->pCommandBufferInfos = (VkCommandBufferSubmitInfo*)alloc->alloc( |
| from->commandBufferInfoCount * sizeof(const VkCommandBufferSubmitInfo)); |
| to->commandBufferInfoCount = from->commandBufferInfoCount; |
| for (uint32_t i = 0; i < (uint32_t)from->commandBufferInfoCount; ++i) { |
| deepcopy_VkCommandBufferSubmitInfo( |
| alloc, rootType, from->pCommandBufferInfos + i, |
| (VkCommandBufferSubmitInfo*)(to->pCommandBufferInfos + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pSignalSemaphoreInfos = nullptr; |
| if (from->pSignalSemaphoreInfos) { |
| to->pSignalSemaphoreInfos = (VkSemaphoreSubmitInfo*)alloc->alloc( |
| from->signalSemaphoreInfoCount * sizeof(const VkSemaphoreSubmitInfo)); |
| to->signalSemaphoreInfoCount = from->signalSemaphoreInfoCount; |
| for (uint32_t i = 0; i < (uint32_t)from->signalSemaphoreInfoCount; ++i) { |
| deepcopy_VkSemaphoreSubmitInfo( |
| alloc, rootType, from->pSignalSemaphoreInfos + i, |
| (VkSemaphoreSubmitInfo*)(to->pSignalSemaphoreInfos + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceSynchronization2Features( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceSynchronization2Features* from, |
| VkPhysicalDeviceSynchronization2Features* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures* from, |
| VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceImageRobustnessFeatures( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceImageRobustnessFeatures* from, |
| VkPhysicalDeviceImageRobustnessFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBufferCopy2(Allocator* alloc, VkStructureType rootType, const VkBufferCopy2* from, |
| VkBufferCopy2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkCopyBufferInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkCopyBufferInfo2* from, VkCopyBufferInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pRegions = nullptr; |
| if (from->pRegions) { |
| to->pRegions = |
| (VkBufferCopy2*)alloc->alloc(from->regionCount * sizeof(const VkBufferCopy2)); |
| to->regionCount = from->regionCount; |
| for (uint32_t i = 0; i < (uint32_t)from->regionCount; ++i) { |
| deepcopy_VkBufferCopy2(alloc, rootType, from->pRegions + i, |
| (VkBufferCopy2*)(to->pRegions + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkImageCopy2(Allocator* alloc, VkStructureType rootType, const VkImageCopy2* from, |
| VkImageCopy2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->srcSubresource, |
| (VkImageSubresourceLayers*)(&to->srcSubresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->srcOffset, (VkOffset3D*)(&to->srcOffset)); |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->dstSubresource, |
| (VkImageSubresourceLayers*)(&to->dstSubresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->dstOffset, (VkOffset3D*)(&to->dstOffset)); |
| deepcopy_VkExtent3D(alloc, rootType, &from->extent, (VkExtent3D*)(&to->extent)); |
| } |
| |
| void deepcopy_VkCopyImageInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkCopyImageInfo2* from, VkCopyImageInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pRegions = nullptr; |
| if (from->pRegions) { |
| to->pRegions = |
| (VkImageCopy2*)alloc->alloc(from->regionCount * sizeof(const VkImageCopy2)); |
| to->regionCount = from->regionCount; |
| for (uint32_t i = 0; i < (uint32_t)from->regionCount; ++i) { |
| deepcopy_VkImageCopy2(alloc, rootType, from->pRegions + i, |
| (VkImageCopy2*)(to->pRegions + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkBufferImageCopy2(Allocator* alloc, VkStructureType rootType, |
| const VkBufferImageCopy2* from, VkBufferImageCopy2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->imageSubresource, |
| (VkImageSubresourceLayers*)(&to->imageSubresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->imageOffset, (VkOffset3D*)(&to->imageOffset)); |
| deepcopy_VkExtent3D(alloc, rootType, &from->imageExtent, (VkExtent3D*)(&to->imageExtent)); |
| } |
| |
| void deepcopy_VkCopyBufferToImageInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkCopyBufferToImageInfo2* from, |
| VkCopyBufferToImageInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pRegions = nullptr; |
| if (from->pRegions) { |
| to->pRegions = (VkBufferImageCopy2*)alloc->alloc(from->regionCount * |
| sizeof(const VkBufferImageCopy2)); |
| to->regionCount = from->regionCount; |
| for (uint32_t i = 0; i < (uint32_t)from->regionCount; ++i) { |
| deepcopy_VkBufferImageCopy2(alloc, rootType, from->pRegions + i, |
| (VkBufferImageCopy2*)(to->pRegions + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkCopyImageToBufferInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkCopyImageToBufferInfo2* from, |
| VkCopyImageToBufferInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pRegions = nullptr; |
| if (from->pRegions) { |
| to->pRegions = (VkBufferImageCopy2*)alloc->alloc(from->regionCount * |
| sizeof(const VkBufferImageCopy2)); |
| to->regionCount = from->regionCount; |
| for (uint32_t i = 0; i < (uint32_t)from->regionCount; ++i) { |
| deepcopy_VkBufferImageCopy2(alloc, rootType, from->pRegions + i, |
| (VkBufferImageCopy2*)(to->pRegions + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkImageBlit2(Allocator* alloc, VkStructureType rootType, const VkImageBlit2* from, |
| VkImageBlit2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->srcSubresource, |
| (VkImageSubresourceLayers*)(&to->srcSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| deepcopy_VkOffset3D(alloc, rootType, from->srcOffsets + i, |
| (VkOffset3D*)(to->srcOffsets + i)); |
| } |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->dstSubresource, |
| (VkImageSubresourceLayers*)(&to->dstSubresource)); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| deepcopy_VkOffset3D(alloc, rootType, from->dstOffsets + i, |
| (VkOffset3D*)(to->dstOffsets + i)); |
| } |
| } |
| |
| void deepcopy_VkBlitImageInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkBlitImageInfo2* from, VkBlitImageInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pRegions = nullptr; |
| if (from->pRegions) { |
| to->pRegions = |
| (VkImageBlit2*)alloc->alloc(from->regionCount * sizeof(const VkImageBlit2)); |
| to->regionCount = from->regionCount; |
| for (uint32_t i = 0; i < (uint32_t)from->regionCount; ++i) { |
| deepcopy_VkImageBlit2(alloc, rootType, from->pRegions + i, |
| (VkImageBlit2*)(to->pRegions + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkImageResolve2(Allocator* alloc, VkStructureType rootType, |
| const VkImageResolve2* from, VkImageResolve2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->srcSubresource, |
| (VkImageSubresourceLayers*)(&to->srcSubresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->srcOffset, (VkOffset3D*)(&to->srcOffset)); |
| deepcopy_VkImageSubresourceLayers(alloc, rootType, &from->dstSubresource, |
| (VkImageSubresourceLayers*)(&to->dstSubresource)); |
| deepcopy_VkOffset3D(alloc, rootType, &from->dstOffset, (VkOffset3D*)(&to->dstOffset)); |
| deepcopy_VkExtent3D(alloc, rootType, &from->extent, (VkExtent3D*)(&to->extent)); |
| } |
| |
| void deepcopy_VkResolveImageInfo2(Allocator* alloc, VkStructureType rootType, |
| const VkResolveImageInfo2* from, VkResolveImageInfo2* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pRegions = nullptr; |
| if (from->pRegions) { |
| to->pRegions = |
| (VkImageResolve2*)alloc->alloc(from->regionCount * sizeof(const VkImageResolve2)); |
| to->regionCount = from->regionCount; |
| for (uint32_t i = 0; i < (uint32_t)from->regionCount; ++i) { |
| deepcopy_VkImageResolve2(alloc, rootType, from->pRegions + i, |
| (VkImageResolve2*)(to->pRegions + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceSubgroupSizeControlFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceSubgroupSizeControlFeatures* from, |
| VkPhysicalDeviceSubgroupSizeControlFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceSubgroupSizeControlProperties( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceSubgroupSizeControlProperties* from, |
| VkPhysicalDeviceSubgroupSizeControlProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineShaderStageRequiredSubgroupSizeCreateInfo( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineShaderStageRequiredSubgroupSizeCreateInfo* from, |
| VkPipelineShaderStageRequiredSubgroupSizeCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceInlineUniformBlockFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceInlineUniformBlockFeatures* from, |
| VkPhysicalDeviceInlineUniformBlockFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceInlineUniformBlockProperties( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceInlineUniformBlockProperties* from, |
| VkPhysicalDeviceInlineUniformBlockProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkWriteDescriptorSetInlineUniformBlock( |
| Allocator* alloc, VkStructureType rootType, const VkWriteDescriptorSetInlineUniformBlock* from, |
| VkWriteDescriptorSetInlineUniformBlock* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pData = nullptr; |
| if (from->pData) { |
| to->pData = (void*)alloc->dupArray(from->pData, from->dataSize * sizeof(const uint8_t)); |
| } |
| } |
| |
| void deepcopy_VkDescriptorPoolInlineUniformBlockCreateInfo( |
| Allocator* alloc, VkStructureType rootType, |
| const VkDescriptorPoolInlineUniformBlockCreateInfo* from, |
| VkDescriptorPoolInlineUniformBlockCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceTextureCompressionASTCHDRFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceTextureCompressionASTCHDRFeatures* from, |
| VkPhysicalDeviceTextureCompressionASTCHDRFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkRenderingAttachmentInfo(Allocator* alloc, VkStructureType rootType, |
| const VkRenderingAttachmentInfo* from, |
| VkRenderingAttachmentInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkClearValue(alloc, rootType, &from->clearValue, (VkClearValue*)(&to->clearValue)); |
| } |
| |
| void deepcopy_VkRenderingInfo(Allocator* alloc, VkStructureType rootType, |
| const VkRenderingInfo* from, VkRenderingInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkRect2D(alloc, rootType, &from->renderArea, (VkRect2D*)(&to->renderArea)); |
| if (from) { |
| to->pColorAttachments = nullptr; |
| if (from->pColorAttachments) { |
| to->pColorAttachments = (VkRenderingAttachmentInfo*)alloc->alloc( |
| from->colorAttachmentCount * sizeof(const VkRenderingAttachmentInfo)); |
| to->colorAttachmentCount = from->colorAttachmentCount; |
| for (uint32_t i = 0; i < (uint32_t)from->colorAttachmentCount; ++i) { |
| deepcopy_VkRenderingAttachmentInfo( |
| alloc, rootType, from->pColorAttachments + i, |
| (VkRenderingAttachmentInfo*)(to->pColorAttachments + i)); |
| } |
| } |
| } |
| to->pDepthAttachment = nullptr; |
| if (from->pDepthAttachment) { |
| to->pDepthAttachment = |
| (VkRenderingAttachmentInfo*)alloc->alloc(sizeof(const VkRenderingAttachmentInfo)); |
| deepcopy_VkRenderingAttachmentInfo(alloc, rootType, from->pDepthAttachment, |
| (VkRenderingAttachmentInfo*)(to->pDepthAttachment)); |
| } |
| to->pStencilAttachment = nullptr; |
| if (from->pStencilAttachment) { |
| to->pStencilAttachment = |
| (VkRenderingAttachmentInfo*)alloc->alloc(sizeof(const VkRenderingAttachmentInfo)); |
| deepcopy_VkRenderingAttachmentInfo(alloc, rootType, from->pStencilAttachment, |
| (VkRenderingAttachmentInfo*)(to->pStencilAttachment)); |
| } |
| } |
| |
| void deepcopy_VkPipelineRenderingCreateInfo(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineRenderingCreateInfo* from, |
| VkPipelineRenderingCreateInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pColorAttachmentFormats = nullptr; |
| if (from->pColorAttachmentFormats) { |
| to->pColorAttachmentFormats = (VkFormat*)alloc->dupArray( |
| from->pColorAttachmentFormats, from->colorAttachmentCount * sizeof(const VkFormat)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceDynamicRenderingFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceDynamicRenderingFeatures* from, |
| VkPhysicalDeviceDynamicRenderingFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkCommandBufferInheritanceRenderingInfo( |
| Allocator* alloc, VkStructureType rootType, const VkCommandBufferInheritanceRenderingInfo* from, |
| VkCommandBufferInheritanceRenderingInfo* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pColorAttachmentFormats = nullptr; |
| if (from->pColorAttachmentFormats) { |
| to->pColorAttachmentFormats = (VkFormat*)alloc->dupArray( |
| from->pColorAttachmentFormats, from->colorAttachmentCount * sizeof(const VkFormat)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceShaderIntegerDotProductFeatures( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceShaderIntegerDotProductFeatures* from, |
| VkPhysicalDeviceShaderIntegerDotProductFeatures* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceShaderIntegerDotProductProperties( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceShaderIntegerDotProductProperties* from, |
| VkPhysicalDeviceShaderIntegerDotProductProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceTexelBufferAlignmentProperties( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceTexelBufferAlignmentProperties* from, |
| VkPhysicalDeviceTexelBufferAlignmentProperties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkFormatProperties3(Allocator* alloc, VkStructureType rootType, |
| const VkFormatProperties3* from, VkFormatProperties3* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceMaintenance4Features(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceMaintenance4Features* from, |
| VkPhysicalDeviceMaintenance4Features* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceMaintenance4Properties( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceMaintenance4Properties* from, |
| VkPhysicalDeviceMaintenance4Properties* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDeviceBufferMemoryRequirements(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceBufferMemoryRequirements* from, |
| VkDeviceBufferMemoryRequirements* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pCreateInfo = nullptr; |
| if (from->pCreateInfo) { |
| to->pCreateInfo = (VkBufferCreateInfo*)alloc->alloc(sizeof(const VkBufferCreateInfo)); |
| deepcopy_VkBufferCreateInfo(alloc, rootType, from->pCreateInfo, |
| (VkBufferCreateInfo*)(to->pCreateInfo)); |
| } |
| } |
| |
| void deepcopy_VkDeviceImageMemoryRequirements(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceImageMemoryRequirements* from, |
| VkDeviceImageMemoryRequirements* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pCreateInfo = nullptr; |
| if (from->pCreateInfo) { |
| to->pCreateInfo = (VkImageCreateInfo*)alloc->alloc(sizeof(const VkImageCreateInfo)); |
| deepcopy_VkImageCreateInfo(alloc, rootType, from->pCreateInfo, |
| (VkImageCreateInfo*)(to->pCreateInfo)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_surface |
| void deepcopy_VkSurfaceCapabilitiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkSurfaceCapabilitiesKHR* from, |
| VkSurfaceCapabilitiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkExtent2D(alloc, rootType, &from->currentExtent, (VkExtent2D*)(&to->currentExtent)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->minImageExtent, (VkExtent2D*)(&to->minImageExtent)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->maxImageExtent, (VkExtent2D*)(&to->maxImageExtent)); |
| } |
| |
| void deepcopy_VkSurfaceFormatKHR(Allocator* alloc, VkStructureType rootType, |
| const VkSurfaceFormatKHR* from, VkSurfaceFormatKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| #endif |
| #ifdef VK_KHR_swapchain |
| void deepcopy_VkSwapchainCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkSwapchainCreateInfoKHR* from, |
| VkSwapchainCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->imageExtent, (VkExtent2D*)(&to->imageExtent)); |
| to->pQueueFamilyIndices = nullptr; |
| if (from->pQueueFamilyIndices) { |
| to->pQueueFamilyIndices = (uint32_t*)alloc->dupArray( |
| from->pQueueFamilyIndices, from->queueFamilyIndexCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkPresentInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPresentInfoKHR* from, VkPresentInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pWaitSemaphores = nullptr; |
| if (from->pWaitSemaphores) { |
| to->pWaitSemaphores = (VkSemaphore*)alloc->dupArray( |
| from->pWaitSemaphores, from->waitSemaphoreCount * sizeof(const VkSemaphore)); |
| } |
| to->pSwapchains = nullptr; |
| if (from->pSwapchains) { |
| to->pSwapchains = (VkSwapchainKHR*)alloc->dupArray( |
| from->pSwapchains, from->swapchainCount * sizeof(const VkSwapchainKHR)); |
| } |
| to->pImageIndices = nullptr; |
| if (from->pImageIndices) { |
| to->pImageIndices = (uint32_t*)alloc->dupArray( |
| from->pImageIndices, from->swapchainCount * sizeof(const uint32_t)); |
| } |
| to->pResults = nullptr; |
| if (from->pResults) { |
| to->pResults = |
| (VkResult*)alloc->dupArray(from->pResults, from->swapchainCount * sizeof(VkResult)); |
| } |
| } |
| |
| void deepcopy_VkImageSwapchainCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkImageSwapchainCreateInfoKHR* from, |
| VkImageSwapchainCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkBindImageMemorySwapchainInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkBindImageMemorySwapchainInfoKHR* from, |
| VkBindImageMemorySwapchainInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkAcquireNextImageInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkAcquireNextImageInfoKHR* from, |
| VkAcquireNextImageInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDeviceGroupPresentCapabilitiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceGroupPresentCapabilitiesKHR* from, |
| VkDeviceGroupPresentCapabilitiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->presentMask, from->presentMask, VK_MAX_DEVICE_GROUP_SIZE * sizeof(uint32_t)); |
| } |
| |
| void deepcopy_VkDeviceGroupPresentInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceGroupPresentInfoKHR* from, |
| VkDeviceGroupPresentInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pDeviceMasks = nullptr; |
| if (from->pDeviceMasks) { |
| to->pDeviceMasks = (uint32_t*)alloc->dupArray( |
| from->pDeviceMasks, from->swapchainCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkDeviceGroupSwapchainCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceGroupSwapchainCreateInfoKHR* from, |
| VkDeviceGroupSwapchainCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_display |
| void deepcopy_VkDisplayModeParametersKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayModeParametersKHR* from, |
| VkDisplayModeParametersKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkExtent2D(alloc, rootType, &from->visibleRegion, (VkExtent2D*)(&to->visibleRegion)); |
| } |
| |
| void deepcopy_VkDisplayModeCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayModeCreateInfoKHR* from, |
| VkDisplayModeCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkDisplayModeParametersKHR(alloc, rootType, &from->parameters, |
| (VkDisplayModeParametersKHR*)(&to->parameters)); |
| } |
| |
| void deepcopy_VkDisplayModePropertiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayModePropertiesKHR* from, |
| VkDisplayModePropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkDisplayModeParametersKHR(alloc, rootType, &from->parameters, |
| (VkDisplayModeParametersKHR*)(&to->parameters)); |
| } |
| |
| void deepcopy_VkDisplayPlaneCapabilitiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayPlaneCapabilitiesKHR* from, |
| VkDisplayPlaneCapabilitiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkOffset2D(alloc, rootType, &from->minSrcPosition, (VkOffset2D*)(&to->minSrcPosition)); |
| deepcopy_VkOffset2D(alloc, rootType, &from->maxSrcPosition, (VkOffset2D*)(&to->maxSrcPosition)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->minSrcExtent, (VkExtent2D*)(&to->minSrcExtent)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->maxSrcExtent, (VkExtent2D*)(&to->maxSrcExtent)); |
| deepcopy_VkOffset2D(alloc, rootType, &from->minDstPosition, (VkOffset2D*)(&to->minDstPosition)); |
| deepcopy_VkOffset2D(alloc, rootType, &from->maxDstPosition, (VkOffset2D*)(&to->maxDstPosition)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->minDstExtent, (VkExtent2D*)(&to->minDstExtent)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->maxDstExtent, (VkExtent2D*)(&to->maxDstExtent)); |
| } |
| |
| void deepcopy_VkDisplayPlanePropertiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayPlanePropertiesKHR* from, |
| VkDisplayPlanePropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkDisplayPropertiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayPropertiesKHR* from, |
| VkDisplayPropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| to->displayName = nullptr; |
| if (from->displayName) { |
| to->displayName = alloc->strDup(from->displayName); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->physicalDimensions, |
| (VkExtent2D*)(&to->physicalDimensions)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->physicalResolution, |
| (VkExtent2D*)(&to->physicalResolution)); |
| } |
| |
| void deepcopy_VkDisplaySurfaceCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplaySurfaceCreateInfoKHR* from, |
| VkDisplaySurfaceCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->imageExtent, (VkExtent2D*)(&to->imageExtent)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_display_swapchain |
| void deepcopy_VkDisplayPresentInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayPresentInfoKHR* from, |
| VkDisplayPresentInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkRect2D(alloc, rootType, &from->srcRect, (VkRect2D*)(&to->srcRect)); |
| deepcopy_VkRect2D(alloc, rootType, &from->dstRect, (VkRect2D*)(&to->dstRect)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_xlib_surface |
| void deepcopy_VkXlibSurfaceCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkXlibSurfaceCreateInfoKHR* from, |
| VkXlibSurfaceCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->dpy = nullptr; |
| if (from->dpy) { |
| to->dpy = (Display*)alloc->dupArray(from->dpy, sizeof(Display)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_xcb_surface |
| void deepcopy_VkXcbSurfaceCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkXcbSurfaceCreateInfoKHR* from, |
| VkXcbSurfaceCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->connection = nullptr; |
| if (from->connection) { |
| to->connection = |
| (xcb_connection_t*)alloc->dupArray(from->connection, sizeof(xcb_connection_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_wayland_surface |
| void deepcopy_VkWaylandSurfaceCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkWaylandSurfaceCreateInfoKHR* from, |
| VkWaylandSurfaceCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->display = nullptr; |
| if (from->display) { |
| to->display = (wl_display*)alloc->dupArray(from->display, sizeof(wl_display)); |
| } |
| to->surface = nullptr; |
| if (from->surface) { |
| to->surface = (wl_surface*)alloc->dupArray(from->surface, sizeof(wl_surface)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_android_surface |
| void deepcopy_VkAndroidSurfaceCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkAndroidSurfaceCreateInfoKHR* from, |
| VkAndroidSurfaceCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->window = nullptr; |
| if (from->window) { |
| to->window = (ANativeWindow*)alloc->dupArray(from->window, sizeof(ANativeWindow)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_win32_surface |
| void deepcopy_VkWin32SurfaceCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkWin32SurfaceCreateInfoKHR* from, |
| VkWin32SurfaceCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_sampler_mirror_clamp_to_edge |
| #endif |
| #ifdef VK_KHR_video_queue |
| void deepcopy_VkQueueFamilyQueryResultStatusPropertiesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkQueueFamilyQueryResultStatusPropertiesKHR* from, |
| VkQueueFamilyQueryResultStatusPropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkQueueFamilyVideoPropertiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkQueueFamilyVideoPropertiesKHR* from, |
| VkQueueFamilyVideoPropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoProfileInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoProfileInfoKHR* from, VkVideoProfileInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoProfileListInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoProfileListInfoKHR* from, |
| VkVideoProfileListInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pProfiles = nullptr; |
| if (from->pProfiles) { |
| to->pProfiles = (VkVideoProfileInfoKHR*)alloc->alloc( |
| from->profileCount * sizeof(const VkVideoProfileInfoKHR)); |
| to->profileCount = from->profileCount; |
| for (uint32_t i = 0; i < (uint32_t)from->profileCount; ++i) { |
| deepcopy_VkVideoProfileInfoKHR(alloc, rootType, from->pProfiles + i, |
| (VkVideoProfileInfoKHR*)(to->pProfiles + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkVideoCapabilitiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoCapabilitiesKHR* from, |
| VkVideoCapabilitiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->pictureAccessGranularity, |
| (VkExtent2D*)(&to->pictureAccessGranularity)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->minCodedExtent, (VkExtent2D*)(&to->minCodedExtent)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->maxCodedExtent, (VkExtent2D*)(&to->maxCodedExtent)); |
| deepcopy_VkExtensionProperties(alloc, rootType, &from->stdHeaderVersion, |
| (VkExtensionProperties*)(&to->stdHeaderVersion)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceVideoFormatInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceVideoFormatInfoKHR* from, |
| VkPhysicalDeviceVideoFormatInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoFormatPropertiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoFormatPropertiesKHR* from, |
| VkVideoFormatPropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkComponentMapping(alloc, rootType, &from->componentMapping, |
| (VkComponentMapping*)(&to->componentMapping)); |
| } |
| |
| void deepcopy_VkVideoPictureResourceInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoPictureResourceInfoKHR* from, |
| VkVideoPictureResourceInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkOffset2D(alloc, rootType, &from->codedOffset, (VkOffset2D*)(&to->codedOffset)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->codedExtent, (VkExtent2D*)(&to->codedExtent)); |
| } |
| |
| void deepcopy_VkVideoReferenceSlotInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoReferenceSlotInfoKHR* from, |
| VkVideoReferenceSlotInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pPictureResource = nullptr; |
| if (from->pPictureResource) { |
| to->pPictureResource = (VkVideoPictureResourceInfoKHR*)alloc->alloc( |
| sizeof(const VkVideoPictureResourceInfoKHR)); |
| deepcopy_VkVideoPictureResourceInfoKHR( |
| alloc, rootType, from->pPictureResource, |
| (VkVideoPictureResourceInfoKHR*)(to->pPictureResource)); |
| } |
| } |
| |
| void deepcopy_VkVideoSessionMemoryRequirementsKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoSessionMemoryRequirementsKHR* from, |
| VkVideoSessionMemoryRequirementsKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkMemoryRequirements(alloc, rootType, &from->memoryRequirements, |
| (VkMemoryRequirements*)(&to->memoryRequirements)); |
| } |
| |
| void deepcopy_VkBindVideoSessionMemoryInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkBindVideoSessionMemoryInfoKHR* from, |
| VkBindVideoSessionMemoryInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoSessionCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoSessionCreateInfoKHR* from, |
| VkVideoSessionCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pVideoProfile = nullptr; |
| if (from->pVideoProfile) { |
| to->pVideoProfile = |
| (VkVideoProfileInfoKHR*)alloc->alloc(sizeof(const VkVideoProfileInfoKHR)); |
| deepcopy_VkVideoProfileInfoKHR(alloc, rootType, from->pVideoProfile, |
| (VkVideoProfileInfoKHR*)(to->pVideoProfile)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->maxCodedExtent, (VkExtent2D*)(&to->maxCodedExtent)); |
| to->pStdHeaderVersion = nullptr; |
| if (from->pStdHeaderVersion) { |
| to->pStdHeaderVersion = |
| (VkExtensionProperties*)alloc->alloc(sizeof(const VkExtensionProperties)); |
| deepcopy_VkExtensionProperties(alloc, rootType, from->pStdHeaderVersion, |
| (VkExtensionProperties*)(to->pStdHeaderVersion)); |
| } |
| } |
| |
| void deepcopy_VkVideoSessionParametersCreateInfoKHR( |
| Allocator* alloc, VkStructureType rootType, const VkVideoSessionParametersCreateInfoKHR* from, |
| VkVideoSessionParametersCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoSessionParametersUpdateInfoKHR( |
| Allocator* alloc, VkStructureType rootType, const VkVideoSessionParametersUpdateInfoKHR* from, |
| VkVideoSessionParametersUpdateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoBeginCodingInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoBeginCodingInfoKHR* from, |
| VkVideoBeginCodingInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pReferenceSlots = nullptr; |
| if (from->pReferenceSlots) { |
| to->pReferenceSlots = (VkVideoReferenceSlotInfoKHR*)alloc->alloc( |
| from->referenceSlotCount * sizeof(const VkVideoReferenceSlotInfoKHR)); |
| to->referenceSlotCount = from->referenceSlotCount; |
| for (uint32_t i = 0; i < (uint32_t)from->referenceSlotCount; ++i) { |
| deepcopy_VkVideoReferenceSlotInfoKHR( |
| alloc, rootType, from->pReferenceSlots + i, |
| (VkVideoReferenceSlotInfoKHR*)(to->pReferenceSlots + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkVideoEndCodingInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEndCodingInfoKHR* from, |
| VkVideoEndCodingInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoCodingControlInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoCodingControlInfoKHR* from, |
| VkVideoCodingControlInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_video_decode_queue |
| void deepcopy_VkVideoDecodeCapabilitiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeCapabilitiesKHR* from, |
| VkVideoDecodeCapabilitiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeUsageInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeUsageInfoKHR* from, |
| VkVideoDecodeUsageInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeInfoKHR* from, VkVideoDecodeInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkVideoPictureResourceInfoKHR( |
| alloc, rootType, &from->dstPictureResource, |
| (VkVideoPictureResourceInfoKHR*)(&to->dstPictureResource)); |
| to->pSetupReferenceSlot = nullptr; |
| if (from->pSetupReferenceSlot) { |
| to->pSetupReferenceSlot = |
| (VkVideoReferenceSlotInfoKHR*)alloc->alloc(sizeof(const VkVideoReferenceSlotInfoKHR)); |
| deepcopy_VkVideoReferenceSlotInfoKHR( |
| alloc, rootType, from->pSetupReferenceSlot, |
| (VkVideoReferenceSlotInfoKHR*)(to->pSetupReferenceSlot)); |
| } |
| if (from) { |
| to->pReferenceSlots = nullptr; |
| if (from->pReferenceSlots) { |
| to->pReferenceSlots = (VkVideoReferenceSlotInfoKHR*)alloc->alloc( |
| from->referenceSlotCount * sizeof(const VkVideoReferenceSlotInfoKHR)); |
| to->referenceSlotCount = from->referenceSlotCount; |
| for (uint32_t i = 0; i < (uint32_t)from->referenceSlotCount; ++i) { |
| deepcopy_VkVideoReferenceSlotInfoKHR( |
| alloc, rootType, from->pReferenceSlots + i, |
| (VkVideoReferenceSlotInfoKHR*)(to->pReferenceSlots + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_video_decode_h264 |
| void deepcopy_VkVideoDecodeH264ProfileInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH264ProfileInfoKHR* from, |
| VkVideoDecodeH264ProfileInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeH264CapabilitiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH264CapabilitiesKHR* from, |
| VkVideoDecodeH264CapabilitiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkOffset2D(alloc, rootType, &from->fieldOffsetGranularity, |
| (VkOffset2D*)(&to->fieldOffsetGranularity)); |
| } |
| |
| void deepcopy_VkVideoDecodeH264SessionParametersAddInfoKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH264SessionParametersAddInfoKHR* from, |
| VkVideoDecodeH264SessionParametersAddInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdSPSs = nullptr; |
| if (from->pStdSPSs) { |
| to->pStdSPSs = (StdVideoH264SequenceParameterSet*)alloc->dupArray( |
| from->pStdSPSs, from->stdSPSCount * sizeof(const StdVideoH264SequenceParameterSet)); |
| } |
| to->pStdPPSs = nullptr; |
| if (from->pStdPPSs) { |
| to->pStdPPSs = (StdVideoH264PictureParameterSet*)alloc->dupArray( |
| from->pStdPPSs, from->stdPPSCount * sizeof(const StdVideoH264PictureParameterSet)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeH264SessionParametersCreateInfoKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH264SessionParametersCreateInfoKHR* from, |
| VkVideoDecodeH264SessionParametersCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pParametersAddInfo = nullptr; |
| if (from->pParametersAddInfo) { |
| to->pParametersAddInfo = (VkVideoDecodeH264SessionParametersAddInfoKHR*)alloc->alloc( |
| sizeof(const VkVideoDecodeH264SessionParametersAddInfoKHR)); |
| deepcopy_VkVideoDecodeH264SessionParametersAddInfoKHR( |
| alloc, rootType, from->pParametersAddInfo, |
| (VkVideoDecodeH264SessionParametersAddInfoKHR*)(to->pParametersAddInfo)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeH264PictureInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH264PictureInfoKHR* from, |
| VkVideoDecodeH264PictureInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdPictureInfo = nullptr; |
| if (from->pStdPictureInfo) { |
| to->pStdPictureInfo = (StdVideoDecodeH264PictureInfo*)alloc->dupArray( |
| from->pStdPictureInfo, sizeof(const StdVideoDecodeH264PictureInfo)); |
| } |
| to->pSliceOffsets = nullptr; |
| if (from->pSliceOffsets) { |
| to->pSliceOffsets = (uint32_t*)alloc->dupArray(from->pSliceOffsets, |
| from->sliceCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeH264DpbSlotInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH264DpbSlotInfoKHR* from, |
| VkVideoDecodeH264DpbSlotInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdReferenceInfo = nullptr; |
| if (from->pStdReferenceInfo) { |
| to->pStdReferenceInfo = (StdVideoDecodeH264ReferenceInfo*)alloc->dupArray( |
| from->pStdReferenceInfo, sizeof(const StdVideoDecodeH264ReferenceInfo)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_dynamic_rendering |
| void deepcopy_VkRenderingFragmentShadingRateAttachmentInfoKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkRenderingFragmentShadingRateAttachmentInfoKHR* from, |
| VkRenderingFragmentShadingRateAttachmentInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->shadingRateAttachmentTexelSize, |
| (VkExtent2D*)(&to->shadingRateAttachmentTexelSize)); |
| } |
| |
| void deepcopy_VkRenderingFragmentDensityMapAttachmentInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkRenderingFragmentDensityMapAttachmentInfoEXT* from, |
| VkRenderingFragmentDensityMapAttachmentInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkAttachmentSampleCountInfoAMD(Allocator* alloc, VkStructureType rootType, |
| const VkAttachmentSampleCountInfoAMD* from, |
| VkAttachmentSampleCountInfoAMD* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pColorAttachmentSamples = nullptr; |
| if (from->pColorAttachmentSamples) { |
| to->pColorAttachmentSamples = (VkSampleCountFlagBits*)alloc->dupArray( |
| from->pColorAttachmentSamples, |
| from->colorAttachmentCount * sizeof(const VkSampleCountFlagBits)); |
| } |
| } |
| |
| void deepcopy_VkMultiviewPerViewAttributesInfoNVX(Allocator* alloc, VkStructureType rootType, |
| const VkMultiviewPerViewAttributesInfoNVX* from, |
| VkMultiviewPerViewAttributesInfoNVX* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #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 deepcopy_VkImportMemoryWin32HandleInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkImportMemoryWin32HandleInfoKHR* from, |
| VkImportMemoryWin32HandleInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExportMemoryWin32HandleInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkExportMemoryWin32HandleInfoKHR* from, |
| VkExportMemoryWin32HandleInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pAttributes = nullptr; |
| if (from->pAttributes) { |
| to->pAttributes = (SECURITY_ATTRIBUTES*)alloc->dupArray(from->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| } |
| |
| void deepcopy_VkMemoryWin32HandlePropertiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryWin32HandlePropertiesKHR* from, |
| VkMemoryWin32HandlePropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryGetWin32HandleInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryGetWin32HandleInfoKHR* from, |
| VkMemoryGetWin32HandleInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_memory_fd |
| void deepcopy_VkImportMemoryFdInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkImportMemoryFdInfoKHR* from, |
| VkImportMemoryFdInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryFdPropertiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryFdPropertiesKHR* from, |
| VkMemoryFdPropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryGetFdInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryGetFdInfoKHR* from, VkMemoryGetFdInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_win32_keyed_mutex |
| void deepcopy_VkWin32KeyedMutexAcquireReleaseInfoKHR( |
| Allocator* alloc, VkStructureType rootType, const VkWin32KeyedMutexAcquireReleaseInfoKHR* from, |
| VkWin32KeyedMutexAcquireReleaseInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pAcquireSyncs = nullptr; |
| if (from->pAcquireSyncs) { |
| to->pAcquireSyncs = (VkDeviceMemory*)alloc->dupArray( |
| from->pAcquireSyncs, from->acquireCount * sizeof(const VkDeviceMemory)); |
| } |
| to->pAcquireKeys = nullptr; |
| if (from->pAcquireKeys) { |
| to->pAcquireKeys = (uint64_t*)alloc->dupArray(from->pAcquireKeys, |
| from->acquireCount * sizeof(const uint64_t)); |
| } |
| to->pAcquireTimeouts = nullptr; |
| if (from->pAcquireTimeouts) { |
| to->pAcquireTimeouts = (uint32_t*)alloc->dupArray( |
| from->pAcquireTimeouts, from->acquireCount * sizeof(const uint32_t)); |
| } |
| to->pReleaseSyncs = nullptr; |
| if (from->pReleaseSyncs) { |
| to->pReleaseSyncs = (VkDeviceMemory*)alloc->dupArray( |
| from->pReleaseSyncs, from->releaseCount * sizeof(const VkDeviceMemory)); |
| } |
| to->pReleaseKeys = nullptr; |
| if (from->pReleaseKeys) { |
| to->pReleaseKeys = (uint64_t*)alloc->dupArray(from->pReleaseKeys, |
| from->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 deepcopy_VkImportSemaphoreWin32HandleInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkImportSemaphoreWin32HandleInfoKHR* from, |
| VkImportSemaphoreWin32HandleInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExportSemaphoreWin32HandleInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkExportSemaphoreWin32HandleInfoKHR* from, |
| VkExportSemaphoreWin32HandleInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pAttributes = nullptr; |
| if (from->pAttributes) { |
| to->pAttributes = (SECURITY_ATTRIBUTES*)alloc->dupArray(from->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| } |
| |
| void deepcopy_VkD3D12FenceSubmitInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkD3D12FenceSubmitInfoKHR* from, |
| VkD3D12FenceSubmitInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pWaitSemaphoreValues = nullptr; |
| if (from->pWaitSemaphoreValues) { |
| to->pWaitSemaphoreValues = (uint64_t*)alloc->dupArray( |
| from->pWaitSemaphoreValues, from->waitSemaphoreValuesCount * sizeof(const uint64_t)); |
| } |
| to->pSignalSemaphoreValues = nullptr; |
| if (from->pSignalSemaphoreValues) { |
| to->pSignalSemaphoreValues = |
| (uint64_t*)alloc->dupArray(from->pSignalSemaphoreValues, |
| from->signalSemaphoreValuesCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| void deepcopy_VkSemaphoreGetWin32HandleInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkSemaphoreGetWin32HandleInfoKHR* from, |
| VkSemaphoreGetWin32HandleInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_semaphore_fd |
| void deepcopy_VkImportSemaphoreFdInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkImportSemaphoreFdInfoKHR* from, |
| VkImportSemaphoreFdInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSemaphoreGetFdInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkSemaphoreGetFdInfoKHR* from, |
| VkSemaphoreGetFdInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_push_descriptor |
| void deepcopy_VkPhysicalDevicePushDescriptorPropertiesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePushDescriptorPropertiesKHR* from, |
| VkPhysicalDevicePushDescriptorPropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_float16_int8 |
| #endif |
| #ifdef VK_KHR_16bit_storage |
| #endif |
| #ifdef VK_KHR_incremental_present |
| void deepcopy_VkRectLayerKHR(Allocator* alloc, VkStructureType rootType, const VkRectLayerKHR* from, |
| VkRectLayerKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkOffset2D(alloc, rootType, &from->offset, (VkOffset2D*)(&to->offset)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->extent, (VkExtent2D*)(&to->extent)); |
| } |
| |
| void deepcopy_VkPresentRegionKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPresentRegionKHR* from, VkPresentRegionKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (from) { |
| to->pRectangles = nullptr; |
| if (from->pRectangles) { |
| to->pRectangles = |
| (VkRectLayerKHR*)alloc->alloc(from->rectangleCount * sizeof(const VkRectLayerKHR)); |
| to->rectangleCount = from->rectangleCount; |
| for (uint32_t i = 0; i < (uint32_t)from->rectangleCount; ++i) { |
| deepcopy_VkRectLayerKHR(alloc, rootType, from->pRectangles + i, |
| (VkRectLayerKHR*)(to->pRectangles + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkPresentRegionsKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPresentRegionsKHR* from, VkPresentRegionsKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pRegions = nullptr; |
| if (from->pRegions) { |
| to->pRegions = (VkPresentRegionKHR*)alloc->alloc(from->swapchainCount * |
| sizeof(const VkPresentRegionKHR)); |
| to->swapchainCount = from->swapchainCount; |
| for (uint32_t i = 0; i < (uint32_t)from->swapchainCount; ++i) { |
| deepcopy_VkPresentRegionKHR(alloc, rootType, from->pRegions + i, |
| (VkPresentRegionKHR*)(to->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 deepcopy_VkSharedPresentSurfaceCapabilitiesKHR( |
| Allocator* alloc, VkStructureType rootType, const VkSharedPresentSurfaceCapabilitiesKHR* from, |
| VkSharedPresentSurfaceCapabilitiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_fence_capabilities |
| #endif |
| #ifdef VK_KHR_external_fence |
| #endif |
| #ifdef VK_KHR_external_fence_win32 |
| void deepcopy_VkImportFenceWin32HandleInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkImportFenceWin32HandleInfoKHR* from, |
| VkImportFenceWin32HandleInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExportFenceWin32HandleInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkExportFenceWin32HandleInfoKHR* from, |
| VkExportFenceWin32HandleInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pAttributes = nullptr; |
| if (from->pAttributes) { |
| to->pAttributes = (SECURITY_ATTRIBUTES*)alloc->dupArray(from->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| } |
| |
| void deepcopy_VkFenceGetWin32HandleInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkFenceGetWin32HandleInfoKHR* from, |
| VkFenceGetWin32HandleInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_fence_fd |
| void deepcopy_VkImportFenceFdInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkImportFenceFdInfoKHR* from, |
| VkImportFenceFdInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkFenceGetFdInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkFenceGetFdInfoKHR* from, VkFenceGetFdInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_performance_query |
| void deepcopy_VkPhysicalDevicePerformanceQueryFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePerformanceQueryFeaturesKHR* from, |
| VkPhysicalDevicePerformanceQueryFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDevicePerformanceQueryPropertiesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePerformanceQueryPropertiesKHR* from, |
| VkPhysicalDevicePerformanceQueryPropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPerformanceCounterKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPerformanceCounterKHR* from, |
| VkPerformanceCounterKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->uuid, from->uuid, VK_UUID_SIZE * sizeof(uint8_t)); |
| } |
| |
| void deepcopy_VkPerformanceCounterDescriptionKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPerformanceCounterDescriptionKHR* from, |
| VkPerformanceCounterDescriptionKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->name, from->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| memcpy(to->category, from->category, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| memcpy(to->description, from->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| } |
| |
| void deepcopy_VkQueryPoolPerformanceCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkQueryPoolPerformanceCreateInfoKHR* from, |
| VkQueryPoolPerformanceCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pCounterIndices = nullptr; |
| if (from->pCounterIndices) { |
| to->pCounterIndices = (uint32_t*)alloc->dupArray( |
| from->pCounterIndices, from->counterIndexCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkPerformanceCounterResultKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPerformanceCounterResultKHR* from, |
| VkPerformanceCounterResultKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkAcquireProfilingLockInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkAcquireProfilingLockInfoKHR* from, |
| VkAcquireProfilingLockInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPerformanceQuerySubmitInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPerformanceQuerySubmitInfoKHR* from, |
| VkPerformanceQuerySubmitInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_maintenance2 |
| #endif |
| #ifdef VK_KHR_get_surface_capabilities2 |
| void deepcopy_VkPhysicalDeviceSurfaceInfo2KHR(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceSurfaceInfo2KHR* from, |
| VkPhysicalDeviceSurfaceInfo2KHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSurfaceCapabilities2KHR(Allocator* alloc, VkStructureType rootType, |
| const VkSurfaceCapabilities2KHR* from, |
| VkSurfaceCapabilities2KHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkSurfaceCapabilitiesKHR(alloc, rootType, &from->surfaceCapabilities, |
| (VkSurfaceCapabilitiesKHR*)(&to->surfaceCapabilities)); |
| } |
| |
| void deepcopy_VkSurfaceFormat2KHR(Allocator* alloc, VkStructureType rootType, |
| const VkSurfaceFormat2KHR* from, VkSurfaceFormat2KHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkSurfaceFormatKHR(alloc, rootType, &from->surfaceFormat, |
| (VkSurfaceFormatKHR*)(&to->surfaceFormat)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_variable_pointers |
| #endif |
| #ifdef VK_KHR_get_display_properties2 |
| void deepcopy_VkDisplayProperties2KHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayProperties2KHR* from, |
| VkDisplayProperties2KHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkDisplayPropertiesKHR(alloc, rootType, &from->displayProperties, |
| (VkDisplayPropertiesKHR*)(&to->displayProperties)); |
| } |
| |
| void deepcopy_VkDisplayPlaneProperties2KHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayPlaneProperties2KHR* from, |
| VkDisplayPlaneProperties2KHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkDisplayPlanePropertiesKHR( |
| alloc, rootType, &from->displayPlaneProperties, |
| (VkDisplayPlanePropertiesKHR*)(&to->displayPlaneProperties)); |
| } |
| |
| void deepcopy_VkDisplayModeProperties2KHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayModeProperties2KHR* from, |
| VkDisplayModeProperties2KHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkDisplayModePropertiesKHR(alloc, rootType, &from->displayModeProperties, |
| (VkDisplayModePropertiesKHR*)(&to->displayModeProperties)); |
| } |
| |
| void deepcopy_VkDisplayPlaneInfo2KHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayPlaneInfo2KHR* from, |
| VkDisplayPlaneInfo2KHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDisplayPlaneCapabilities2KHR(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayPlaneCapabilities2KHR* from, |
| VkDisplayPlaneCapabilities2KHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkDisplayPlaneCapabilitiesKHR(alloc, rootType, &from->capabilities, |
| (VkDisplayPlaneCapabilitiesKHR*)(&to->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 deepcopy_VkPhysicalDevicePortabilitySubsetFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePortabilitySubsetFeaturesKHR* from, |
| VkPhysicalDevicePortabilitySubsetFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDevicePortabilitySubsetPropertiesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePortabilitySubsetPropertiesKHR* from, |
| VkPhysicalDevicePortabilitySubsetPropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #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 deepcopy_VkPhysicalDeviceShaderClockFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceShaderClockFeaturesKHR* from, |
| VkPhysicalDeviceShaderClockFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_video_decode_h265 |
| void deepcopy_VkVideoDecodeH265ProfileInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH265ProfileInfoKHR* from, |
| VkVideoDecodeH265ProfileInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeH265CapabilitiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH265CapabilitiesKHR* from, |
| VkVideoDecodeH265CapabilitiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeH265SessionParametersAddInfoKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH265SessionParametersAddInfoKHR* from, |
| VkVideoDecodeH265SessionParametersAddInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdVPSs = nullptr; |
| if (from->pStdVPSs) { |
| to->pStdVPSs = (StdVideoH265VideoParameterSet*)alloc->dupArray( |
| from->pStdVPSs, from->stdVPSCount * sizeof(const StdVideoH265VideoParameterSet)); |
| } |
| to->pStdSPSs = nullptr; |
| if (from->pStdSPSs) { |
| to->pStdSPSs = (StdVideoH265SequenceParameterSet*)alloc->dupArray( |
| from->pStdSPSs, from->stdSPSCount * sizeof(const StdVideoH265SequenceParameterSet)); |
| } |
| to->pStdPPSs = nullptr; |
| if (from->pStdPPSs) { |
| to->pStdPPSs = (StdVideoH265PictureParameterSet*)alloc->dupArray( |
| from->pStdPPSs, from->stdPPSCount * sizeof(const StdVideoH265PictureParameterSet)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeH265SessionParametersCreateInfoKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH265SessionParametersCreateInfoKHR* from, |
| VkVideoDecodeH265SessionParametersCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pParametersAddInfo = nullptr; |
| if (from->pParametersAddInfo) { |
| to->pParametersAddInfo = (VkVideoDecodeH265SessionParametersAddInfoKHR*)alloc->alloc( |
| sizeof(const VkVideoDecodeH265SessionParametersAddInfoKHR)); |
| deepcopy_VkVideoDecodeH265SessionParametersAddInfoKHR( |
| alloc, rootType, from->pParametersAddInfo, |
| (VkVideoDecodeH265SessionParametersAddInfoKHR*)(to->pParametersAddInfo)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeH265PictureInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH265PictureInfoKHR* from, |
| VkVideoDecodeH265PictureInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdPictureInfo = nullptr; |
| if (from->pStdPictureInfo) { |
| to->pStdPictureInfo = (StdVideoDecodeH265PictureInfo*)alloc->dupArray( |
| from->pStdPictureInfo, sizeof(const StdVideoDecodeH265PictureInfo)); |
| } |
| to->pSliceSegmentOffsets = nullptr; |
| if (from->pSliceSegmentOffsets) { |
| to->pSliceSegmentOffsets = (uint32_t*)alloc->dupArray( |
| from->pSliceSegmentOffsets, from->sliceSegmentCount * sizeof(const uint32_t)); |
| } |
| } |
| |
| void deepcopy_VkVideoDecodeH265DpbSlotInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoDecodeH265DpbSlotInfoKHR* from, |
| VkVideoDecodeH265DpbSlotInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdReferenceInfo = nullptr; |
| if (from->pStdReferenceInfo) { |
| to->pStdReferenceInfo = (StdVideoDecodeH265ReferenceInfo*)alloc->dupArray( |
| from->pStdReferenceInfo, sizeof(const StdVideoDecodeH265ReferenceInfo)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_global_priority |
| void deepcopy_VkDeviceQueueGlobalPriorityCreateInfoKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkDeviceQueueGlobalPriorityCreateInfoKHR* from, |
| VkDeviceQueueGlobalPriorityCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR* from, |
| VkPhysicalDeviceGlobalPriorityQueryFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkQueueFamilyGlobalPriorityPropertiesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkQueueFamilyGlobalPriorityPropertiesKHR* from, |
| VkQueueFamilyGlobalPriorityPropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->priorities, from->priorities, |
| VK_MAX_GLOBAL_PRIORITY_SIZE_KHR * sizeof(VkQueueGlobalPriorityKHR)); |
| } |
| |
| #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 |
| #endif |
| #ifdef VK_KHR_fragment_shading_rate |
| void deepcopy_VkFragmentShadingRateAttachmentInfoKHR( |
| Allocator* alloc, VkStructureType rootType, const VkFragmentShadingRateAttachmentInfoKHR* from, |
| VkFragmentShadingRateAttachmentInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pFragmentShadingRateAttachment = nullptr; |
| if (from->pFragmentShadingRateAttachment) { |
| to->pFragmentShadingRateAttachment = |
| (VkAttachmentReference2*)alloc->alloc(sizeof(const VkAttachmentReference2)); |
| deepcopy_VkAttachmentReference2( |
| alloc, rootType, from->pFragmentShadingRateAttachment, |
| (VkAttachmentReference2*)(to->pFragmentShadingRateAttachment)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->shadingRateAttachmentTexelSize, |
| (VkExtent2D*)(&to->shadingRateAttachmentTexelSize)); |
| } |
| |
| void deepcopy_VkPipelineFragmentShadingRateStateCreateInfoKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineFragmentShadingRateStateCreateInfoKHR* from, |
| VkPipelineFragmentShadingRateStateCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->fragmentSize, (VkExtent2D*)(&to->fragmentSize)); |
| memcpy(to->combinerOps, from->combinerOps, 2 * sizeof(VkFragmentShadingRateCombinerOpKHR)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceFragmentShadingRateFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRateFeaturesKHR* from, |
| VkPhysicalDeviceFragmentShadingRateFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceFragmentShadingRatePropertiesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRatePropertiesKHR* from, |
| VkPhysicalDeviceFragmentShadingRatePropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->minFragmentShadingRateAttachmentTexelSize, |
| (VkExtent2D*)(&to->minFragmentShadingRateAttachmentTexelSize)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->maxFragmentShadingRateAttachmentTexelSize, |
| (VkExtent2D*)(&to->maxFragmentShadingRateAttachmentTexelSize)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->maxFragmentSize, |
| (VkExtent2D*)(&to->maxFragmentSize)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceFragmentShadingRateKHR( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceFragmentShadingRateKHR* from, |
| VkPhysicalDeviceFragmentShadingRateKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->fragmentSize, (VkExtent2D*)(&to->fragmentSize)); |
| } |
| |
| #endif |
| #ifdef VK_KHR_spirv_1_4 |
| #endif |
| #ifdef VK_KHR_surface_protected_capabilities |
| void deepcopy_VkSurfaceProtectedCapabilitiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkSurfaceProtectedCapabilitiesKHR* from, |
| VkSurfaceProtectedCapabilitiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_separate_depth_stencil_layouts |
| #endif |
| #ifdef VK_KHR_present_wait |
| void deepcopy_VkPhysicalDevicePresentWaitFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDevicePresentWaitFeaturesKHR* from, |
| VkPhysicalDevicePresentWaitFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #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 deepcopy_VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR* from, |
| VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineInfoKHR* from, VkPipelineInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineExecutablePropertiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineExecutablePropertiesKHR* from, |
| VkPipelineExecutablePropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->name, from->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| memcpy(to->description, from->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| } |
| |
| void deepcopy_VkPipelineExecutableInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineExecutableInfoKHR* from, |
| VkPipelineExecutableInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineExecutableStatisticValueKHR( |
| Allocator* alloc, VkStructureType rootType, const VkPipelineExecutableStatisticValueKHR* from, |
| VkPipelineExecutableStatisticValueKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPipelineExecutableStatisticKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineExecutableStatisticKHR* from, |
| VkPipelineExecutableStatisticKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->name, from->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| memcpy(to->description, from->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| deepcopy_VkPipelineExecutableStatisticValueKHR( |
| alloc, rootType, &from->value, (VkPipelineExecutableStatisticValueKHR*)(&to->value)); |
| } |
| |
| void deepcopy_VkPipelineExecutableInternalRepresentationKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineExecutableInternalRepresentationKHR* from, |
| VkPipelineExecutableInternalRepresentationKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| memcpy(to->name, from->name, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| memcpy(to->description, from->description, VK_MAX_DESCRIPTION_SIZE * sizeof(char)); |
| to->pData = nullptr; |
| if (from->pData) { |
| to->pData = (void*)alloc->dupArray(from->pData, from->dataSize * sizeof(uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_map_memory2 |
| void deepcopy_VkMemoryMapInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryMapInfoKHR* from, VkMemoryMapInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkMemoryUnmapInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkMemoryUnmapInfoKHR* from, VkMemoryUnmapInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_integer_dot_product |
| #endif |
| #ifdef VK_KHR_pipeline_library |
| void deepcopy_VkPipelineLibraryCreateInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineLibraryCreateInfoKHR* from, |
| VkPipelineLibraryCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pLibraries = nullptr; |
| if (from->pLibraries) { |
| to->pLibraries = (VkPipeline*)alloc->dupArray( |
| from->pLibraries, from->libraryCount * sizeof(const VkPipeline)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_non_semantic_info |
| #endif |
| #ifdef VK_KHR_present_id |
| void deepcopy_VkPresentIdKHR(Allocator* alloc, VkStructureType rootType, const VkPresentIdKHR* from, |
| VkPresentIdKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pPresentIds = nullptr; |
| if (from->pPresentIds) { |
| to->pPresentIds = (uint64_t*)alloc->dupArray(from->pPresentIds, |
| from->swapchainCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDevicePresentIdFeaturesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePresentIdFeaturesKHR* from, |
| VkPhysicalDevicePresentIdFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_video_encode_queue |
| void deepcopy_VkVideoEncodeInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeInfoKHR* from, VkVideoEncodeInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkVideoPictureResourceInfoKHR( |
| alloc, rootType, &from->srcPictureResource, |
| (VkVideoPictureResourceInfoKHR*)(&to->srcPictureResource)); |
| to->pSetupReferenceSlot = nullptr; |
| if (from->pSetupReferenceSlot) { |
| to->pSetupReferenceSlot = |
| (VkVideoReferenceSlotInfoKHR*)alloc->alloc(sizeof(const VkVideoReferenceSlotInfoKHR)); |
| deepcopy_VkVideoReferenceSlotInfoKHR( |
| alloc, rootType, from->pSetupReferenceSlot, |
| (VkVideoReferenceSlotInfoKHR*)(to->pSetupReferenceSlot)); |
| } |
| if (from) { |
| to->pReferenceSlots = nullptr; |
| if (from->pReferenceSlots) { |
| to->pReferenceSlots = (VkVideoReferenceSlotInfoKHR*)alloc->alloc( |
| from->referenceSlotCount * sizeof(const VkVideoReferenceSlotInfoKHR)); |
| to->referenceSlotCount = from->referenceSlotCount; |
| for (uint32_t i = 0; i < (uint32_t)from->referenceSlotCount; ++i) { |
| deepcopy_VkVideoReferenceSlotInfoKHR( |
| alloc, rootType, from->pReferenceSlots + i, |
| (VkVideoReferenceSlotInfoKHR*)(to->pReferenceSlots + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeCapabilitiesKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeCapabilitiesKHR* from, |
| VkVideoEncodeCapabilitiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->inputImageDataFillAlignment, |
| (VkExtent2D*)(&to->inputImageDataFillAlignment)); |
| } |
| |
| void deepcopy_VkQueryPoolVideoEncodeFeedbackCreateInfoKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkQueryPoolVideoEncodeFeedbackCreateInfoKHR* from, |
| VkQueryPoolVideoEncodeFeedbackCreateInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeUsageInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeUsageInfoKHR* from, |
| VkVideoEncodeUsageInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeRateControlLayerInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeRateControlLayerInfoKHR* from, |
| VkVideoEncodeRateControlLayerInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeRateControlInfoKHR(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeRateControlInfoKHR* from, |
| VkVideoEncodeRateControlInfoKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pLayers = nullptr; |
| if (from->pLayers) { |
| to->pLayers = (VkVideoEncodeRateControlLayerInfoKHR*)alloc->alloc( |
| from->layerCount * sizeof(const VkVideoEncodeRateControlLayerInfoKHR)); |
| to->layerCount = from->layerCount; |
| for (uint32_t i = 0; i < (uint32_t)from->layerCount; ++i) { |
| deepcopy_VkVideoEncodeRateControlLayerInfoKHR( |
| alloc, rootType, from->pLayers + i, |
| (VkVideoEncodeRateControlLayerInfoKHR*)(to->pLayers + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| void deepcopy_VkQueueFamilyCheckpointProperties2NV(Allocator* alloc, VkStructureType rootType, |
| const VkQueueFamilyCheckpointProperties2NV* from, |
| VkQueueFamilyCheckpointProperties2NV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkCheckpointData2NV(Allocator* alloc, VkStructureType rootType, |
| const VkCheckpointData2NV* from, VkCheckpointData2NV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pCheckpointMarker = nullptr; |
| if (from->pCheckpointMarker) { |
| to->pCheckpointMarker = (void*)alloc->dupArray(from->pCheckpointMarker, sizeof(uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_fragment_shader_barycentric |
| void deepcopy_VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR* from, |
| VkPhysicalDeviceFragmentShaderBarycentricFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR* from, |
| VkPhysicalDeviceFragmentShaderBarycentricPropertiesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_subgroup_uniform_control_flow |
| void deepcopy_VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR* from, |
| VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_zero_initialize_workgroup_memory |
| #endif |
| #ifdef VK_KHR_workgroup_memory_explicit_layout |
| void deepcopy_VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR* from, |
| VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_copy_commands2 |
| #endif |
| #ifdef VK_KHR_format_feature_flags2 |
| #endif |
| #ifdef VK_KHR_ray_tracing_maintenance1 |
| void deepcopy_VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR* from, |
| VkPhysicalDeviceRayTracingMaintenance1FeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkTraceRaysIndirectCommand2KHR(Allocator* alloc, VkStructureType rootType, |
| const VkTraceRaysIndirectCommand2KHR* from, |
| VkTraceRaysIndirectCommand2KHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| #endif |
| #ifdef VK_KHR_portability_enumeration |
| #endif |
| #ifdef VK_KHR_maintenance4 |
| #endif |
| #ifdef VK_KHR_ray_tracing_position_fetch |
| void deepcopy_VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR* from, |
| VkPhysicalDeviceRayTracingPositionFetchFeaturesKHR* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_ANDROID_native_buffer |
| void deepcopy_VkNativeBufferUsage2ANDROID(Allocator* alloc, VkStructureType rootType, |
| const VkNativeBufferUsage2ANDROID* from, |
| VkNativeBufferUsage2ANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkNativeBufferANDROID(Allocator* alloc, VkStructureType rootType, |
| const VkNativeBufferANDROID* from, VkNativeBufferANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->handle = nullptr; |
| if (from->handle) { |
| to->handle = (uint32_t*)alloc->dupArray(from->handle, sizeof(const uint32_t)); |
| } |
| deepcopy_VkNativeBufferUsage2ANDROID(alloc, rootType, &from->usage2, |
| (VkNativeBufferUsage2ANDROID*)(&to->usage2)); |
| } |
| |
| void deepcopy_VkSwapchainImageCreateInfoANDROID(Allocator* alloc, VkStructureType rootType, |
| const VkSwapchainImageCreateInfoANDROID* from, |
| VkSwapchainImageCreateInfoANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDevicePresentationPropertiesANDROID( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePresentationPropertiesANDROID* from, |
| VkPhysicalDevicePresentationPropertiesANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_debug_report |
| void deepcopy_VkDebugReportCallbackCreateInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDebugReportCallbackCreateInfoEXT* from, |
| VkDebugReportCallbackCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pUserData = nullptr; |
| if (from->pUserData) { |
| to->pUserData = (void*)alloc->dupArray(from->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 deepcopy_VkPipelineRasterizationStateRasterizationOrderAMD( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineRasterizationStateRasterizationOrderAMD* from, |
| VkPipelineRasterizationStateRasterizationOrderAMD* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_trinary_minmax |
| #endif |
| #ifdef VK_AMD_shader_explicit_vertex_parameter |
| #endif |
| #ifdef VK_EXT_debug_marker |
| void deepcopy_VkDebugMarkerObjectNameInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDebugMarkerObjectNameInfoEXT* from, |
| VkDebugMarkerObjectNameInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pObjectName = nullptr; |
| if (from->pObjectName) { |
| to->pObjectName = alloc->strDup(from->pObjectName); |
| } |
| } |
| |
| void deepcopy_VkDebugMarkerObjectTagInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDebugMarkerObjectTagInfoEXT* from, |
| VkDebugMarkerObjectTagInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pTag = nullptr; |
| if (from->pTag) { |
| to->pTag = (void*)alloc->dupArray(from->pTag, from->tagSize * sizeof(const uint8_t)); |
| } |
| } |
| |
| void deepcopy_VkDebugMarkerMarkerInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDebugMarkerMarkerInfoEXT* from, |
| VkDebugMarkerMarkerInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pMarkerName = nullptr; |
| if (from->pMarkerName) { |
| to->pMarkerName = alloc->strDup(from->pMarkerName); |
| } |
| memcpy(to->color, from->color, 4 * sizeof(float)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_gcn_shader |
| #endif |
| #ifdef VK_NV_dedicated_allocation |
| void deepcopy_VkDedicatedAllocationImageCreateInfoNV( |
| Allocator* alloc, VkStructureType rootType, const VkDedicatedAllocationImageCreateInfoNV* from, |
| VkDedicatedAllocationImageCreateInfoNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDedicatedAllocationBufferCreateInfoNV( |
| Allocator* alloc, VkStructureType rootType, const VkDedicatedAllocationBufferCreateInfoNV* from, |
| VkDedicatedAllocationBufferCreateInfoNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDedicatedAllocationMemoryAllocateInfoNV( |
| Allocator* alloc, VkStructureType rootType, |
| const VkDedicatedAllocationMemoryAllocateInfoNV* from, |
| VkDedicatedAllocationMemoryAllocateInfoNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| void deepcopy_VkPhysicalDeviceTransformFeedbackFeaturesEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceTransformFeedbackFeaturesEXT* from, |
| VkPhysicalDeviceTransformFeedbackFeaturesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceTransformFeedbackPropertiesEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceTransformFeedbackPropertiesEXT* from, |
| VkPhysicalDeviceTransformFeedbackPropertiesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineRasterizationStateStreamCreateInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineRasterizationStateStreamCreateInfoEXT* from, |
| VkPipelineRasterizationStateStreamCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NVX_binary_import |
| void deepcopy_VkCuModuleCreateInfoNVX(Allocator* alloc, VkStructureType rootType, |
| const VkCuModuleCreateInfoNVX* from, |
| VkCuModuleCreateInfoNVX* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pData = nullptr; |
| if (from->pData) { |
| to->pData = (void*)alloc->dupArray(from->pData, from->dataSize * sizeof(const uint8_t)); |
| } |
| } |
| |
| void deepcopy_VkCuFunctionCreateInfoNVX(Allocator* alloc, VkStructureType rootType, |
| const VkCuFunctionCreateInfoNVX* from, |
| VkCuFunctionCreateInfoNVX* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pName = nullptr; |
| if (from->pName) { |
| to->pName = alloc->strDup(from->pName); |
| } |
| } |
| |
| void deepcopy_VkCuLaunchInfoNVX(Allocator* alloc, VkStructureType rootType, |
| const VkCuLaunchInfoNVX* from, VkCuLaunchInfoNVX* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NVX_image_view_handle |
| void deepcopy_VkImageViewHandleInfoNVX(Allocator* alloc, VkStructureType rootType, |
| const VkImageViewHandleInfoNVX* from, |
| VkImageViewHandleInfoNVX* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkImageViewAddressPropertiesNVX(Allocator* alloc, VkStructureType rootType, |
| const VkImageViewAddressPropertiesNVX* from, |
| VkImageViewAddressPropertiesNVX* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #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 deepcopy_VkVideoEncodeH264CapabilitiesEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264CapabilitiesEXT* from, |
| VkVideoEncodeH264CapabilitiesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH264SessionParametersAddInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264SessionParametersAddInfoEXT* from, |
| VkVideoEncodeH264SessionParametersAddInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdSPSs = nullptr; |
| if (from->pStdSPSs) { |
| to->pStdSPSs = (StdVideoH264SequenceParameterSet*)alloc->dupArray( |
| from->pStdSPSs, from->stdSPSCount * sizeof(const StdVideoH264SequenceParameterSet)); |
| } |
| to->pStdPPSs = nullptr; |
| if (from->pStdPPSs) { |
| to->pStdPPSs = (StdVideoH264PictureParameterSet*)alloc->dupArray( |
| from->pStdPPSs, from->stdPPSCount * sizeof(const StdVideoH264PictureParameterSet)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH264SessionParametersCreateInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264SessionParametersCreateInfoEXT* from, |
| VkVideoEncodeH264SessionParametersCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pParametersAddInfo = nullptr; |
| if (from->pParametersAddInfo) { |
| to->pParametersAddInfo = (VkVideoEncodeH264SessionParametersAddInfoEXT*)alloc->alloc( |
| sizeof(const VkVideoEncodeH264SessionParametersAddInfoEXT)); |
| deepcopy_VkVideoEncodeH264SessionParametersAddInfoEXT( |
| alloc, rootType, from->pParametersAddInfo, |
| (VkVideoEncodeH264SessionParametersAddInfoEXT*)(to->pParametersAddInfo)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH264NaluSliceInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264NaluSliceInfoEXT* from, |
| VkVideoEncodeH264NaluSliceInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdReferenceFinalLists = nullptr; |
| if (from->pStdReferenceFinalLists) { |
| to->pStdReferenceFinalLists = (StdVideoEncodeH264ReferenceListsInfo*)alloc->dupArray( |
| from->pStdReferenceFinalLists, sizeof(const StdVideoEncodeH264ReferenceListsInfo)); |
| } |
| to->pStdSliceHeader = nullptr; |
| if (from->pStdSliceHeader) { |
| to->pStdSliceHeader = (StdVideoEncodeH264SliceHeader*)alloc->dupArray( |
| from->pStdSliceHeader, sizeof(const StdVideoEncodeH264SliceHeader)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH264VclFrameInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264VclFrameInfoEXT* from, |
| VkVideoEncodeH264VclFrameInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdReferenceFinalLists = nullptr; |
| if (from->pStdReferenceFinalLists) { |
| to->pStdReferenceFinalLists = (StdVideoEncodeH264ReferenceListsInfo*)alloc->dupArray( |
| from->pStdReferenceFinalLists, sizeof(const StdVideoEncodeH264ReferenceListsInfo)); |
| } |
| if (from) { |
| to->pNaluSliceEntries = nullptr; |
| if (from->pNaluSliceEntries) { |
| to->pNaluSliceEntries = (VkVideoEncodeH264NaluSliceInfoEXT*)alloc->alloc( |
| from->naluSliceEntryCount * sizeof(const VkVideoEncodeH264NaluSliceInfoEXT)); |
| to->naluSliceEntryCount = from->naluSliceEntryCount; |
| for (uint32_t i = 0; i < (uint32_t)from->naluSliceEntryCount; ++i) { |
| deepcopy_VkVideoEncodeH264NaluSliceInfoEXT( |
| alloc, rootType, from->pNaluSliceEntries + i, |
| (VkVideoEncodeH264NaluSliceInfoEXT*)(to->pNaluSliceEntries + i)); |
| } |
| } |
| } |
| to->pStdPictureInfo = nullptr; |
| if (from->pStdPictureInfo) { |
| to->pStdPictureInfo = (StdVideoEncodeH264PictureInfo*)alloc->dupArray( |
| from->pStdPictureInfo, sizeof(const StdVideoEncodeH264PictureInfo)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH264DpbSlotInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264DpbSlotInfoEXT* from, |
| VkVideoEncodeH264DpbSlotInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdReferenceInfo = nullptr; |
| if (from->pStdReferenceInfo) { |
| to->pStdReferenceInfo = (StdVideoEncodeH264ReferenceInfo*)alloc->dupArray( |
| from->pStdReferenceInfo, sizeof(const StdVideoEncodeH264ReferenceInfo)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH264ProfileInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264ProfileInfoEXT* from, |
| VkVideoEncodeH264ProfileInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH264RateControlInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264RateControlInfoEXT* from, |
| VkVideoEncodeH264RateControlInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH264QpEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264QpEXT* from, |
| VkVideoEncodeH264QpEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkVideoEncodeH264FrameSizeEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264FrameSizeEXT* from, |
| VkVideoEncodeH264FrameSizeEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkVideoEncodeH264RateControlLayerInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH264RateControlLayerInfoEXT* from, |
| VkVideoEncodeH264RateControlLayerInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkVideoEncodeH264QpEXT(alloc, rootType, &from->initialRcQp, |
| (VkVideoEncodeH264QpEXT*)(&to->initialRcQp)); |
| deepcopy_VkVideoEncodeH264QpEXT(alloc, rootType, &from->minQp, |
| (VkVideoEncodeH264QpEXT*)(&to->minQp)); |
| deepcopy_VkVideoEncodeH264QpEXT(alloc, rootType, &from->maxQp, |
| (VkVideoEncodeH264QpEXT*)(&to->maxQp)); |
| deepcopy_VkVideoEncodeH264FrameSizeEXT(alloc, rootType, &from->maxFrameSize, |
| (VkVideoEncodeH264FrameSizeEXT*)(&to->maxFrameSize)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_video_encode_h265 |
| void deepcopy_VkVideoEncodeH265CapabilitiesEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265CapabilitiesEXT* from, |
| VkVideoEncodeH265CapabilitiesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH265SessionParametersAddInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265SessionParametersAddInfoEXT* from, |
| VkVideoEncodeH265SessionParametersAddInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdVPSs = nullptr; |
| if (from->pStdVPSs) { |
| to->pStdVPSs = (StdVideoH265VideoParameterSet*)alloc->dupArray( |
| from->pStdVPSs, from->stdVPSCount * sizeof(const StdVideoH265VideoParameterSet)); |
| } |
| to->pStdSPSs = nullptr; |
| if (from->pStdSPSs) { |
| to->pStdSPSs = (StdVideoH265SequenceParameterSet*)alloc->dupArray( |
| from->pStdSPSs, from->stdSPSCount * sizeof(const StdVideoH265SequenceParameterSet)); |
| } |
| to->pStdPPSs = nullptr; |
| if (from->pStdPPSs) { |
| to->pStdPPSs = (StdVideoH265PictureParameterSet*)alloc->dupArray( |
| from->pStdPPSs, from->stdPPSCount * sizeof(const StdVideoH265PictureParameterSet)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH265SessionParametersCreateInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265SessionParametersCreateInfoEXT* from, |
| VkVideoEncodeH265SessionParametersCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pParametersAddInfo = nullptr; |
| if (from->pParametersAddInfo) { |
| to->pParametersAddInfo = (VkVideoEncodeH265SessionParametersAddInfoEXT*)alloc->alloc( |
| sizeof(const VkVideoEncodeH265SessionParametersAddInfoEXT)); |
| deepcopy_VkVideoEncodeH265SessionParametersAddInfoEXT( |
| alloc, rootType, from->pParametersAddInfo, |
| (VkVideoEncodeH265SessionParametersAddInfoEXT*)(to->pParametersAddInfo)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH265NaluSliceSegmentInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265NaluSliceSegmentInfoEXT* from, |
| VkVideoEncodeH265NaluSliceSegmentInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdReferenceFinalLists = nullptr; |
| if (from->pStdReferenceFinalLists) { |
| to->pStdReferenceFinalLists = (StdVideoEncodeH265ReferenceListsInfo*)alloc->dupArray( |
| from->pStdReferenceFinalLists, sizeof(const StdVideoEncodeH265ReferenceListsInfo)); |
| } |
| to->pStdSliceSegmentHeader = nullptr; |
| if (from->pStdSliceSegmentHeader) { |
| to->pStdSliceSegmentHeader = (StdVideoEncodeH265SliceSegmentHeader*)alloc->dupArray( |
| from->pStdSliceSegmentHeader, sizeof(const StdVideoEncodeH265SliceSegmentHeader)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH265VclFrameInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265VclFrameInfoEXT* from, |
| VkVideoEncodeH265VclFrameInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdReferenceFinalLists = nullptr; |
| if (from->pStdReferenceFinalLists) { |
| to->pStdReferenceFinalLists = (StdVideoEncodeH265ReferenceListsInfo*)alloc->dupArray( |
| from->pStdReferenceFinalLists, sizeof(const StdVideoEncodeH265ReferenceListsInfo)); |
| } |
| if (from) { |
| to->pNaluSliceSegmentEntries = nullptr; |
| if (from->pNaluSliceSegmentEntries) { |
| to->pNaluSliceSegmentEntries = (VkVideoEncodeH265NaluSliceSegmentInfoEXT*)alloc->alloc( |
| from->naluSliceSegmentEntryCount * |
| sizeof(const VkVideoEncodeH265NaluSliceSegmentInfoEXT)); |
| to->naluSliceSegmentEntryCount = from->naluSliceSegmentEntryCount; |
| for (uint32_t i = 0; i < (uint32_t)from->naluSliceSegmentEntryCount; ++i) { |
| deepcopy_VkVideoEncodeH265NaluSliceSegmentInfoEXT( |
| alloc, rootType, from->pNaluSliceSegmentEntries + i, |
| (VkVideoEncodeH265NaluSliceSegmentInfoEXT*)(to->pNaluSliceSegmentEntries + i)); |
| } |
| } |
| } |
| to->pStdPictureInfo = nullptr; |
| if (from->pStdPictureInfo) { |
| to->pStdPictureInfo = (StdVideoEncodeH265PictureInfo*)alloc->dupArray( |
| from->pStdPictureInfo, sizeof(const StdVideoEncodeH265PictureInfo)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH265DpbSlotInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265DpbSlotInfoEXT* from, |
| VkVideoEncodeH265DpbSlotInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pStdReferenceInfo = nullptr; |
| if (from->pStdReferenceInfo) { |
| to->pStdReferenceInfo = (StdVideoEncodeH265ReferenceInfo*)alloc->dupArray( |
| from->pStdReferenceInfo, sizeof(const StdVideoEncodeH265ReferenceInfo)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH265ProfileInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265ProfileInfoEXT* from, |
| VkVideoEncodeH265ProfileInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH265RateControlInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265RateControlInfoEXT* from, |
| VkVideoEncodeH265RateControlInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkVideoEncodeH265QpEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265QpEXT* from, |
| VkVideoEncodeH265QpEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkVideoEncodeH265FrameSizeEXT(Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265FrameSizeEXT* from, |
| VkVideoEncodeH265FrameSizeEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkVideoEncodeH265RateControlLayerInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkVideoEncodeH265RateControlLayerInfoEXT* from, |
| VkVideoEncodeH265RateControlLayerInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkVideoEncodeH265QpEXT(alloc, rootType, &from->initialRcQp, |
| (VkVideoEncodeH265QpEXT*)(&to->initialRcQp)); |
| deepcopy_VkVideoEncodeH265QpEXT(alloc, rootType, &from->minQp, |
| (VkVideoEncodeH265QpEXT*)(&to->minQp)); |
| deepcopy_VkVideoEncodeH265QpEXT(alloc, rootType, &from->maxQp, |
| (VkVideoEncodeH265QpEXT*)(&to->maxQp)); |
| deepcopy_VkVideoEncodeH265FrameSizeEXT(alloc, rootType, &from->maxFrameSize, |
| (VkVideoEncodeH265FrameSizeEXT*)(&to->maxFrameSize)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_texture_gather_bias_lod |
| void deepcopy_VkTextureLODGatherFormatPropertiesAMD( |
| Allocator* alloc, VkStructureType rootType, const VkTextureLODGatherFormatPropertiesAMD* from, |
| VkTextureLODGatherFormatPropertiesAMD* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_info |
| void deepcopy_VkShaderResourceUsageAMD(Allocator* alloc, VkStructureType rootType, |
| const VkShaderResourceUsageAMD* from, |
| VkShaderResourceUsageAMD* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkShaderStatisticsInfoAMD(Allocator* alloc, VkStructureType rootType, |
| const VkShaderStatisticsInfoAMD* from, |
| VkShaderStatisticsInfoAMD* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkShaderResourceUsageAMD(alloc, rootType, &from->resourceUsage, |
| (VkShaderResourceUsageAMD*)(&to->resourceUsage)); |
| memcpy(to->computeWorkGroupSize, from->computeWorkGroupSize, 3 * sizeof(uint32_t)); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_image_load_store_lod |
| #endif |
| #ifdef VK_GGP_stream_descriptor_surface |
| void deepcopy_VkStreamDescriptorSurfaceCreateInfoGGP( |
| Allocator* alloc, VkStructureType rootType, const VkStreamDescriptorSurfaceCreateInfoGGP* from, |
| VkStreamDescriptorSurfaceCreateInfoGGP* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_corner_sampled_image |
| void deepcopy_VkPhysicalDeviceCornerSampledImageFeaturesNV( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceCornerSampledImageFeaturesNV* from, |
| VkPhysicalDeviceCornerSampledImageFeaturesNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_IMG_format_pvrtc |
| #endif |
| #ifdef VK_NV_external_memory_capabilities |
| void deepcopy_VkExternalImageFormatPropertiesNV(Allocator* alloc, VkStructureType rootType, |
| const VkExternalImageFormatPropertiesNV* from, |
| VkExternalImageFormatPropertiesNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkImageFormatProperties(alloc, rootType, &from->imageFormatProperties, |
| (VkImageFormatProperties*)(&to->imageFormatProperties)); |
| } |
| |
| #endif |
| #ifdef VK_NV_external_memory |
| void deepcopy_VkExternalMemoryImageCreateInfoNV(Allocator* alloc, VkStructureType rootType, |
| const VkExternalMemoryImageCreateInfoNV* from, |
| VkExternalMemoryImageCreateInfoNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExportMemoryAllocateInfoNV(Allocator* alloc, VkStructureType rootType, |
| const VkExportMemoryAllocateInfoNV* from, |
| VkExportMemoryAllocateInfoNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_external_memory_win32 |
| void deepcopy_VkImportMemoryWin32HandleInfoNV(Allocator* alloc, VkStructureType rootType, |
| const VkImportMemoryWin32HandleInfoNV* from, |
| VkImportMemoryWin32HandleInfoNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExportMemoryWin32HandleInfoNV(Allocator* alloc, VkStructureType rootType, |
| const VkExportMemoryWin32HandleInfoNV* from, |
| VkExportMemoryWin32HandleInfoNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pAttributes = nullptr; |
| if (from->pAttributes) { |
| to->pAttributes = (SECURITY_ATTRIBUTES*)alloc->dupArray(from->pAttributes, |
| sizeof(const SECURITY_ATTRIBUTES)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_win32_keyed_mutex |
| void deepcopy_VkWin32KeyedMutexAcquireReleaseInfoNV( |
| Allocator* alloc, VkStructureType rootType, const VkWin32KeyedMutexAcquireReleaseInfoNV* from, |
| VkWin32KeyedMutexAcquireReleaseInfoNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pAcquireSyncs = nullptr; |
| if (from->pAcquireSyncs) { |
| to->pAcquireSyncs = (VkDeviceMemory*)alloc->dupArray( |
| from->pAcquireSyncs, from->acquireCount * sizeof(const VkDeviceMemory)); |
| } |
| to->pAcquireKeys = nullptr; |
| if (from->pAcquireKeys) { |
| to->pAcquireKeys = (uint64_t*)alloc->dupArray(from->pAcquireKeys, |
| from->acquireCount * sizeof(const uint64_t)); |
| } |
| to->pAcquireTimeoutMilliseconds = nullptr; |
| if (from->pAcquireTimeoutMilliseconds) { |
| to->pAcquireTimeoutMilliseconds = (uint32_t*)alloc->dupArray( |
| from->pAcquireTimeoutMilliseconds, from->acquireCount * sizeof(const uint32_t)); |
| } |
| to->pReleaseSyncs = nullptr; |
| if (from->pReleaseSyncs) { |
| to->pReleaseSyncs = (VkDeviceMemory*)alloc->dupArray( |
| from->pReleaseSyncs, from->releaseCount * sizeof(const VkDeviceMemory)); |
| } |
| to->pReleaseKeys = nullptr; |
| if (from->pReleaseKeys) { |
| to->pReleaseKeys = (uint64_t*)alloc->dupArray(from->pReleaseKeys, |
| from->releaseCount * sizeof(const uint64_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_validation_flags |
| void deepcopy_VkValidationFlagsEXT(Allocator* alloc, VkStructureType rootType, |
| const VkValidationFlagsEXT* from, VkValidationFlagsEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pDisabledValidationChecks = nullptr; |
| if (from->pDisabledValidationChecks) { |
| to->pDisabledValidationChecks = (VkValidationCheckEXT*)alloc->dupArray( |
| from->pDisabledValidationChecks, |
| from->disabledValidationCheckCount * sizeof(const VkValidationCheckEXT)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NN_vi_surface |
| void deepcopy_VkViSurfaceCreateInfoNN(Allocator* alloc, VkStructureType rootType, |
| const VkViSurfaceCreateInfoNN* from, |
| VkViSurfaceCreateInfoNN* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->window = nullptr; |
| if (from->window) { |
| to->window = (void*)alloc->dupArray(from->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 |
| #endif |
| #ifdef VK_EXT_astc_decode_mode |
| void deepcopy_VkImageViewASTCDecodeModeEXT(Allocator* alloc, VkStructureType rootType, |
| const VkImageViewASTCDecodeModeEXT* from, |
| VkImageViewASTCDecodeModeEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceASTCDecodeFeaturesEXT( |
| Allocator* alloc, VkStructureType rootType, const VkPhysicalDeviceASTCDecodeFeaturesEXT* from, |
| VkPhysicalDeviceASTCDecodeFeaturesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_pipeline_robustness |
| void deepcopy_VkPhysicalDevicePipelineRobustnessFeaturesEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePipelineRobustnessFeaturesEXT* from, |
| VkPhysicalDevicePipelineRobustnessFeaturesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDevicePipelineRobustnessPropertiesEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDevicePipelineRobustnessPropertiesEXT* from, |
| VkPhysicalDevicePipelineRobustnessPropertiesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineRobustnessCreateInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkPipelineRobustnessCreateInfoEXT* from, |
| VkPipelineRobustnessCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_conditional_rendering |
| void deepcopy_VkConditionalRenderingBeginInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkConditionalRenderingBeginInfoEXT* from, |
| VkConditionalRenderingBeginInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPhysicalDeviceConditionalRenderingFeaturesEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceConditionalRenderingFeaturesEXT* from, |
| VkPhysicalDeviceConditionalRenderingFeaturesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkCommandBufferInheritanceConditionalRenderingInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkCommandBufferInheritanceConditionalRenderingInfoEXT* from, |
| VkCommandBufferInheritanceConditionalRenderingInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_clip_space_w_scaling |
| void deepcopy_VkViewportWScalingNV(Allocator* alloc, VkStructureType rootType, |
| const VkViewportWScalingNV* from, VkViewportWScalingNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPipelineViewportWScalingStateCreateInfoNV( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineViewportWScalingStateCreateInfoNV* from, |
| VkPipelineViewportWScalingStateCreateInfoNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pViewportWScalings = nullptr; |
| if (from->pViewportWScalings) { |
| to->pViewportWScalings = (VkViewportWScalingNV*)alloc->alloc( |
| from->viewportCount * sizeof(const VkViewportWScalingNV)); |
| to->viewportCount = from->viewportCount; |
| for (uint32_t i = 0; i < (uint32_t)from->viewportCount; ++i) { |
| deepcopy_VkViewportWScalingNV(alloc, rootType, from->pViewportWScalings + i, |
| (VkViewportWScalingNV*)(to->pViewportWScalings + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_direct_mode_display |
| #endif |
| #ifdef VK_EXT_acquire_xlib_display |
| #endif |
| #ifdef VK_EXT_display_surface_counter |
| void deepcopy_VkSurfaceCapabilities2EXT(Allocator* alloc, VkStructureType rootType, |
| const VkSurfaceCapabilities2EXT* from, |
| VkSurfaceCapabilities2EXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->currentExtent, (VkExtent2D*)(&to->currentExtent)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->minImageExtent, (VkExtent2D*)(&to->minImageExtent)); |
| deepcopy_VkExtent2D(alloc, rootType, &from->maxImageExtent, (VkExtent2D*)(&to->maxImageExtent)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_display_control |
| void deepcopy_VkDisplayPowerInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayPowerInfoEXT* from, VkDisplayPowerInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDeviceEventInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDeviceEventInfoEXT* from, VkDeviceEventInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkDisplayEventInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDisplayEventInfoEXT* from, VkDisplayEventInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkSwapchainCounterCreateInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkSwapchainCounterCreateInfoEXT* from, |
| VkSwapchainCounterCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_GOOGLE_display_timing |
| void deepcopy_VkRefreshCycleDurationGOOGLE(Allocator* alloc, VkStructureType rootType, |
| const VkRefreshCycleDurationGOOGLE* from, |
| VkRefreshCycleDurationGOOGLE* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPastPresentationTimingGOOGLE(Allocator* alloc, VkStructureType rootType, |
| const VkPastPresentationTimingGOOGLE* from, |
| VkPastPresentationTimingGOOGLE* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPresentTimeGOOGLE(Allocator* alloc, VkStructureType rootType, |
| const VkPresentTimeGOOGLE* from, VkPresentTimeGOOGLE* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPresentTimesInfoGOOGLE(Allocator* alloc, VkStructureType rootType, |
| const VkPresentTimesInfoGOOGLE* from, |
| VkPresentTimesInfoGOOGLE* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pTimes = nullptr; |
| if (from->pTimes) { |
| to->pTimes = (VkPresentTimeGOOGLE*)alloc->alloc(from->swapchainCount * |
| sizeof(const VkPresentTimeGOOGLE)); |
| to->swapchainCount = from->swapchainCount; |
| for (uint32_t i = 0; i < (uint32_t)from->swapchainCount; ++i) { |
| deepcopy_VkPresentTimeGOOGLE(alloc, rootType, from->pTimes + i, |
| (VkPresentTimeGOOGLE*)(to->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 deepcopy_VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX* from, |
| VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_viewport_swizzle |
| void deepcopy_VkViewportSwizzleNV(Allocator* alloc, VkStructureType rootType, |
| const VkViewportSwizzleNV* from, VkViewportSwizzleNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkPipelineViewportSwizzleStateCreateInfoNV( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineViewportSwizzleStateCreateInfoNV* from, |
| VkPipelineViewportSwizzleStateCreateInfoNV* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pViewportSwizzles = nullptr; |
| if (from->pViewportSwizzles) { |
| to->pViewportSwizzles = (VkViewportSwizzleNV*)alloc->alloc( |
| from->viewportCount * sizeof(const VkViewportSwizzleNV)); |
| to->viewportCount = from->viewportCount; |
| for (uint32_t i = 0; i < (uint32_t)from->viewportCount; ++i) { |
| deepcopy_VkViewportSwizzleNV(alloc, rootType, from->pViewportSwizzles + i, |
| (VkViewportSwizzleNV*)(to->pViewportSwizzles + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_discard_rectangles |
| void deepcopy_VkPhysicalDeviceDiscardRectanglePropertiesEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceDiscardRectanglePropertiesEXT* from, |
| VkPhysicalDeviceDiscardRectanglePropertiesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineDiscardRectangleStateCreateInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineDiscardRectangleStateCreateInfoEXT* from, |
| VkPipelineDiscardRectangleStateCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pDiscardRectangles = nullptr; |
| if (from->pDiscardRectangles) { |
| to->pDiscardRectangles = |
| (VkRect2D*)alloc->alloc(from->discardRectangleCount * sizeof(const VkRect2D)); |
| to->discardRectangleCount = from->discardRectangleCount; |
| for (uint32_t i = 0; i < (uint32_t)from->discardRectangleCount; ++i) { |
| deepcopy_VkRect2D(alloc, rootType, from->pDiscardRectangles + i, |
| (VkRect2D*)(to->pDiscardRectangles + i)); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_conservative_rasterization |
| void deepcopy_VkPhysicalDeviceConservativeRasterizationPropertiesEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceConservativeRasterizationPropertiesEXT* from, |
| VkPhysicalDeviceConservativeRasterizationPropertiesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineRasterizationConservativeStateCreateInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineRasterizationConservativeStateCreateInfoEXT* from, |
| VkPipelineRasterizationConservativeStateCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_depth_clip_enable |
| void deepcopy_VkPhysicalDeviceDepthClipEnableFeaturesEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceDepthClipEnableFeaturesEXT* from, |
| VkPhysicalDeviceDepthClipEnableFeaturesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkPipelineRasterizationDepthClipStateCreateInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineRasterizationDepthClipStateCreateInfoEXT* from, |
| VkPipelineRasterizationDepthClipStateCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_swapchain_colorspace |
| #endif |
| #ifdef VK_EXT_hdr_metadata |
| void deepcopy_VkXYColorEXT(Allocator* alloc, VkStructureType rootType, const VkXYColorEXT* from, |
| VkXYColorEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkHdrMetadataEXT(Allocator* alloc, VkStructureType rootType, |
| const VkHdrMetadataEXT* from, VkHdrMetadataEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkXYColorEXT(alloc, rootType, &from->displayPrimaryRed, |
| (VkXYColorEXT*)(&to->displayPrimaryRed)); |
| deepcopy_VkXYColorEXT(alloc, rootType, &from->displayPrimaryGreen, |
| (VkXYColorEXT*)(&to->displayPrimaryGreen)); |
| deepcopy_VkXYColorEXT(alloc, rootType, &from->displayPrimaryBlue, |
| (VkXYColorEXT*)(&to->displayPrimaryBlue)); |
| deepcopy_VkXYColorEXT(alloc, rootType, &from->whitePoint, (VkXYColorEXT*)(&to->whitePoint)); |
| } |
| |
| #endif |
| #ifdef VK_MVK_ios_surface |
| void deepcopy_VkIOSSurfaceCreateInfoMVK(Allocator* alloc, VkStructureType rootType, |
| const VkIOSSurfaceCreateInfoMVK* from, |
| VkIOSSurfaceCreateInfoMVK* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pView = nullptr; |
| if (from->pView) { |
| to->pView = (void*)alloc->dupArray(from->pView, sizeof(const uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_MVK_macos_surface |
| void deepcopy_VkMacOSSurfaceCreateInfoMVK(Allocator* alloc, VkStructureType rootType, |
| const VkMacOSSurfaceCreateInfoMVK* from, |
| VkMacOSSurfaceCreateInfoMVK* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pView = nullptr; |
| if (from->pView) { |
| to->pView = (void*)alloc->dupArray(from->pView, sizeof(const uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_external_memory_dma_buf |
| #endif |
| #ifdef VK_EXT_queue_family_foreign |
| #endif |
| #ifdef VK_EXT_debug_utils |
| void deepcopy_VkDebugUtilsLabelEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDebugUtilsLabelEXT* from, VkDebugUtilsLabelEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pLabelName = nullptr; |
| if (from->pLabelName) { |
| to->pLabelName = alloc->strDup(from->pLabelName); |
| } |
| memcpy(to->color, from->color, 4 * sizeof(float)); |
| } |
| |
| void deepcopy_VkDebugUtilsObjectNameInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDebugUtilsObjectNameInfoEXT* from, |
| VkDebugUtilsObjectNameInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pObjectName = nullptr; |
| if (from->pObjectName) { |
| to->pObjectName = alloc->strDup(from->pObjectName); |
| } |
| } |
| |
| void deepcopy_VkDebugUtilsMessengerCallbackDataEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDebugUtilsMessengerCallbackDataEXT* from, |
| VkDebugUtilsMessengerCallbackDataEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pMessageIdName = nullptr; |
| if (from->pMessageIdName) { |
| to->pMessageIdName = alloc->strDup(from->pMessageIdName); |
| } |
| to->pMessage = nullptr; |
| if (from->pMessage) { |
| to->pMessage = alloc->strDup(from->pMessage); |
| } |
| if (from) { |
| to->pQueueLabels = nullptr; |
| if (from->pQueueLabels) { |
| to->pQueueLabels = (VkDebugUtilsLabelEXT*)alloc->alloc( |
| from->queueLabelCount * sizeof(const VkDebugUtilsLabelEXT)); |
| to->queueLabelCount = from->queueLabelCount; |
| for (uint32_t i = 0; i < (uint32_t)from->queueLabelCount; ++i) { |
| deepcopy_VkDebugUtilsLabelEXT(alloc, rootType, from->pQueueLabels + i, |
| (VkDebugUtilsLabelEXT*)(to->pQueueLabels + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pCmdBufLabels = nullptr; |
| if (from->pCmdBufLabels) { |
| to->pCmdBufLabels = (VkDebugUtilsLabelEXT*)alloc->alloc( |
| from->cmdBufLabelCount * sizeof(const VkDebugUtilsLabelEXT)); |
| to->cmdBufLabelCount = from->cmdBufLabelCount; |
| for (uint32_t i = 0; i < (uint32_t)from->cmdBufLabelCount; ++i) { |
| deepcopy_VkDebugUtilsLabelEXT(alloc, rootType, from->pCmdBufLabels + i, |
| (VkDebugUtilsLabelEXT*)(to->pCmdBufLabels + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pObjects = nullptr; |
| if (from->pObjects) { |
| to->pObjects = (VkDebugUtilsObjectNameInfoEXT*)alloc->alloc( |
| from->objectCount * sizeof(const VkDebugUtilsObjectNameInfoEXT)); |
| to->objectCount = from->objectCount; |
| for (uint32_t i = 0; i < (uint32_t)from->objectCount; ++i) { |
| deepcopy_VkDebugUtilsObjectNameInfoEXT( |
| alloc, rootType, from->pObjects + i, |
| (VkDebugUtilsObjectNameInfoEXT*)(to->pObjects + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkDebugUtilsMessengerCreateInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDebugUtilsMessengerCreateInfoEXT* from, |
| VkDebugUtilsMessengerCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pUserData = nullptr; |
| if (from->pUserData) { |
| to->pUserData = (void*)alloc->dupArray(from->pUserData, sizeof(uint8_t)); |
| } |
| } |
| |
| void deepcopy_VkDebugUtilsObjectTagInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkDebugUtilsObjectTagInfoEXT* from, |
| VkDebugUtilsObjectTagInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->pTag = nullptr; |
| if (from->pTag) { |
| to->pTag = (void*)alloc->dupArray(from->pTag, from->tagSize * sizeof(const uint8_t)); |
| } |
| } |
| |
| #endif |
| #ifdef VK_ANDROID_external_memory_android_hardware_buffer |
| void deepcopy_VkAndroidHardwareBufferUsageANDROID(Allocator* alloc, VkStructureType rootType, |
| const VkAndroidHardwareBufferUsageANDROID* from, |
| VkAndroidHardwareBufferUsageANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkAndroidHardwareBufferPropertiesANDROID( |
| Allocator* alloc, VkStructureType rootType, |
| const VkAndroidHardwareBufferPropertiesANDROID* from, |
| VkAndroidHardwareBufferPropertiesANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkAndroidHardwareBufferFormatPropertiesANDROID( |
| Allocator* alloc, VkStructureType rootType, |
| const VkAndroidHardwareBufferFormatPropertiesANDROID* from, |
| VkAndroidHardwareBufferFormatPropertiesANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkComponentMapping(alloc, rootType, &from->samplerYcbcrConversionComponents, |
| (VkComponentMapping*)(&to->samplerYcbcrConversionComponents)); |
| } |
| |
| void deepcopy_VkImportAndroidHardwareBufferInfoANDROID( |
| Allocator* alloc, VkStructureType rootType, |
| const VkImportAndroidHardwareBufferInfoANDROID* from, |
| VkImportAndroidHardwareBufferInfoANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| to->buffer = nullptr; |
| if (from->buffer) { |
| to->buffer = (AHardwareBuffer*)alloc->dupArray(from->buffer, sizeof(AHardwareBuffer)); |
| } |
| } |
| |
| void deepcopy_VkMemoryGetAndroidHardwareBufferInfoANDROID( |
| Allocator* alloc, VkStructureType rootType, |
| const VkMemoryGetAndroidHardwareBufferInfoANDROID* from, |
| VkMemoryGetAndroidHardwareBufferInfoANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkExternalFormatANDROID(Allocator* alloc, VkStructureType rootType, |
| const VkExternalFormatANDROID* from, |
| VkExternalFormatANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| } |
| |
| void deepcopy_VkAndroidHardwareBufferFormatProperties2ANDROID( |
| Allocator* alloc, VkStructureType rootType, |
| const VkAndroidHardwareBufferFormatProperties2ANDROID* from, |
| VkAndroidHardwareBufferFormatProperties2ANDROID* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkComponentMapping(alloc, rootType, &from->samplerYcbcrConversionComponents, |
| (VkComponentMapping*)(&to->samplerYcbcrConversionComponents)); |
| } |
| |
| #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 |
| #endif |
| #ifdef VK_EXT_shader_stencil_export |
| #endif |
| #ifdef VK_EXT_sample_locations |
| void deepcopy_VkSampleLocationEXT(Allocator* alloc, VkStructureType rootType, |
| const VkSampleLocationEXT* from, VkSampleLocationEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| } |
| |
| void deepcopy_VkSampleLocationsInfoEXT(Allocator* alloc, VkStructureType rootType, |
| const VkSampleLocationsInfoEXT* from, |
| VkSampleLocationsInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->sampleLocationGridSize, |
| (VkExtent2D*)(&to->sampleLocationGridSize)); |
| if (from) { |
| to->pSampleLocations = nullptr; |
| if (from->pSampleLocations) { |
| to->pSampleLocations = (VkSampleLocationEXT*)alloc->alloc( |
| from->sampleLocationsCount * sizeof(const VkSampleLocationEXT)); |
| to->sampleLocationsCount = from->sampleLocationsCount; |
| for (uint32_t i = 0; i < (uint32_t)from->sampleLocationsCount; ++i) { |
| deepcopy_VkSampleLocationEXT(alloc, rootType, from->pSampleLocations + i, |
| (VkSampleLocationEXT*)(to->pSampleLocations + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkAttachmentSampleLocationsEXT(Allocator* alloc, VkStructureType rootType, |
| const VkAttachmentSampleLocationsEXT* from, |
| VkAttachmentSampleLocationsEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkSampleLocationsInfoEXT(alloc, rootType, &from->sampleLocationsInfo, |
| (VkSampleLocationsInfoEXT*)(&to->sampleLocationsInfo)); |
| } |
| |
| void deepcopy_VkSubpassSampleLocationsEXT(Allocator* alloc, VkStructureType rootType, |
| const VkSubpassSampleLocationsEXT* from, |
| VkSubpassSampleLocationsEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| deepcopy_VkSampleLocationsInfoEXT(alloc, rootType, &from->sampleLocationsInfo, |
| (VkSampleLocationsInfoEXT*)(&to->sampleLocationsInfo)); |
| } |
| |
| void deepcopy_VkRenderPassSampleLocationsBeginInfoEXT( |
| Allocator* alloc, VkStructureType rootType, const VkRenderPassSampleLocationsBeginInfoEXT* from, |
| VkRenderPassSampleLocationsBeginInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| if (from) { |
| to->pAttachmentInitialSampleLocations = nullptr; |
| if (from->pAttachmentInitialSampleLocations) { |
| to->pAttachmentInitialSampleLocations = (VkAttachmentSampleLocationsEXT*)alloc->alloc( |
| from->attachmentInitialSampleLocationsCount * |
| sizeof(const VkAttachmentSampleLocationsEXT)); |
| to->attachmentInitialSampleLocationsCount = from->attachmentInitialSampleLocationsCount; |
| for (uint32_t i = 0; i < (uint32_t)from->attachmentInitialSampleLocationsCount; ++i) { |
| deepcopy_VkAttachmentSampleLocationsEXT( |
| alloc, rootType, from->pAttachmentInitialSampleLocations + i, |
| (VkAttachmentSampleLocationsEXT*)(to->pAttachmentInitialSampleLocations + i)); |
| } |
| } |
| } |
| if (from) { |
| to->pPostSubpassSampleLocations = nullptr; |
| if (from->pPostSubpassSampleLocations) { |
| to->pPostSubpassSampleLocations = (VkSubpassSampleLocationsEXT*)alloc->alloc( |
| from->postSubpassSampleLocationsCount * sizeof(const VkSubpassSampleLocationsEXT)); |
| to->postSubpassSampleLocationsCount = from->postSubpassSampleLocationsCount; |
| for (uint32_t i = 0; i < (uint32_t)from->postSubpassSampleLocationsCount; ++i) { |
| deepcopy_VkSubpassSampleLocationsEXT( |
| alloc, rootType, from->pPostSubpassSampleLocations + i, |
| (VkSubpassSampleLocationsEXT*)(to->pPostSubpassSampleLocations + i)); |
| } |
| } |
| } |
| } |
| |
| void deepcopy_VkPipelineSampleLocationsStateCreateInfoEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPipelineSampleLocationsStateCreateInfoEXT* from, |
| VkPipelineSampleLocationsStateCreateInfoEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkSampleLocationsInfoEXT(alloc, rootType, &from->sampleLocationsInfo, |
| (VkSampleLocationsInfoEXT*)(&to->sampleLocationsInfo)); |
| } |
| |
| void deepcopy_VkPhysicalDeviceSampleLocationsPropertiesEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceSampleLocationsPropertiesEXT* from, |
| VkPhysicalDeviceSampleLocationsPropertiesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->maxSampleLocationGridSize, |
| (VkExtent2D*)(&to->maxSampleLocationGridSize)); |
| memcpy(to->sampleLocationCoordinateRange, from->sampleLocationCoordinateRange, |
| 2 * sizeof(float)); |
| } |
| |
| void deepcopy_VkMultisamplePropertiesEXT(Allocator* alloc, VkStructureType rootType, |
| const VkMultisamplePropertiesEXT* from, |
| VkMultisamplePropertiesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = from->sType; |
| } |
| const void* from_pNext = from; |
| size_t pNext_size = 0u; |
| while (!pNext_size && from_pNext) { |
| from_pNext = static_cast<const vk_struct_common*>(from_pNext)->pNext; |
| pNext_size = goldfish_vk_extension_struct_size(rootType, from_pNext); |
| } |
| to->pNext = nullptr; |
| if (pNext_size) { |
| to->pNext = (void*)alloc->alloc(pNext_size); |
| deepcopy_extension_struct(alloc, rootType, from_pNext, (void*)(to->pNext)); |
| } |
| deepcopy_VkExtent2D(alloc, rootType, &from->maxSampleLocationGridSize, |
| (VkExtent2D*)(&to->maxSampleLocationGridSize)); |
| } |
| |
| #endif |
| #ifdef VK_EXT_blend_operation_advanced |
| void deepcopy_VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT( |
| Allocator* alloc, VkStructureType rootType, |
| const VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT* from, |
| VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT* to) { |
| (void)alloc; |
| (void)rootType; |
| *to = *from; |
| |