[]
ID3D11ShaderResourceView
[Guid("b0e06fe0-8192-4e1a-b1ca-36d7414710b2")]
public class ShaderResourceView : ResourceView, IDisposable, IUnknown
Initializes a new instance of the ShaderResourceView class.
public ShaderResourceView(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
GetDescription
public ShaderResourceViewDescription Description { get; }
Creates a ShaderResourceView for accessing resource data.
public static ShaderResourceView Create(Device device, Resource resource, ShaderResourceViewDescription description)
device
DeviceThe device to use when creating this ShaderResourceView.
resource
ResourceThe resource that represents the render-target surface. This surface must have been created with the ShaderResource flag.
description
ShaderResourceViewDescriptionA structure describing the ShaderResourceView to be created.
Creates a ShaderResourceView for accessing resource data.
public static ShaderResourceView Create(Device device, Resource resource)
device
DeviceThe device to use when creating this ShaderResourceView.
resource
ResourceThe resource that represents the render-target surface. This surface must have been created with the ShaderResource flag.
void ID3D11ShaderResourceView::GetDesc([Out] D3D11_SHADER_RESOURCE_VIEW_DESC* pDesc)
public void GetDescription(out ShaderResourceViewDescription descRef)
descRef
ShaderResourceViewDescriptionPerforms an explicit conversion from System.IntPtr to ShaderResourceView.
public static explicit operator ShaderResourceView(IntPtr nativePointer)
nativePointer
System.IntPtr