/// <summary> /// Initializes a new instance of the <see cref="Device1"/> class. /// </summary> /// <param name="factory"><para>The <see cref="Factory2"/> object used when creating the <see cref="SharpDX.Direct2D1.Device1"/>. </para></param> /// <param name="device"><para>The <see cref="SharpDX.DXGI.Device"/> object used when creating the <see cref="SharpDX.Direct2D1.Device1"/>. </para></param> /// <remarks> /// Each call to CreateDevice returns a unique <see cref="SharpDX.Direct2D1.Device1"/> object.The <see cref="SharpDX.DXGI.Device"/> object is obtained by calling QueryInterface on an ID3D10Device or an ID3D11Device. /// </remarks> /// <unmanaged>HRESULT ID2D1Factory2::CreateDevice([In] IDXGIDevice* dxgiDevice,[Out] ID2D1Device1** d2dDevice1)</unmanaged> public Device1(Factory2 factory, SharpDX.DXGI.Device device) : base(IntPtr.Zero) { factory.CreateDevice(device, this); }
SharpDX.Direct2D1.Factory2 CreateD2DFactory(DebugLevel debugLevel = DebugLevel.None) { return Factory2D = new SharpDX.Direct2D1.Factory2( SharpDX.Direct2D1.FactoryType.MultiThreaded, debugLevel); }