public int CreateSoftwareAdapter(HINSTANCE Module, ref IntPtr ppAdapter) { if (m_CreateSoftwareAdapterFunc == null) { var fp = GetFunctionPointer(11); m_CreateSoftwareAdapterFunc = (CreateSoftwareAdapterFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateSoftwareAdapterFunc)); } return(m_CreateSoftwareAdapterFunc(m_ptr, Module, ref ppAdapter)); }
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 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 );