I have a regular mesh (landscape tile) whose unique data is the heightmap as a 2D array of floats (or grayscale texture). When I create my Vertex Buffer I create an array of vertexes of the correct type and load them into the VB.
I know if I lose my device I will need to recreate my VBs; but other than that instance am I free now to clear off my original array of vertexes ? Do they get copied into the VB (an array is a reference type, but vertexes are value types - I'm using C#) or does the VB still hold a reference to my vertex array, preventing releasing of the memory resource of that array.
Thanks,
Phillip.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement