Example #1
0
 /// <summary>
 /// Initializes a new sub resource surface instance of <see cref="Surface2"/> class.
 /// </summary>
 /// <param name="resource"></param>
 /// <param name="index"></param>
 public Surface2(Resource1 resource, int index) : base(IntPtr.Zero)
 {
     resource.CreateSubresourceSurface(index, this);
 }
Example #2
0
 /// <summary>
 /// Initializes a new sub resource surface instance of <see cref="Surface2"/> class.
 /// </summary>
 /// <param name="resource"></param>
 /// <param name="index"></param>
 public Surface2(Resource1 resource, int index) : base(IntPtr.Zero)
 {
     resource.CreateSubresourceSurface(index, this);
 }