| // 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_counting_guest |
| // |
| // (impl) generated by registry/vulkan/scripts/genvk.py -registry registry/vulkan/xml/vk.xml cereal |
| // -o ../vulkan-cereal/stream-servers/vulkan/cereal |
| // |
| // Please do not modify directly; |
| // re-run gfxstream-protocols/scripts/generate-vulkan-sources.sh, |
| // or directly from Python by defining: |
| // VULKAN_REGISTRY_XML_DIR : Directory containing vk.xml |
| // VULKAN_REGISTRY_SCRIPTS_DIR : Directory containing genvk.py |
| // CEREAL_OUTPUT_DIR: Where to put the generated sources. |
| // |
| // python3 $VULKAN_REGISTRY_SCRIPTS_DIR/genvk.py -registry $VULKAN_REGISTRY_XML_DIR/vk.xml cereal -o |
| // $CEREAL_OUTPUT_DIR |
| // |
| |
| #include "goldfish_vk_counting_guest.h" |
| |
| #include <cstring> |
| |
| #include "goldfish_vk_extension_structs_guest.h" |
| #include "goldfish_vk_private_defs.h" |
| |
| namespace goldfish_vk { |
| |
| void count_extension_struct(uint32_t featureBits, VkStructureType rootType, |
| const void* structExtension, size_t* count); |
| |
| #ifdef VK_VERSION_1_0 |
| void count_VkExtent2D(uint32_t featureBits, VkStructureType rootType, const VkExtent2D* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkExtent3D(uint32_t featureBits, VkStructureType rootType, const VkExtent3D* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkOffset2D(uint32_t featureBits, VkStructureType rootType, const VkOffset2D* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(int32_t); |
| *count += sizeof(int32_t); |
| } |
| |
| void count_VkOffset3D(uint32_t featureBits, VkStructureType rootType, const VkOffset3D* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(int32_t); |
| *count += sizeof(int32_t); |
| *count += sizeof(int32_t); |
| } |
| |
| void count_VkRect2D(uint32_t featureBits, VkStructureType rootType, const VkRect2D* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkOffset2D(featureBits, rootType, (VkOffset2D*)(&toCount->offset), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->extent), count); |
| } |
| |
| void count_VkBaseInStructure(uint32_t featureBits, VkStructureType rootType, |
| const VkBaseInStructure* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| } |
| |
| void count_VkBaseOutStructure(uint32_t featureBits, VkStructureType rootType, |
| const VkBaseOutStructure* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| } |
| |
| void count_VkBufferMemoryBarrier(uint32_t featureBits, VkStructureType rootType, |
| const VkBufferMemoryBarrier* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkAccessFlags); |
| *count += sizeof(VkAccessFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkDispatchIndirectCommand(uint32_t featureBits, VkStructureType rootType, |
| const VkDispatchIndirectCommand* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDrawIndexedIndirectCommand(uint32_t featureBits, VkStructureType rootType, |
| const VkDrawIndexedIndirectCommand* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(int32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDrawIndirectCommand(uint32_t featureBits, VkStructureType rootType, |
| const VkDrawIndirectCommand* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkImageSubresourceRange(uint32_t featureBits, VkStructureType rootType, |
| const VkImageSubresourceRange* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkImageAspectFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkImageMemoryBarrier(uint32_t featureBits, VkStructureType rootType, |
| const VkImageMemoryBarrier* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkAccessFlags); |
| *count += sizeof(VkAccessFlags); |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| count_VkImageSubresourceRange(featureBits, rootType, |
| (VkImageSubresourceRange*)(&toCount->subresourceRange), count); |
| } |
| |
| void count_VkMemoryBarrier(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryBarrier* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkAccessFlags); |
| *count += sizeof(VkAccessFlags); |
| } |
| |
| void count_VkPipelineCacheHeaderVersionOne(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineCacheHeaderVersionOne* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkPipelineCacheHeaderVersion); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += VK_UUID_SIZE * sizeof(uint8_t); |
| } |
| |
| void count_VkAllocationCallbacks(uint32_t featureBits, VkStructureType rootType, |
| const VkAllocationCallbacks* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pUserData) { |
| *count += sizeof(uint8_t); |
| } |
| *count += 8; |
| *count += 8; |
| *count += 8; |
| *count += 8; |
| *count += 8; |
| } |
| |
| void count_VkApplicationInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkApplicationInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| if (featureBits & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pApplicationName) { |
| *count += sizeof(uint32_t) + |
| (toCount->pApplicationName ? strlen(toCount->pApplicationName) : 0); |
| } |
| } else { |
| *count += |
| sizeof(uint32_t) + (toCount->pApplicationName ? strlen(toCount->pApplicationName) : 0); |
| } |
| *count += sizeof(uint32_t); |
| if (featureBits & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pEngineName) { |
| *count += sizeof(uint32_t) + (toCount->pEngineName ? strlen(toCount->pEngineName) : 0); |
| } |
| } else { |
| *count += sizeof(uint32_t) + (toCount->pEngineName ? strlen(toCount->pEngineName) : 0); |
| } |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkFormatProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkFormatProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkFormatFeatureFlags); |
| *count += sizeof(VkFormatFeatureFlags); |
| *count += sizeof(VkFormatFeatureFlags); |
| } |
| |
| void count_VkImageFormatProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkImageFormatProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->maxExtent), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkInstanceCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkInstanceCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkInstanceCreateFlags); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pApplicationInfo) { |
| count_VkApplicationInfo(featureBits, rootType, |
| (const VkApplicationInfo*)(toCount->pApplicationInfo), count); |
| } |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < toCount->enabledLayerCount; ++i) { |
| size_t l = |
| toCount->ppEnabledLayerNames[i] ? strlen(toCount->ppEnabledLayerNames[i]) : 0; |
| *count += |
| sizeof(uint32_t) + |
| (toCount->ppEnabledLayerNames[i] ? strlen(toCount->ppEnabledLayerNames[i]) : 0); |
| } |
| } |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < toCount->enabledExtensionCount; ++i) { |
| size_t l = toCount->ppEnabledExtensionNames[i] |
| ? strlen(toCount->ppEnabledExtensionNames[i]) |
| : 0; |
| *count += sizeof(uint32_t) + (toCount->ppEnabledExtensionNames[i] |
| ? strlen(toCount->ppEnabledExtensionNames[i]) |
| : 0); |
| } |
| } |
| } |
| |
| void count_VkMemoryHeap(uint32_t featureBits, VkStructureType rootType, const VkMemoryHeap* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkMemoryHeapFlags); |
| } |
| |
| void count_VkMemoryType(uint32_t featureBits, VkStructureType rootType, const VkMemoryType* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkMemoryPropertyFlags); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPhysicalDeviceFeatures(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceLimits(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceLimits* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += 3 * sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += 3 * sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(uint32_t); |
| *count += 2 * sizeof(uint32_t); |
| *count += 2 * sizeof(float); |
| *count += sizeof(uint32_t); |
| *count += 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(int32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(int32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| *count += sizeof(float); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += 2 * sizeof(float); |
| *count += 2 * sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkPhysicalDeviceMemoryProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMemoryProperties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| for (uint32_t i = 0; i < (uint32_t)VK_MAX_MEMORY_TYPES; ++i) { |
| count_VkMemoryType(featureBits, rootType, (VkMemoryType*)(toCount->memoryTypes + i), count); |
| } |
| *count += sizeof(uint32_t); |
| for (uint32_t i = 0; i < (uint32_t)VK_MAX_MEMORY_HEAPS; ++i) { |
| count_VkMemoryHeap(featureBits, rootType, (VkMemoryHeap*)(toCount->memoryHeaps + i), count); |
| } |
| } |
| |
| void count_VkPhysicalDeviceSparseProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSparseProperties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkPhysicalDeviceType); |
| *count += VK_MAX_PHYSICAL_DEVICE_NAME_SIZE * sizeof(char); |
| *count += VK_UUID_SIZE * sizeof(uint8_t); |
| count_VkPhysicalDeviceLimits(featureBits, rootType, (VkPhysicalDeviceLimits*)(&toCount->limits), |
| count); |
| count_VkPhysicalDeviceSparseProperties( |
| featureBits, rootType, (VkPhysicalDeviceSparseProperties*)(&toCount->sparseProperties), |
| count); |
| } |
| |
| void count_VkQueueFamilyProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkQueueFamilyProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkQueueFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->minImageTransferGranularity), |
| count); |
| } |
| |
| void count_VkDeviceQueueCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceQueueCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceQueueCreateFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->queueCount * sizeof(const float); |
| } |
| } |
| |
| void count_VkDeviceCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceCreateFlags); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->queueCreateInfoCount; ++i) { |
| count_VkDeviceQueueCreateInfo( |
| featureBits, rootType, |
| (const VkDeviceQueueCreateInfo*)(toCount->pQueueCreateInfos + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < toCount->enabledLayerCount; ++i) { |
| size_t l = |
| toCount->ppEnabledLayerNames[i] ? strlen(toCount->ppEnabledLayerNames[i]) : 0; |
| *count += |
| sizeof(uint32_t) + |
| (toCount->ppEnabledLayerNames[i] ? strlen(toCount->ppEnabledLayerNames[i]) : 0); |
| } |
| } |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < toCount->enabledExtensionCount; ++i) { |
| size_t l = toCount->ppEnabledExtensionNames[i] |
| ? strlen(toCount->ppEnabledExtensionNames[i]) |
| : 0; |
| *count += sizeof(uint32_t) + (toCount->ppEnabledExtensionNames[i] |
| ? strlen(toCount->ppEnabledExtensionNames[i]) |
| : 0); |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pEnabledFeatures) { |
| count_VkPhysicalDeviceFeatures(featureBits, rootType, |
| (const VkPhysicalDeviceFeatures*)(toCount->pEnabledFeatures), |
| count); |
| } |
| } |
| |
| void count_VkExtensionProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkExtensionProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += VK_MAX_EXTENSION_NAME_SIZE * sizeof(char); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkLayerProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkLayerProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += VK_MAX_EXTENSION_NAME_SIZE * sizeof(char); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| } |
| |
| void count_VkSubmitInfo(uint32_t featureBits, VkStructureType rootType, const VkSubmitInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount->waitSemaphoreCount) { |
| *count += toCount->waitSemaphoreCount * 8; |
| } |
| if (toCount) { |
| *count += toCount->waitSemaphoreCount * sizeof(const VkPipelineStageFlags); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount->commandBufferCount) { |
| *count += toCount->commandBufferCount * 8; |
| } |
| *count += sizeof(uint32_t); |
| if (toCount->signalSemaphoreCount) { |
| *count += toCount->signalSemaphoreCount * 8; |
| } |
| } |
| |
| void count_VkMappedMemoryRange(uint32_t featureBits, VkStructureType rootType, |
| const VkMappedMemoryRange* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkMemoryAllocateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryAllocateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkMemoryRequirements(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryRequirements* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkSparseMemoryBind(uint32_t featureBits, VkStructureType rootType, |
| const VkSparseMemoryBind* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkSparseMemoryBindFlags); |
| } |
| |
| void count_VkSparseBufferMemoryBindInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSparseBufferMemoryBindInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->bindCount; ++i) { |
| count_VkSparseMemoryBind(featureBits, rootType, |
| (const VkSparseMemoryBind*)(toCount->pBinds + i), count); |
| } |
| } |
| } |
| |
| void count_VkSparseImageOpaqueMemoryBindInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSparseImageOpaqueMemoryBindInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->bindCount; ++i) { |
| count_VkSparseMemoryBind(featureBits, rootType, |
| (const VkSparseMemoryBind*)(toCount->pBinds + i), count); |
| } |
| } |
| } |
| |
| void count_VkImageSubresource(uint32_t featureBits, VkStructureType rootType, |
| const VkImageSubresource* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkImageAspectFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkSparseImageMemoryBind(uint32_t featureBits, VkStructureType rootType, |
| const VkSparseImageMemoryBind* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkImageSubresource(featureBits, rootType, (VkImageSubresource*)(&toCount->subresource), |
| count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->offset), count); |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->extent), count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkSparseMemoryBindFlags); |
| } |
| |
| void count_VkSparseImageMemoryBindInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSparseImageMemoryBindInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->bindCount; ++i) { |
| count_VkSparseImageMemoryBind(featureBits, rootType, |
| (const VkSparseImageMemoryBind*)(toCount->pBinds + i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkBindSparseInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkBindSparseInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount->waitSemaphoreCount) { |
| *count += toCount->waitSemaphoreCount * 8; |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->bufferBindCount; ++i) { |
| count_VkSparseBufferMemoryBindInfo( |
| featureBits, rootType, |
| (const VkSparseBufferMemoryBindInfo*)(toCount->pBufferBinds + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->imageOpaqueBindCount; ++i) { |
| count_VkSparseImageOpaqueMemoryBindInfo( |
| featureBits, rootType, |
| (const VkSparseImageOpaqueMemoryBindInfo*)(toCount->pImageOpaqueBinds + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->imageBindCount; ++i) { |
| count_VkSparseImageMemoryBindInfo( |
| featureBits, rootType, |
| (const VkSparseImageMemoryBindInfo*)(toCount->pImageBinds + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount->signalSemaphoreCount) { |
| *count += toCount->signalSemaphoreCount * 8; |
| } |
| } |
| |
| void count_VkSparseImageFormatProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkSparseImageFormatProperties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkImageAspectFlags); |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->imageGranularity), count); |
| *count += sizeof(VkSparseImageFormatFlags); |
| } |
| |
| void count_VkSparseImageMemoryRequirements(uint32_t featureBits, VkStructureType rootType, |
| const VkSparseImageMemoryRequirements* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkSparseImageFormatProperties( |
| featureBits, rootType, (VkSparseImageFormatProperties*)(&toCount->formatProperties), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkFenceCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkFenceCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFenceCreateFlags); |
| } |
| |
| void count_VkSemaphoreCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSemaphoreCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSemaphoreCreateFlags); |
| } |
| |
| void count_VkEventCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkEventCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkEventCreateFlags); |
| } |
| |
| void count_VkQueryPoolCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkQueryPoolCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkQueryPoolCreateFlags); |
| *count += sizeof(VkQueryType); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkQueryPipelineStatisticFlags); |
| } |
| |
| void count_VkBufferCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkBufferCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBufferCreateFlags); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkBufferUsageFlags); |
| *count += sizeof(VkSharingMode); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pQueueFamilyIndices) { |
| if (toCount) { |
| *count += toCount->queueFamilyIndexCount * sizeof(const uint32_t); |
| } |
| } |
| } |
| |
| void count_VkBufferViewCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkBufferViewCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBufferViewCreateFlags); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkImageCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkImageCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageCreateFlags); |
| *count += sizeof(VkImageType); |
| *count += sizeof(VkFormat); |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->extent), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkSampleCountFlagBits); |
| *count += sizeof(VkImageTiling); |
| *count += sizeof(VkImageUsageFlags); |
| *count += sizeof(VkSharingMode); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pQueueFamilyIndices) { |
| if (toCount) { |
| *count += toCount->queueFamilyIndexCount * sizeof(const uint32_t); |
| } |
| } |
| *count += sizeof(VkImageLayout); |
| } |
| |
| void count_VkSubresourceLayout(uint32_t featureBits, VkStructureType rootType, |
| const VkSubresourceLayout* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkComponentMapping(uint32_t featureBits, VkStructureType rootType, |
| const VkComponentMapping* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkComponentSwizzle); |
| *count += sizeof(VkComponentSwizzle); |
| *count += sizeof(VkComponentSwizzle); |
| *count += sizeof(VkComponentSwizzle); |
| } |
| |
| void count_VkImageViewCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkImageViewCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageViewCreateFlags); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkImageViewType); |
| *count += sizeof(VkFormat); |
| count_VkComponentMapping(featureBits, rootType, (VkComponentMapping*)(&toCount->components), |
| count); |
| count_VkImageSubresourceRange(featureBits, rootType, |
| (VkImageSubresourceRange*)(&toCount->subresourceRange), count); |
| } |
| |
| void count_VkShaderModuleCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkShaderModuleCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkShaderModuleCreateFlags); |
| *count += 8; |
| if (toCount) { |
| *count += (toCount->codeSize / 4) * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkPipelineCacheCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineCacheCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineCacheCreateFlags); |
| *count += 8; |
| if (toCount) { |
| *count += toCount->initialDataSize * sizeof(const uint8_t); |
| } |
| } |
| |
| void count_VkSpecializationMapEntry(uint32_t featureBits, VkStructureType rootType, |
| const VkSpecializationMapEntry* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += 8; |
| } |
| |
| void count_VkSpecializationInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSpecializationInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->mapEntryCount; ++i) { |
| count_VkSpecializationMapEntry( |
| featureBits, rootType, (const VkSpecializationMapEntry*)(toCount->pMapEntries + i), |
| count); |
| } |
| } |
| *count += 8; |
| if (toCount) { |
| *count += toCount->dataSize * sizeof(const uint8_t); |
| } |
| } |
| |
| void count_VkPipelineShaderStageCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineShaderStageCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineShaderStageCreateFlags); |
| *count += sizeof(VkShaderStageFlagBits); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t) + (toCount->pName ? strlen(toCount->pName) : 0); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pSpecializationInfo) { |
| count_VkSpecializationInfo(featureBits, rootType, |
| (const VkSpecializationInfo*)(toCount->pSpecializationInfo), |
| count); |
| } |
| } |
| |
| void count_VkComputePipelineCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkComputePipelineCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineCreateFlags); |
| count_VkPipelineShaderStageCreateInfo( |
| featureBits, rootType, (VkPipelineShaderStageCreateInfo*)(&toCount->stage), count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(int32_t); |
| } |
| |
| void count_VkVertexInputBindingDescription(uint32_t featureBits, VkStructureType rootType, |
| const VkVertexInputBindingDescription* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkVertexInputRate); |
| } |
| |
| void count_VkVertexInputAttributeDescription(uint32_t featureBits, VkStructureType rootType, |
| const VkVertexInputAttributeDescription* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkFormat); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPipelineVertexInputStateCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineVertexInputStateCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineVertexInputStateCreateFlags); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->vertexBindingDescriptionCount; ++i) { |
| count_VkVertexInputBindingDescription( |
| featureBits, rootType, |
| (const VkVertexInputBindingDescription*)(toCount->pVertexBindingDescriptions + i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->vertexAttributeDescriptionCount; ++i) { |
| count_VkVertexInputAttributeDescription( |
| featureBits, rootType, |
| (const VkVertexInputAttributeDescription*)(toCount->pVertexAttributeDescriptions + |
| i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkPipelineInputAssemblyStateCreateInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineInputAssemblyStateCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineInputAssemblyStateCreateFlags); |
| *count += sizeof(VkPrimitiveTopology); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPipelineTessellationStateCreateInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineTessellationStateCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineTessellationStateCreateFlags); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkViewport(uint32_t featureBits, VkStructureType rootType, const VkViewport* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| } |
| |
| void count_VkPipelineViewportStateCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineViewportStateCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineViewportStateCreateFlags); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pViewports) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->viewportCount; ++i) { |
| count_VkViewport(featureBits, rootType, |
| (const VkViewport*)(toCount->pViewports + i), count); |
| } |
| } |
| } |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pScissors) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->scissorCount; ++i) { |
| count_VkRect2D(featureBits, rootType, (const VkRect2D*)(toCount->pScissors + i), |
| count); |
| } |
| } |
| } |
| } |
| |
| void count_VkPipelineRasterizationStateCreateInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineRasterizationStateCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineRasterizationStateCreateFlags); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkPolygonMode); |
| *count += sizeof(VkCullModeFlags); |
| *count += sizeof(VkFrontFace); |
| *count += sizeof(VkBool32); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| } |
| |
| void count_VkPipelineMultisampleStateCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineMultisampleStateCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineMultisampleStateCreateFlags); |
| *count += sizeof(VkSampleCountFlagBits); |
| *count += sizeof(VkBool32); |
| *count += sizeof(float); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pSampleMask) { |
| if (toCount) { |
| *count += (((toCount->rasterizationSamples) + 31) / 32) * sizeof(const VkSampleMask); |
| } |
| } |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkStencilOpState(uint32_t featureBits, VkStructureType rootType, |
| const VkStencilOpState* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStencilOp); |
| *count += sizeof(VkStencilOp); |
| *count += sizeof(VkStencilOp); |
| *count += sizeof(VkCompareOp); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPipelineDepthStencilStateCreateInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineDepthStencilStateCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineDepthStencilStateCreateFlags); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkCompareOp); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| count_VkStencilOpState(featureBits, rootType, (VkStencilOpState*)(&toCount->front), count); |
| count_VkStencilOpState(featureBits, rootType, (VkStencilOpState*)(&toCount->back), count); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| } |
| |
| void count_VkPipelineColorBlendAttachmentState(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineColorBlendAttachmentState* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBlendFactor); |
| *count += sizeof(VkBlendFactor); |
| *count += sizeof(VkBlendOp); |
| *count += sizeof(VkBlendFactor); |
| *count += sizeof(VkBlendFactor); |
| *count += sizeof(VkBlendOp); |
| *count += sizeof(VkColorComponentFlags); |
| } |
| |
| void count_VkPipelineColorBlendStateCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineColorBlendStateCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineColorBlendStateCreateFlags); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkLogicOp); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->attachmentCount; ++i) { |
| count_VkPipelineColorBlendAttachmentState( |
| featureBits, rootType, |
| (const VkPipelineColorBlendAttachmentState*)(toCount->pAttachments + i), count); |
| } |
| } |
| *count += 4 * sizeof(float); |
| } |
| |
| void count_VkPipelineDynamicStateCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineDynamicStateCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineDynamicStateCreateFlags); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->dynamicStateCount * sizeof(const VkDynamicState); |
| } |
| } |
| |
| void count_VkGraphicsPipelineCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkGraphicsPipelineCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| uint32_t hasRasterization = 1; |
| if (featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| hasRasterization = (((0 == toCount->pRasterizationState)) |
| ? (0) |
| : (!((*(toCount->pRasterizationState)).rasterizerDiscardEnable))); |
| *count += 4; |
| } |
| uint32_t hasTessellation = 1; |
| if (featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| hasTessellation = arrayany( |
| toCount->pStages, 0, toCount->stageCount, [](VkPipelineShaderStageCreateInfo s) { |
| return ((s.stage == VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT) || |
| (s.stage == VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT)); |
| }); |
| *count += 4; |
| } |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineCreateFlags); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->stageCount; ++i) { |
| count_VkPipelineShaderStageCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineShaderStageCreateInfo*)(toCount->pStages + i), count); |
| } |
| } |
| // WARNING PTR CHECK |
| if (featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| *count += 8; |
| } |
| if ((!(featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| toCount->pVertexInputState)) { |
| count_VkPipelineVertexInputStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineVertexInputStateCreateInfo*)(toCount->pVertexInputState), count); |
| } |
| // WARNING PTR CHECK |
| if (featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| *count += 8; |
| } |
| if ((!(featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| toCount->pInputAssemblyState)) { |
| count_VkPipelineInputAssemblyStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineInputAssemblyStateCreateInfo*)(toCount->pInputAssemblyState), count); |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pTessellationState) { |
| if (hasTessellation) { |
| count_VkPipelineTessellationStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineTessellationStateCreateInfo*)(toCount->pTessellationState), count); |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pViewportState) { |
| if (hasRasterization) { |
| count_VkPipelineViewportStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineViewportStateCreateInfo*)(toCount->pViewportState), count); |
| } |
| } |
| // WARNING PTR CHECK |
| if (featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) { |
| *count += 8; |
| } |
| if ((!(featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| toCount->pRasterizationState)) { |
| count_VkPipelineRasterizationStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineRasterizationStateCreateInfo*)(toCount->pRasterizationState), count); |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pMultisampleState) { |
| if (hasRasterization) { |
| count_VkPipelineMultisampleStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineMultisampleStateCreateInfo*)(toCount->pMultisampleState), count); |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pDepthStencilState) { |
| if (hasRasterization) { |
| count_VkPipelineDepthStencilStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineDepthStencilStateCreateInfo*)(toCount->pDepthStencilState), count); |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pColorBlendState) { |
| if (hasRasterization) { |
| count_VkPipelineColorBlendStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineColorBlendStateCreateInfo*)(toCount->pColorBlendState), count); |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pDynamicState) { |
| count_VkPipelineDynamicStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineDynamicStateCreateInfo*)(toCount->pDynamicState), count); |
| } |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_2; |
| *count += 1 * 8; |
| *count += sizeof(int32_t); |
| } |
| |
| void count_VkPushConstantRange(uint32_t featureBits, VkStructureType rootType, |
| const VkPushConstantRange* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkShaderStageFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPipelineLayoutCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineLayoutCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineLayoutCreateFlags); |
| *count += sizeof(uint32_t); |
| if (toCount->setLayoutCount) { |
| *count += toCount->setLayoutCount * 8; |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->pushConstantRangeCount; ++i) { |
| count_VkPushConstantRange( |
| featureBits, rootType, |
| (const VkPushConstantRange*)(toCount->pPushConstantRanges + i), count); |
| } |
| } |
| } |
| |
| void count_VkSamplerCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSamplerCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSamplerCreateFlags); |
| *count += sizeof(VkFilter); |
| *count += sizeof(VkFilter); |
| *count += sizeof(VkSamplerMipmapMode); |
| *count += sizeof(VkSamplerAddressMode); |
| *count += sizeof(VkSamplerAddressMode); |
| *count += sizeof(VkSamplerAddressMode); |
| *count += sizeof(float); |
| *count += sizeof(VkBool32); |
| *count += sizeof(float); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkCompareOp); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(VkBorderColor); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkCopyDescriptorSet(uint32_t featureBits, VkStructureType rootType, |
| const VkCopyDescriptorSet* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDescriptorBufferInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorBufferInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkDescriptorImageInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorImageInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| } |
| |
| void count_VkDescriptorPoolSize(uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorPoolSize* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDescriptorType); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDescriptorPoolCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorPoolCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDescriptorPoolCreateFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->poolSizeCount; ++i) { |
| count_VkDescriptorPoolSize(featureBits, rootType, |
| (const VkDescriptorPoolSize*)(toCount->pPoolSizes + i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkDescriptorSetAllocateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorSetAllocateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| if (toCount->descriptorSetCount) { |
| *count += toCount->descriptorSetCount * 8; |
| } |
| } |
| |
| void count_VkDescriptorSetLayoutBinding(uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorSetLayoutBinding* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkDescriptorType); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkShaderStageFlags); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pImmutableSamplers) { |
| if (toCount->descriptorCount) { |
| *count += toCount->descriptorCount * 8; |
| } |
| } |
| } |
| |
| void count_VkDescriptorSetLayoutCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorSetLayoutCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDescriptorSetLayoutCreateFlags); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->bindingCount; ++i) { |
| count_VkDescriptorSetLayoutBinding( |
| featureBits, rootType, |
| (const VkDescriptorSetLayoutBinding*)(toCount->pBindings + i), count); |
| } |
| } |
| } |
| |
| void count_VkWriteDescriptorSet(uint32_t featureBits, VkStructureType rootType, |
| const VkWriteDescriptorSet* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkDescriptorType); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pImageInfo) { |
| if ((!(featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| ((VK_DESCRIPTOR_TYPE_SAMPLER == toCount->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER == toCount->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE == toCount->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_IMAGE == toCount->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT == toCount->descriptorType)))) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->descriptorCount; ++i) { |
| count_VkDescriptorImageInfo( |
| featureBits, rootType, |
| (const VkDescriptorImageInfo*)(toCount->pImageInfo + i), count); |
| } |
| } |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pBufferInfo) { |
| if ((!(featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| ((VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER == toCount->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC == toCount->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_BUFFER == toCount->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC == toCount->descriptorType)))) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->descriptorCount; ++i) { |
| count_VkDescriptorBufferInfo( |
| featureBits, rootType, |
| (const VkDescriptorBufferInfo*)(toCount->pBufferInfo + i), count); |
| } |
| } |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pTexelBufferView) { |
| if ((!(featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| ((VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER == toCount->descriptorType) || |
| (VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER == toCount->descriptorType)))) { |
| if (toCount->descriptorCount) { |
| *count += toCount->descriptorCount * 8; |
| } |
| } |
| } |
| } |
| |
| void count_VkAttachmentDescription(uint32_t featureBits, VkStructureType rootType, |
| const VkAttachmentDescription* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkAttachmentDescriptionFlags); |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkSampleCountFlagBits); |
| *count += sizeof(VkAttachmentLoadOp); |
| *count += sizeof(VkAttachmentStoreOp); |
| *count += sizeof(VkAttachmentLoadOp); |
| *count += sizeof(VkAttachmentStoreOp); |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(VkImageLayout); |
| } |
| |
| void count_VkAttachmentReference(uint32_t featureBits, VkStructureType rootType, |
| const VkAttachmentReference* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkImageLayout); |
| } |
| |
| void count_VkFramebufferCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkFramebufferCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFramebufferCreateFlags); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| if ((!(featureBits & VULKAN_STREAM_FEATURE_IGNORED_HANDLES_BIT) || |
| (((toCount->flags & VK_FRAMEBUFFER_CREATE_IMAGELESS_BIT) == 0)))) { |
| if (toCount->attachmentCount) { |
| *count += toCount->attachmentCount * 8; |
| } |
| } |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkSubpassDescription(uint32_t featureBits, VkStructureType rootType, |
| const VkSubpassDescription* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkSubpassDescriptionFlags); |
| *count += sizeof(VkPipelineBindPoint); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->inputAttachmentCount; ++i) { |
| count_VkAttachmentReference( |
| featureBits, rootType, |
| (const VkAttachmentReference*)(toCount->pInputAttachments + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->colorAttachmentCount; ++i) { |
| count_VkAttachmentReference( |
| featureBits, rootType, |
| (const VkAttachmentReference*)(toCount->pColorAttachments + i), count); |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pResolveAttachments) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->colorAttachmentCount; ++i) { |
| count_VkAttachmentReference( |
| featureBits, rootType, |
| (const VkAttachmentReference*)(toCount->pResolveAttachments + i), count); |
| } |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pDepthStencilAttachment) { |
| count_VkAttachmentReference( |
| featureBits, rootType, (const VkAttachmentReference*)(toCount->pDepthStencilAttachment), |
| count); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->preserveAttachmentCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkSubpassDependency(uint32_t featureBits, VkStructureType rootType, |
| const VkSubpassDependency* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkPipelineStageFlags); |
| *count += sizeof(VkPipelineStageFlags); |
| *count += sizeof(VkAccessFlags); |
| *count += sizeof(VkAccessFlags); |
| *count += sizeof(VkDependencyFlags); |
| } |
| |
| void count_VkRenderPassCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkRenderPassCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkRenderPassCreateFlags); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->attachmentCount; ++i) { |
| count_VkAttachmentDescription( |
| featureBits, rootType, (const VkAttachmentDescription*)(toCount->pAttachments + i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->subpassCount; ++i) { |
| count_VkSubpassDescription(featureBits, rootType, |
| (const VkSubpassDescription*)(toCount->pSubpasses + i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->dependencyCount; ++i) { |
| count_VkSubpassDependency(featureBits, rootType, |
| (const VkSubpassDependency*)(toCount->pDependencies + i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkCommandPoolCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkCommandPoolCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkCommandPoolCreateFlags); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkCommandBufferAllocateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkCommandBufferAllocateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkCommandBufferLevel); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkCommandBufferInheritanceInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkCommandBufferInheritanceInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkQueryControlFlags); |
| *count += sizeof(VkQueryPipelineStatisticFlags); |
| } |
| |
| void count_VkCommandBufferBeginInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkCommandBufferBeginInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkCommandBufferUsageFlags); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pInheritanceInfo) { |
| count_VkCommandBufferInheritanceInfo( |
| featureBits, rootType, |
| (const VkCommandBufferInheritanceInfo*)(toCount->pInheritanceInfo), count); |
| } |
| } |
| |
| void count_VkBufferCopy(uint32_t featureBits, VkStructureType rootType, const VkBufferCopy* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkImageSubresourceLayers(uint32_t featureBits, VkStructureType rootType, |
| const VkImageSubresourceLayers* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkImageAspectFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkBufferImageCopy(uint32_t featureBits, VkStructureType rootType, |
| const VkBufferImageCopy* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->imageSubresource), count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->imageOffset), count); |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->imageExtent), count); |
| } |
| |
| void count_VkClearColorValue(uint32_t featureBits, VkStructureType rootType, |
| const VkClearColorValue* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += 4 * sizeof(float); |
| } |
| |
| void count_VkClearDepthStencilValue(uint32_t featureBits, VkStructureType rootType, |
| const VkClearDepthStencilValue* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(float); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkClearValue(uint32_t featureBits, VkStructureType rootType, const VkClearValue* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkClearColorValue(featureBits, rootType, (VkClearColorValue*)(&toCount->color), count); |
| } |
| |
| void count_VkClearAttachment(uint32_t featureBits, VkStructureType rootType, |
| const VkClearAttachment* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkImageAspectFlags); |
| *count += sizeof(uint32_t); |
| count_VkClearValue(featureBits, rootType, (VkClearValue*)(&toCount->clearValue), count); |
| } |
| |
| void count_VkClearRect(uint32_t featureBits, VkStructureType rootType, const VkClearRect* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkRect2D(featureBits, rootType, (VkRect2D*)(&toCount->rect), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkImageBlit(uint32_t featureBits, VkStructureType rootType, const VkImageBlit* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->srcSubresource), count); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(toCount->srcOffsets + i), count); |
| } |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->dstSubresource), count); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(toCount->dstOffsets + i), count); |
| } |
| } |
| |
| void count_VkImageCopy(uint32_t featureBits, VkStructureType rootType, const VkImageCopy* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->srcSubresource), count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->srcOffset), count); |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->dstSubresource), count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->dstOffset), count); |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->extent), count); |
| } |
| |
| void count_VkImageResolve(uint32_t featureBits, VkStructureType rootType, |
| const VkImageResolve* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->srcSubresource), count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->srcOffset), count); |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->dstSubresource), count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->dstOffset), count); |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->extent), count); |
| } |
| |
| void count_VkRenderPassBeginInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkRenderPassBeginInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| count_VkRect2D(featureBits, rootType, (VkRect2D*)(&toCount->renderArea), count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pClearValues) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->clearValueCount; ++i) { |
| count_VkClearValue(featureBits, rootType, |
| (const VkClearValue*)(toCount->pClearValues + i), count); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_VERSION_1_1 |
| void count_VkPhysicalDeviceSubgroupProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSubgroupProperties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkShaderStageFlags); |
| *count += sizeof(VkSubgroupFeatureFlags); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkBindBufferMemoryInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkBindBufferMemoryInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkBindImageMemoryInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkBindImageMemoryInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkPhysicalDevice16BitStorageFeatures(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevice16BitStorageFeatures* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkMemoryDedicatedRequirements(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryDedicatedRequirements* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkMemoryDedicatedAllocateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryDedicatedAllocateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| } |
| |
| void count_VkMemoryAllocateFlagsInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryAllocateFlagsInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkMemoryAllocateFlags); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDeviceGroupRenderPassBeginInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceGroupRenderPassBeginInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->deviceRenderAreaCount; ++i) { |
| count_VkRect2D(featureBits, rootType, |
| (const VkRect2D*)(toCount->pDeviceRenderAreas + i), count); |
| } |
| } |
| } |
| |
| void count_VkDeviceGroupCommandBufferBeginInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceGroupCommandBufferBeginInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDeviceGroupSubmitInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceGroupSubmitInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->waitSemaphoreCount * sizeof(const uint32_t); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->commandBufferCount * sizeof(const uint32_t); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->signalSemaphoreCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkDeviceGroupBindSparseInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceGroupBindSparseInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkBindBufferMemoryDeviceGroupInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkBindBufferMemoryDeviceGroupInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->deviceIndexCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkBindImageMemoryDeviceGroupInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkBindImageMemoryDeviceGroupInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->deviceIndexCount * sizeof(const uint32_t); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->splitInstanceBindRegionCount; ++i) { |
| count_VkRect2D(featureBits, rootType, |
| (const VkRect2D*)(toCount->pSplitInstanceBindRegions + i), count); |
| } |
| } |
| } |
| |
| void count_VkPhysicalDeviceGroupProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceGroupProperties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += VK_MAX_DEVICE_GROUP_SIZE * sizeof(VkPhysicalDevice); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkDeviceGroupDeviceCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceGroupDeviceCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount->physicalDeviceCount) { |
| *count += toCount->physicalDeviceCount * 8; |
| } |
| } |
| |
| void count_VkBufferMemoryRequirementsInfo2(uint32_t featureBits, VkStructureType rootType, |
| const VkBufferMemoryRequirementsInfo2* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkImageMemoryRequirementsInfo2(uint32_t featureBits, VkStructureType rootType, |
| const VkImageMemoryRequirementsInfo2* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkImageSparseMemoryRequirementsInfo2(uint32_t featureBits, VkStructureType rootType, |
| const VkImageSparseMemoryRequirementsInfo2* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkMemoryRequirements2(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryRequirements2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkMemoryRequirements(featureBits, rootType, |
| (VkMemoryRequirements*)(&toCount->memoryRequirements), count); |
| } |
| |
| void count_VkSparseImageMemoryRequirements2(uint32_t featureBits, VkStructureType rootType, |
| const VkSparseImageMemoryRequirements2* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkSparseImageMemoryRequirements( |
| featureBits, rootType, (VkSparseImageMemoryRequirements*)(&toCount->memoryRequirements), |
| count); |
| } |
| |
| void count_VkPhysicalDeviceFeatures2(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFeatures2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkPhysicalDeviceFeatures(featureBits, rootType, |
| (VkPhysicalDeviceFeatures*)(&toCount->features), count); |
| } |
| |
| void count_VkPhysicalDeviceProperties2(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceProperties2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkPhysicalDeviceProperties(featureBits, rootType, |
| (VkPhysicalDeviceProperties*)(&toCount->properties), count); |
| } |
| |
| void count_VkFormatProperties2(uint32_t featureBits, VkStructureType rootType, |
| const VkFormatProperties2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkFormatProperties(featureBits, rootType, |
| (VkFormatProperties*)(&toCount->formatProperties), count); |
| } |
| |
| void count_VkImageFormatProperties2(uint32_t featureBits, VkStructureType rootType, |
| const VkImageFormatProperties2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkImageFormatProperties( |
| featureBits, rootType, (VkImageFormatProperties*)(&toCount->imageFormatProperties), count); |
| } |
| |
| void count_VkPhysicalDeviceImageFormatInfo2(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceImageFormatInfo2* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkImageType); |
| *count += sizeof(VkImageTiling); |
| *count += sizeof(VkImageUsageFlags); |
| *count += sizeof(VkImageCreateFlags); |
| } |
| |
| void count_VkQueueFamilyProperties2(uint32_t featureBits, VkStructureType rootType, |
| const VkQueueFamilyProperties2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkQueueFamilyProperties( |
| featureBits, rootType, (VkQueueFamilyProperties*)(&toCount->queueFamilyProperties), count); |
| } |
| |
| void count_VkPhysicalDeviceMemoryProperties2(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMemoryProperties2* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkPhysicalDeviceMemoryProperties( |
| featureBits, rootType, (VkPhysicalDeviceMemoryProperties*)(&toCount->memoryProperties), |
| count); |
| } |
| |
| void count_VkSparseImageFormatProperties2(uint32_t featureBits, VkStructureType rootType, |
| const VkSparseImageFormatProperties2* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkSparseImageFormatProperties( |
| featureBits, rootType, (VkSparseImageFormatProperties*)(&toCount->properties), count); |
| } |
| |
| void count_VkPhysicalDeviceSparseImageFormatInfo2( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSparseImageFormatInfo2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkImageType); |
| *count += sizeof(VkSampleCountFlagBits); |
| *count += sizeof(VkImageUsageFlags); |
| *count += sizeof(VkImageTiling); |
| } |
| |
| void count_VkPhysicalDevicePointClippingProperties( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePointClippingProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPointClippingBehavior); |
| } |
| |
| void count_VkInputAttachmentAspectReference(uint32_t featureBits, VkStructureType rootType, |
| const VkInputAttachmentAspectReference* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkImageAspectFlags); |
| } |
| |
| void count_VkRenderPassInputAttachmentAspectCreateInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkRenderPassInputAttachmentAspectCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->aspectReferenceCount; ++i) { |
| count_VkInputAttachmentAspectReference( |
| featureBits, rootType, |
| (const VkInputAttachmentAspectReference*)(toCount->pAspectReferences + i), count); |
| } |
| } |
| } |
| |
| void count_VkImageViewUsageCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkImageViewUsageCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageUsageFlags); |
| } |
| |
| void count_VkPipelineTessellationDomainOriginStateCreateInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineTessellationDomainOriginStateCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkTessellationDomainOrigin); |
| } |
| |
| void count_VkRenderPassMultiviewCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkRenderPassMultiviewCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->subpassCount * sizeof(const uint32_t); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->dependencyCount * sizeof(const int32_t); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->correlationMaskCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkPhysicalDeviceMultiviewFeatures(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMultiviewFeatures* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceMultiviewProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMultiviewProperties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPhysicalDeviceVariablePointersFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceVariablePointersFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceProtectedMemoryFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceProtectedMemoryFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceProtectedMemoryProperties( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceProtectedMemoryProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkDeviceQueueInfo2(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceQueueInfo2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceQueueCreateFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkProtectedSubmitInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkProtectedSubmitInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkSamplerYcbcrConversionCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSamplerYcbcrConversionCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkSamplerYcbcrModelConversion); |
| *count += sizeof(VkSamplerYcbcrRange); |
| count_VkComponentMapping(featureBits, rootType, (VkComponentMapping*)(&toCount->components), |
| count); |
| *count += sizeof(VkChromaLocation); |
| *count += sizeof(VkChromaLocation); |
| *count += sizeof(VkFilter); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkSamplerYcbcrConversionInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSamplerYcbcrConversionInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkBindImagePlaneMemoryInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkBindImagePlaneMemoryInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageAspectFlagBits); |
| } |
| |
| void count_VkImagePlaneMemoryRequirementsInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkImagePlaneMemoryRequirementsInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageAspectFlagBits); |
| } |
| |
| void count_VkPhysicalDeviceSamplerYcbcrConversionFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSamplerYcbcrConversionFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkSamplerYcbcrConversionImageFormatProperties( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkSamplerYcbcrConversionImageFormatProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDescriptorUpdateTemplateEntry(uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorUpdateTemplateEntry* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkDescriptorType); |
| *count += 8; |
| *count += 8; |
| } |
| |
| void count_VkDescriptorUpdateTemplateCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorUpdateTemplateCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDescriptorUpdateTemplateCreateFlags); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->descriptorUpdateEntryCount; ++i) { |
| count_VkDescriptorUpdateTemplateEntry( |
| featureBits, rootType, |
| (const VkDescriptorUpdateTemplateEntry*)(toCount->pDescriptorUpdateEntries + i), |
| count); |
| } |
| } |
| *count += sizeof(VkDescriptorUpdateTemplateType); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkPipelineBindPoint); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkExternalMemoryProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkExternalMemoryProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkExternalMemoryFeatureFlags); |
| *count += sizeof(VkExternalMemoryHandleTypeFlags); |
| *count += sizeof(VkExternalMemoryHandleTypeFlags); |
| } |
| |
| void count_VkPhysicalDeviceExternalImageFormatInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceExternalImageFormatInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalMemoryHandleTypeFlagBits); |
| } |
| |
| void count_VkExternalImageFormatProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkExternalImageFormatProperties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkExternalMemoryProperties( |
| featureBits, rootType, (VkExternalMemoryProperties*)(&toCount->externalMemoryProperties), |
| count); |
| } |
| |
| void count_VkPhysicalDeviceExternalBufferInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceExternalBufferInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBufferCreateFlags); |
| *count += sizeof(VkBufferUsageFlags); |
| *count += sizeof(VkExternalMemoryHandleTypeFlagBits); |
| } |
| |
| void count_VkExternalBufferProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkExternalBufferProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkExternalMemoryProperties( |
| featureBits, rootType, (VkExternalMemoryProperties*)(&toCount->externalMemoryProperties), |
| count); |
| } |
| |
| void count_VkPhysicalDeviceIDProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceIDProperties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += VK_UUID_SIZE * sizeof(uint8_t); |
| *count += VK_UUID_SIZE * sizeof(uint8_t); |
| *count += VK_LUID_SIZE * sizeof(uint8_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkExternalMemoryImageCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkExternalMemoryImageCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalMemoryHandleTypeFlags); |
| } |
| |
| void count_VkExternalMemoryBufferCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkExternalMemoryBufferCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalMemoryHandleTypeFlags); |
| } |
| |
| void count_VkExportMemoryAllocateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkExportMemoryAllocateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalMemoryHandleTypeFlags); |
| } |
| |
| void count_VkPhysicalDeviceExternalFenceInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceExternalFenceInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalFenceHandleTypeFlagBits); |
| } |
| |
| void count_VkExternalFenceProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkExternalFenceProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalFenceHandleTypeFlags); |
| *count += sizeof(VkExternalFenceHandleTypeFlags); |
| *count += sizeof(VkExternalFenceFeatureFlags); |
| } |
| |
| void count_VkExportFenceCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkExportFenceCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalFenceHandleTypeFlags); |
| } |
| |
| void count_VkExportSemaphoreCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkExportSemaphoreCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalSemaphoreHandleTypeFlags); |
| } |
| |
| void count_VkPhysicalDeviceExternalSemaphoreInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceExternalSemaphoreInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalSemaphoreHandleTypeFlagBits); |
| } |
| |
| void count_VkExternalSemaphoreProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkExternalSemaphoreProperties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalSemaphoreHandleTypeFlags); |
| *count += sizeof(VkExternalSemaphoreHandleTypeFlags); |
| *count += sizeof(VkExternalSemaphoreFeatureFlags); |
| } |
| |
| void count_VkPhysicalDeviceMaintenance3Properties( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMaintenance3Properties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkDescriptorSetLayoutSupport(uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorSetLayoutSupport* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceShaderDrawParametersFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderDrawParametersFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_VERSION_1_2 |
| void count_VkPhysicalDeviceVulkan11Features(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan11Features* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceVulkan11Properties(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan11Properties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += VK_UUID_SIZE * sizeof(uint8_t); |
| *count += VK_UUID_SIZE * sizeof(uint8_t); |
| *count += VK_LUID_SIZE * sizeof(uint8_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkShaderStageFlags); |
| *count += sizeof(VkSubgroupFeatureFlags); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkPointClippingBehavior); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkPhysicalDeviceVulkan12Features(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan12Features* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkConformanceVersion(uint32_t featureBits, VkStructureType rootType, |
| const VkConformanceVersion* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| } |
| |
| void count_VkPhysicalDeviceVulkan12Properties(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceVulkan12Properties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDriverId); |
| *count += VK_MAX_DRIVER_NAME_SIZE * sizeof(char); |
| *count += VK_MAX_DRIVER_INFO_SIZE * sizeof(char); |
| count_VkConformanceVersion(featureBits, rootType, |
| (VkConformanceVersion*)(&toCount->conformanceVersion), count); |
| *count += sizeof(VkShaderFloatControlsIndependence); |
| *count += sizeof(VkShaderFloatControlsIndependence); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkResolveModeFlags); |
| *count += sizeof(VkResolveModeFlags); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint64_t); |
| *count += sizeof(VkSampleCountFlags); |
| } |
| |
| void count_VkImageFormatListCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkImageFormatListCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->viewFormatCount * sizeof(const VkFormat); |
| } |
| } |
| |
| void count_VkAttachmentDescription2(uint32_t featureBits, VkStructureType rootType, |
| const VkAttachmentDescription2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkAttachmentDescriptionFlags); |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkSampleCountFlagBits); |
| *count += sizeof(VkAttachmentLoadOp); |
| *count += sizeof(VkAttachmentStoreOp); |
| *count += sizeof(VkAttachmentLoadOp); |
| *count += sizeof(VkAttachmentStoreOp); |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(VkImageLayout); |
| } |
| |
| void count_VkAttachmentReference2(uint32_t featureBits, VkStructureType rootType, |
| const VkAttachmentReference2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(VkImageAspectFlags); |
| } |
| |
| void count_VkSubpassDescription2(uint32_t featureBits, VkStructureType rootType, |
| const VkSubpassDescription2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSubpassDescriptionFlags); |
| *count += sizeof(VkPipelineBindPoint); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->inputAttachmentCount; ++i) { |
| count_VkAttachmentReference2( |
| featureBits, rootType, |
| (const VkAttachmentReference2*)(toCount->pInputAttachments + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->colorAttachmentCount; ++i) { |
| count_VkAttachmentReference2( |
| featureBits, rootType, |
| (const VkAttachmentReference2*)(toCount->pColorAttachments + i), count); |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pResolveAttachments) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->colorAttachmentCount; ++i) { |
| count_VkAttachmentReference2( |
| featureBits, rootType, |
| (const VkAttachmentReference2*)(toCount->pResolveAttachments + i), count); |
| } |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pDepthStencilAttachment) { |
| count_VkAttachmentReference2( |
| featureBits, rootType, |
| (const VkAttachmentReference2*)(toCount->pDepthStencilAttachment), count); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->preserveAttachmentCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkSubpassDependency2(uint32_t featureBits, VkStructureType rootType, |
| const VkSubpassDependency2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkPipelineStageFlags); |
| *count += sizeof(VkPipelineStageFlags); |
| *count += sizeof(VkAccessFlags); |
| *count += sizeof(VkAccessFlags); |
| *count += sizeof(VkDependencyFlags); |
| *count += sizeof(int32_t); |
| } |
| |
| void count_VkRenderPassCreateInfo2(uint32_t featureBits, VkStructureType rootType, |
| const VkRenderPassCreateInfo2* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkRenderPassCreateFlags); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->attachmentCount; ++i) { |
| count_VkAttachmentDescription2( |
| featureBits, rootType, (const VkAttachmentDescription2*)(toCount->pAttachments + i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->subpassCount; ++i) { |
| count_VkSubpassDescription2(featureBits, rootType, |
| (const VkSubpassDescription2*)(toCount->pSubpasses + i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->dependencyCount; ++i) { |
| count_VkSubpassDependency2(featureBits, rootType, |
| (const VkSubpassDependency2*)(toCount->pDependencies + i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->correlatedViewMaskCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkSubpassBeginInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSubpassBeginInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSubpassContents); |
| } |
| |
| void count_VkSubpassEndInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSubpassEndInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| } |
| |
| void count_VkPhysicalDevice8BitStorageFeatures(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevice8BitStorageFeatures* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceDriverProperties(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDriverProperties* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDriverId); |
| *count += VK_MAX_DRIVER_NAME_SIZE * sizeof(char); |
| *count += VK_MAX_DRIVER_INFO_SIZE * sizeof(char); |
| count_VkConformanceVersion(featureBits, rootType, |
| (VkConformanceVersion*)(&toCount->conformanceVersion), count); |
| } |
| |
| void count_VkPhysicalDeviceShaderAtomicInt64Features( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderAtomicInt64Features* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceShaderFloat16Int8Features( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderFloat16Int8Features* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceFloatControlsProperties( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFloatControlsProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkShaderFloatControlsIndependence); |
| *count += sizeof(VkShaderFloatControlsIndependence); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkDescriptorSetLayoutBindingFlagsCreateInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorSetLayoutBindingFlagsCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pBindingFlags) { |
| if (toCount) { |
| *count += toCount->bindingCount * sizeof(const VkDescriptorBindingFlags); |
| } |
| } |
| } |
| |
| void count_VkPhysicalDeviceDescriptorIndexingFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDescriptorIndexingFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceDescriptorIndexingProperties( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDescriptorIndexingProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDescriptorSetVariableDescriptorCountAllocateInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorSetVariableDescriptorCountAllocateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->descriptorSetCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkDescriptorSetVariableDescriptorCountLayoutSupport( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorSetVariableDescriptorCountLayoutSupport* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkSubpassDescriptionDepthStencilResolve( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkSubpassDescriptionDepthStencilResolve* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkResolveModeFlagBits); |
| *count += sizeof(VkResolveModeFlagBits); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pDepthStencilResolveAttachment) { |
| count_VkAttachmentReference2( |
| featureBits, rootType, |
| (const VkAttachmentReference2*)(toCount->pDepthStencilResolveAttachment), count); |
| } |
| } |
| |
| void count_VkPhysicalDeviceDepthStencilResolveProperties( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDepthStencilResolveProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkResolveModeFlags); |
| *count += sizeof(VkResolveModeFlags); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceScalarBlockLayoutFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceScalarBlockLayoutFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkImageStencilUsageCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkImageStencilUsageCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageUsageFlags); |
| } |
| |
| void count_VkSamplerReductionModeCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSamplerReductionModeCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSamplerReductionMode); |
| } |
| |
| void count_VkPhysicalDeviceSamplerFilterMinmaxProperties( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSamplerFilterMinmaxProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceVulkanMemoryModelFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceVulkanMemoryModelFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceImagelessFramebufferFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceImagelessFramebufferFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkFramebufferAttachmentImageInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkFramebufferAttachmentImageInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageCreateFlags); |
| *count += sizeof(VkImageUsageFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->viewFormatCount * sizeof(const VkFormat); |
| } |
| } |
| |
| void count_VkFramebufferAttachmentsCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkFramebufferAttachmentsCreateInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->attachmentImageInfoCount; ++i) { |
| count_VkFramebufferAttachmentImageInfo( |
| featureBits, rootType, |
| (const VkFramebufferAttachmentImageInfo*)(toCount->pAttachmentImageInfos + i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkRenderPassAttachmentBeginInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkRenderPassAttachmentBeginInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount->attachmentCount) { |
| *count += toCount->attachmentCount * 8; |
| } |
| } |
| |
| void count_VkPhysicalDeviceUniformBufferStandardLayoutFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceUniformBufferStandardLayoutFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderSubgroupExtendedTypesFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSeparateDepthStencilLayoutsFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkAttachmentReferenceStencilLayout(uint32_t featureBits, VkStructureType rootType, |
| const VkAttachmentReferenceStencilLayout* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageLayout); |
| } |
| |
| void count_VkAttachmentDescriptionStencilLayout(uint32_t featureBits, VkStructureType rootType, |
| const VkAttachmentDescriptionStencilLayout* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(VkImageLayout); |
| } |
| |
| void count_VkPhysicalDeviceHostQueryResetFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceHostQueryResetFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceTimelineSemaphoreFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceTimelineSemaphoreFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceTimelineSemaphoreProperties( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceTimelineSemaphoreProperties* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkSemaphoreTypeCreateInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSemaphoreTypeCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSemaphoreType); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkTimelineSemaphoreSubmitInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkTimelineSemaphoreSubmitInfo* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pWaitSemaphoreValues) { |
| if (toCount) { |
| *count += toCount->waitSemaphoreValueCount * sizeof(const uint64_t); |
| } |
| } |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pSignalSemaphoreValues) { |
| if (toCount) { |
| *count += toCount->signalSemaphoreValueCount * sizeof(const uint64_t); |
| } |
| } |
| } |
| |
| void count_VkSemaphoreWaitInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSemaphoreWaitInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSemaphoreWaitFlags); |
| *count += sizeof(uint32_t); |
| if (toCount->semaphoreCount) { |
| *count += toCount->semaphoreCount * 8; |
| } |
| if (toCount) { |
| *count += toCount->semaphoreCount * sizeof(const uint64_t); |
| } |
| } |
| |
| void count_VkSemaphoreSignalInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkSemaphoreSignalInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkPhysicalDeviceBufferDeviceAddressFeatures( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceBufferDeviceAddressFeatures* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkBufferDeviceAddressInfo(uint32_t featureBits, VkStructureType rootType, |
| const VkBufferDeviceAddressInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkBufferOpaqueCaptureAddressCreateInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkBufferOpaqueCaptureAddressCreateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkMemoryOpaqueCaptureAddressAllocateInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryOpaqueCaptureAddressAllocateInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkDeviceMemoryOpaqueCaptureAddressInfo( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceMemoryOpaqueCaptureAddressInfo* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| #endif |
| #ifdef VK_KHR_surface |
| void count_VkSurfaceCapabilitiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkSurfaceCapabilitiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->currentExtent), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->minImageExtent), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxImageExtent), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkSurfaceTransformFlagsKHR); |
| *count += sizeof(VkSurfaceTransformFlagBitsKHR); |
| *count += sizeof(VkCompositeAlphaFlagsKHR); |
| *count += sizeof(VkImageUsageFlags); |
| } |
| |
| void count_VkSurfaceFormatKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkSurfaceFormatKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkColorSpaceKHR); |
| } |
| |
| #endif |
| #ifdef VK_KHR_swapchain |
| void count_VkSwapchainCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkSwapchainCreateInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSwapchainCreateFlagsKHR); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkColorSpaceKHR); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->imageExtent), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkImageUsageFlags); |
| *count += sizeof(VkSharingMode); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pQueueFamilyIndices) { |
| if (toCount) { |
| *count += toCount->queueFamilyIndexCount * sizeof(const uint32_t); |
| } |
| } |
| *count += sizeof(VkSurfaceTransformFlagBitsKHR); |
| *count += sizeof(VkCompositeAlphaFlagBitsKHR); |
| *count += sizeof(VkPresentModeKHR); |
| *count += sizeof(VkBool32); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| } |
| |
| void count_VkPresentInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPresentInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount->waitSemaphoreCount) { |
| *count += toCount->waitSemaphoreCount * 8; |
| } |
| *count += sizeof(uint32_t); |
| if (toCount->swapchainCount) { |
| *count += toCount->swapchainCount * 8; |
| } |
| if (toCount) { |
| *count += toCount->swapchainCount * sizeof(const uint32_t); |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pResults) { |
| if (toCount) { |
| *count += toCount->swapchainCount * sizeof(VkResult); |
| } |
| } |
| } |
| |
| void count_VkImageSwapchainCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImageSwapchainCreateInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkBindImageMemorySwapchainInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkBindImageMemorySwapchainInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkAcquireNextImageInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkAcquireNextImageInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint64_t); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| uint64_t cgen_var_2; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDeviceGroupPresentCapabilitiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceGroupPresentCapabilitiesKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += VK_MAX_DEVICE_GROUP_SIZE * sizeof(uint32_t); |
| *count += sizeof(VkDeviceGroupPresentModeFlagsKHR); |
| } |
| |
| void count_VkDeviceGroupPresentInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceGroupPresentInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->swapchainCount * sizeof(const uint32_t); |
| } |
| *count += sizeof(VkDeviceGroupPresentModeFlagBitsKHR); |
| } |
| |
| void count_VkDeviceGroupSwapchainCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceGroupSwapchainCreateInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceGroupPresentModeFlagsKHR); |
| } |
| |
| #endif |
| #ifdef VK_KHR_display |
| void count_VkDisplayModeParametersKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayModeParametersKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->visibleRegion), count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDisplayModeCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayModeCreateInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDisplayModeCreateFlagsKHR); |
| count_VkDisplayModeParametersKHR(featureBits, rootType, |
| (VkDisplayModeParametersKHR*)(&toCount->parameters), count); |
| } |
| |
| void count_VkDisplayModePropertiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayModePropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| count_VkDisplayModeParametersKHR(featureBits, rootType, |
| (VkDisplayModeParametersKHR*)(&toCount->parameters), count); |
| } |
| |
| void count_VkDisplayPlaneCapabilitiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayPlaneCapabilitiesKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDisplayPlaneAlphaFlagsKHR); |
| count_VkOffset2D(featureBits, rootType, (VkOffset2D*)(&toCount->minSrcPosition), count); |
| count_VkOffset2D(featureBits, rootType, (VkOffset2D*)(&toCount->maxSrcPosition), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->minSrcExtent), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxSrcExtent), count); |
| count_VkOffset2D(featureBits, rootType, (VkOffset2D*)(&toCount->minDstPosition), count); |
| count_VkOffset2D(featureBits, rootType, (VkOffset2D*)(&toCount->maxDstPosition), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->minDstExtent), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxDstExtent), count); |
| } |
| |
| void count_VkDisplayPlanePropertiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayPlanePropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDisplayPropertiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayPropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t) + (toCount->displayName ? strlen(toCount->displayName) : 0); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->physicalDimensions), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->physicalResolution), count); |
| *count += sizeof(VkSurfaceTransformFlagsKHR); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkDisplaySurfaceCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplaySurfaceCreateInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDisplaySurfaceCreateFlagsKHR); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkSurfaceTransformFlagBitsKHR); |
| *count += sizeof(float); |
| *count += sizeof(VkDisplayPlaneAlphaFlagBitsKHR); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->imageExtent), count); |
| } |
| |
| #endif |
| #ifdef VK_KHR_display_swapchain |
| void count_VkDisplayPresentInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayPresentInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkRect2D(featureBits, rootType, (VkRect2D*)(&toCount->srcRect), count); |
| count_VkRect2D(featureBits, rootType, (VkRect2D*)(&toCount->dstRect), count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_xlib_surface |
| void count_VkXlibSurfaceCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkXlibSurfaceCreateInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkXlibSurfaceCreateFlagsKHR); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->dpy) { |
| *count += sizeof(Display); |
| } |
| *count += sizeof(Window); |
| } |
| |
| #endif |
| #ifdef VK_KHR_xcb_surface |
| void count_VkXcbSurfaceCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkXcbSurfaceCreateInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkXcbSurfaceCreateFlagsKHR); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->connection) { |
| *count += sizeof(xcb_connection_t); |
| } |
| *count += sizeof(xcb_window_t); |
| } |
| |
| #endif |
| #ifdef VK_KHR_wayland_surface |
| void count_VkWaylandSurfaceCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkWaylandSurfaceCreateInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkWaylandSurfaceCreateFlagsKHR); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->display) { |
| *count += sizeof(wl_display); |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->surface) { |
| *count += sizeof(wl_surface); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_android_surface |
| void count_VkAndroidSurfaceCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkAndroidSurfaceCreateInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkAndroidSurfaceCreateFlagsKHR); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->window) { |
| *count += sizeof(ANativeWindow); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_win32_surface |
| void count_VkWin32SurfaceCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkWin32SurfaceCreateInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkWin32SurfaceCreateFlagsKHR); |
| *count += sizeof(HINSTANCE); |
| *count += sizeof(HWND); |
| } |
| |
| #endif |
| #ifdef VK_KHR_sampler_mirror_clamp_to_edge |
| #endif |
| #ifdef VK_KHR_video_queue |
| void count_VkVideoQueueFamilyProperties2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoQueueFamilyProperties2KHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoCodecOperationFlagsKHR); |
| } |
| |
| void count_VkVideoProfileKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoProfileKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoCodecOperationFlagBitsKHR); |
| *count += sizeof(VkVideoChromaSubsamplingFlagsKHR); |
| *count += sizeof(VkVideoComponentBitDepthFlagsKHR); |
| *count += sizeof(VkVideoComponentBitDepthFlagsKHR); |
| } |
| |
| void count_VkVideoProfilesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoProfilesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| count_VkVideoProfileKHR(featureBits, rootType, (const VkVideoProfileKHR*)(toCount->pProfiles), |
| count); |
| } |
| |
| void count_VkVideoCapabilitiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoCapabilitiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoCapabilityFlagsKHR); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->videoPictureExtentGranularity), |
| count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->minExtent), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxExtent), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPhysicalDeviceVideoFormatInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceVideoFormatInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageUsageFlags); |
| count_VkVideoProfilesKHR(featureBits, rootType, |
| (const VkVideoProfilesKHR*)(toCount->pVideoProfiles), count); |
| } |
| |
| void count_VkVideoFormatPropertiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoFormatPropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFormat); |
| } |
| |
| void count_VkVideoPictureResourceKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoPictureResourceKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkOffset2D(featureBits, rootType, (VkOffset2D*)(&toCount->codedOffset), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->codedExtent), count); |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkVideoReferenceSlotKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoReferenceSlotKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(int8_t); |
| count_VkVideoPictureResourceKHR(featureBits, rootType, |
| (const VkVideoPictureResourceKHR*)(toCount->pPictureResource), |
| count); |
| } |
| |
| void count_VkVideoGetMemoryPropertiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoGetMemoryPropertiesKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| count_VkMemoryRequirements2(featureBits, rootType, |
| (VkMemoryRequirements2*)(toCount->pMemoryRequirements), count); |
| } |
| |
| void count_VkVideoBindMemoryKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoBindMemoryKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkVideoSessionCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoSessionCreateInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkVideoSessionCreateFlagsKHR); |
| count_VkVideoProfileKHR(featureBits, rootType, |
| (const VkVideoProfileKHR*)(toCount->pVideoProfile), count); |
| *count += sizeof(VkFormat); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxCodedExtent), count); |
| *count += sizeof(VkFormat); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkVideoSessionParametersCreateInfoKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoSessionParametersCreateInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += 8; |
| *count += 8; |
| } |
| |
| void count_VkVideoSessionParametersUpdateInfoKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoSessionParametersUpdateInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkVideoBeginCodingInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoBeginCodingInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoBeginCodingFlagsKHR); |
| *count += sizeof(VkVideoCodingQualityPresetFlagsKHR); |
| *count += 8; |
| *count += 8; |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->referenceSlotCount; ++i) { |
| count_VkVideoReferenceSlotKHR( |
| featureBits, rootType, |
| (const VkVideoReferenceSlotKHR*)(toCount->pReferenceSlots + i), count); |
| } |
| } |
| } |
| |
| void count_VkVideoEndCodingInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEndCodingInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoEndCodingFlagsKHR); |
| } |
| |
| void count_VkVideoCodingControlInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoCodingControlInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoCodingControlFlagsKHR); |
| } |
| |
| #endif |
| #ifdef VK_KHR_video_decode_queue |
| void count_VkVideoDecodeInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoDecodeFlagsKHR); |
| count_VkOffset2D(featureBits, rootType, (VkOffset2D*)(&toCount->codedOffset), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->codedExtent), count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| count_VkVideoPictureResourceKHR( |
| featureBits, rootType, (VkVideoPictureResourceKHR*)(&toCount->dstPictureResource), count); |
| count_VkVideoReferenceSlotKHR(featureBits, rootType, |
| (const VkVideoReferenceSlotKHR*)(toCount->pSetupReferenceSlot), |
| count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->referenceSlotCount; ++i) { |
| count_VkVideoReferenceSlotKHR( |
| featureBits, rootType, |
| (const VkVideoReferenceSlotKHR*)(toCount->pReferenceSlots + i), count); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_dynamic_rendering |
| void count_VkRenderingAttachmentInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkRenderingAttachmentInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(VkResolveModeFlagBits); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(VkAttachmentLoadOp); |
| *count += sizeof(VkAttachmentStoreOp); |
| count_VkClearValue(featureBits, rootType, (VkClearValue*)(&toCount->clearValue), count); |
| } |
| |
| void count_VkRenderingInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkRenderingInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkRenderingFlagsKHR); |
| count_VkRect2D(featureBits, rootType, (VkRect2D*)(&toCount->renderArea), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->colorAttachmentCount; ++i) { |
| count_VkRenderingAttachmentInfoKHR( |
| featureBits, rootType, |
| (const VkRenderingAttachmentInfoKHR*)(toCount->pColorAttachments + i), count); |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pDepthAttachment) { |
| count_VkRenderingAttachmentInfoKHR( |
| featureBits, rootType, (const VkRenderingAttachmentInfoKHR*)(toCount->pDepthAttachment), |
| count); |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pStencilAttachment) { |
| count_VkRenderingAttachmentInfoKHR( |
| featureBits, rootType, |
| (const VkRenderingAttachmentInfoKHR*)(toCount->pStencilAttachment), count); |
| } |
| } |
| |
| void count_VkPipelineRenderingCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineRenderingCreateInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->colorAttachmentCount * sizeof(const VkFormat); |
| } |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkFormat); |
| } |
| |
| void count_VkPhysicalDeviceDynamicRenderingFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDynamicRenderingFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkCommandBufferInheritanceRenderingInfoKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkCommandBufferInheritanceRenderingInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkRenderingFlagsKHR); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->colorAttachmentCount * sizeof(const VkFormat); |
| } |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkFormat); |
| *count += sizeof(VkSampleCountFlagBits); |
| } |
| |
| void count_VkRenderingFragmentShadingRateAttachmentInfoKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkRenderingFragmentShadingRateAttachmentInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->shadingRateAttachmentTexelSize), |
| count); |
| } |
| |
| void count_VkRenderingFragmentDensityMapAttachmentInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkRenderingFragmentDensityMapAttachmentInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| } |
| |
| void count_VkAttachmentSampleCountInfoAMD(uint32_t featureBits, VkStructureType rootType, |
| const VkAttachmentSampleCountInfoAMD* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pColorAttachmentSamples) { |
| if (toCount) { |
| *count += toCount->colorAttachmentCount * sizeof(const VkSampleCountFlagBits); |
| } |
| } |
| *count += sizeof(VkSampleCountFlagBits); |
| } |
| |
| void count_VkMultiviewPerViewAttributesInfoNVX(uint32_t featureBits, VkStructureType rootType, |
| const VkMultiviewPerViewAttributesInfoNVX* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_multiview |
| #endif |
| #ifdef VK_KHR_get_physical_device_properties2 |
| #endif |
| #ifdef VK_KHR_device_group |
| #endif |
| #ifdef VK_KHR_shader_draw_parameters |
| #endif |
| #ifdef VK_KHR_maintenance1 |
| #endif |
| #ifdef VK_KHR_device_group_creation |
| #endif |
| #ifdef VK_KHR_external_memory_capabilities |
| #endif |
| #ifdef VK_KHR_external_memory |
| #endif |
| #ifdef VK_KHR_external_memory_win32 |
| void count_VkImportMemoryWin32HandleInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImportMemoryWin32HandleInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalMemoryHandleTypeFlagBits); |
| *count += sizeof(HANDLE); |
| *count += sizeof(LPCWSTR); |
| } |
| |
| void count_VkExportMemoryWin32HandleInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkExportMemoryWin32HandleInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pAttributes) { |
| *count += sizeof(const SECURITY_ATTRIBUTES); |
| } |
| *count += sizeof(DWORD); |
| *count += sizeof(LPCWSTR); |
| } |
| |
| void count_VkMemoryWin32HandlePropertiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryWin32HandlePropertiesKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkMemoryGetWin32HandleInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryGetWin32HandleInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkExternalMemoryHandleTypeFlagBits); |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_memory_fd |
| void count_VkImportMemoryFdInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImportMemoryFdInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalMemoryHandleTypeFlagBits); |
| *count += sizeof(int); |
| } |
| |
| void count_VkMemoryFdPropertiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryFdPropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkMemoryGetFdInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryGetFdInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkExternalMemoryHandleTypeFlagBits); |
| } |
| |
| #endif |
| #ifdef VK_KHR_win32_keyed_mutex |
| void count_VkWin32KeyedMutexAcquireReleaseInfoKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkWin32KeyedMutexAcquireReleaseInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount->acquireCount) { |
| *count += toCount->acquireCount * 8; |
| } |
| if (toCount) { |
| *count += toCount->acquireCount * sizeof(const uint64_t); |
| } |
| if (toCount) { |
| *count += toCount->acquireCount * sizeof(const uint32_t); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount->releaseCount) { |
| *count += toCount->releaseCount * 8; |
| } |
| if (toCount) { |
| *count += toCount->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 count_VkImportSemaphoreWin32HandleInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImportSemaphoreWin32HandleInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkSemaphoreImportFlags); |
| *count += sizeof(VkExternalSemaphoreHandleTypeFlagBits); |
| *count += sizeof(HANDLE); |
| *count += sizeof(LPCWSTR); |
| } |
| |
| void count_VkExportSemaphoreWin32HandleInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkExportSemaphoreWin32HandleInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pAttributes) { |
| *count += sizeof(const SECURITY_ATTRIBUTES); |
| } |
| *count += sizeof(DWORD); |
| *count += sizeof(LPCWSTR); |
| } |
| |
| void count_VkD3D12FenceSubmitInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkD3D12FenceSubmitInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pWaitSemaphoreValues) { |
| if (toCount) { |
| *count += toCount->waitSemaphoreValuesCount * sizeof(const uint64_t); |
| } |
| } |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pSignalSemaphoreValues) { |
| if (toCount) { |
| *count += toCount->signalSemaphoreValuesCount * sizeof(const uint64_t); |
| } |
| } |
| } |
| |
| void count_VkSemaphoreGetWin32HandleInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkSemaphoreGetWin32HandleInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkExternalSemaphoreHandleTypeFlagBits); |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_semaphore_fd |
| void count_VkImportSemaphoreFdInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImportSemaphoreFdInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkSemaphoreImportFlags); |
| *count += sizeof(VkExternalSemaphoreHandleTypeFlagBits); |
| *count += sizeof(int); |
| } |
| |
| void count_VkSemaphoreGetFdInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkSemaphoreGetFdInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkExternalSemaphoreHandleTypeFlagBits); |
| } |
| |
| #endif |
| #ifdef VK_KHR_push_descriptor |
| void count_VkPhysicalDevicePushDescriptorPropertiesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePushDescriptorPropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_float16_int8 |
| #endif |
| #ifdef VK_KHR_16bit_storage |
| #endif |
| #ifdef VK_KHR_incremental_present |
| void count_VkRectLayerKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkRectLayerKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkOffset2D(featureBits, rootType, (VkOffset2D*)(&toCount->offset), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->extent), count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPresentRegionKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPresentRegionKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pRectangles) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->rectangleCount; ++i) { |
| count_VkRectLayerKHR(featureBits, rootType, |
| (const VkRectLayerKHR*)(toCount->pRectangles + i), count); |
| } |
| } |
| } |
| } |
| |
| void count_VkPresentRegionsKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPresentRegionsKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pRegions) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->swapchainCount; ++i) { |
| count_VkPresentRegionKHR(featureBits, rootType, |
| (const VkPresentRegionKHR*)(toCount->pRegions + i), count); |
| } |
| } |
| } |
| } |
| |
| #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 count_VkSharedPresentSurfaceCapabilitiesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkSharedPresentSurfaceCapabilitiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageUsageFlags); |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_fence_capabilities |
| #endif |
| #ifdef VK_KHR_external_fence |
| #endif |
| #ifdef VK_KHR_external_fence_win32 |
| void count_VkImportFenceWin32HandleInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImportFenceWin32HandleInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkFenceImportFlags); |
| *count += sizeof(VkExternalFenceHandleTypeFlagBits); |
| *count += sizeof(HANDLE); |
| *count += sizeof(LPCWSTR); |
| } |
| |
| void count_VkExportFenceWin32HandleInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkExportFenceWin32HandleInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pAttributes) { |
| *count += sizeof(const SECURITY_ATTRIBUTES); |
| } |
| *count += sizeof(DWORD); |
| *count += sizeof(LPCWSTR); |
| } |
| |
| void count_VkFenceGetWin32HandleInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkFenceGetWin32HandleInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkExternalFenceHandleTypeFlagBits); |
| } |
| |
| #endif |
| #ifdef VK_KHR_external_fence_fd |
| void count_VkImportFenceFdInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImportFenceFdInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkFenceImportFlags); |
| *count += sizeof(VkExternalFenceHandleTypeFlagBits); |
| *count += sizeof(int); |
| } |
| |
| void count_VkFenceGetFdInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkFenceGetFdInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkExternalFenceHandleTypeFlagBits); |
| } |
| |
| #endif |
| #ifdef VK_KHR_performance_query |
| void count_VkPhysicalDevicePerformanceQueryFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePerformanceQueryFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDevicePerformanceQueryPropertiesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePerformanceQueryPropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPerformanceCounterKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPerformanceCounterKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPerformanceCounterUnitKHR); |
| *count += sizeof(VkPerformanceCounterScopeKHR); |
| *count += sizeof(VkPerformanceCounterStorageKHR); |
| *count += VK_UUID_SIZE * sizeof(uint8_t); |
| } |
| |
| void count_VkPerformanceCounterDescriptionKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPerformanceCounterDescriptionKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPerformanceCounterDescriptionFlagsKHR); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| } |
| |
| void count_VkQueryPoolPerformanceCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkQueryPoolPerformanceCreateInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->counterIndexCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkPerformanceCounterResultKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPerformanceCounterResultKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(int32_t); |
| } |
| |
| void count_VkAcquireProfilingLockInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkAcquireProfilingLockInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkAcquireProfilingLockFlagsKHR); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkPerformanceQuerySubmitInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPerformanceQuerySubmitInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_KHR_maintenance2 |
| #endif |
| #ifdef VK_KHR_get_surface_capabilities2 |
| void count_VkPhysicalDeviceSurfaceInfo2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSurfaceInfo2KHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkSurfaceCapabilities2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkSurfaceCapabilities2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkSurfaceCapabilitiesKHR( |
| featureBits, rootType, (VkSurfaceCapabilitiesKHR*)(&toCount->surfaceCapabilities), count); |
| } |
| |
| void count_VkSurfaceFormat2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkSurfaceFormat2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkSurfaceFormatKHR(featureBits, rootType, (VkSurfaceFormatKHR*)(&toCount->surfaceFormat), |
| count); |
| } |
| |
| #endif |
| #ifdef VK_KHR_variable_pointers |
| #endif |
| #ifdef VK_KHR_get_display_properties2 |
| void count_VkDisplayProperties2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayProperties2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkDisplayPropertiesKHR(featureBits, rootType, |
| (VkDisplayPropertiesKHR*)(&toCount->displayProperties), count); |
| } |
| |
| void count_VkDisplayPlaneProperties2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayPlaneProperties2KHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkDisplayPlanePropertiesKHR( |
| featureBits, rootType, (VkDisplayPlanePropertiesKHR*)(&toCount->displayPlaneProperties), |
| count); |
| } |
| |
| void count_VkDisplayModeProperties2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayModeProperties2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkDisplayModePropertiesKHR(featureBits, rootType, |
| (VkDisplayModePropertiesKHR*)(&toCount->displayModeProperties), |
| count); |
| } |
| |
| void count_VkDisplayPlaneInfo2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayPlaneInfo2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDisplayPlaneCapabilities2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayPlaneCapabilities2KHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkDisplayPlaneCapabilitiesKHR( |
| featureBits, rootType, (VkDisplayPlaneCapabilitiesKHR*)(&toCount->capabilities), count); |
| } |
| |
| #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 count_VkPhysicalDevicePortabilitySubsetFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePortabilitySubsetFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDevicePortabilitySubsetPropertiesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePortabilitySubsetPropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_KHR_maintenance3 |
| #endif |
| #ifdef VK_KHR_draw_indirect_count |
| #endif |
| #ifdef VK_KHR_shader_subgroup_extended_types |
| #endif |
| #ifdef VK_KHR_8bit_storage |
| #endif |
| #ifdef VK_KHR_shader_atomic_int64 |
| #endif |
| #ifdef VK_KHR_shader_clock |
| void count_VkPhysicalDeviceShaderClockFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderClockFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_driver_properties |
| #endif |
| #ifdef VK_KHR_shader_float_controls |
| #endif |
| #ifdef VK_KHR_depth_stencil_resolve |
| #endif |
| #ifdef VK_KHR_swapchain_mutable_format |
| #endif |
| #ifdef VK_KHR_timeline_semaphore |
| #endif |
| #ifdef VK_KHR_vulkan_memory_model |
| #endif |
| #ifdef VK_KHR_shader_terminate_invocation |
| void count_VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderTerminateInvocationFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_fragment_shading_rate |
| void count_VkFragmentShadingRateAttachmentInfoKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkFragmentShadingRateAttachmentInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pFragmentShadingRateAttachment) { |
| count_VkAttachmentReference2( |
| featureBits, rootType, |
| (const VkAttachmentReference2*)(toCount->pFragmentShadingRateAttachment), count); |
| } |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->shadingRateAttachmentTexelSize), |
| count); |
| } |
| |
| void count_VkPipelineFragmentShadingRateStateCreateInfoKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineFragmentShadingRateStateCreateInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->fragmentSize), count); |
| *count += 2 * sizeof(VkFragmentShadingRateCombinerOpKHR); |
| } |
| |
| void count_VkPhysicalDeviceFragmentShadingRateFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRateFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceFragmentShadingRatePropertiesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRatePropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkExtent2D(featureBits, rootType, |
| (VkExtent2D*)(&toCount->minFragmentShadingRateAttachmentTexelSize), count); |
| count_VkExtent2D(featureBits, rootType, |
| (VkExtent2D*)(&toCount->maxFragmentShadingRateAttachmentTexelSize), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxFragmentSize), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkSampleCountFlagBits); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceFragmentShadingRateKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRateKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSampleCountFlags); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->fragmentSize), count); |
| } |
| |
| #endif |
| #ifdef VK_KHR_spirv_1_4 |
| #endif |
| #ifdef VK_KHR_surface_protected_capabilities |
| void count_VkSurfaceProtectedCapabilitiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkSurfaceProtectedCapabilitiesKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_separate_depth_stencil_layouts |
| #endif |
| #ifdef VK_KHR_present_wait |
| void count_VkPhysicalDevicePresentWaitFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePresentWaitFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_uniform_buffer_standard_layout |
| #endif |
| #ifdef VK_KHR_buffer_device_address |
| #endif |
| #ifdef VK_KHR_deferred_host_operations |
| #endif |
| #ifdef VK_KHR_pipeline_executable_properties |
| void count_VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePipelineExecutablePropertiesFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPipelineInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkPipelineExecutablePropertiesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineExecutablePropertiesKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkShaderStageFlags); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPipelineExecutableInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineExecutableInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPipelineExecutableStatisticValueKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineExecutableStatisticValueKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPipelineExecutableStatisticKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineExecutableStatisticKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| *count += sizeof(VkPipelineExecutableStatisticFormatKHR); |
| count_VkPipelineExecutableStatisticValueKHR( |
| featureBits, rootType, (VkPipelineExecutableStatisticValueKHR*)(&toCount->value), count); |
| } |
| |
| void count_VkPipelineExecutableInternalRepresentationKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineExecutableInternalRepresentationKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| *count += sizeof(VkBool32); |
| *count += 8; |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pData) { |
| if (toCount) { |
| *count += toCount->dataSize * sizeof(uint8_t); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_integer_dot_product |
| void count_VkPhysicalDeviceShaderIntegerDotProductFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderIntegerDotProductFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceShaderIntegerDotProductPropertiesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderIntegerDotProductPropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_pipeline_library |
| void count_VkPipelineLibraryCreateInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineLibraryCreateInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount->libraryCount) { |
| *count += toCount->libraryCount * 8; |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_non_semantic_info |
| #endif |
| #ifdef VK_KHR_present_id |
| void count_VkPresentIdKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPresentIdKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pPresentIds) { |
| if (toCount) { |
| *count += toCount->swapchainCount * sizeof(const uint64_t); |
| } |
| } |
| } |
| |
| void count_VkPhysicalDevicePresentIdFeaturesKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePresentIdFeaturesKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_video_encode_queue |
| void count_VkVideoEncodeInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoEncodeFlagsKHR); |
| *count += sizeof(uint32_t); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->codedExtent), count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| count_VkVideoPictureResourceKHR( |
| featureBits, rootType, (VkVideoPictureResourceKHR*)(&toCount->srcPictureResource), count); |
| count_VkVideoReferenceSlotKHR(featureBits, rootType, |
| (const VkVideoReferenceSlotKHR*)(toCount->pSetupReferenceSlot), |
| count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->referenceSlotCount; ++i) { |
| count_VkVideoReferenceSlotKHR( |
| featureBits, rootType, |
| (const VkVideoReferenceSlotKHR*)(toCount->pReferenceSlots + i), count); |
| } |
| } |
| } |
| |
| void count_VkVideoEncodeRateControlInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeRateControlInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoEncodeRateControlFlagsKHR); |
| *count += sizeof(VkVideoEncodeRateControlModeFlagBitsKHR); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint16_t); |
| *count += sizeof(uint16_t); |
| *count += sizeof(uint16_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_KHR_synchronization2 |
| void count_VkMemoryBarrier2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryBarrier2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineStageFlags2KHR); |
| *count += sizeof(VkAccessFlags2KHR); |
| *count += sizeof(VkPipelineStageFlags2KHR); |
| *count += sizeof(VkAccessFlags2KHR); |
| } |
| |
| void count_VkBufferMemoryBarrier2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkBufferMemoryBarrier2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineStageFlags2KHR); |
| *count += sizeof(VkAccessFlags2KHR); |
| *count += sizeof(VkPipelineStageFlags2KHR); |
| *count += sizeof(VkAccessFlags2KHR); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkImageMemoryBarrier2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImageMemoryBarrier2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineStageFlags2KHR); |
| *count += sizeof(VkAccessFlags2KHR); |
| *count += sizeof(VkPipelineStageFlags2KHR); |
| *count += sizeof(VkAccessFlags2KHR); |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| count_VkImageSubresourceRange(featureBits, rootType, |
| (VkImageSubresourceRange*)(&toCount->subresourceRange), count); |
| } |
| |
| void count_VkDependencyInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDependencyInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDependencyFlags); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->memoryBarrierCount; ++i) { |
| count_VkMemoryBarrier2KHR(featureBits, rootType, |
| (const VkMemoryBarrier2KHR*)(toCount->pMemoryBarriers + i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->bufferMemoryBarrierCount; ++i) { |
| count_VkBufferMemoryBarrier2KHR( |
| featureBits, rootType, |
| (const VkBufferMemoryBarrier2KHR*)(toCount->pBufferMemoryBarriers + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->imageMemoryBarrierCount; ++i) { |
| count_VkImageMemoryBarrier2KHR( |
| featureBits, rootType, |
| (const VkImageMemoryBarrier2KHR*)(toCount->pImageMemoryBarriers + i), count); |
| } |
| } |
| } |
| |
| void count_VkSemaphoreSubmitInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkSemaphoreSubmitInfoKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint64_t); |
| *count += sizeof(VkPipelineStageFlags2KHR); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkCommandBufferSubmitInfoKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkCommandBufferSubmitInfoKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkSubmitInfo2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkSubmitInfo2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSubmitFlagsKHR); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->waitSemaphoreInfoCount; ++i) { |
| count_VkSemaphoreSubmitInfoKHR( |
| featureBits, rootType, |
| (const VkSemaphoreSubmitInfoKHR*)(toCount->pWaitSemaphoreInfos + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->commandBufferInfoCount; ++i) { |
| count_VkCommandBufferSubmitInfoKHR( |
| featureBits, rootType, |
| (const VkCommandBufferSubmitInfoKHR*)(toCount->pCommandBufferInfos + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->signalSemaphoreInfoCount; ++i) { |
| count_VkSemaphoreSubmitInfoKHR( |
| featureBits, rootType, |
| (const VkSemaphoreSubmitInfoKHR*)(toCount->pSignalSemaphoreInfos + i), count); |
| } |
| } |
| } |
| |
| void count_VkPhysicalDeviceSynchronization2FeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSynchronization2FeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkQueueFamilyCheckpointProperties2NV(uint32_t featureBits, VkStructureType rootType, |
| const VkQueueFamilyCheckpointProperties2NV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineStageFlags2KHR); |
| } |
| |
| void count_VkCheckpointData2NV(uint32_t featureBits, VkStructureType rootType, |
| const VkCheckpointData2NV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineStageFlags2KHR); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pCheckpointMarker) { |
| *count += sizeof(uint8_t); |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_shader_subgroup_uniform_control_flow |
| void count_VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderSubgroupUniformControlFlowFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_zero_initialize_workgroup_memory |
| void count_VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceZeroInitializeWorkgroupMemoryFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_workgroup_memory_explicit_layout |
| void count_VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceWorkgroupMemoryExplicitLayoutFeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_KHR_copy_commands2 |
| void count_VkBufferCopy2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkBufferCopy2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkCopyBufferInfo2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkCopyBufferInfo2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->regionCount; ++i) { |
| count_VkBufferCopy2KHR(featureBits, rootType, |
| (const VkBufferCopy2KHR*)(toCount->pRegions + i), count); |
| } |
| } |
| } |
| |
| void count_VkImageCopy2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImageCopy2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->srcSubresource), count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->srcOffset), count); |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->dstSubresource), count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->dstOffset), count); |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->extent), count); |
| } |
| |
| void count_VkCopyImageInfo2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkCopyImageInfo2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->regionCount; ++i) { |
| count_VkImageCopy2KHR(featureBits, rootType, |
| (const VkImageCopy2KHR*)(toCount->pRegions + i), count); |
| } |
| } |
| } |
| |
| void count_VkBufferImageCopy2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkBufferImageCopy2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->imageSubresource), count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->imageOffset), count); |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->imageExtent), count); |
| } |
| |
| void count_VkCopyBufferToImageInfo2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkCopyBufferToImageInfo2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->regionCount; ++i) { |
| count_VkBufferImageCopy2KHR(featureBits, rootType, |
| (const VkBufferImageCopy2KHR*)(toCount->pRegions + i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkCopyImageToBufferInfo2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkCopyImageToBufferInfo2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->regionCount; ++i) { |
| count_VkBufferImageCopy2KHR(featureBits, rootType, |
| (const VkBufferImageCopy2KHR*)(toCount->pRegions + i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkImageBlit2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImageBlit2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->srcSubresource), count); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(toCount->srcOffsets + i), count); |
| } |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->dstSubresource), count); |
| for (uint32_t i = 0; i < (uint32_t)2; ++i) { |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(toCount->dstOffsets + i), count); |
| } |
| } |
| |
| void count_VkBlitImageInfo2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkBlitImageInfo2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->regionCount; ++i) { |
| count_VkImageBlit2KHR(featureBits, rootType, |
| (const VkImageBlit2KHR*)(toCount->pRegions + i), count); |
| } |
| } |
| *count += sizeof(VkFilter); |
| } |
| |
| void count_VkImageResolve2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkImageResolve2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->srcSubresource), count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->srcOffset), count); |
| count_VkImageSubresourceLayers(featureBits, rootType, |
| (VkImageSubresourceLayers*)(&toCount->dstSubresource), count); |
| count_VkOffset3D(featureBits, rootType, (VkOffset3D*)(&toCount->dstOffset), count); |
| count_VkExtent3D(featureBits, rootType, (VkExtent3D*)(&toCount->extent), count); |
| } |
| |
| void count_VkResolveImageInfo2KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkResolveImageInfo2KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkImageLayout); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->regionCount; ++i) { |
| count_VkImageResolve2KHR(featureBits, rootType, |
| (const VkImageResolve2KHR*)(toCount->pRegions + i), count); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_KHR_format_feature_flags2 |
| void count_VkFormatProperties3KHR(uint32_t featureBits, VkStructureType rootType, |
| const VkFormatProperties3KHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFormatFeatureFlags2KHR); |
| *count += sizeof(VkFormatFeatureFlags2KHR); |
| *count += sizeof(VkFormatFeatureFlags2KHR); |
| } |
| |
| #endif |
| #ifdef VK_KHR_maintenance4 |
| void count_VkPhysicalDeviceMaintenance4FeaturesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMaintenance4FeaturesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceMaintenance4PropertiesKHR( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMaintenance4PropertiesKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkDeviceBufferMemoryRequirementsKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceBufferMemoryRequirementsKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkBufferCreateInfo(featureBits, rootType, |
| (const VkBufferCreateInfo*)(toCount->pCreateInfo), count); |
| } |
| |
| void count_VkDeviceImageMemoryRequirementsKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceImageMemoryRequirementsKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkImageCreateInfo(featureBits, rootType, (const VkImageCreateInfo*)(toCount->pCreateInfo), |
| count); |
| *count += sizeof(VkImageAspectFlagBits); |
| } |
| |
| #endif |
| #ifdef VK_ANDROID_native_buffer |
| void count_VkNativeBufferANDROID(uint32_t featureBits, VkStructureType rootType, |
| const VkNativeBufferANDROID* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->handle) { |
| *count += sizeof(const uint32_t); |
| } |
| *count += sizeof(int); |
| *count += sizeof(int); |
| *count += sizeof(int); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint64_t); |
| } |
| |
| #endif |
| #ifdef VK_EXT_debug_report |
| void count_VkDebugReportCallbackCreateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDebugReportCallbackCreateInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDebugReportFlagsEXT); |
| *count += 8; |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pUserData) { |
| *count += 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 count_VkPipelineRasterizationStateRasterizationOrderAMD( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineRasterizationStateRasterizationOrderAMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkRasterizationOrderAMD); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_trinary_minmax |
| #endif |
| #ifdef VK_AMD_shader_explicit_vertex_parameter |
| #endif |
| #ifdef VK_EXT_debug_marker |
| void count_VkDebugMarkerObjectNameInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDebugMarkerObjectNameInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDebugReportObjectTypeEXT); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint32_t) + (toCount->pObjectName ? strlen(toCount->pObjectName) : 0); |
| } |
| |
| void count_VkDebugMarkerObjectTagInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDebugMarkerObjectTagInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDebugReportObjectTypeEXT); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint64_t); |
| *count += 8; |
| if (toCount) { |
| *count += toCount->tagSize * sizeof(const uint8_t); |
| } |
| } |
| |
| void count_VkDebugMarkerMarkerInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDebugMarkerMarkerInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t) + (toCount->pMarkerName ? strlen(toCount->pMarkerName) : 0); |
| *count += 4 * sizeof(float); |
| } |
| |
| #endif |
| #ifdef VK_AMD_gcn_shader |
| #endif |
| #ifdef VK_NV_dedicated_allocation |
| void count_VkDedicatedAllocationImageCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDedicatedAllocationImageCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkDedicatedAllocationBufferCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDedicatedAllocationBufferCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkDedicatedAllocationMemoryAllocateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDedicatedAllocationMemoryAllocateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| } |
| |
| #endif |
| #ifdef VK_EXT_transform_feedback |
| void count_VkPhysicalDeviceTransformFeedbackFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceTransformFeedbackFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceTransformFeedbackPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceTransformFeedbackPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPipelineRasterizationStateStreamCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineRasterizationStateStreamCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineRasterizationStateStreamCreateFlagsEXT); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_NVX_binary_import |
| void count_VkCuModuleCreateInfoNVX(uint32_t featureBits, VkStructureType rootType, |
| const VkCuModuleCreateInfoNVX* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += 8; |
| if (toCount) { |
| *count += toCount->dataSize * sizeof(const uint8_t); |
| } |
| } |
| |
| void count_VkCuFunctionCreateInfoNVX(uint32_t featureBits, VkStructureType rootType, |
| const VkCuFunctionCreateInfoNVX* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += 8; |
| *count += sizeof(uint32_t) + (toCount->pName ? strlen(toCount->pName) : 0); |
| } |
| |
| void count_VkCuLaunchInfoNVX(uint32_t featureBits, VkStructureType rootType, |
| const VkCuLaunchInfoNVX* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += 8; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += 8; |
| *count += 8; |
| } |
| |
| #endif |
| #ifdef VK_NVX_image_view_handle |
| void count_VkImageViewHandleInfoNVX(uint32_t featureBits, VkStructureType rootType, |
| const VkImageViewHandleInfoNVX* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDescriptorType); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| } |
| |
| void count_VkImageViewAddressPropertiesNVX(uint32_t featureBits, VkStructureType rootType, |
| const VkImageViewAddressPropertiesNVX* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceAddress); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| #endif |
| #ifdef VK_AMD_draw_indirect_count |
| #endif |
| #ifdef VK_AMD_negative_viewport_height |
| #endif |
| #ifdef VK_AMD_gpu_shader_half_float |
| #endif |
| #ifdef VK_AMD_shader_ballot |
| #endif |
| #ifdef VK_EXT_video_encode_h264 |
| void count_VkVideoEncodeH264CapabilitiesEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH264CapabilitiesEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoEncodeH264CapabilityFlagsEXT); |
| *count += sizeof(VkVideoEncodeH264InputModeFlagsEXT); |
| *count += sizeof(VkVideoEncodeH264OutputModeFlagsEXT); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->minPictureSizeInMbs), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxPictureSizeInMbs), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->inputImageDataAlignment), |
| count); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| count_VkExtensionProperties(featureBits, rootType, |
| (VkExtensionProperties*)(&toCount->stdExtensionVersion), count); |
| } |
| |
| void count_VkVideoEncodeH264SessionCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH264SessionCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoEncodeH264CreateFlagsEXT); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxPictureSizeInMbs), count); |
| count_VkExtensionProperties(featureBits, rootType, |
| (const VkExtensionProperties*)(toCount->pStdExtensionVersion), |
| count); |
| } |
| |
| void count_VkVideoEncodeH264SessionParametersAddInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH264SessionParametersAddInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pSpsStd) { |
| if (toCount) { |
| *count += toCount->spsStdCount * sizeof(const StdVideoH264SequenceParameterSet); |
| } |
| } |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pPpsStd) { |
| if (toCount) { |
| *count += toCount->ppsStdCount * sizeof(const StdVideoH264PictureParameterSet); |
| } |
| } |
| } |
| |
| void count_VkVideoEncodeH264SessionParametersCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH264SessionParametersCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pParametersAddInfo) { |
| count_VkVideoEncodeH264SessionParametersAddInfoEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH264SessionParametersAddInfoEXT*)(toCount->pParametersAddInfo), |
| count); |
| } |
| } |
| |
| void count_VkVideoEncodeH264DpbSlotInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH264DpbSlotInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(int8_t); |
| *count += sizeof(const StdVideoEncodeH264PictureInfo); |
| } |
| |
| void count_VkVideoEncodeH264NaluSliceEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH264NaluSliceEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(const StdVideoEncodeH264SliceHeader); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint8_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->refFinalList0EntryCount; ++i) { |
| count_VkVideoEncodeH264DpbSlotInfoEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH264DpbSlotInfoEXT*)(toCount->pRefFinalList0Entries + i), |
| count); |
| } |
| } |
| *count += sizeof(uint8_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->refFinalList1EntryCount; ++i) { |
| count_VkVideoEncodeH264DpbSlotInfoEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH264DpbSlotInfoEXT*)(toCount->pRefFinalList1Entries + i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| } |
| |
| void count_VkVideoEncodeH264VclFrameInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH264VclFrameInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint8_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->refDefaultFinalList0EntryCount; ++i) { |
| count_VkVideoEncodeH264DpbSlotInfoEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH264DpbSlotInfoEXT*)(toCount->pRefDefaultFinalList0Entries + i), |
| count); |
| } |
| } |
| *count += sizeof(uint8_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->refDefaultFinalList1EntryCount; ++i) { |
| count_VkVideoEncodeH264DpbSlotInfoEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH264DpbSlotInfoEXT*)(toCount->pRefDefaultFinalList1Entries + i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->naluSliceEntryCount; ++i) { |
| count_VkVideoEncodeH264NaluSliceEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH264NaluSliceEXT*)(toCount->pNaluSliceEntries + i), count); |
| } |
| } |
| count_VkVideoEncodeH264DpbSlotInfoEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH264DpbSlotInfoEXT*)(toCount->pCurrentPictureInfo), count); |
| } |
| |
| void count_VkVideoEncodeH264EmitPictureParametersEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH264EmitPictureParametersEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint8_t); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->ppsIdEntryCount * sizeof(const uint8_t); |
| } |
| } |
| |
| void count_VkVideoEncodeH264ProfileEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH264ProfileEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(StdVideoH264ProfileIdc); |
| } |
| |
| #endif |
| #ifdef VK_EXT_video_encode_h265 |
| void count_VkVideoEncodeH265CapabilitiesEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH265CapabilitiesEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoEncodeH265CapabilityFlagsEXT); |
| *count += sizeof(VkVideoEncodeH265InputModeFlagsEXT); |
| *count += sizeof(VkVideoEncodeH265OutputModeFlagsEXT); |
| *count += sizeof(VkVideoEncodeH265CtbSizeFlagsEXT); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->inputImageDataAlignment), |
| count); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| count_VkExtensionProperties(featureBits, rootType, |
| (VkExtensionProperties*)(&toCount->stdExtensionVersion), count); |
| } |
| |
| void count_VkVideoEncodeH265SessionCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH265SessionCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoEncodeH265CreateFlagsEXT); |
| count_VkExtensionProperties(featureBits, rootType, |
| (const VkExtensionProperties*)(toCount->pStdExtensionVersion), |
| count); |
| } |
| |
| void count_VkVideoEncodeH265SessionParametersAddInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH265SessionParametersAddInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pVpsStd) { |
| if (toCount) { |
| *count += toCount->vpsStdCount * sizeof(const StdVideoH265VideoParameterSet); |
| } |
| } |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pSpsStd) { |
| if (toCount) { |
| *count += toCount->spsStdCount * sizeof(const StdVideoH265SequenceParameterSet); |
| } |
| } |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pPpsStd) { |
| if (toCount) { |
| *count += toCount->ppsStdCount * sizeof(const StdVideoH265PictureParameterSet); |
| } |
| } |
| } |
| |
| void count_VkVideoEncodeH265SessionParametersCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH265SessionParametersCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pParametersAddInfo) { |
| count_VkVideoEncodeH265SessionParametersAddInfoEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH265SessionParametersAddInfoEXT*)(toCount->pParametersAddInfo), |
| count); |
| } |
| } |
| |
| void count_VkVideoEncodeH265DpbSlotInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH265DpbSlotInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(int8_t); |
| *count += sizeof(const StdVideoEncodeH265ReferenceInfo); |
| } |
| |
| void count_VkVideoEncodeH265ReferenceListsEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH265ReferenceListsEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint8_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->referenceList0EntryCount; ++i) { |
| count_VkVideoEncodeH265DpbSlotInfoEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH265DpbSlotInfoEXT*)(toCount->pReferenceList0Entries + i), |
| count); |
| } |
| } |
| *count += sizeof(uint8_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->referenceList1EntryCount; ++i) { |
| count_VkVideoEncodeH265DpbSlotInfoEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH265DpbSlotInfoEXT*)(toCount->pReferenceList1Entries + i), |
| count); |
| } |
| } |
| *count += sizeof(const StdVideoEncodeH265ReferenceModifications); |
| } |
| |
| void count_VkVideoEncodeH265NaluSliceEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH265NaluSliceEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pReferenceFinalLists) { |
| count_VkVideoEncodeH265ReferenceListsEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH265ReferenceListsEXT*)(toCount->pReferenceFinalLists), count); |
| } |
| *count += sizeof(const StdVideoEncodeH265SliceHeader); |
| } |
| |
| void count_VkVideoEncodeH265VclFrameInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH265VclFrameInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pReferenceFinalLists) { |
| count_VkVideoEncodeH265ReferenceListsEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH265ReferenceListsEXT*)(toCount->pReferenceFinalLists), count); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->naluSliceEntryCount; ++i) { |
| count_VkVideoEncodeH265NaluSliceEXT( |
| featureBits, rootType, |
| (const VkVideoEncodeH265NaluSliceEXT*)(toCount->pNaluSliceEntries + i), count); |
| } |
| } |
| *count += sizeof(const StdVideoEncodeH265PictureInfo); |
| } |
| |
| void count_VkVideoEncodeH265EmitPictureParametersEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH265EmitPictureParametersEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint8_t); |
| *count += sizeof(uint8_t); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->ppsIdEntryCount * sizeof(const uint8_t); |
| } |
| } |
| |
| void count_VkVideoEncodeH265ProfileEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoEncodeH265ProfileEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(StdVideoH265ProfileIdc); |
| } |
| |
| #endif |
| #ifdef VK_EXT_video_decode_h264 |
| void count_VkVideoDecodeH264ProfileEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH264ProfileEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(StdVideoH264ProfileIdc); |
| *count += sizeof(VkVideoDecodeH264PictureLayoutFlagsEXT); |
| } |
| |
| void count_VkVideoDecodeH264CapabilitiesEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH264CapabilitiesEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| count_VkOffset2D(featureBits, rootType, (VkOffset2D*)(&toCount->fieldOffsetGranularity), count); |
| count_VkExtensionProperties(featureBits, rootType, |
| (VkExtensionProperties*)(&toCount->stdExtensionVersion), count); |
| } |
| |
| void count_VkVideoDecodeH264SessionCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH264SessionCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoDecodeH264CreateFlagsEXT); |
| count_VkExtensionProperties(featureBits, rootType, |
| (const VkExtensionProperties*)(toCount->pStdExtensionVersion), |
| count); |
| } |
| |
| void count_VkVideoDecodeH264SessionParametersAddInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH264SessionParametersAddInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pSpsStd) { |
| if (toCount) { |
| *count += toCount->spsStdCount * sizeof(const StdVideoH264SequenceParameterSet); |
| } |
| } |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pPpsStd) { |
| if (toCount) { |
| *count += toCount->ppsStdCount * sizeof(const StdVideoH264PictureParameterSet); |
| } |
| } |
| } |
| |
| void count_VkVideoDecodeH264SessionParametersCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH264SessionParametersCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pParametersAddInfo) { |
| count_VkVideoDecodeH264SessionParametersAddInfoEXT( |
| featureBits, rootType, |
| (const VkVideoDecodeH264SessionParametersAddInfoEXT*)(toCount->pParametersAddInfo), |
| count); |
| } |
| } |
| |
| void count_VkVideoDecodeH264PictureInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH264PictureInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(const StdVideoDecodeH264PictureInfo); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->slicesCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkVideoDecodeH264MvcEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH264MvcEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(const StdVideoDecodeH264Mvc); |
| } |
| |
| void count_VkVideoDecodeH264DpbSlotInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH264DpbSlotInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(const StdVideoDecodeH264ReferenceInfo); |
| } |
| |
| #endif |
| #ifdef VK_AMD_texture_gather_bias_lod |
| void count_VkTextureLODGatherFormatPropertiesAMD( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkTextureLODGatherFormatPropertiesAMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_info |
| void count_VkShaderResourceUsageAMD(uint32_t featureBits, VkStructureType rootType, |
| const VkShaderResourceUsageAMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += 8; |
| *count += 8; |
| } |
| |
| void count_VkShaderStatisticsInfoAMD(uint32_t featureBits, VkStructureType rootType, |
| const VkShaderStatisticsInfoAMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkShaderStageFlags); |
| count_VkShaderResourceUsageAMD(featureBits, rootType, |
| (VkShaderResourceUsageAMD*)(&toCount->resourceUsage), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += 3 * sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_image_load_store_lod |
| #endif |
| #ifdef VK_GGP_stream_descriptor_surface |
| void count_VkStreamDescriptorSurfaceCreateInfoGGP( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkStreamDescriptorSurfaceCreateInfoGGP* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkStreamDescriptorSurfaceCreateFlagsGGP); |
| *count += sizeof(GgpStreamDescriptor); |
| } |
| |
| #endif |
| #ifdef VK_NV_corner_sampled_image |
| void count_VkPhysicalDeviceCornerSampledImageFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceCornerSampledImageFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_IMG_format_pvrtc |
| #endif |
| #ifdef VK_NV_external_memory_capabilities |
| void count_VkExternalImageFormatPropertiesNV(uint32_t featureBits, VkStructureType rootType, |
| const VkExternalImageFormatPropertiesNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkImageFormatProperties( |
| featureBits, rootType, (VkImageFormatProperties*)(&toCount->imageFormatProperties), count); |
| *count += sizeof(VkExternalMemoryFeatureFlagsNV); |
| *count += sizeof(VkExternalMemoryHandleTypeFlagsNV); |
| *count += sizeof(VkExternalMemoryHandleTypeFlagsNV); |
| } |
| |
| #endif |
| #ifdef VK_NV_external_memory |
| void count_VkExternalMemoryImageCreateInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkExternalMemoryImageCreateInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalMemoryHandleTypeFlagsNV); |
| } |
| |
| void count_VkExportMemoryAllocateInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkExportMemoryAllocateInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalMemoryHandleTypeFlagsNV); |
| } |
| |
| #endif |
| #ifdef VK_NV_external_memory_win32 |
| void count_VkImportMemoryWin32HandleInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkImportMemoryWin32HandleInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalMemoryHandleTypeFlagsNV); |
| *count += sizeof(HANDLE); |
| } |
| |
| void count_VkExportMemoryWin32HandleInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkExportMemoryWin32HandleInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pAttributes) { |
| *count += sizeof(const SECURITY_ATTRIBUTES); |
| } |
| *count += sizeof(DWORD); |
| } |
| |
| #endif |
| #ifdef VK_NV_win32_keyed_mutex |
| void count_VkWin32KeyedMutexAcquireReleaseInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkWin32KeyedMutexAcquireReleaseInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount->acquireCount) { |
| *count += toCount->acquireCount * 8; |
| } |
| if (toCount) { |
| *count += toCount->acquireCount * sizeof(const uint64_t); |
| } |
| if (toCount) { |
| *count += toCount->acquireCount * sizeof(const uint32_t); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount->releaseCount) { |
| *count += toCount->releaseCount * 8; |
| } |
| if (toCount) { |
| *count += toCount->releaseCount * sizeof(const uint64_t); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_validation_flags |
| void count_VkValidationFlagsEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkValidationFlagsEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->disabledValidationCheckCount * sizeof(const VkValidationCheckEXT); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NN_vi_surface |
| void count_VkViSurfaceCreateInfoNN(uint32_t featureBits, VkStructureType rootType, |
| const VkViSurfaceCreateInfoNN* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkViSurfaceCreateFlagsNN); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->window) { |
| *count += sizeof(uint8_t); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_subgroup_ballot |
| #endif |
| #ifdef VK_EXT_shader_subgroup_vote |
| #endif |
| #ifdef VK_EXT_texture_compression_astc_hdr |
| void count_VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceTextureCompressionASTCHDRFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_astc_decode_mode |
| void count_VkImageViewASTCDecodeModeEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkImageViewASTCDecodeModeEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFormat); |
| } |
| |
| void count_VkPhysicalDeviceASTCDecodeFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceASTCDecodeFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_conditional_rendering |
| void count_VkConditionalRenderingBeginInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkConditionalRenderingBeginInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkConditionalRenderingFlagsEXT); |
| } |
| |
| void count_VkPhysicalDeviceConditionalRenderingFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceConditionalRenderingFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkCommandBufferInheritanceConditionalRenderingInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkCommandBufferInheritanceConditionalRenderingInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_NV_clip_space_w_scaling |
| void count_VkViewportWScalingNV(uint32_t featureBits, VkStructureType rootType, |
| const VkViewportWScalingNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(float); |
| *count += sizeof(float); |
| } |
| |
| void count_VkPipelineViewportWScalingStateCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineViewportWScalingStateCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pViewportWScalings) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->viewportCount; ++i) { |
| count_VkViewportWScalingNV( |
| featureBits, rootType, |
| (const VkViewportWScalingNV*)(toCount->pViewportWScalings + i), count); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_direct_mode_display |
| #endif |
| #ifdef VK_EXT_acquire_xlib_display |
| #endif |
| #ifdef VK_EXT_display_surface_counter |
| void count_VkSurfaceCapabilities2EXT(uint32_t featureBits, VkStructureType rootType, |
| const VkSurfaceCapabilities2EXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->currentExtent), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->minImageExtent), count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxImageExtent), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkSurfaceTransformFlagsKHR); |
| *count += sizeof(VkSurfaceTransformFlagBitsKHR); |
| *count += sizeof(VkCompositeAlphaFlagsKHR); |
| *count += sizeof(VkImageUsageFlags); |
| *count += sizeof(VkSurfaceCounterFlagsEXT); |
| } |
| |
| #endif |
| #ifdef VK_EXT_display_control |
| void count_VkDisplayPowerInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayPowerInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDisplayPowerStateEXT); |
| } |
| |
| void count_VkDeviceEventInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceEventInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceEventTypeEXT); |
| } |
| |
| void count_VkDisplayEventInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayEventInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDisplayEventTypeEXT); |
| } |
| |
| void count_VkSwapchainCounterCreateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkSwapchainCounterCreateInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSurfaceCounterFlagsEXT); |
| } |
| |
| #endif |
| #ifdef VK_GOOGLE_display_timing |
| void count_VkRefreshCycleDurationGOOGLE(uint32_t featureBits, VkStructureType rootType, |
| const VkRefreshCycleDurationGOOGLE* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkPastPresentationTimingGOOGLE(uint32_t featureBits, VkStructureType rootType, |
| const VkPastPresentationTimingGOOGLE* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkPresentTimeGOOGLE(uint32_t featureBits, VkStructureType rootType, |
| const VkPresentTimeGOOGLE* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkPresentTimesInfoGOOGLE(uint32_t featureBits, VkStructureType rootType, |
| const VkPresentTimesInfoGOOGLE* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pTimes) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->swapchainCount; ++i) { |
| count_VkPresentTimeGOOGLE(featureBits, rootType, |
| (const VkPresentTimeGOOGLE*)(toCount->pTimes + i), count); |
| } |
| } |
| } |
| } |
| |
| #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 count_VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMultiviewPerViewAttributesPropertiesNVX* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_NV_viewport_swizzle |
| void count_VkViewportSwizzleNV(uint32_t featureBits, VkStructureType rootType, |
| const VkViewportSwizzleNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkViewportCoordinateSwizzleNV); |
| *count += sizeof(VkViewportCoordinateSwizzleNV); |
| *count += sizeof(VkViewportCoordinateSwizzleNV); |
| *count += sizeof(VkViewportCoordinateSwizzleNV); |
| } |
| |
| void count_VkPipelineViewportSwizzleStateCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineViewportSwizzleStateCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineViewportSwizzleStateCreateFlagsNV); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pViewportSwizzles) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->viewportCount; ++i) { |
| count_VkViewportSwizzleNV( |
| featureBits, rootType, |
| (const VkViewportSwizzleNV*)(toCount->pViewportSwizzles + i), count); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_discard_rectangles |
| void count_VkPhysicalDeviceDiscardRectanglePropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDiscardRectanglePropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPipelineDiscardRectangleStateCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineDiscardRectangleStateCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineDiscardRectangleStateCreateFlagsEXT); |
| *count += sizeof(VkDiscardRectangleModeEXT); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pDiscardRectangles) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->discardRectangleCount; ++i) { |
| count_VkRect2D(featureBits, rootType, |
| (const VkRect2D*)(toCount->pDiscardRectangles + i), count); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_conservative_rasterization |
| void count_VkPhysicalDeviceConservativeRasterizationPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceConservativeRasterizationPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPipelineRasterizationConservativeStateCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineRasterizationConservativeStateCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineRasterizationConservativeStateCreateFlagsEXT); |
| *count += sizeof(VkConservativeRasterizationModeEXT); |
| *count += sizeof(float); |
| } |
| |
| #endif |
| #ifdef VK_EXT_depth_clip_enable |
| void count_VkPhysicalDeviceDepthClipEnableFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDepthClipEnableFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPipelineRasterizationDepthClipStateCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineRasterizationDepthClipStateCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineRasterizationDepthClipStateCreateFlagsEXT); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_swapchain_colorspace |
| #endif |
| #ifdef VK_EXT_hdr_metadata |
| void count_VkXYColorEXT(uint32_t featureBits, VkStructureType rootType, const VkXYColorEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(float); |
| *count += sizeof(float); |
| } |
| |
| void count_VkHdrMetadataEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkHdrMetadataEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkXYColorEXT(featureBits, rootType, (VkXYColorEXT*)(&toCount->displayPrimaryRed), count); |
| count_VkXYColorEXT(featureBits, rootType, (VkXYColorEXT*)(&toCount->displayPrimaryGreen), |
| count); |
| count_VkXYColorEXT(featureBits, rootType, (VkXYColorEXT*)(&toCount->displayPrimaryBlue), count); |
| count_VkXYColorEXT(featureBits, rootType, (VkXYColorEXT*)(&toCount->whitePoint), count); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| } |
| |
| #endif |
| #ifdef VK_MVK_ios_surface |
| void count_VkIOSSurfaceCreateInfoMVK(uint32_t featureBits, VkStructureType rootType, |
| const VkIOSSurfaceCreateInfoMVK* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkIOSSurfaceCreateFlagsMVK); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pView) { |
| *count += sizeof(const uint8_t); |
| } |
| } |
| |
| #endif |
| #ifdef VK_MVK_macos_surface |
| void count_VkMacOSSurfaceCreateInfoMVK(uint32_t featureBits, VkStructureType rootType, |
| const VkMacOSSurfaceCreateInfoMVK* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkMacOSSurfaceCreateFlagsMVK); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pView) { |
| *count += sizeof(const uint8_t); |
| } |
| } |
| |
| #endif |
| #ifdef VK_MVK_moltenvk |
| #endif |
| #ifdef VK_EXT_external_memory_dma_buf |
| #endif |
| #ifdef VK_EXT_queue_family_foreign |
| #endif |
| #ifdef VK_EXT_debug_utils |
| void count_VkDebugUtilsLabelEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDebugUtilsLabelEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t) + (toCount->pLabelName ? strlen(toCount->pLabelName) : 0); |
| *count += 4 * sizeof(float); |
| } |
| |
| void count_VkDebugUtilsObjectNameInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDebugUtilsObjectNameInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkObjectType); |
| *count += sizeof(uint64_t); |
| if (featureBits & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pObjectName) { |
| *count += sizeof(uint32_t) + (toCount->pObjectName ? strlen(toCount->pObjectName) : 0); |
| } |
| } else { |
| *count += sizeof(uint32_t) + (toCount->pObjectName ? strlen(toCount->pObjectName) : 0); |
| } |
| } |
| |
| void count_VkDebugUtilsMessengerCallbackDataEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDebugUtilsMessengerCallbackDataEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDebugUtilsMessengerCallbackDataFlagsEXT); |
| if (featureBits & VULKAN_STREAM_FEATURE_NULL_OPTIONAL_STRINGS_BIT) { |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pMessageIdName) { |
| *count += |
| sizeof(uint32_t) + (toCount->pMessageIdName ? strlen(toCount->pMessageIdName) : 0); |
| } |
| } else { |
| *count += |
| sizeof(uint32_t) + (toCount->pMessageIdName ? strlen(toCount->pMessageIdName) : 0); |
| } |
| *count += sizeof(int32_t); |
| *count += sizeof(uint32_t) + (toCount->pMessage ? strlen(toCount->pMessage) : 0); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pQueueLabels) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->queueLabelCount; ++i) { |
| count_VkDebugUtilsLabelEXT(featureBits, rootType, |
| (VkDebugUtilsLabelEXT*)(toCount->pQueueLabels + i), |
| count); |
| } |
| } |
| } |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pCmdBufLabels) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->cmdBufLabelCount; ++i) { |
| count_VkDebugUtilsLabelEXT(featureBits, rootType, |
| (VkDebugUtilsLabelEXT*)(toCount->pCmdBufLabels + i), |
| count); |
| } |
| } |
| } |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pObjects) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->objectCount; ++i) { |
| count_VkDebugUtilsObjectNameInfoEXT( |
| featureBits, rootType, (VkDebugUtilsObjectNameInfoEXT*)(toCount->pObjects + i), |
| count); |
| } |
| } |
| } |
| } |
| |
| void count_VkDebugUtilsMessengerCreateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDebugUtilsMessengerCreateInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDebugUtilsMessengerCreateFlagsEXT); |
| *count += sizeof(VkDebugUtilsMessageSeverityFlagsEXT); |
| *count += sizeof(VkDebugUtilsMessageTypeFlagsEXT); |
| *count += 8; |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pUserData) { |
| *count += sizeof(uint8_t); |
| } |
| } |
| |
| void count_VkDebugUtilsObjectTagInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDebugUtilsObjectTagInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkObjectType); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint64_t); |
| *count += 8; |
| if (toCount) { |
| *count += toCount->tagSize * sizeof(const uint8_t); |
| } |
| } |
| |
| #endif |
| #ifdef VK_ANDROID_external_memory_android_hardware_buffer |
| void count_VkAndroidHardwareBufferUsageANDROID(uint32_t featureBits, VkStructureType rootType, |
| const VkAndroidHardwareBufferUsageANDROID* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkAndroidHardwareBufferPropertiesANDROID( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkAndroidHardwareBufferPropertiesANDROID* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkAndroidHardwareBufferFormatPropertiesANDROID( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkAndroidHardwareBufferFormatPropertiesANDROID* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFormat); |
| *count += sizeof(uint64_t); |
| *count += sizeof(VkFormatFeatureFlags); |
| count_VkComponentMapping(featureBits, rootType, |
| (VkComponentMapping*)(&toCount->samplerYcbcrConversionComponents), |
| count); |
| *count += sizeof(VkSamplerYcbcrModelConversion); |
| *count += sizeof(VkSamplerYcbcrRange); |
| *count += sizeof(VkChromaLocation); |
| *count += sizeof(VkChromaLocation); |
| } |
| |
| void count_VkImportAndroidHardwareBufferInfoANDROID( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkImportAndroidHardwareBufferInfoANDROID* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(AHardwareBuffer); |
| } |
| |
| void count_VkMemoryGetAndroidHardwareBufferInfoANDROID( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryGetAndroidHardwareBufferInfoANDROID* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkExternalFormatANDROID(uint32_t featureBits, VkStructureType rootType, |
| const VkExternalFormatANDROID* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkAndroidHardwareBufferFormatProperties2ANDROID( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkAndroidHardwareBufferFormatProperties2ANDROID* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFormat); |
| *count += sizeof(uint64_t); |
| *count += sizeof(VkFormatFeatureFlags2KHR); |
| count_VkComponentMapping(featureBits, rootType, |
| (VkComponentMapping*)(&toCount->samplerYcbcrConversionComponents), |
| count); |
| *count += sizeof(VkSamplerYcbcrModelConversion); |
| *count += sizeof(VkSamplerYcbcrRange); |
| *count += sizeof(VkChromaLocation); |
| *count += sizeof(VkChromaLocation); |
| } |
| |
| #endif |
| #ifdef VK_EXT_sampler_filter_minmax |
| #endif |
| #ifdef VK_AMD_gpu_shader_int16 |
| #endif |
| #ifdef VK_AMD_mixed_attachment_samples |
| #endif |
| #ifdef VK_AMD_shader_fragment_mask |
| #endif |
| #ifdef VK_EXT_inline_uniform_block |
| void count_VkPhysicalDeviceInlineUniformBlockFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceInlineUniformBlockFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceInlineUniformBlockPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceInlineUniformBlockPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkWriteDescriptorSetInlineUniformBlockEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkWriteDescriptorSetInlineUniformBlockEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->dataSize * sizeof(const uint8_t); |
| } |
| } |
| |
| void count_VkDescriptorPoolInlineUniformBlockCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDescriptorPoolInlineUniformBlockCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_stencil_export |
| #endif |
| #ifdef VK_EXT_sample_locations |
| void count_VkSampleLocationEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkSampleLocationEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(float); |
| *count += sizeof(float); |
| } |
| |
| void count_VkSampleLocationsInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkSampleLocationsInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSampleCountFlagBits); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->sampleLocationGridSize), count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->sampleLocationsCount; ++i) { |
| count_VkSampleLocationEXT(featureBits, rootType, |
| (const VkSampleLocationEXT*)(toCount->pSampleLocations + i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkAttachmentSampleLocationsEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkAttachmentSampleLocationsEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| count_VkSampleLocationsInfoEXT( |
| featureBits, rootType, (VkSampleLocationsInfoEXT*)(&toCount->sampleLocationsInfo), count); |
| } |
| |
| void count_VkSubpassSampleLocationsEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkSubpassSampleLocationsEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| count_VkSampleLocationsInfoEXT( |
| featureBits, rootType, (VkSampleLocationsInfoEXT*)(&toCount->sampleLocationsInfo), count); |
| } |
| |
| void count_VkRenderPassSampleLocationsBeginInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkRenderPassSampleLocationsBeginInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->attachmentInitialSampleLocationsCount; ++i) { |
| count_VkAttachmentSampleLocationsEXT( |
| featureBits, rootType, |
| (const VkAttachmentSampleLocationsEXT*)(toCount->pAttachmentInitialSampleLocations + |
| i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->postSubpassSampleLocationsCount; ++i) { |
| count_VkSubpassSampleLocationsEXT( |
| featureBits, rootType, |
| (const VkSubpassSampleLocationsEXT*)(toCount->pPostSubpassSampleLocations + i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkPipelineSampleLocationsStateCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineSampleLocationsStateCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| count_VkSampleLocationsInfoEXT( |
| featureBits, rootType, (VkSampleLocationsInfoEXT*)(&toCount->sampleLocationsInfo), count); |
| } |
| |
| void count_VkPhysicalDeviceSampleLocationsPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSampleLocationsPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSampleCountFlags); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxSampleLocationGridSize), |
| count); |
| *count += 2 * sizeof(float); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkMultisamplePropertiesEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkMultisamplePropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxSampleLocationGridSize), |
| count); |
| } |
| |
| #endif |
| #ifdef VK_EXT_blend_operation_advanced |
| void count_VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceBlendOperationAdvancedFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceBlendOperationAdvancedPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPipelineColorBlendAdvancedStateCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineColorBlendAdvancedStateCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBlendOverlapEXT); |
| } |
| |
| #endif |
| #ifdef VK_NV_fragment_coverage_to_color |
| void count_VkPipelineCoverageToColorStateCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineCoverageToColorStateCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineCoverageToColorStateCreateFlagsNV); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_NV_framebuffer_mixed_samples |
| void count_VkPipelineCoverageModulationStateCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineCoverageModulationStateCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineCoverageModulationStateCreateFlagsNV); |
| *count += sizeof(VkCoverageModulationModeNV); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pCoverageModulationTable) { |
| if (toCount) { |
| *count += toCount->coverageModulationTableCount * sizeof(const float); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_fill_rectangle |
| #endif |
| #ifdef VK_NV_shader_sm_builtins |
| void count_VkPhysicalDeviceShaderSMBuiltinsPropertiesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderSMBuiltinsPropertiesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPhysicalDeviceShaderSMBuiltinsFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderSMBuiltinsFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_post_depth_coverage |
| #endif |
| #ifdef VK_EXT_image_drm_format_modifier |
| void count_VkDrmFormatModifierPropertiesEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDrmFormatModifierPropertiesEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkFormatFeatureFlags); |
| } |
| |
| void count_VkDrmFormatModifierPropertiesListEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDrmFormatModifierPropertiesListEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pDrmFormatModifierProperties) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->drmFormatModifierCount; ++i) { |
| count_VkDrmFormatModifierPropertiesEXT( |
| featureBits, rootType, |
| (VkDrmFormatModifierPropertiesEXT*)(toCount->pDrmFormatModifierProperties + i), |
| count); |
| } |
| } |
| } |
| } |
| |
| void count_VkPhysicalDeviceImageDrmFormatModifierInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceImageDrmFormatModifierInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint64_t); |
| *count += sizeof(VkSharingMode); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pQueueFamilyIndices) { |
| if (toCount) { |
| *count += toCount->queueFamilyIndexCount * sizeof(const uint32_t); |
| } |
| } |
| } |
| |
| void count_VkImageDrmFormatModifierListCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkImageDrmFormatModifierListCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->drmFormatModifierCount * sizeof(const uint64_t); |
| } |
| } |
| |
| void count_VkImageDrmFormatModifierExplicitCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkImageDrmFormatModifierExplicitCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->drmFormatModifierPlaneCount; ++i) { |
| count_VkSubresourceLayout(featureBits, rootType, |
| (const VkSubresourceLayout*)(toCount->pPlaneLayouts + i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkImageDrmFormatModifierPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkImageDrmFormatModifierPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkDrmFormatModifierProperties2EXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDrmFormatModifierProperties2EXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkFormatFeatureFlags2KHR); |
| } |
| |
| void count_VkDrmFormatModifierPropertiesList2EXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDrmFormatModifierPropertiesList2EXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pDrmFormatModifierProperties) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->drmFormatModifierCount; ++i) { |
| count_VkDrmFormatModifierProperties2EXT( |
| featureBits, rootType, |
| (VkDrmFormatModifierProperties2EXT*)(toCount->pDrmFormatModifierProperties + i), |
| count); |
| } |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_validation_cache |
| void count_VkValidationCacheCreateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkValidationCacheCreateInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkValidationCacheCreateFlagsEXT); |
| *count += 8; |
| if (toCount) { |
| *count += toCount->initialDataSize * sizeof(const uint8_t); |
| } |
| } |
| |
| void count_VkShaderModuleValidationCacheCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkShaderModuleValidationCacheCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| #endif |
| #ifdef VK_EXT_descriptor_indexing |
| #endif |
| #ifdef VK_EXT_shader_viewport_index_layer |
| #endif |
| #ifdef VK_NV_shading_rate_image |
| void count_VkShadingRatePaletteNV(uint32_t featureBits, VkStructureType rootType, |
| const VkShadingRatePaletteNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->shadingRatePaletteEntryCount * sizeof(const VkShadingRatePaletteEntryNV); |
| } |
| } |
| |
| void count_VkPipelineViewportShadingRateImageStateCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineViewportShadingRateImageStateCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pShadingRatePalettes) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->viewportCount; ++i) { |
| count_VkShadingRatePaletteNV( |
| featureBits, rootType, |
| (const VkShadingRatePaletteNV*)(toCount->pShadingRatePalettes + i), count); |
| } |
| } |
| } |
| } |
| |
| void count_VkPhysicalDeviceShadingRateImageFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShadingRateImageFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceShadingRateImagePropertiesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShadingRateImagePropertiesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->shadingRateTexelSize), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkCoarseSampleLocationNV(uint32_t featureBits, VkStructureType rootType, |
| const VkCoarseSampleLocationNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkCoarseSampleOrderCustomNV(uint32_t featureBits, VkStructureType rootType, |
| const VkCoarseSampleOrderCustomNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkShadingRatePaletteEntryNV); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->sampleLocationCount; ++i) { |
| count_VkCoarseSampleLocationNV( |
| featureBits, rootType, |
| (const VkCoarseSampleLocationNV*)(toCount->pSampleLocations + i), count); |
| } |
| } |
| } |
| |
| void count_VkPipelineViewportCoarseSampleOrderStateCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineViewportCoarseSampleOrderStateCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkCoarseSampleOrderTypeNV); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->customSampleOrderCount; ++i) { |
| count_VkCoarseSampleOrderCustomNV( |
| featureBits, rootType, |
| (const VkCoarseSampleOrderCustomNV*)(toCount->pCustomSampleOrders + i), count); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_ray_tracing |
| void count_VkRayTracingShaderGroupCreateInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkRayTracingShaderGroupCreateInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkRayTracingShaderGroupTypeKHR); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkRayTracingPipelineCreateInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkRayTracingPipelineCreateInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineCreateFlags); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->stageCount; ++i) { |
| count_VkPipelineShaderStageCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineShaderStageCreateInfo*)(toCount->pStages + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->groupCount; ++i) { |
| count_VkRayTracingShaderGroupCreateInfoNV( |
| featureBits, rootType, |
| (const VkRayTracingShaderGroupCreateInfoNV*)(toCount->pGroups + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(int32_t); |
| } |
| |
| void count_VkGeometryTrianglesNV(uint32_t featureBits, VkStructureType rootType, |
| const VkGeometryTrianglesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkFormat); |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkIndexType); |
| uint64_t cgen_var_2; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkGeometryAABBNV(uint32_t featureBits, VkStructureType rootType, |
| const VkGeometryAABBNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkGeometryDataNV(uint32_t featureBits, VkStructureType rootType, |
| const VkGeometryDataNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkGeometryTrianglesNV(featureBits, rootType, |
| (VkGeometryTrianglesNV*)(&toCount->triangles), count); |
| count_VkGeometryAABBNV(featureBits, rootType, (VkGeometryAABBNV*)(&toCount->aabbs), count); |
| } |
| |
| void count_VkGeometryNV(uint32_t featureBits, VkStructureType rootType, const VkGeometryNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkGeometryTypeKHR); |
| count_VkGeometryDataNV(featureBits, rootType, (VkGeometryDataNV*)(&toCount->geometry), count); |
| *count += sizeof(VkGeometryFlagsKHR); |
| } |
| |
| void count_VkAccelerationStructureInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkAccelerationStructureInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkAccelerationStructureTypeNV); |
| *count += sizeof(VkBuildAccelerationStructureFlagsNV); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->geometryCount; ++i) { |
| count_VkGeometryNV(featureBits, rootType, |
| (const VkGeometryNV*)(toCount->pGeometries + i), count); |
| } |
| } |
| } |
| |
| void count_VkAccelerationStructureCreateInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkAccelerationStructureCreateInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceSize); |
| count_VkAccelerationStructureInfoNV(featureBits, rootType, |
| (VkAccelerationStructureInfoNV*)(&toCount->info), count); |
| } |
| |
| void count_VkBindAccelerationStructureMemoryInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkBindAccelerationStructureMemoryInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->deviceIndexCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkWriteDescriptorSetAccelerationStructureNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkWriteDescriptorSetAccelerationStructureNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pAccelerationStructures) { |
| if (toCount->accelerationStructureCount) { |
| *count += toCount->accelerationStructureCount * 8; |
| } |
| } |
| } |
| |
| void count_VkAccelerationStructureMemoryRequirementsInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkAccelerationStructureMemoryRequirementsInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkAccelerationStructureMemoryRequirementsTypeNV); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| } |
| |
| void count_VkPhysicalDeviceRayTracingPropertiesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceRayTracingPropertiesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkTransformMatrixKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkTransformMatrixKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += ((3) * (4)) * sizeof(float); |
| } |
| |
| void count_VkAabbPositionsKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkAabbPositionsKHR* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| } |
| |
| void count_VkAccelerationStructureInstanceKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkAccelerationStructureInstanceKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkTransformMatrixKHR(featureBits, rootType, (VkTransformMatrixKHR*)(&toCount->transform), |
| count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkGeometryInstanceFlagsKHR); |
| *count += sizeof(uint64_t); |
| } |
| |
| #endif |
| #ifdef VK_NV_representative_fragment_test |
| void count_VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceRepresentativeFragmentTestFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPipelineRepresentativeFragmentTestStateCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineRepresentativeFragmentTestStateCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_filter_cubic |
| void count_VkPhysicalDeviceImageViewImageFormatInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceImageViewImageFormatInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImageViewType); |
| } |
| |
| void count_VkFilterCubicImageViewImageFormatPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkFilterCubicImageViewImageFormatPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_QCOM_render_pass_shader_resolve |
| #endif |
| #ifdef VK_EXT_global_priority |
| void count_VkDeviceQueueGlobalPriorityCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceQueueGlobalPriorityCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkQueueGlobalPriorityEXT); |
| } |
| |
| #endif |
| #ifdef VK_EXT_external_memory_host |
| void count_VkImportMemoryHostPointerInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkImportMemoryHostPointerInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkExternalMemoryHandleTypeFlagBits); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pHostPointer) { |
| *count += sizeof(uint8_t); |
| } |
| } |
| |
| void count_VkMemoryHostPointerPropertiesEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryHostPointerPropertiesEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPhysicalDeviceExternalMemoryHostPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceExternalMemoryHostPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| #endif |
| #ifdef VK_AMD_buffer_marker |
| #endif |
| #ifdef VK_AMD_pipeline_compiler_control |
| void count_VkPipelineCompilerControlCreateInfoAMD( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineCompilerControlCreateInfoAMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineCompilerControlFlagsAMD); |
| } |
| |
| #endif |
| #ifdef VK_EXT_calibrated_timestamps |
| void count_VkCalibratedTimestampInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkCalibratedTimestampInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkTimeDomainEXT); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_core_properties |
| void count_VkPhysicalDeviceShaderCorePropertiesAMD( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderCorePropertiesAMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_EXT_video_decode_h265 |
| void count_VkVideoDecodeH265ProfileEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH265ProfileEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(StdVideoH265ProfileIdc); |
| } |
| |
| void count_VkVideoDecodeH265CapabilitiesEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH265CapabilitiesEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| count_VkExtensionProperties(featureBits, rootType, |
| (VkExtensionProperties*)(&toCount->stdExtensionVersion), count); |
| } |
| |
| void count_VkVideoDecodeH265SessionCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH265SessionCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkVideoDecodeH265CreateFlagsEXT); |
| count_VkExtensionProperties(featureBits, rootType, |
| (const VkExtensionProperties*)(toCount->pStdExtensionVersion), |
| count); |
| } |
| |
| void count_VkVideoDecodeH265SessionParametersAddInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH265SessionParametersAddInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pSpsStd) { |
| if (toCount) { |
| *count += toCount->spsStdCount * sizeof(const StdVideoH265SequenceParameterSet); |
| } |
| } |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pPpsStd) { |
| if (toCount) { |
| *count += toCount->ppsStdCount * sizeof(const StdVideoH265PictureParameterSet); |
| } |
| } |
| } |
| |
| void count_VkVideoDecodeH265SessionParametersCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH265SessionParametersCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pParametersAddInfo) { |
| count_VkVideoDecodeH265SessionParametersAddInfoEXT( |
| featureBits, rootType, |
| (const VkVideoDecodeH265SessionParametersAddInfoEXT*)(toCount->pParametersAddInfo), |
| count); |
| } |
| } |
| |
| void count_VkVideoDecodeH265PictureInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH265PictureInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(StdVideoDecodeH265PictureInfo); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->slicesCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkVideoDecodeH265DpbSlotInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVideoDecodeH265DpbSlotInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(const StdVideoDecodeH265ReferenceInfo); |
| } |
| |
| #endif |
| #ifdef VK_AMD_memory_overallocation_behavior |
| void count_VkDeviceMemoryOverallocationCreateInfoAMD( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceMemoryOverallocationCreateInfoAMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkMemoryOverallocationBehaviorAMD); |
| } |
| |
| #endif |
| #ifdef VK_EXT_vertex_attribute_divisor |
| void count_VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkVertexInputBindingDivisorDescriptionEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVertexInputBindingDivisorDescriptionEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPipelineVertexInputDivisorStateCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineVertexInputDivisorStateCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->vertexBindingDivisorCount; ++i) { |
| count_VkVertexInputBindingDivisorDescriptionEXT( |
| featureBits, rootType, |
| (const VkVertexInputBindingDivisorDescriptionEXT*)(toCount->pVertexBindingDivisors + |
| i), |
| count); |
| } |
| } |
| } |
| |
| void count_VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceVertexAttributeDivisorFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_GGP_frame_token |
| void count_VkPresentFrameTokenGGP(uint32_t featureBits, VkStructureType rootType, |
| const VkPresentFrameTokenGGP* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(GgpFrameToken); |
| } |
| |
| #endif |
| #ifdef VK_EXT_pipeline_creation_feedback |
| void count_VkPipelineCreationFeedbackEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineCreationFeedbackEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkPipelineCreationFeedbackFlagsEXT); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkPipelineCreationFeedbackCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineCreationFeedbackCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkPipelineCreationFeedbackEXT( |
| featureBits, rootType, (VkPipelineCreationFeedbackEXT*)(toCount->pPipelineCreationFeedback), |
| count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->pipelineStageCreationFeedbackCount; ++i) { |
| count_VkPipelineCreationFeedbackEXT( |
| featureBits, rootType, |
| (VkPipelineCreationFeedbackEXT*)(toCount->pPipelineStageCreationFeedbacks + i), |
| count); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_shader_subgroup_partitioned |
| #endif |
| #ifdef VK_NV_compute_shader_derivatives |
| void count_VkPhysicalDeviceComputeShaderDerivativesFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceComputeShaderDerivativesFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_NV_mesh_shader |
| void count_VkPhysicalDeviceMeshShaderFeaturesNV(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMeshShaderFeaturesNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceMeshShaderPropertiesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMeshShaderPropertiesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += 3 * sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += 3 * sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDrawMeshTasksIndirectCommandNV(uint32_t featureBits, VkStructureType rootType, |
| const VkDrawMeshTasksIndirectCommandNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_NV_fragment_shader_barycentric |
| void count_VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShaderBarycentricFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_NV_shader_image_footprint |
| void count_VkPhysicalDeviceShaderImageFootprintFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderImageFootprintFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_NV_scissor_exclusive |
| void count_VkPipelineViewportExclusiveScissorStateCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineViewportExclusiveScissorStateCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pExclusiveScissors) { |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->exclusiveScissorCount; ++i) { |
| count_VkRect2D(featureBits, rootType, |
| (const VkRect2D*)(toCount->pExclusiveScissors + i), count); |
| } |
| } |
| } |
| } |
| |
| void count_VkPhysicalDeviceExclusiveScissorFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceExclusiveScissorFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_NV_device_diagnostic_checkpoints |
| void count_VkQueueFamilyCheckpointPropertiesNV(uint32_t featureBits, VkStructureType rootType, |
| const VkQueueFamilyCheckpointPropertiesNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineStageFlags); |
| } |
| |
| void count_VkCheckpointDataNV(uint32_t featureBits, VkStructureType rootType, |
| const VkCheckpointDataNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineStageFlagBits); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pCheckpointMarker) { |
| *count += sizeof(uint8_t); |
| } |
| } |
| |
| #endif |
| #ifdef VK_INTEL_shader_integer_functions2 |
| void count_VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderIntegerFunctions2FeaturesINTEL* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_INTEL_performance_query |
| void count_VkPerformanceValueDataINTEL(uint32_t featureBits, VkStructureType rootType, |
| const VkPerformanceValueDataINTEL* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPerformanceValueINTEL(uint32_t featureBits, VkStructureType rootType, |
| const VkPerformanceValueINTEL* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkPerformanceValueTypeINTEL); |
| count_VkPerformanceValueDataINTEL(featureBits, rootType, |
| (VkPerformanceValueDataINTEL*)(&toCount->data), count); |
| } |
| |
| void count_VkInitializePerformanceApiInfoINTEL(uint32_t featureBits, VkStructureType rootType, |
| const VkInitializePerformanceApiInfoINTEL* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pUserData) { |
| *count += sizeof(uint8_t); |
| } |
| } |
| |
| void count_VkQueryPoolPerformanceQueryCreateInfoINTEL( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkQueryPoolPerformanceQueryCreateInfoINTEL* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkQueryPoolSamplingModeINTEL); |
| } |
| |
| void count_VkPerformanceMarkerInfoINTEL(uint32_t featureBits, VkStructureType rootType, |
| const VkPerformanceMarkerInfoINTEL* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkPerformanceStreamMarkerInfoINTEL(uint32_t featureBits, VkStructureType rootType, |
| const VkPerformanceStreamMarkerInfoINTEL* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPerformanceOverrideInfoINTEL(uint32_t featureBits, VkStructureType rootType, |
| const VkPerformanceOverrideInfoINTEL* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPerformanceOverrideTypeINTEL); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkPerformanceConfigurationAcquireInfoINTEL( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPerformanceConfigurationAcquireInfoINTEL* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPerformanceConfigurationTypeINTEL); |
| } |
| |
| #endif |
| #ifdef VK_EXT_pci_bus_info |
| void count_VkPhysicalDevicePCIBusInfoPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePCIBusInfoPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_AMD_display_native_hdr |
| void count_VkDisplayNativeHdrSurfaceCapabilitiesAMD( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDisplayNativeHdrSurfaceCapabilitiesAMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkSwapchainDisplayNativeHdrCreateInfoAMD( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkSwapchainDisplayNativeHdrCreateInfoAMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_FUCHSIA_imagepipe_surface |
| void count_VkImagePipeSurfaceCreateInfoFUCHSIA(uint32_t featureBits, VkStructureType rootType, |
| const VkImagePipeSurfaceCreateInfoFUCHSIA* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkImagePipeSurfaceCreateFlagsFUCHSIA); |
| *count += sizeof(zx_handle_t); |
| } |
| |
| #endif |
| #ifdef VK_EXT_metal_surface |
| void count_VkMetalSurfaceCreateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkMetalSurfaceCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkMetalSurfaceCreateFlagsEXT); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pLayer) { |
| *count += sizeof(const CAMetalLayer); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_fragment_density_map |
| void count_VkPhysicalDeviceFragmentDensityMapFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentDensityMapFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceFragmentDensityMapPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentDensityMapPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->minFragmentDensityTexelSize), |
| count); |
| count_VkExtent2D(featureBits, rootType, (VkExtent2D*)(&toCount->maxFragmentDensityTexelSize), |
| count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkRenderPassFragmentDensityMapCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkRenderPassFragmentDensityMapCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkAttachmentReference(featureBits, rootType, |
| (VkAttachmentReference*)(&toCount->fragmentDensityMapAttachment), |
| count); |
| } |
| |
| #endif |
| #ifdef VK_EXT_scalar_block_layout |
| #endif |
| #ifdef VK_GOOGLE_hlsl_functionality1 |
| #endif |
| #ifdef VK_GOOGLE_decorate_string |
| #endif |
| #ifdef VK_EXT_subgroup_size_control |
| void count_VkPhysicalDeviceSubgroupSizeControlFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSubgroupSizeControlFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceSubgroupSizeControlPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceSubgroupSizeControlPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkShaderStageFlags); |
| } |
| |
| void count_VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineShaderStageRequiredSubgroupSizeCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_AMD_shader_core_properties2 |
| void count_VkPhysicalDeviceShaderCoreProperties2AMD( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderCoreProperties2AMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkShaderCorePropertiesFlagsAMD); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_AMD_device_coherent_memory |
| void count_VkPhysicalDeviceCoherentMemoryFeaturesAMD( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceCoherentMemoryFeaturesAMD* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_image_atomic_int64 |
| void count_VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderImageAtomicInt64FeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_memory_budget |
| void count_VkPhysicalDeviceMemoryBudgetPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMemoryBudgetPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += VK_MAX_MEMORY_HEAPS * sizeof(VkDeviceSize); |
| *count += VK_MAX_MEMORY_HEAPS * sizeof(VkDeviceSize); |
| } |
| |
| #endif |
| #ifdef VK_EXT_memory_priority |
| void count_VkPhysicalDeviceMemoryPriorityFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMemoryPriorityFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkMemoryPriorityAllocateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkMemoryPriorityAllocateInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(float); |
| } |
| |
| #endif |
| #ifdef VK_NV_dedicated_allocation_image_aliasing |
| void count_VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_buffer_device_address |
| void count_VkPhysicalDeviceBufferDeviceAddressFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceBufferDeviceAddressFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkBufferDeviceAddressCreateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkBufferDeviceAddressCreateInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceAddress); |
| } |
| |
| #endif |
| #ifdef VK_EXT_tooling_info |
| void count_VkPhysicalDeviceToolPropertiesEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceToolPropertiesEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += VK_MAX_EXTENSION_NAME_SIZE * sizeof(char); |
| *count += VK_MAX_EXTENSION_NAME_SIZE * sizeof(char); |
| *count += sizeof(VkToolPurposeFlagsEXT); |
| *count += VK_MAX_DESCRIPTION_SIZE * sizeof(char); |
| *count += VK_MAX_EXTENSION_NAME_SIZE * sizeof(char); |
| } |
| |
| #endif |
| #ifdef VK_EXT_separate_stencil_usage |
| #endif |
| #ifdef VK_EXT_validation_features |
| void count_VkValidationFeaturesEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkValidationFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += |
| toCount->enabledValidationFeatureCount * sizeof(const VkValidationFeatureEnableEXT); |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += |
| toCount->disabledValidationFeatureCount * sizeof(const VkValidationFeatureDisableEXT); |
| } |
| } |
| |
| #endif |
| #ifdef VK_NV_cooperative_matrix |
| void count_VkCooperativeMatrixPropertiesNV(uint32_t featureBits, VkStructureType rootType, |
| const VkCooperativeMatrixPropertiesNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkComponentTypeNV); |
| *count += sizeof(VkComponentTypeNV); |
| *count += sizeof(VkComponentTypeNV); |
| *count += sizeof(VkComponentTypeNV); |
| *count += sizeof(VkScopeNV); |
| } |
| |
| void count_VkPhysicalDeviceCooperativeMatrixFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceCooperativeMatrixFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceCooperativeMatrixPropertiesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceCooperativeMatrixPropertiesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkShaderStageFlags); |
| } |
| |
| #endif |
| #ifdef VK_NV_coverage_reduction_mode |
| void count_VkPhysicalDeviceCoverageReductionModeFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceCoverageReductionModeFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPipelineCoverageReductionStateCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineCoverageReductionStateCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineCoverageReductionStateCreateFlagsNV); |
| *count += sizeof(VkCoverageReductionModeNV); |
| } |
| |
| void count_VkFramebufferMixedSamplesCombinationNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkFramebufferMixedSamplesCombinationNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkCoverageReductionModeNV); |
| *count += sizeof(VkSampleCountFlagBits); |
| *count += sizeof(VkSampleCountFlags); |
| *count += sizeof(VkSampleCountFlags); |
| } |
| |
| #endif |
| #ifdef VK_EXT_fragment_shader_interlock |
| void count_VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShaderInterlockFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_ycbcr_image_arrays |
| void count_VkPhysicalDeviceYcbcrImageArraysFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceYcbcrImageArraysFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_provoking_vertex |
| void count_VkPhysicalDeviceProvokingVertexFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceProvokingVertexFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceProvokingVertexPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceProvokingVertexPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPipelineRasterizationProvokingVertexStateCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineRasterizationProvokingVertexStateCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkProvokingVertexModeEXT); |
| } |
| |
| #endif |
| #ifdef VK_EXT_full_screen_exclusive |
| void count_VkSurfaceFullScreenExclusiveInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkSurfaceFullScreenExclusiveInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFullScreenExclusiveEXT); |
| } |
| |
| void count_VkSurfaceCapabilitiesFullScreenExclusiveEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkSurfaceCapabilitiesFullScreenExclusiveEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkSurfaceFullScreenExclusiveWin32InfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkSurfaceFullScreenExclusiveWin32InfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(HMONITOR); |
| } |
| |
| #endif |
| #ifdef VK_EXT_headless_surface |
| void count_VkHeadlessSurfaceCreateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkHeadlessSurfaceCreateInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkHeadlessSurfaceCreateFlagsEXT); |
| } |
| |
| #endif |
| #ifdef VK_EXT_line_rasterization |
| void count_VkPhysicalDeviceLineRasterizationFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceLineRasterizationFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceLineRasterizationPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceLineRasterizationPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPipelineRasterizationLineStateCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineRasterizationLineStateCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkLineRasterizationModeEXT); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint16_t); |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_atomic_float |
| void count_VkPhysicalDeviceShaderAtomicFloatFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderAtomicFloatFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_host_query_reset |
| #endif |
| #ifdef VK_EXT_index_type_uint8 |
| void count_VkPhysicalDeviceIndexTypeUint8FeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceIndexTypeUint8FeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_extended_dynamic_state |
| void count_VkPhysicalDeviceExtendedDynamicStateFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceExtendedDynamicStateFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_atomic_float2 |
| void count_VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderAtomicFloat2FeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_shader_demote_to_helper_invocation |
| void count_VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_NV_device_generated_commands |
| void count_VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDeviceGeneratedCommandsPropertiesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDeviceGeneratedCommandsFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkGraphicsShaderGroupCreateInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkGraphicsShaderGroupCreateInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->stageCount; ++i) { |
| count_VkPipelineShaderStageCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineShaderStageCreateInfo*)(toCount->pStages + i), count); |
| } |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pVertexInputState) { |
| count_VkPipelineVertexInputStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineVertexInputStateCreateInfo*)(toCount->pVertexInputState), count); |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pTessellationState) { |
| count_VkPipelineTessellationStateCreateInfo( |
| featureBits, rootType, |
| (const VkPipelineTessellationStateCreateInfo*)(toCount->pTessellationState), count); |
| } |
| } |
| |
| void count_VkGraphicsPipelineShaderGroupsCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkGraphicsPipelineShaderGroupsCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->groupCount; ++i) { |
| count_VkGraphicsShaderGroupCreateInfoNV( |
| featureBits, rootType, |
| (const VkGraphicsShaderGroupCreateInfoNV*)(toCount->pGroups + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount->pipelineCount) { |
| *count += toCount->pipelineCount * 8; |
| } |
| } |
| |
| void count_VkBindShaderGroupIndirectCommandNV(uint32_t featureBits, VkStructureType rootType, |
| const VkBindShaderGroupIndirectCommandNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkBindIndexBufferIndirectCommandNV(uint32_t featureBits, VkStructureType rootType, |
| const VkBindIndexBufferIndirectCommandNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDeviceAddress); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkIndexType); |
| } |
| |
| void count_VkBindVertexBufferIndirectCommandNV(uint32_t featureBits, VkStructureType rootType, |
| const VkBindVertexBufferIndirectCommandNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDeviceAddress); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkSetStateFlagsIndirectCommandNV(uint32_t featureBits, VkStructureType rootType, |
| const VkSetStateFlagsIndirectCommandNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkIndirectCommandsStreamNV(uint32_t featureBits, VkStructureType rootType, |
| const VkIndirectCommandsStreamNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkIndirectCommandsLayoutTokenNV(uint32_t featureBits, VkStructureType rootType, |
| const VkIndirectCommandsLayoutTokenNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkIndirectCommandsTokenTypeNV); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkBool32); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| *count += sizeof(VkShaderStageFlags); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkIndirectStateFlagsNV); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->indexTypeCount * sizeof(const VkIndexType); |
| } |
| if (toCount) { |
| *count += toCount->indexTypeCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkIndirectCommandsLayoutCreateInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkIndirectCommandsLayoutCreateInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkIndirectCommandsLayoutUsageFlagsNV); |
| *count += sizeof(VkPipelineBindPoint); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->tokenCount; ++i) { |
| count_VkIndirectCommandsLayoutTokenNV( |
| featureBits, rootType, |
| (const VkIndirectCommandsLayoutTokenNV*)(toCount->pTokens + i), count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->streamCount * sizeof(const uint32_t); |
| } |
| } |
| |
| void count_VkGeneratedCommandsInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkGeneratedCommandsInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineBindPoint); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->streamCount; ++i) { |
| count_VkIndirectCommandsStreamNV( |
| featureBits, rootType, (const VkIndirectCommandsStreamNV*)(toCount->pStreams + i), |
| count); |
| } |
| } |
| *count += sizeof(uint32_t); |
| uint64_t cgen_var_2; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| uint64_t cgen_var_3; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| uint64_t cgen_var_4; |
| *count += 1 * 8; |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| void count_VkGeneratedCommandsMemoryRequirementsInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkGeneratedCommandsMemoryRequirementsInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPipelineBindPoint); |
| uint64_t cgen_var_0; |
| *count += 1 * 8; |
| uint64_t cgen_var_1; |
| *count += 1 * 8; |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_NV_inherited_viewport_scissor |
| void count_VkPhysicalDeviceInheritedViewportScissorFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceInheritedViewportScissorFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkCommandBufferInheritanceViewportScissorInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkCommandBufferInheritanceViewportScissorInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->pViewportDepths) { |
| count_VkViewport(featureBits, rootType, (const VkViewport*)(toCount->pViewportDepths), |
| count); |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_texel_buffer_alignment |
| void count_VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceTexelBufferAlignmentFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceTexelBufferAlignmentPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_QCOM_render_pass_transform |
| void count_VkRenderPassTransformBeginInfoQCOM(uint32_t featureBits, VkStructureType rootType, |
| const VkRenderPassTransformBeginInfoQCOM* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSurfaceTransformFlagBitsKHR); |
| } |
| |
| void count_VkCommandBufferInheritanceRenderPassTransformInfoQCOM( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkCommandBufferInheritanceRenderPassTransformInfoQCOM* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSurfaceTransformFlagBitsKHR); |
| count_VkRect2D(featureBits, rootType, (VkRect2D*)(&toCount->renderArea), count); |
| } |
| |
| #endif |
| #ifdef VK_EXT_device_memory_report |
| void count_VkPhysicalDeviceDeviceMemoryReportFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDeviceMemoryReportFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkDeviceMemoryReportCallbackDataEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceMemoryReportCallbackDataEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceMemoryReportFlagsEXT); |
| *count += sizeof(VkDeviceMemoryReportEventTypeEXT); |
| *count += sizeof(uint64_t); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkObjectType); |
| *count += sizeof(uint64_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkDeviceDeviceMemoryReportCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceDeviceMemoryReportCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceMemoryReportFlagsEXT); |
| *count += 8; |
| *count += sizeof(uint8_t); |
| } |
| |
| #endif |
| #ifdef VK_EXT_acquire_drm_display |
| #endif |
| #ifdef VK_EXT_robustness2 |
| void count_VkPhysicalDeviceRobustness2FeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceRobustness2FeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceRobustness2PropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceRobustness2PropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceSize); |
| *count += sizeof(VkDeviceSize); |
| } |
| |
| #endif |
| #ifdef VK_EXT_custom_border_color |
| void count_VkSamplerCustomBorderColorCreateInfoEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkSamplerCustomBorderColorCreateInfoEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkClearColorValue(featureBits, rootType, |
| (VkClearColorValue*)(&toCount->customBorderColor), count); |
| *count += sizeof(VkFormat); |
| } |
| |
| void count_VkPhysicalDeviceCustomBorderColorPropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceCustomBorderColorPropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPhysicalDeviceCustomBorderColorFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceCustomBorderColorFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_GOOGLE_user_type |
| #endif |
| #ifdef VK_EXT_private_data |
| void count_VkPhysicalDevicePrivateDataFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePrivateDataFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkDevicePrivateDataCreateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDevicePrivateDataCreateInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkPrivateDataSlotCreateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkPrivateDataSlotCreateInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkPrivateDataSlotCreateFlagsEXT); |
| } |
| |
| #endif |
| #ifdef VK_EXT_pipeline_creation_cache_control |
| void count_VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_NV_device_diagnostics_config |
| void count_VkPhysicalDeviceDiagnosticsConfigFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDiagnosticsConfigFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkDeviceDiagnosticsConfigCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceDiagnosticsConfigCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDeviceDiagnosticsConfigFlagsNV); |
| } |
| |
| #endif |
| #ifdef VK_QCOM_render_pass_store_ops |
| #endif |
| #ifdef VK_NV_fragment_shading_rate_enums |
| void count_VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRateEnumsFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentShadingRateEnumsPropertiesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSampleCountFlagBits); |
| } |
| |
| void count_VkPipelineFragmentShadingRateEnumStateCreateInfoNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPipelineFragmentShadingRateEnumStateCreateInfoNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkFragmentShadingRateTypeNV); |
| *count += sizeof(VkFragmentShadingRateNV); |
| *count += 2 * sizeof(VkFragmentShadingRateCombinerOpKHR); |
| } |
| |
| #endif |
| #ifdef VK_NV_ray_tracing_motion_blur |
| void count_VkDeviceOrHostAddressConstKHR(uint32_t featureBits, VkStructureType rootType, |
| const VkDeviceOrHostAddressConstKHR* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkDeviceAddress); |
| } |
| |
| void count_VkAccelerationStructureGeometryMotionTrianglesDataNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkAccelerationStructureGeometryMotionTrianglesDataNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| count_VkDeviceOrHostAddressConstKHR( |
| featureBits, rootType, (VkDeviceOrHostAddressConstKHR*)(&toCount->vertexData), count); |
| } |
| |
| void count_VkAccelerationStructureMotionInfoNV(uint32_t featureBits, VkStructureType rootType, |
| const VkAccelerationStructureMotionInfoNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkAccelerationStructureMotionInfoFlagsNV); |
| } |
| |
| void count_VkAccelerationStructureMatrixMotionInstanceNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkAccelerationStructureMatrixMotionInstanceNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkTransformMatrixKHR(featureBits, rootType, |
| (VkTransformMatrixKHR*)(&toCount->transformT0), count); |
| count_VkTransformMatrixKHR(featureBits, rootType, |
| (VkTransformMatrixKHR*)(&toCount->transformT1), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkGeometryInstanceFlagsKHR); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkSRTDataNV(uint32_t featureBits, VkStructureType rootType, const VkSRTDataNV* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| *count += sizeof(float); |
| } |
| |
| void count_VkAccelerationStructureSRTMotionInstanceNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkAccelerationStructureSRTMotionInstanceNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkSRTDataNV(featureBits, rootType, (VkSRTDataNV*)(&toCount->transformT0), count); |
| count_VkSRTDataNV(featureBits, rootType, (VkSRTDataNV*)(&toCount->transformT1), count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkGeometryInstanceFlagsKHR); |
| *count += sizeof(uint64_t); |
| } |
| |
| void count_VkAccelerationStructureMotionInstanceDataNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkAccelerationStructureMotionInstanceDataNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| count_VkAccelerationStructureInstanceKHR( |
| featureBits, rootType, (VkAccelerationStructureInstanceKHR*)(&toCount->staticInstance), |
| count); |
| } |
| |
| void count_VkAccelerationStructureMotionInstanceNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkAccelerationStructureMotionInstanceNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkAccelerationStructureMotionInstanceTypeNV); |
| *count += sizeof(VkAccelerationStructureMotionInstanceFlagsNV); |
| count_VkAccelerationStructureMotionInstanceDataNV( |
| featureBits, rootType, (VkAccelerationStructureMotionInstanceDataNV*)(&toCount->data), |
| count); |
| } |
| |
| void count_VkPhysicalDeviceRayTracingMotionBlurFeaturesNV( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceRayTracingMotionBlurFeaturesNV* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_ycbcr_2plane_444_formats |
| void count_VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceYcbcr2Plane444FormatsFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_fragment_density_map2 |
| void count_VkPhysicalDeviceFragmentDensityMap2FeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentDensityMap2FeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkPhysicalDeviceFragmentDensityMap2PropertiesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceFragmentDensityMap2PropertiesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_QCOM_rotated_copy_commands |
| void count_VkCopyCommandTransformInfoQCOM(uint32_t featureBits, VkStructureType rootType, |
| const VkCopyCommandTransformInfoQCOM* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkSurfaceTransformFlagBitsKHR); |
| } |
| |
| #endif |
| #ifdef VK_EXT_image_robustness |
| void count_VkPhysicalDeviceImageRobustnessFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceImageRobustnessFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_4444_formats |
| void count_VkPhysicalDevice4444FormatsFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevice4444FormatsFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_EXT_rgba10x6_formats |
| void count_VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceRGBA10X6FormatsFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_NV_acquire_winrt_display |
| #endif |
| #ifdef VK_EXT_directfb_surface |
| void count_VkDirectFBSurfaceCreateInfoEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkDirectFBSurfaceCreateInfoEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkDirectFBSurfaceCreateFlagsEXT); |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->dfb) { |
| *count += sizeof(IDirectFB); |
| } |
| // WARNING PTR CHECK |
| *count += 8; |
| if (toCount->surface) { |
| *count += sizeof(IDirectFBSurface); |
| } |
| } |
| |
| #endif |
| #ifdef VK_VALVE_mutable_descriptor_type |
| void count_VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceMutableDescriptorTypeFeaturesVALVE* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkMutableDescriptorTypeListVALVE(uint32_t featureBits, VkStructureType rootType, |
| const VkMutableDescriptorTypeListVALVE* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| *count += toCount->descriptorTypeCount * sizeof(const VkDescriptorType); |
| } |
| } |
| |
| void count_VkMutableDescriptorTypeCreateInfoVALVE( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkMutableDescriptorTypeCreateInfoVALVE* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| if (toCount) { |
| for (uint32_t i = 0; i < (uint32_t)toCount->mutableDescriptorTypeListCount; ++i) { |
| count_VkMutableDescriptorTypeListVALVE( |
| featureBits, rootType, |
| (const VkMutableDescriptorTypeListVALVE*)(toCount->pMutableDescriptorTypeLists + i), |
| count); |
| } |
| } |
| } |
| |
| #endif |
| #ifdef VK_EXT_vertex_input_dynamic_state |
| void count_VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| } |
| |
| void count_VkVertexInputBindingDescription2EXT(uint32_t featureBits, VkStructureType rootType, |
| const VkVertexInputBindingDescription2EXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkVertexInputRate); |
| *count += sizeof(uint32_t); |
| } |
| |
| void count_VkVertexInputAttributeDescription2EXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkVertexInputAttributeDescription2EXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(uint32_t); |
| *count += sizeof(uint32_t); |
| *count += sizeof(VkFormat); |
| *count += sizeof(uint32_t); |
| } |
| |
| #endif |
| #ifdef VK_EXT_physical_device_drm |
| void count_VkPhysicalDeviceDrmPropertiesEXT(uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDeviceDrmPropertiesEXT* toCount, |
| size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| *count += sizeof(int64_t); |
| *count += sizeof(int64_t); |
| *count += sizeof(int64_t); |
| *count += sizeof(int64_t); |
| } |
| |
| #endif |
| #ifdef VK_EXT_primitive_topology_list_restart |
| void count_VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkPhysicalDevicePrimitiveTopologyListRestartFeaturesEXT* toCount, size_t* count) { |
| (void)featureBits; |
| (void)rootType; |
| (void)toCount; |
| (void)count; |
| *count += sizeof(VkStructureType); |
| if (rootType == VK_STRUCTURE_TYPE_MAX_ENUM) { |
| rootType = toCount->sType; |
| } |
| count_extension_struct(featureBits, rootType, toCount->pNext, count); |
| *count += sizeof(VkBool32); |
| *count += sizeof(VkBool32); |
| } |
| |
| #endif |
| #ifdef VK_FUCHSIA_external_memory |
| void count_VkImportMemoryZirconHandleInfoFUCHSIA( |
| uint32_t featureBits, VkStructureType rootType, |
| const VkImportMemoryZirconHandleInfoFUCHSIA* toCount, size_t* count) { |
| ( |