Advertisement Jump to content
Sign in to follow this  

Resetting the device (maybe dumb question)

This topic is 4889 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
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, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!