Skip to content

doc: clarify VkStructureType naming derivation to avoid double underscores#2698

Merged
oddhack merged 2 commits intoKhronosGroup:mainfrom
yixun-chen:main
Mar 12, 2026
Merged

doc: clarify VkStructureType naming derivation to avoid double underscores#2698
oddhack merged 2 commits intoKhronosGroup:mainfrom
yixun-chen:main

Conversation

@yixun-chen
Copy link
Contributor

The current specification states that VkStructureType names are derived by "prefixing each capital letter with _". If followed literally, a structure like VkImageCreateInfo (after stripping Vk) would become _Image_Create_Info, leading to VK_STRUCTURE_TYPE__IMAGE_CREATE_INFO with a double underscore.

Updated the description to "prefixing each capital letter except the first with _". This aligns the text with the actual naming convention used throughout the Vulkan API and removes any ambiguity for developers.

Clarify that the underscore prefix applies to capital letters except the first one, aligning the description with actual enumerant naming.
@CLAassistant
Copy link

CLAassistant commented Mar 12, 2026

CLA assistant check
All committers have signed the CLA.

@oddhack
Copy link
Contributor

oddhack commented Mar 12, 2026

That's a good catch - thanks.

@oddhack oddhack added this to the Signed-off to Merge milestone Mar 12, 2026
@oddhack oddhack merged commit bde26d7 into KhronosGroup:main Mar 12, 2026
15 checks passed
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.

3 participants