Jump to content
  • Advertisement
Sign in to follow this  
kimchi325

DX11 [SlimDX][DX11] Do I have to create the device and swap chain at the same time?

This topic is 2614 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 working on an editor application and my goal is to create a general sort of render panel class, so that I can render to several different forms at the same time (and be opening new ones/closing old ones at run time). It seems like I should create the device first, and then create the swap chains later as I create the different forms that I will be rendering to. It looks like I have to create the first one at the same time I create the device though, which seems kind of awkward for my task, am I misunderstanding that? In case it's not completely obvious, I'm very new to DX in general. Any pointers are greatly appreciated. Thanks! ^^ (Also, are the SwapChain and the RenderTargetView the only things I need to maintain several of in this scenario?)

Share this post


Link to post
Share on other sites
Advertisement
I...think I just realized that I just use the Device constructor... I've got another question though. I read somewhere that I only need a single depth buffer and that I should just clear it before I render each view -- but won't that not work since the views will be of several different sizes?

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.

GameDev.net 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!