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