Archived

This topic is now archived and is closed to further replies.

using CreateTexture and LockRect

This topic is 5148 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

After I use CreateTexture, how am I supposed to put data in it? I was going to use LockRect but the msdn has this little comment in it:
quote:
Textures created with D3DPOOL_DEFAULT are not lockable. Textures created in video memory are lockable when created with USAGE_DYNAMIC.
Huh? If I create a texture with D3DPOOL_MANAGED and without the USAGE_DYNAMIC flag will I still be able to lock it?

Share this post


Link to post
Share on other sites
quote:

If I create a texture with D3DPOOL_MANAGED and without the USAGE_DYNAMIC flag will I still be able to lock it?



Yes

_______________________________________
Understanding is a three edged sword...

Share this post


Link to post
Share on other sites