Gorgon
Show / Hide Table of Contents

Class GorgonResourceView

The base class for a view that allows the GPU to access a resource in various ways.

Inheritance
object
GorgonResourceView
GorgonDepthStencil2DView
GorgonReadWriteView
GorgonRenderTargetView
GorgonShaderResourceView
Implements
IDisposable
IGorgonGraphicsObject
IEquatable<GorgonResourceView>
Inherited Members
object.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public abstract class GorgonResourceView : IDisposable, IGorgonGraphicsObject, IEquatable<GorgonResourceView>

Constructors

| Edit this page View Source

GorgonResourceView(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 resource parameter is null.

Properties

| Edit this page View Source

Graphics

Property to return the graphics interface that built this object.

Declaration
public GorgonGraphics Graphics { get; }
Property Value
Type Description
GorgonGraphics
| Edit this page View Source

IsDisposed

Property to return whether or not the object is disposed.

Declaration
public bool IsDisposed { get; }
Property Value
Type Description
bool
| Edit this page View Source

Log

Property to return the logging interface use for debug messages.

Declaration
protected IGorgonLog Log { get; }
Property Value
Type Description
IGorgonLog
| Edit this page View Source

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
| Edit this page View Source

Resource

Property to return the resource bound to the view.

Declaration
public GorgonGraphicsResource Resource { get; }
Property Value
Type Description
GorgonGraphicsResource
| Edit this page View Source

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 Source

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public virtual void Dispose()
| Edit this page View Source

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 other parameter; otherwise, false.

| Edit this page View Source

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 obj parameter; otherwise, false.

Overrides
object.Equals(object)
| Edit this page View Source

GetHashCode()

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.

Overrides
object.GetHashCode()

Implements

IDisposable
IGorgonGraphicsObject
IEquatable<T>

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author