[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct3D11.ShaderResourceView

Class ShaderResourceView

Namespace
GrapeCity.Documents.DX.Direct3D11
Assembly
GcDocs.DX.Windows.dll

ID3D11ShaderResourceView

[Guid("b0e06fe0-8192-4e1a-b1ca-36d7414710b2")]
public class ShaderResourceView : ResourceView, IDisposable, IUnknown
Inheritance
object
ShaderResourceView
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

ShaderResourceView(IntPtr)

Initializes a new instance of the ShaderResourceView class.

public ShaderResourceView(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Description

GetDescription

public ShaderResourceViewDescription Description { get; }

Property Value

ShaderResourceViewDescription

Methods

Create(Device, Resource, ShaderResourceViewDescription)

Creates a ShaderResourceView for accessing resource data.

public static ShaderResourceView Create(Device device, Resource resource, ShaderResourceViewDescription description)

Parameters

device Device

The device to use when creating this ShaderResourceView.

resource Resource

The resource that represents the render-target surface. This surface must have been created with the ShaderResource flag.

description ShaderResourceViewDescription

A structure describing the ShaderResourceView to be created.

Returns

ShaderResourceView

Create(Device, Resource)

Creates a ShaderResourceView for accessing resource data.

public static ShaderResourceView Create(Device device, Resource resource)

Parameters

device Device

The device to use when creating this ShaderResourceView.

resource Resource

The resource that represents the render-target surface. This surface must have been created with the ShaderResource flag.

Returns

ShaderResourceView

GetDescription(out ShaderResourceViewDescription)

void ID3D11ShaderResourceView::GetDesc([Out] D3D11_SHADER_RESOURCE_VIEW_DESC* pDesc)

public void GetDescription(out ShaderResourceViewDescription descRef)

Parameters

descRef ShaderResourceViewDescription

Operators

explicit operator ShaderResourceView(IntPtr)

Performs an explicit conversion from System.IntPtr to ShaderResourceView.

public static explicit operator ShaderResourceView(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

ShaderResourceView