Exemplo n.º 1
0
 /// <summary>
 ///   Creates a <see cref = "T:SharpDX.Direct3D11.RenderTargetView" /> for accessing resource data.
 /// </summary>
 /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D11.RenderTargetView1" />.</param>
 /// <param name = "resource">The resource that represents the render-target surface. This surface must have been created with the <see cref = "T:SharpDX.Direct3D11.BindFlags">RenderTarget</see> flag.</param>
 /// <param name = "description">A structure describing the <see cref = "T:SharpDX.Direct3D11.RenderTargetView1" /> to be created.</param>
 /// <unmanaged>ID3D11Device3::CreateRenderTargetView1</unmanaged>
 public RenderTargetView1(Device3 device, Resource resource, RenderTargetViewDescription1 description)
     : base(IntPtr.Zero)
 {
     device.CreateRenderTargetView1(resource, description, this);
 }
Exemplo n.º 2
0
 /// <summary>
 ///   Creates a <see cref = "T:SharpDX.Direct3D11.RenderTargetView" /> for accessing resource data.
 /// </summary>
 /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D11.RenderTargetView1" />.</param>
 /// <param name = "resource">The resource that represents the render-target surface. This surface must have been created with the <see cref = "T:SharpDX.Direct3D11.BindFlags">RenderTarget</see> flag.</param>
 /// <param name = "description">A structure describing the <see cref = "T:SharpDX.Direct3D11.RenderTargetView1" /> to be created.</param>
 /// <unmanaged>ID3D11Device3::CreateRenderTargetView1</unmanaged>
 public RenderTargetView1(Device3 device, Resource resource, RenderTargetViewDescription1 description)
     : base(IntPtr.Zero)
 {
     device.CreateRenderTargetView1(resource, description, this);
 }