Jump to content
  • Advertisement
Sign in to follow this  
jammm

D3D11CreateDeviceAndSwapChain() vs IDXGIFactory::CreateSwapChain()

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

Which one is better? In frank luna's book, they use a few COM queries, then call IDXGIFactory::CreateSwapChain. But you can do that with a single call of D3D11CreateDeviceAndSwapChain() (also creates the device so that's a plus). So I was wondering, is there a catch with any of this? What can I/can I not do if I initialize my DIrect3D layer using D3D11CreateDeviceAndSwapChain() ?

Edited by jammm

Share this post


Link to post
Share on other sites
Advertisement

It looks like in this case you won't be able to check different multisample quality levels, because the method ID3D11Device::CheckMultisampleQualityLevels should be used with already created Device, but before creating SwapChain

Share this post


Link to post
Share on other sites

Ah! So I won't be able to check for MSAA quality levels beforehand.. Hmm, I guess that since I'm always using 1x MSAA atm, i'll be sticking with D3D11CreateDeviceAndSwapChain(). Thanks!
Do post if you find anything else :D.

Share this post


Link to post
Share on other sites
I don't know of any limitations. As far as MSAa goes you will typically create a separate MSAA render target texture anyway, so it's not an issue in practice.

Share this post


Link to post
Share on other sites

The only benefit that I could think of is that you would already have access to the IDXGIFactory in case you wanted to create additional swap chains (for multi-windowed rendering), but that can easily be re-acquired through a few COM calls on the device interface itself.  So there really isn't too much difference between the two from a functional perspective.

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!