Gorgon
Show / Hide Table of Contents

Class GorgonBufferViewCommon

The base class for buffer shader views.

Inheritance
object
GorgonResourceView
GorgonShaderResourceView
GorgonBufferViewCommon
GorgonBufferView
GorgonRawView
GorgonStructuredView
Implements
IDisposable
IGorgonGraphicsObject
IEquatable<GorgonResourceView>
IEquatable<GorgonShaderResourceView>
Inherited Members
GorgonShaderResourceView.Equals(GorgonShaderResourceView)
GorgonShaderResourceView.Equals(object)
GorgonShaderResourceView.GetHashCode()
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 GorgonBufferViewCommon : GorgonShaderResourceView, IDisposable, IGorgonGraphicsObject, IEquatable<GorgonResourceView>, IEquatable<GorgonShaderResourceView>

Constructors

| Edit this page View Source

GorgonBufferViewCommon(GorgonBuffer, int, int, int)

Initializes a new instance of the GorgonBufferViewCommon class.

Declaration
protected GorgonBufferViewCommon(GorgonBuffer buffer, int startingElement, int elementCount, int totalElementCount)
Parameters
Type Name Description
GorgonBuffer buffer

The buffer to bind to the view.

int startingElement

The starting element in the buffer to view.

int elementCount

The number of elements in the buffer to view.

int totalElementCount

The total number of elements in the buffer.

Exceptions
Type Condition
ArgumentNullException

Thrown when the buffer parameter is null.

Properties

| Edit this page View Source

Buffer

Property to return the buffer associated with the view.

Declaration
public GorgonBuffer Buffer { get; protected set; }
Property Value
Type Description
GorgonBuffer
| Edit this page View Source

ElementCount

Property to return the number of elements.

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

ElementSize

Property to return the size of an element, in bytes.

Declaration
public abstract int ElementSize { get; }
Property Value
Type Description
int
| Edit this page View Source

StartElement

Property to return the starting element.

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

TotalElementCount

Property to return the total number of elements in the Buffer.

Declaration
public int TotalElementCount { get; }
Property Value
Type Description
int

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
GorgonShaderResourceView.Dispose()

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