Class GorgonShaderResourceView
Base class for shader resource views.
Inheritance
Implements
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public abstract class GorgonShaderResourceView : GorgonResourceView, IDisposable, IGorgonGraphicsObject, IEquatable<GorgonResourceView>, IEquatable<GorgonShaderResourceView>
Remarks
This base class is used to define shader resource views for strongly typed resources like textures and buffers.
Constructors
| Edit this page View SourceGorgonShaderResourceView(GorgonGraphicsResource)
Initializes a new instance of the GorgonShaderResourceView class.
Declaration
protected GorgonShaderResourceView(GorgonGraphicsResource resource)
Parameters
Type | Name | Description |
---|---|---|
GorgonGraphicsResource | resource | The resource to bind to the view. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |
Methods
| Edit this page View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()
Overrides
| Edit this page View SourceEquals(GorgonShaderResourceView)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(GorgonShaderResourceView other)
Parameters
Type | Name | Description |
---|---|---|
GorgonShaderResourceView | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object)
Indicates whether the current object is equal to another object of the same type.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Overrides
| Edit this page View SourceGetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |