[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.D3D11.CreateDevice

CreateDevice Method

CreateDevice(Adapter, DriverType, IntPtr, DeviceCreationFlags, FeatureLevel[], int, int, Device, out FeatureLevel, out DeviceContext)

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)

Declaration
public static HResult CreateDevice(Adapter adapterRef, DriverType driverType, IntPtr software, DeviceCreationFlags flags, FeatureLevel[] featureLevelsRef, int featureLevels, int sDKVersion, Device deviceOut, out FeatureLevel featureLevelRef, out DeviceContext immediateContextOut)
Public Shared Function CreateDevice(adapterRef As Adapter, driverType As DriverType, software As IntPtr, flags As DeviceCreationFlags, featureLevelsRef As FeatureLevel(), featureLevels As Integer, sDKVersion As Integer, deviceOut As Device, ByRef featureLevelRef As FeatureLevel, ByRef immediateContextOut As DeviceContext) As HResult
Parameters
Type Name Description
Adapter adapterRef
DriverType driverType
IntPtr software
DeviceCreationFlags flags
FeatureLevel[] featureLevelsRef
int featureLevels
int sDKVersion
Device deviceOut
FeatureLevel featureLevelRef
DeviceContext immediateContextOut
Returns
Type Description
HResult