8605a34273
* generator: Only replace "VK_" at the start of enum variant names Replacing the occurence of "VK" is dangerous as shown by this diff; MVK shorthands for MoltenVK are accidentally mangled. Using strip_prefix/suffix is not only more correct and performs more runtime checks, it is also more performant by returning a slice into the string. * generator: Correct duplicate suffix stripping The original `.replace(vendor, "")` operation and `.trim_end_matches` replace every (trailing) occurence of the vendor, causing DEBUG_REPORT_CALLBACK_EXT_EXT to end up without `_EXT` at all. This name is also provided by vk.xml as fallback alias because it is used but technically incorrect; the current generator can however not generate it (limitation in vkxml representation). |
||
---|---|---|
.. | ||
src | ||
Vulkan-Headers@9166a0677e | ||
Cargo.toml |