From 1ae7c51becef83fcc9cc83f802ca73c15677a98f Mon Sep 17 00:00:00 2001 From: "Edward (Yixun) Chen" Date: Thu, 12 Mar 2026 14:08:44 +0800 Subject: [PATCH] doc: clarify VkStructureType naming to avoid double underscores Clarify that the underscore prefix applies to capital letters except the first one, aligning the description with actual enumerant naming. --- chapters/fundamentals.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapters/fundamentals.adoc b/chapters/fundamentals.adoc index 107249210..2aae4440a 100755 --- a/chapters/fundamentals.adoc +++ b/chapters/fundamentals.adoc @@ -1966,7 +1966,7 @@ Each value corresponds to a particular structure with a pname:sType member with a matching name. As a general rule, the name of each elink:VkStructureType value is obtained by taking the name of the structure, stripping the leading etext:Vk, -prefixing each capital letter with etext:_, converting the entire resulting +prefixing each capital letter except the first with etext:_, converting the entire resulting string to upper case, and prefixing it with etext:VK_STRUCTURE_TYPE_. For example, structures of type slink:VkImageCreateInfo correspond to a elink:VkStructureType value of ename:VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,