Sign in to follow this  
danromeo

CreateTextureFromResource

Recommended Posts

If I D3DXCreateTextureFromResource, does this mean that if I, say, create the same texture from resource three times in a row that it is actually only loaded into memory once with an incremented reference count? Seems the MS docs have nothing to say about this at all. Thanks.

Share this post


Link to post
Share on other sites
Nope, three seperate textures are created. The easiest way to check is to do SetPrivateData() on one texture, then GetPrivateData() on another. If the return value is the same, then you'll be pointing to the same object. Also, the pointer values should be the same if they point to the same object.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this