[]
        
(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)
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