Hi, I was trying making my DX initial setup more polish, so Im traversing the adapters till get one who supports the DXGI_MODE_DESC requested, using FindClosestMatchingMode..
The thing is, I have just one adapter, and it matchs at the first iteration..But when passing this adapter to CreateDevAndSChain, the function returns S_FALSE, andt its returning 0 for the feature levels...It doesnt make any sense to me, since specifying NULL(with gets the default adapter, witch should be the one Im explicity specifying..) makes it works fine...
I know S_FALSE is not a failure(but it still doesnt make sense), but why would it return 0 for the feature levels? Whats going on?
***EDIT****
Actually is worse, it is not creating any device and swapchains, everything is NULL..So why it returns S_FALSE?
[DX11] CreateDeviceAndSwapChain returns S_FALSE when expliciting an adapter..
We need to see the code snippet and all of the parameter values you are passing to the function.
On first guess I'd say that you are passing in the adapter but marking the device type as hardware instead of unknown. The device type must be unknown if you already have an adapter picked out.
On first guess I'd say that you are passing in the adapter but marking the device type as hardware instead of unknown. The device type must be unknown if you already have an adapter picked out.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement