using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SharpDX.DirectComposition
{
public partial class Device2
{
///
/// Used for inherited constructors
///
protected Device2() { }
///
/// Creates a new device object that can be used to create other Microsoft DirectComposition objects.
///
/// An optional reference to a DirectX device to be used to create DirectComposition surface
/// objects. Must be a reference to an object implementing the or
/// interfaces.
public Device2(ComObject renderingDevice)
{
IntPtr temp;
DComp.CreateDevice2(renderingDevice, Utilities.GetGuidFromType(typeof(Device2)), out temp);
NativePointer = temp;
}
}
}