Skip to content

make vulkan enums const instead of using : int (int value)#86

Merged
lerno merged 1 commit intoc3lang:mainfrom
Book-reader:vulkan-enums
Jan 31, 2026
Merged

make vulkan enums const instead of using : int (int value)#86
lerno merged 1 commit intoc3lang:mainfrom
Book-reader:vulkan-enums

Conversation

@Book-reader
Copy link
Member

@Book-reader Book-reader commented Jan 8, 2026

some of the enums are stored in structs, which would result in them being stored as their ordinal instead of their intended value. For example the structure type of VkPhysicalDeviceSubgroupProperties (VkStructureType.VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SUBGROUP_PROPERTIES) would be stored as 49 instead of 1000094000 and would likely break when used.
Making them const fixes this

@lerno lerno merged commit bb8a96c into c3lang:main Jan 31, 2026
2 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.

2 participants