graphics
graphics copied to clipboard
Allow usage of reflection for vertex data attributes generation
Can also consider source generation, but you can't add to an existing type without using partial.
Source generation seems like it could lead to issues. We're talking about users creating their own vertex types, and depending on their setup, can we be sure source generators will definitely work?
Good question.
Source generators can be shipped as a separate NuGet package and referred to, but yes, it would require people to set that up as a separate dependency (not sure if it can be the same NuGet package and dependency actually, maybe it can?).