/// <summary> /// Creates a <see cref = "T:SharpDX.Direct3D10.ShaderResourceView" /> for accessing resource data. /// </summary> /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D10.ShaderResourceView" />.</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">ShaderResource</see> flag.</param> /// <param name = "description">A structure describing the <see cref = "T:SharpDX.Direct3D10.ShaderResourceView" /> to be created.</param> /// <unmanaged>ID3D10Device::CreateShaderResourceView</unmanaged> public ShaderResourceView(Device device, Resource resource, ShaderResourceViewDescription description) : base(IntPtr.Zero) { device.CreateShaderResourceView(resource, description, this); }
/// <summary> /// Creates a <see cref = "T:SharpDX.Direct3D10.ShaderResourceView" /> for accessing resource data. /// </summary> /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D10.ShaderResourceView" />.</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">ShaderResource</see> flag.</param> /// <unmanaged>ID3D10Device::CreateShaderResourceView</unmanaged> public ShaderResourceView(Device device, Resource resource) : base(IntPtr.Zero) { device.CreateShaderResourceView(resource, null, this); }