C# XNA Texture2D.SetData rectangle?
I have a very large texture and would like to set the pixel data of a specific part of it. I need it to be as fast as possible so is it possible to give SetData a rectangle of data instead o开发者_JS百科f the entire texture data?
Yes. However, getting part of the texture compared to the whole thing is unlikely make a difference except maybe if the texture is huge.
精彩评论