ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.5.2 Assembly / C1.Util.DX.Direct3D11 Namespace / D3D11 Class / CreateDevice Method

In This Topic
    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 adapterRef As Adapter, _
       ByVal driverType As DriverType, _
       ByVal software As System.IntPtr, _
       ByVal flags As DeviceCreationFlags, _
       ByVal featureLevelsRef() As FeatureLevel, _
       ByVal featureLevels As System.Integer, _
       ByVal sDKVersion As System.Integer, _
       ByVal deviceOut As Device, _
       ByRef featureLevelRef As FeatureLevel, _
       ByRef immediateContextOut As DeviceContext _
    ) As HResult
    public static HResult CreateDevice( 
       Adapter adapterRef,
       DriverType driverType,
       System.IntPtr software,
       DeviceCreationFlags flags,
       FeatureLevel[] featureLevelsRef,
       System.int featureLevels,
       System.int sDKVersion,
       Device deviceOut,
       out FeatureLevel featureLevelRef,
       out DeviceContext immediateContextOut
    )

    Parameters

    adapterRef
    driverType
    software
    flags
    featureLevelsRef
    featureLevels
    sDKVersion
    deviceOut
    featureLevelRef
    immediateContextOut
    See Also