graphics icon indicating copy to clipboard operation
graphics copied to clipboard

Allow usage of reflection for vertex data attributes generation

Open paulcscharf opened this issue 5 years ago • 3 comments

paulcscharf avatar Sep 08 '20 19:09 paulcscharf

Can also consider source generation, but you can't add to an existing type without using partial.

tomrijnbeek avatar Sep 24 '21 10:09 tomrijnbeek

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?

paulcscharf avatar Sep 25 '21 14:09 paulcscharf

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?).

tomrijnbeek avatar Sep 25 '21 20:09 tomrijnbeek