Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualjrh2365

Posted 08 July 2013 - 09:05 PM

Allow me to pick off part of #6:

 

D3D11CreateDeviceAndSwapChain has two parameters that accept pointers to D3D_FEATURE_LEVEL. The first one is a pointer because it is actually looking for an array of D3D_FEATURE_LEVEL (and the parameter following that one is the number of elements in the array). The second one is a pointer because it is an output parameter to where the feature level that was actually selected can be stored.

 

http://msdn.microsoft.com/en-us/library/windows/desktop/ff476083(v=vs.85).aspx

 

[EDIT]

Also, I expect that a lot of the reasons for the API being structured how it is are due to http://en.wikipedia.org/wiki/Component_Object_Model


#1jrh2365

Posted 08 July 2013 - 09:01 PM

Allow me to pick off part of #6:

 

D3D11CreateDeviceAndSwapChain has two parameters that accept pointers to D3D_FEATURE_LEVEL. The first one is a pointer because it is actually looking for an array of D3D_FEATURE_LEVEL (and the parameter following that one is the number of elements in the array). The second one is a pointer because it is an output parameter to where the feature level that was actually selected can be stored.

 

http://msdn.microsoft.com/en-us/library/windows/desktop/ff476083(v=vs.85).aspx


PARTNERS