Method
createHeaderVersion
(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. |
Tested by
no test coverage detected