コード例 #1
0
 /// <summary>
 ///   Creates a <see cref = "T:SharpDX.Direct3D11.ShaderResourceView" /> for accessing resource data.
 /// </summary>
 /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D11.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.Direct3D11.BindFlags">ShaderResource</see> flag.</param>
 /// <param name = "description">A structure describing the <see cref = "T:SharpDX.Direct3D11.ShaderResourceView" /> to be created.</param>
 /// <msdn-id>ff476519</msdn-id>	
 /// <unmanaged>HRESULT ID3D11Device3::CreateShaderResourceView1([In] ID3D11Resource* pResource,[In, Optional] const D3D11_SHADER_RESOURCE_VIEW_DESC1* pDesc,[Out, Fast] ID3D11ShaderResourceView1** ppSRView)</unmanaged>	
 /// <unmanaged-short>ID3D11Device3::CreateShaderResourceView1</unmanaged-short>	
 public ShaderResourceView1(Device3 device, Resource resource, ShaderResourceViewDescription1 description)
     : base(IntPtr.Zero)
 {
     device.CreateShaderResourceView1(resource, description, this);
 }
コード例 #2
0
 /// <summary>
 ///   Creates a <see cref = "T:SharpDX.Direct3D11.ShaderResourceView" /> for accessing resource data.
 /// </summary>
 /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D11.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.Direct3D11.BindFlags">ShaderResource</see> flag.</param>
 /// <param name = "description">A structure describing the <see cref = "T:SharpDX.Direct3D11.ShaderResourceView" /> to be created.</param>
 /// <msdn-id>ff476519</msdn-id>
 /// <unmanaged>HRESULT ID3D11Device3::CreateShaderResourceView1([In] ID3D11Resource* pResource,[In, Optional] const D3D11_SHADER_RESOURCE_VIEW_DESC1* pDesc,[Out, Fast] ID3D11ShaderResourceView1** ppSRView)</unmanaged>
 /// <unmanaged-short>ID3D11Device3::CreateShaderResourceView1</unmanaged-short>
 public ShaderResourceView1(Device3 device, Resource resource, ShaderResourceViewDescription1 description)
     : base(IntPtr.Zero)
 {
     device.CreateShaderResourceView1(resource, description, this);
 }
コード例 #3
0
 /// <summary>
 ///   Creates a <see cref = "T:SharpDX.Direct3D11.ShaderResourceView1" /> for accessing resource data.
 /// </summary>
 /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D11.ShaderResourceView1" />.</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">ShaderResource</see> flag.</param>
 /// <msdn-id>ff476519</msdn-id>	
 /// <unmanaged>HRESULT ID3D11Device3::CreateShaderResourceView1([In] ID3D11Resource* pResource,[In, Optional] const D3D11_SHADER_RESOURCE_VIEW_DESC1* pDesc,[Out, Fast] ID3D11ShaderResourceView1** ppSRView)</unmanaged>	
 /// <unmanaged-short>ID3D11Device3::CreateShaderResourceView1</unmanaged-short>	
 public ShaderResourceView1(Device3 device, Resource resource)
     : base(IntPtr.Zero)
 {
     device.CreateShaderResourceView1(resource, null, this);
 }
コード例 #4
0
 /// <summary>
 ///   Creates a <see cref = "T:SharpDX.Direct3D11.ShaderResourceView1" /> for accessing resource data.
 /// </summary>
 /// <param name = "device">The device to use when creating this <see cref = "T:SharpDX.Direct3D11.ShaderResourceView1" />.</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">ShaderResource</see> flag.</param>
 /// <msdn-id>ff476519</msdn-id>
 /// <unmanaged>HRESULT ID3D11Device3::CreateShaderResourceView1([In] ID3D11Resource* pResource,[In, Optional] const D3D11_SHADER_RESOURCE_VIEW_DESC1* pDesc,[Out, Fast] ID3D11ShaderResourceView1** ppSRView)</unmanaged>
 /// <unmanaged-short>ID3D11Device3::CreateShaderResourceView1</unmanaged-short>
 public ShaderResourceView1(Device3 device, Resource resource)
     : base(IntPtr.Zero)
 {
     device.CreateShaderResourceView1(resource, null, this);
 }