Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apidump: Use correct aliased types #1837

Merged

Conversation

charles-lunarg
Copy link
Contributor

VkAccelerationStructureTypeNV and VkBuildAccelerationStructureFlagsNV are aliased types which are explicitly used by the VK_NV_ray_tracing extension. Because apidump didn't know how to keep track of aliases and then fixup uses of aliased types into the real type, those two types had hand written typedefs. This commit is able to remove the hardcoding as well are removes both redundant code (self.trackedTypes) and dead code (str_VkStructureTypeToEnum).

Fixes #977

@ci-tester-lunarg
Copy link

CI VulkanTools build queued with queue ID 17179.

@ci-tester-lunarg
Copy link

CI VulkanTools build # 2584 running.

@ci-tester-lunarg
Copy link

CI VulkanTools build # 2584 passed.

VkAccelerationStructureTypeNV and VkBuildAccelerationStructureFlagsNV are
aliased types which are explicitly used by the VK_NV_ray_tracing extension.
Because apidump didn't know how to keep track of aliases and then fixup
uses of aliased types into the real type, those two types had hand written
typedefs. This commit is able to remove the hardcoding as well are removes
both redundant code (self.trackedTypes) and dead code
(str_VkStructureTypeToEnum).
@charles-lunarg charles-lunarg force-pushed the api_dump_use_correct_aliased_type branch from 8ca360a to 2e442f8 Compare August 15, 2023 17:56
@charles-lunarg charles-lunarg requested review from TonyBarbour and removed request for davidlunarg August 15, 2023 17:56
@charles-lunarg
Copy link
Contributor Author

Just tested it locally, but this fixes the issue causing VK_NV_cooperative_matrix to not generate correctly.

@ci-tester-lunarg
Copy link

CI VulkanTools build queued with queue ID 24000.

@ci-tester-lunarg
Copy link

CI VulkanTools build # 2625 running.

@ci-tester-lunarg
Copy link

CI VulkanTools build # 2625 passed.

@charles-lunarg charles-lunarg merged commit 1cd422c into LunarG:main Aug 18, 2023
7 checks passed
@charles-lunarg charles-lunarg deleted the api_dump_use_correct_aliased_type branch August 18, 2023 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

api_dump_generator.py codegen should handle typedef stucts automaticallly
2 participants