Sign in to follow this  

Newbie Question

This topic is 2492 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

Hi Guys
I am quite new to directX and I am currently working through some bits and came across an example in DX9 that I wanted to use in my program, it uses the IDirect3DTexture9's LockRect function and I was wondering if there is a way to do this for a ID3D10Texture2D in DX10 or if there is something I am missing?
Thanks for your time
Ben

Share this post


Link to post
Share on other sites
[quote name='Nebuk' timestamp='1298219425' post='4776708']
Hi Guys
I am quite new to directX and I am currently working through some bits and came across an example in DX9 that I wanted to use in my program, it uses the IDirect3DTexture9's LockRect function and I was wondering if there is a way to do this for a ID3D10Texture2D in DX10 or if there is something I am missing?
Thanks for your time
Ben
[/quote]

This isn't a perfect 1-to-1 equivalent thing, but you can do something similar to acquire the texture data by calling Map: http://msdn.microsoft.com/en-us/library/bb173867%28v=vs.85%29.aspx
This has an out parameter containing the data: http://msdn.microsoft.com/en-us/library/bb205319%28v=vs.85%29.aspx
The second link has an example of how to acquire and manipulate the data. Hope this helps.

Share this post


Link to post
Share on other sites

This topic is 2492 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.

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