Gorgon
Show / Hide Table of Contents

Class GorgonShaderResourceView

Base class for shader resource views.

Inheritance
object
GorgonResourceView
GorgonShaderResourceView
GorgonBufferViewCommon
GorgonTexture1DView
GorgonTexture2DView
GorgonTexture3DView
Implements
IDisposable
IGorgonGraphicsObject
IEquatable<GorgonResourceView>
IEquatable<GorgonShaderResourceView>
Inherited Members
GorgonResourceView.Log
GorgonResourceView.OwnsResource
GorgonResourceView.IsDisposed
GorgonResourceView.Resource
GorgonResourceView.Usage
GorgonResourceView.Graphics
GorgonResourceView.Equals(GorgonResourceView)
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 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 Source

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

Methods

| Edit this page View Source

Dispose()

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

Declaration
public override void Dispose()
Overrides
GorgonResourceView.Dispose()
| Edit this page View Source

Equals(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 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
GorgonResourceView.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
GorgonResourceView.GetHashCode()

Implements

IDisposable
IGorgonGraphicsObject
IEquatable<T>
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