Class GorgonResourceView
The base class for a view that allows the GPU to access a resource in various ways.
Inheritance
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public abstract class GorgonResourceView : IDisposable, IGorgonGraphicsObject, IEquatable<GorgonResourceView>
Constructors
| Edit this page View SourceGorgonResourceView(GorgonGraphicsResource)
Initializes a new instance of the GorgonResourceView class.
Declaration
protected GorgonResourceView(GorgonGraphicsResource resource)
Parameters
Type | Name | Description |
---|---|---|
GorgonGraphicsResource | resource | The resource to view. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |
Properties
| Edit this page View SourceGraphics
Property to return the graphics interface that built this object.
Declaration
public GorgonGraphics Graphics { get; }
Property Value
Type | Description |
---|---|
GorgonGraphics |
IsDisposed
Property to return whether or not the object is disposed.
Declaration
public bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
bool |
Log
Property to return the logging interface use for debug messages.
Declaration
protected IGorgonLog Log { get; }
Property Value
Type | Description |
---|---|
IGorgonLog |
OwnsResource
Property to set or return whether the view owns the attached resource or not.
Declaration
protected bool OwnsResource { get; set; }
Property Value
Type | Description |
---|---|
bool |
Resource
Property to return the resource bound to the view.
Declaration
public GorgonGraphicsResource Resource { get; }
Property Value
Type | Description |
---|---|
GorgonGraphicsResource |
Usage
Property to return the usage flag(s) for the resource.
Declaration
public ResourceUsage Usage { get; }
Property Value
Type | Description |
---|---|
ResourceUsage |
Methods
| Edit this page View SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public virtual void Dispose()
Equals(GorgonResourceView)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(GorgonResourceView other)
Parameters
Type | Name | Description |
---|---|---|
GorgonResourceView | 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. |