CreateDevice Method (D3D11)
In This Topic
HRESULT D3D11CreateDevice([In, Optional] IDXGIAdapter* pAdapter,[In] D3D_DRIVER_TYPE DriverType,[In] HINSTANCE Software,[In] D3D11_CREATE_DEVICE_FLAG Flags,[In, Buffer, Optional] const D3D_FEATURE_LEVEL* pFeatureLevels,[In] unsigned int FeatureLevels,[In] unsigned int SDKVersion,[Out, Fast] ID3D11Device** ppDevice,[Out, Optional] D3D_FEATURE_LEVEL* pFeatureLevel,[Out, Optional] ID3D11DeviceContext** ppImmediateContext)
Syntax
'Declaration
Public Shared Function CreateDevice( _
ByVal As Adapter, _
ByVal As DriverType, _
ByVal As System.IntPtr, _
ByVal As DeviceCreationFlags, _
ByVal () As FeatureLevel, _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As Device, _
ByRef As FeatureLevel, _
ByRef As DeviceContext _
) As HResult
public static HResult CreateDevice(
Adapter ,
DriverType ,
System.IntPtr ,
DeviceCreationFlags ,
FeatureLevel[] ,
System.int ,
System.int ,
Device ,
out FeatureLevel ,
out DeviceContext
)
Parameters
- adapterRef
- driverType
- software
- flags
- featureLevelsRef
- featureLevels
- sDKVersion
- deviceOut
- featureLevelRef
- immediateContextOut
See Also