Skip to content

Fix hardcoded unused struct members #369

@mikes-lunarg

Description

@mikes-lunarg

safe_struct_generator.py uses a hardcoded list of unused struct members so it can determine if a pointer is safe to follow

# TODO: Hook this up to the member deprecation in the XML so it can be automatically updated
self.unused_params = {
'VkDeviceCreateInfo':
['ppEnabledLayerNames', 'enabledLayerCount'],
}

It would be better if vulkan_object exposed the deprecated xml attribute so we don't have to keep this list up to date

            <member noautovalidity="true" deprecated="unused"><type>uint32_t</type>               <name>enabledLayerCount</name></member>
            <member noautovalidity="true" deprecated="unused">const <type>char</type>* const*      <name>ppEnabledLayerNames</name><comment>Ordered list of layer names to be enabled</comment></member>

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions