Example #1
0
 /// <summary>
 ///   Creates a <see cref = "T:SharpDX.Direct3D10.RenderTargetView" /> for accessing resource data.
 /// </summary>
 /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D10.RenderTargetView" />.</param>
 /// <param name = "resource">The resource that represents the render-target surface. This surface must have been created with the <see cref = "T:SharpDX.Direct3D10.BindFlags">RenderTarget</see> flag.</param>
 /// <unmanaged>ID3D10Device::CreateRenderTargetView</unmanaged>
 public RenderTargetView(Device device, Resource resource)
     : base(IntPtr.Zero)
 {
     device.CreateRenderTargetView(resource, null, this);
 }
Example #2
0
 /// <summary>
 ///   Creates a <see cref = "T:SharpDX.Direct3D10.RenderTargetView" /> for accessing resource data.
 /// </summary>
 /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D10.RenderTargetView" />.</param>
 /// <param name = "resource">The resource that represents the render-target surface. This surface must have been created with the <see cref = "T:SharpDX.Direct3D10.BindFlags">RenderTarget</see> flag.</param>
 /// <param name = "description">A structure describing the <see cref = "T:SharpDX.Direct3D10.RenderTargetView" /> to be created.</param>
 /// <unmanaged>ID3D10Device::CreateRenderTargetView</unmanaged>
 public RenderTargetView(Device device, Resource resource, RenderTargetViewDescription description)
     : base(IntPtr.Zero)
 {
     device.CreateRenderTargetView(resource, description, this);
 }