Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Device"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <param name="creationProperties">The creation properties.</param>
 /// <unmanaged>HRESULT D2D1CreateDevice([In] IDXGIDevice* dxgiDevice,[In, Optional] const D2D1_CREATION_PROPERTIES* creationProperties,[Out] ID2D1Device** d2dDevice)</unmanaged>
 public Device(SharpDX.DXGI.Device device, CreationProperties creationProperties)
     : base(IntPtr.Zero)
 {
     D2D1.CreateDevice(device, creationProperties, this);
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Device"/> class.
 /// </summary>
 /// <param name="device">The device.</param>
 /// <unmanaged>HRESULT D2D1CreateDevice([In] IDXGIDevice* dxgiDevice,[In, Optional] const D2D1_CREATION_PROPERTIES* creationProperties,[Out] ID2D1Device** d2dDevice)</unmanaged>
 public Device(SharpDX.DXGI.Device device)
     : base(IntPtr.Zero)
 {
     D2D1.CreateDevice(device, null, this);
 }