Class GorgonVertexBufferReadWriteView
Provides a read/write (unordered access) view for a GorgonVertexBuffer.
Inheritance
Implements
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public sealed class GorgonVertexBufferReadWriteView : GorgonBufferReadWriteViewCommon<GorgonVertexBuffer>, IDisposable, IGorgonGraphicsObject, IEquatable<GorgonResourceView>, IGorgonVertexBufferInfo, IGorgonNamedObject
Remarks
This type of view allows for unordered access to a GorgonVertexBuffer. 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 |