public static extern int D3D11CreateDevice( [MarshalAs(UnmanagedType.Interface)] IDXGIAdapter pAdapter, D3D_DRIVER_TYPE DriverType, IntPtr Software, D3D11_CREATE_DEVICE_FLAG Flags, D3D_FEATURE_LEVEL[] pFeatureLevels, UINT FeatureLevels, UINT SDKVersion, [MarshalAs(UnmanagedType.Interface)] out ID3D11Device ppDevice, out D3D_FEATURE_LEVEL pFeatureLevel, [MarshalAs(UnmanagedType.Interface)] out ID3D11DeviceContext ppImmediateContext );
public static extern int D3D11CreateDevice( IntPtr pAdapter, D3D_DRIVER_TYPE DriverType, HINSTANCE Software, uint Flags, ref D3D_FEATURE_LEVEL pFeatureLevels, uint FeatureLevels, uint SDKVersion, ref IntPtr ppDevice, ref D3D_FEATURE_LEVEL pFeatureLevel, ref IntPtr ppImmediateContext );
public virtual int GetMinFeatureLevel( out D3D_FEATURE_LEVEL pLevel ) { var fp = GetFunctionPointer(19); if (m_GetMinFeatureLevelFunc == null) { m_GetMinFeatureLevelFunc = (GetMinFeatureLevelFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetMinFeatureLevelFunc)); } return(m_GetMinFeatureLevelFunc(m_ptr, out pLevel)); }
public static extern int D3D11CreateDeviceAndSwapChain( IntPtr pAdapter, D3D_DRIVER_TYPE DriverType, HINSTANCE Software, uint Flags, ref D3D_FEATURE_LEVEL pFeatureLevels, uint FeatureLevels, uint SDKVersion, ref DXGI_SWAP_CHAIN_DESC pSwapChainDesc, ref IntPtr ppSwapChain, ref IntPtr ppDevice, ref D3D_FEATURE_LEVEL pFeatureLevel, ref IntPtr ppImmediateContext );
public virtual int GetMaximumSupportedFeatureLevel( ref D3D_FEATURE_LEVEL featureLevels, uint featureLevelsCount, out D3D_FEATURE_LEVEL maximumSupportedFeatureLevel ) { var fp = GetFunctionPointer(5); if (m_GetMaximumSupportedFeatureLevelFunc == null) { m_GetMaximumSupportedFeatureLevelFunc = (GetMaximumSupportedFeatureLevelFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(GetMaximumSupportedFeatureLevelFunc)); } return(m_GetMaximumSupportedFeatureLevelFunc(m_ptr, ref featureLevels, featureLevelsCount, out maximumSupportedFeatureLevel)); }
public static extern HRESULT D3D11CreateDevice(IDXGIAdapter pAdapter, D3D_DRIVER_TYPE DriverType, IntPtr Software, uint Flags, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 5)] D3D_FEATURE_LEVEL[] pFeatureLevels, uint FeatureLevels, uint SDKVersion, out ID3D11Device ppDevice, out D3D_FEATURE_LEVEL pFeatureLevel, out ID3D11DeviceContext ppImmediateContext);
public static extern HRESULT D3D12CreateDevice(IUnknown *pAdapter, D3D_FEATURE_LEVEL MinimumFeatureLevel, [NativeTypeName("const IID &")] Guid *riid, void **ppDevice);
public static extern HRESULT CreateDevice( [In, Optional] IUnknown *pAdapter, D3D_FEATURE_LEVEL MinimumFeatureLevel, [In] ref /* readonly */ Guid riid, [Out, Optional] void **ppDevice );
public static extern HRESULT D3D12CreateDevice( IUnknown *pAdapter, D3D_FEATURE_LEVEL minimumFeatureLevel, in Guid riid, // Expected: ID3D12Device
public static extern int D3D12CreateDevice([MarshalAs(UnmanagedType.Interface)] object pAdapter, D3D_FEATURE_LEVEL MinimumFeatureLevel, Guid riid, [MarshalAs(UnmanagedType.Interface)] out object ppDevice);