ash/generator
Marijn Suijten 8605a34273
generator: Only replace "VK_" at the start of enum variant names (#384)
* 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).
2021-03-07 16:21:05 +01:00
..
src generator: Only replace "VK_" at the start of enum variant names (#384) 2021-03-07 16:21:05 +01:00
Vulkan-Headers@9166a0677e Update Vulkan-Headers to 1.2.168 (#363) 2021-02-28 18:54:49 +01:00
Cargo.toml Update Vulkan-Headers to 1.2.166 (#355) 2021-01-24 22:13:28 +01:00