Class GorgonBufferViewCommon
The base class for buffer shader views.
Inheritance
GorgonBufferViewCommon
Implements
Inherited Members
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 SourceGorgonBufferViewCommon(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 |
Properties
| Edit this page View SourceBuffer
Property to return the buffer associated with the view.
Declaration
public GorgonBuffer Buffer { get; protected set; }
Property Value
Type | Description |
---|---|
GorgonBuffer |
ElementCount
Property to return the number of elements.
Declaration
public int ElementCount { get; }
Property Value
Type | Description |
---|---|
int |
ElementSize
Property to return the size of an element, in bytes.
Declaration
public abstract int ElementSize { get; }
Property Value
Type | Description |
---|---|
int |
StartElement
Property to return the starting element.
Declaration
public int StartElement { get; }
Property Value
Type | Description |
---|---|
int |
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 SourceDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public override void Dispose()