Example #1
0
 /// <summary>
 ///   Initializes a new instance of the <see cref = "T:SharpDX.Direct3D10.Texture3D" /> class.
 /// </summary>
 /// <param name = "device">The device with which to associate the texture.</param>
 /// <param name = "description">The description of the texture.</param>
 /// <param name = "data">An array of initial texture data for each subresource.</param>
 public Texture3D(Device device, Texture3DDescription description, DataBox[] data) : base(IntPtr.Zero)
 {
     device.CreateTexture3D(ref description, data, this);
 }
Example #2
0
 /// <summary>
 ///   Initializes a new instance of the <see cref = "T:SharpDX.Direct3D10.Texture3D" /> class.
 /// </summary>
 /// <param name = "device">The device with which to associate the texture.</param>
 /// <param name = "description">The description of the texture.</param>
 public Texture3D(Device device, Texture3DDescription description)
     : base(IntPtr.Zero)
 {
     device.CreateTexture3D(ref description, null, this);
 }