public static extern void D3D10CreateDevice1( [In, MarshalAs(UnmanagedType.IUnknown)] object adapter, [In] D3D10DriverType driverType, [In] IntPtr software, [In] D3D10CreateDeviceOptions options, [In] D3D10FeatureLevel featureLevel, [In] uint sdkVersion, [Out] out ID3D10Device1 device);
public static D3D10Device1 CreateDevice( object adapter, D3D10DriverType driverType, D3D10CreateDeviceOptions options, D3D10FeatureLevel featureLevel) { ID3D10Device1 device; NativeMethods.D3D10CreateDevice1(adapter, driverType, IntPtr.Zero, options, featureLevel, 0x20, out device); return new D3D10Device1(device); }
public static D3D10Device1 CreateDevice( object adapter, D3D10DriverType driverType, D3D10CreateDeviceOptions options, D3D10FeatureLevel featureLevel) { ID3D10Device1 device; NativeMethods.D3D10CreateDevice1(adapter, driverType, IntPtr.Zero, options, featureLevel, 0x20, out device); return(new D3D10Device1(device)); }