Sign in to follow this  

hardware - ref driver

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

What is the easiest way to create a function that switches between the hardware and the reference driver in d3d10? The only way I can think of now is to create two different devices, but that seems an ugly way to go...

Share this post


Link to post
Share on other sites
You should be able to create two devices at once, however. So long as you only use one at a time, or they'll fight over the window. E.g. you could create both at startup, etc

But as jpetrie said, you need to destroy and re-create the device to switch device types.

Share this post


Link to post
Share on other sites
You might want to have a look at how DXUT handles things. I've not got my devbox fired up right now, but all of the SDK samples have a "Toggle Ref" button iirc (one of the 3 standard HUD buttons). Tracing the code that's executed when the button is pressed should reveal the text-book method for switching between hardware/reference rendering.

hth
Jack

Share this post


Link to post
Share on other sites

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