Ejemplo n.º 1
0
 /// <summary>
 ///   Constructs a new <see cref = "T:SharpDX.Direct3D10.Query" /> based on the specified description.
 /// </summary>
 /// <param name = "device">The device with which to associate the state object.</param>
 /// <param name = "description">The query description.</param>
 /// <returns>The newly created object.</returns>
 public Query(Device device, QueryDescription description)
     : base(IntPtr.Zero)
 {
     device.CreateQuery(description, this);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///   Constructs a new <see cref = "T:SharpDX.Direct3D10.Predicate" /> based on the specified description.
 /// </summary>
 /// <param name = "device">The device with which to associate the state object.</param>
 /// <param name = "description">The query description.</param>
 /// <returns>The newly created object.</returns>
 public Predicate(Device device, QueryDescription description)
     : base(IntPtr.Zero)
 {
     device.CreatePredicate(description, this);
 }