I remember reading about an obscure Unity feature that allows a struct to be declared in C#, and an identically layed out mirror struct declaration is automatically created in a shader. I now cannot find reference to that feature. I’m about 80% certain that I didn’t imagine it.
Does anybody know what I’m thinking of? Could somebody please point me to the API?