Exemplo n.º 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);
 }
Exemplo n.º 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);
 }