Jump to content
  • Advertisement
Sign in to follow this  
alebo611

hardware - ref driver

This topic is 4356 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
Advertisement
I'm not quite sure what you want.

You can't switch to the reference device after you've created the device. You have to destroy and re-create the device.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!