Sign in to follow this  

D3D11CreateDeviceAndSwapChain() vs IDXGIFactory::CreateSwapChain()

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

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

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

This topic is 1448 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this