Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


[DX11] CreateDeviceAndSwapChain returns S_FALSE when expliciting an adapter..


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 Icebone1000   Members   -  Reputation: 1343

Like
0Likes
Like

Posted 27 February 2011 - 11:40 PM

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?

Sponsor:

#2 DieterVW   Members   -  Reputation: 700

Like
1Likes
Like

Posted 28 February 2011 - 11:26 AM

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.

#3 Icebone1000   Members   -  Reputation: 1343

Like
0Likes
Like

Posted 28 February 2011 - 07:20 PM

Head Shot =D
I didnt see anything about this on the sdk..
Thanks o/




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS