开发者

C# XNA Texture2D.SetData rectangle?

开发者 https://www.devze.com 2023-03-08 06:48 出处:网络
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百

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消