so my question is what is the best way to do this i need to store a pointer to something in a struct like this currently i used the fixed thing but seemingly that's incorrect so i have no idea ive never had any issues with it but i'd rather there wasn't a chance to have any issues with it
so basically if i am understanding this storing it as a span is the correct way to do it instead of storing a raw pointer? i think i have confused myself
this also helped me understand my original question of why you need to deallocate the memory with silkmarshal instead of just using fixed on it so that's good too
how i have had 0 issues with what i've been doing i've got no idea, i wish i had had issues with it so i could have worked out the garbage i was doing earlier
yeah i can remove that constraint lol because my internal createtexture function just takes a pointer to the texturedata struct anyway it used to be that it took an array which is what necessitated that type constraint