Add exclusion list for alias in generator code

Some alias types are not pure promotional types, and need to be excluded from the
code which replaces types with their alias.

This may be a stopgap solution for a larger underlying problem of not being able to
determine if an alias is promoted or not.
This commit is contained in:
Charles Giessen 2022-06-20 10:52:16 -05:00 committed by Charles Giessen
parent fc880eb598
commit f847ab8566
2 changed files with 8 additions and 4 deletions

View File

@ -43,6 +43,10 @@ excluded_extension_authors = [
'NVX'
]
excluded_alias_types = [
'VkPipelineInfoKHR'
]
# Check for/install xmltodict
import sys
import os
@ -288,7 +292,7 @@ for command in device_commands:
if i > 0:
args_names += ', '
else:
if arg_type in aliased_types:
if arg_type in aliased_types and arg_type not in excluded_alias_types:
arg_type = aliased_types[arg_type]
args_full += arg_template.substitute(front_mods = front_mods, arg_type = arg_type, back_mods = back_mods, arg_name = arg_name, array = array)
args_names += arg_name

View File

@ -2318,7 +2318,7 @@ struct DispatchTable {
}
#endif
#if (defined(VK_KHR_pipeline_executable_properties))
VkResult getPipelineExecutablePropertiesKHR(const VkPipelineInfoEXT* pPipelineInfo, uint32_t* pExecutableCount, VkPipelineExecutablePropertiesKHR* pProperties) const noexcept {
VkResult getPipelineExecutablePropertiesKHR(const VkPipelineInfoKHR* pPipelineInfo, uint32_t* pExecutableCount, VkPipelineExecutablePropertiesKHR* pProperties) const noexcept {
return fp_vkGetPipelineExecutablePropertiesKHR(device, pPipelineInfo, pExecutableCount, pProperties);
}
#endif