|
1 | 1 |
|
2 | | -/* Copyright (c) 2015-2025 Valve Corporation |
3 | | - * Copyright (c) 2015-2025 LunarG, Inc. |
| 2 | +/* Copyright (c) 2015-2026 Valve Corporation |
| 3 | + * Copyright (c) 2015-2026 LunarG, Inc. |
4 | 4 | * Copyright (c) 2015-2017, 2019, 2021 Google Inc. |
5 | 5 | * |
6 | 6 | * Licensed under the Apache License, Version 2.0 (the "License"); |
@@ -32474,18 +32474,27 @@ void dump_VkTensorViewCreateInfoARM(const VkTensorViewCreateInfoARM& object, con |
32474 | 32474 | template <ApiDumpFormat Format> |
32475 | 32475 | void dump_VkResourceDescriptorDataEXT(const VkResourceDescriptorDataEXT& object, const ApiDumpSettings& settings, const char* type_name, const char* var_name, int indents, const void* address = nullptr) { |
32476 | 32476 | dump_start<Format>(settings, OutputConstruct::api_union, type_name, var_name, indents, address); |
32477 | | - dump_pointer<Format>(object.pImage, settings, "const VkImageDescriptorInfoEXT*", "pImage", indents + (Format == ApiDumpFormat::Json ? 2 : 1), dump_VkImageDescriptorInfoEXT<Format>); |
| 32477 | + if (ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE || ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_STORAGE_IMAGE || ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_SAMPLE_WEIGHT_IMAGE_QCOM || ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_BLOCK_MATCH_IMAGE_QCOM || ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT) { |
| 32478 | + dump_pointer<Format>(object.pImage, settings, "const VkImageDescriptorInfoEXT*", "pImage", indents + (Format == ApiDumpFormat::Json ? 2 : 1), dump_VkImageDescriptorInfoEXT<Format>); |
| 32479 | + } |
32478 | 32480 | dump_separate_members<Format>(settings); |
32479 | | - dump_pointer<Format>(object.pTexelBuffer, settings, "const VkTexelBufferDescriptorInfoEXT*", "pTexelBuffer", indents + (Format == ApiDumpFormat::Json ? 2 : 1), dump_VkTexelBufferDescriptorInfoEXT<Format>); |
| 32481 | + if (ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER || ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER) { |
| 32482 | + dump_pointer<Format>(object.pTexelBuffer, settings, "const VkTexelBufferDescriptorInfoEXT*", "pTexelBuffer", indents + (Format == ApiDumpFormat::Json ? 2 : 1), dump_VkTexelBufferDescriptorInfoEXT<Format>); |
| 32483 | + } |
32480 | 32484 | dump_separate_members<Format>(settings); |
32481 | | - dump_pointer<Format>(object.pAddressRange, settings, "const VkDeviceAddressRangeEXT*", "pAddressRange", indents + (Format == ApiDumpFormat::Json ? 2 : 1), dump_VkDeviceAddressRangeEXT<Format>); |
| 32485 | + if (ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER || ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER || ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR || ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_NV || ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_PARTITIONED_ACCELERATION_STRUCTURE_NV) { |
| 32486 | + dump_pointer<Format>(object.pAddressRange, settings, "const VkDeviceAddressRangeEXT*", "pAddressRange", indents + (Format == ApiDumpFormat::Json ? 2 : 1), dump_VkDeviceAddressRangeEXT<Format>); |
| 32487 | + } |
32482 | 32488 | dump_separate_members<Format>(settings); |
32483 | | - dump_pointer<Format>(object.pTensorARM, settings, "const VkTensorViewCreateInfoARM*", "pTensorARM", indents + (Format == ApiDumpFormat::Json ? 2 : 1), dump_VkTensorViewCreateInfoARM<Format>); |
| 32489 | + if (ApiDumpInstance::current().getDescriptorType() == VK_DESCRIPTOR_TYPE_TENSOR_ARM) { |
| 32490 | + dump_pointer<Format>(object.pTensorARM, settings, "const VkTensorViewCreateInfoARM*", "pTensorARM", indents + (Format == ApiDumpFormat::Json ? 2 : 1), dump_VkTensorViewCreateInfoARM<Format>); |
| 32491 | + } |
32484 | 32492 | dump_end<Format>(settings, OutputConstruct::api_struct, indents); |
32485 | 32493 | } |
32486 | 32494 | template <ApiDumpFormat Format> |
32487 | 32495 | void dump_VkResourceDescriptorInfoEXT(const VkResourceDescriptorInfoEXT& object, const ApiDumpSettings& settings, const char* type_name, const char* var_name, int indents, const void* address = nullptr) { |
32488 | 32496 | dump_start<Format>(settings, OutputConstruct::api_struct, type_name, var_name, indents, address); |
| 32497 | + ApiDumpInstance::current().setDescriptorType(object.type); |
32489 | 32498 | dump_VkStructureType<Format>(object.sType, settings, "VkStructureType", "sType", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
32490 | 32499 | dump_separate_members<Format>(settings); |
32491 | 32500 | dump_pNext<Format>(object.pNext, settings, "const void*", "pNext", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
@@ -32663,32 +32672,55 @@ void dump_VkDescriptorMappingSourceIndirectIndexArrayEXT(const VkDescriptorMappi |
32663 | 32672 | template <ApiDumpFormat Format> |
32664 | 32673 | void dump_VkDescriptorMappingSourceDataEXT(const VkDescriptorMappingSourceDataEXT& object, const ApiDumpSettings& settings, const char* type_name, const char* var_name, int indents, const void* address = nullptr) { |
32665 | 32674 | dump_start<Format>(settings, OutputConstruct::api_union, type_name, var_name, indents, address); |
32666 | | - dump_VkDescriptorMappingSourceConstantOffsetEXT<Format>(object.constantOffset, settings, "VkDescriptorMappingSourceConstantOffsetEXT", "constantOffset", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32675 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_HEAP_WITH_CONSTANT_OFFSET_EXT) { |
| 32676 | + dump_VkDescriptorMappingSourceConstantOffsetEXT<Format>(object.constantOffset, settings, "VkDescriptorMappingSourceConstantOffsetEXT", "constantOffset", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32677 | + } |
32667 | 32678 | dump_separate_members<Format>(settings); |
32668 | | - dump_VkDescriptorMappingSourcePushIndexEXT<Format>(object.pushIndex, settings, "VkDescriptorMappingSourcePushIndexEXT", "pushIndex", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32679 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_HEAP_WITH_PUSH_INDEX_EXT) { |
| 32680 | + dump_VkDescriptorMappingSourcePushIndexEXT<Format>(object.pushIndex, settings, "VkDescriptorMappingSourcePushIndexEXT", "pushIndex", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32681 | + } |
32669 | 32682 | dump_separate_members<Format>(settings); |
32670 | | - dump_VkDescriptorMappingSourceIndirectIndexEXT<Format>(object.indirectIndex, settings, "VkDescriptorMappingSourceIndirectIndexEXT", "indirectIndex", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32683 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_HEAP_WITH_INDIRECT_INDEX_EXT) { |
| 32684 | + dump_VkDescriptorMappingSourceIndirectIndexEXT<Format>(object.indirectIndex, settings, "VkDescriptorMappingSourceIndirectIndexEXT", "indirectIndex", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32685 | + } |
32671 | 32686 | dump_separate_members<Format>(settings); |
32672 | | - dump_VkDescriptorMappingSourceIndirectIndexArrayEXT<Format>(object.indirectIndexArray, settings, "VkDescriptorMappingSourceIndirectIndexArrayEXT", "indirectIndexArray", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32687 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_HEAP_WITH_INDIRECT_INDEX_ARRAY_EXT) { |
| 32688 | + dump_VkDescriptorMappingSourceIndirectIndexArrayEXT<Format>(object.indirectIndexArray, settings, "VkDescriptorMappingSourceIndirectIndexArrayEXT", "indirectIndexArray", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32689 | + } |
32673 | 32690 | dump_separate_members<Format>(settings); |
32674 | | - dump_VkDescriptorMappingSourceHeapDataEXT<Format>(object.heapData, settings, "VkDescriptorMappingSourceHeapDataEXT", "heapData", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32691 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_RESOURCE_HEAP_DATA_EXT) { |
| 32692 | + dump_VkDescriptorMappingSourceHeapDataEXT<Format>(object.heapData, settings, "VkDescriptorMappingSourceHeapDataEXT", "heapData", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32693 | + } |
32675 | 32694 | dump_separate_members<Format>(settings); |
32676 | | - dump_type<Format, uint32_t>(object.pushDataOffset, settings, "uint32_t", "pushDataOffset", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32695 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_PUSH_DATA_EXT) { |
| 32696 | + dump_type<Format, uint32_t>(object.pushDataOffset, settings, "uint32_t", "pushDataOffset", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32697 | + } |
32677 | 32698 | dump_separate_members<Format>(settings); |
32678 | | - dump_type<Format, uint32_t>(object.pushAddressOffset, settings, "uint32_t", "pushAddressOffset", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32699 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_PUSH_ADDRESS_EXT) { |
| 32700 | + dump_type<Format, uint32_t>(object.pushAddressOffset, settings, "uint32_t", "pushAddressOffset", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32701 | + } |
32679 | 32702 | dump_separate_members<Format>(settings); |
32680 | | - dump_VkDescriptorMappingSourceIndirectAddressEXT<Format>(object.indirectAddress, settings, "VkDescriptorMappingSourceIndirectAddressEXT", "indirectAddress", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32703 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_INDIRECT_ADDRESS_EXT) { |
| 32704 | + dump_VkDescriptorMappingSourceIndirectAddressEXT<Format>(object.indirectAddress, settings, "VkDescriptorMappingSourceIndirectAddressEXT", "indirectAddress", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32705 | + } |
32681 | 32706 | dump_separate_members<Format>(settings); |
32682 | | - dump_VkDescriptorMappingSourceShaderRecordIndexEXT<Format>(object.shaderRecordIndex, settings, "VkDescriptorMappingSourceShaderRecordIndexEXT", "shaderRecordIndex", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32707 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_HEAP_WITH_SHADER_RECORD_INDEX_EXT) { |
| 32708 | + dump_VkDescriptorMappingSourceShaderRecordIndexEXT<Format>(object.shaderRecordIndex, settings, "VkDescriptorMappingSourceShaderRecordIndexEXT", "shaderRecordIndex", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32709 | + } |
32683 | 32710 | dump_separate_members<Format>(settings); |
32684 | | - dump_type<Format, uint32_t>(object.shaderRecordDataOffset, settings, "uint32_t", "shaderRecordDataOffset", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32711 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_SHADER_RECORD_DATA_EXT) { |
| 32712 | + dump_type<Format, uint32_t>(object.shaderRecordDataOffset, settings, "uint32_t", "shaderRecordDataOffset", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32713 | + } |
32685 | 32714 | dump_separate_members<Format>(settings); |
32686 | | - dump_type<Format, uint32_t>(object.shaderRecordAddressOffset, settings, "uint32_t", "shaderRecordAddressOffset", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32715 | + if (ApiDumpInstance::current().getDescriptorMappingSource() == VK_DESCRIPTOR_MAPPING_SOURCE_SHADER_RECORD_ADDRESS_EXT) { |
| 32716 | + dump_type<Format, uint32_t>(object.shaderRecordAddressOffset, settings, "uint32_t", "shaderRecordAddressOffset", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
| 32717 | + } |
32687 | 32718 | dump_end<Format>(settings, OutputConstruct::api_struct, indents); |
32688 | 32719 | } |
32689 | 32720 | template <ApiDumpFormat Format> |
32690 | 32721 | void dump_VkDescriptorSetAndBindingMappingEXT(const VkDescriptorSetAndBindingMappingEXT& object, const ApiDumpSettings& settings, const char* type_name, const char* var_name, int indents, const void* address = nullptr) { |
32691 | 32722 | dump_start<Format>(settings, OutputConstruct::api_struct, type_name, var_name, indents, address); |
| 32723 | + ApiDumpInstance::current().setDescriptorMappingSource(object.source); |
32692 | 32724 | dump_VkStructureType<Format>(object.sType, settings, "VkStructureType", "sType", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
32693 | 32725 | dump_separate_members<Format>(settings); |
32694 | 32726 | dump_pNext<Format>(object.pNext, settings, "const void*", "pNext", indents + (Format == ApiDumpFormat::Json ? 2 : 1)); |
|
0 commit comments