XNA Shader Texture Memory
Posted
by
Alex
on Game Development
See other posts from Game Development
or by Alex
Published on 2012-11-14T21:25:18Z
Indexed on
2012/11/14
23:21 UTC
Read the original article
Hit count: 297
I was wondering about texture optimization in XNA 4.0.
Will the the contentmanager send the texturedata to the GPU directly when the texture gets loaded or do I send the texture data to the GPU when I declare a texture in my shader.
If that's the case, what happens if I have 5 shaders all using the same texture, does that mean that I send 5 instances of that texture data to the gpu or am I simply telling the GPU what preloaded texture to use?
Or does XNA do the heavy lifting in the background?
© Game Development or respective owner