ash
ash copied to clipboard
Are lifetime specifiers really necessary on every builder?
What's the purpose of the marker(s) on builders, is it because of pointers? There are a number of builders that don't contain pointers, not even p_next. Is there any point in having a lifetime on say VertexInputAttributeDescriptionBuilder?
I think a PR modifying the generator to omit the lifetime specifier where unused would be welcome.
Since #602 builder structs have been removed and builder functions have been merged back into the Vulkan structs, and with that only structs containing pointers get a lifetime specifier and pub _marker: PhantomData<&'a ()>.