Jump to content
  • Advertisement
Sign in to follow this  
vidalsasoon

Resetting the device (maybe dumb question)

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

When the device is reset the vertex buffers all have to be recreated right? what info on the device is lost? I have a feeling it's everything except presentation parameters being flushed but i'm not sure.

Share this post


Link to post
Share on other sites
Advertisement
When a device is lost, all of the following need to be destroyed and recreated:

(1) Device states (render states, texture stage states, ect...)
(2) Render targets
(3) Depth stencil surfaces
(4) Swap chains
(5) Any other default pool resources

So, the direct answer to your question is: yes, the VB needs to be recreated, if it was created with D3DPOOL_DEFAULT. If it was created in another pool (like D3DPOOL_MANAGED), it doesn't need to be destroyed.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!