Class GorgonIndexBufferReadWriteView
Provides a read/write (unordered access) view for a GorgonIndexBuffer.
Inheritance
Implements
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public sealed class GorgonIndexBufferReadWriteView : GorgonBufferReadWriteViewCommon<GorgonIndexBuffer>, IDisposable, IGorgonGraphicsObject, IEquatable<GorgonResourceView>, IGorgonIndexBufferInfo, IGorgonNamedObject
Remarks
This type of view allows for unordered access to a GorgonIndexBuffer. The buffer must have been created with the ReadWrite flag in its Binding property.
The unordered access allows a shader to read/write any part of a GorgonGraphicsResource by multiple threads without memory contention. This is done through the use of atomic functions.
These types of views are most useful for GorgonComputeShader shaders, but can also be used by a GorgonPixelShader by passing a list of these views in to a draw call.
Properties
| Edit this page View SourceBinding
Property to return the binding used to bind this buffer to the GPU.
Declaration
public VertexIndexBufferBinding Binding { get; }
Property Value
Type | Description |
---|---|
VertexIndexBufferBinding |
See Also
| Edit this page View SourceElementSize
Property to return the size of an element, in bytes.
Declaration
public override int ElementSize { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
See Also
| Edit this page View SourceFormat
Property to return the format used to interpret this view.
Declaration
public BufferFormat Format { get; }
Property Value
Type | Description |
---|---|
BufferFormat |
See Also
| Edit this page View SourceFormatInformation
Property to return information about the Format used by this view.
Declaration
public GorgonFormatInfo FormatInformation { get; }
Property Value
Type | Description |
---|---|
GorgonFormatInfo |
See Also
| Edit this page View SourceIndexCount
Property to return the number of indices to store.
Declaration
public int IndexCount { get; }
Property Value
Type | Description |
---|---|
int |
See Also
| Edit this page View SourceUse16BitIndices
Property to return whether to use 16 bit values for indices.
Declaration
public bool Use16BitIndices { get; }
Property Value
Type | Description |
---|---|
bool |