Sign in to follow this  

Conditions for viewing textures in VC++.NET while debugging

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

I'm trying to use the debug feature in VC++.NET that allows you to see textures and render targets in small floating windows while debugging a D3D9 application, but the windows always show "<Not available>". What are the necessary conditions for this to work? Right now, I'm switching to the reference rasterizer, using a non-pure device. Am I forgetting something?

Share this post


Link to post
Share on other sites
A surface could come back as "Unavailable" for the following reasons:

(1) The surface isn't lockable - it must be created to allow it to be locked for read-only access. To create a lockable backbuffer, specify the D3DPRESENTFLAG_LOCKABLE_BACKBUFFER flag in your D3DPRESENT_PARAMETERS.

(2) The surface is a volume texture.

(3) The surface is an unsupported pixel format.

(4) The application you are debugging is running on a remote computer.

Debugging of a pure reference device works the same as debugging with a non-pure reference device.

Share this post


Link to post
Share on other sites

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