using System;
namespace SharpDX.Direct3D11
{
public partial class Fence
{
///
/// Constructs a new
///
/// The device with which to associate the state object.
/// The initial value for the fence.
/// A combination of FenceFlags values that are combined by using a bitwise OR operation. The resulting value specifies options for the fence.
/// The newly created object.
public Fence(Device5 device, long initialValue, FenceFlags flags)
: base(IntPtr.Zero)
{
device.CreateFence(initialValue, flags, Utilities.GetGuidFromType(typeof(Fence)), this);
}
}
}