MCPcopy Index your code
hub / github.com/KhronosGroup/Vulkan-Docs / createHeaderVersion

Method createHeaderVersion

scripts/base_generator.py:128–136  ·  view source on GitHub ↗
(targetApiName: str, vk: VulkanObject)

Source from the content-addressed store, hash-verified

126 # We do our best to emulate the answer here the way the spec/headers will with goal to have a proper fix before these assumptions break
127 @staticmethod
128 def createHeaderVersion(targetApiName: str, vk: VulkanObject) -> str:
129 match targetApiName:
130 case 'vulkan':
131 major_version = 1
132 minor_version = 4
133 case 'vulkansc':
134 major_version = 1
135 minor_version = 0
136 return f'{major_version}.{minor_version}.{vk.headerVersion}'
137
138
139# This Generator Option is used across all generators.

Callers 1

endFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected