Example #1
0
 /// <summary>
 ///   Creates a <see cref = "T:SharpDX.Direct3D11.DepthStencilView" /> for accessing resource data.
 /// </summary>
 /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D11.DepthStencilView" />.</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">DepthStencil</see> flag.</param>
 /// <param name = "description">A structure describing the <see cref = "T:SharpDX.Direct3D11.DepthStencilView" /> to be created.</param>
 /// <unmanaged>ID3D11Device::CreateDepthStencilView</unmanaged>
 public DepthStencilView(Device device, Resource resource, DepthStencilViewDescription description)
     : base(IntPtr.Zero)
 {
     device.CreateDepthStencilView(resource, description, this);
 }
Example #2
0
 /// <summary>
 ///   Creates a <see cref = "T:SharpDX.Direct3D11.DepthStencilView" /> for accessing resource data.
 /// </summary>
 /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D11.DepthStencilView" />.</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">DepthStencil</see> flag.</param>
 /// <unmanaged>ID3D11Device::CreateDepthStencilView</unmanaged>
 public DepthStencilView(Device device, Resource resource)
     : base(IntPtr.Zero)
 {
     device.CreateDepthStencilView(resource, null, this);
 }