Class GorgonVertexBufferBindings
A list of GorgonVertexBufferBinding values.
Implements
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public sealed class GorgonVertexBufferBindings : GorgonArray<GorgonVertexBufferBinding>, IList<GorgonVertexBufferBinding>, ICollection<GorgonVertexBufferBinding>, IGorgonReadOnlyArray<GorgonVertexBufferBinding>, IReadOnlyList<GorgonVertexBufferBinding>, IReadOnlyCollection<GorgonVertexBufferBinding>, IEnumerable<GorgonVertexBufferBinding>, IEnumerable, IEquatable<IReadOnlyList<GorgonVertexBufferBinding>>
Remarks
A GorgonVertexBufferBinding is used to bind a vertex buffer to the GPU pipeline so that it may be used for rendering.
Constructors
| Edit this page View SourceGorgonVertexBufferBindings(GorgonInputLayout, IReadOnlyList<GorgonVertexBufferBinding>)
Initializes a new instance of the GorgonVertexBufferBindings class.
Declaration
public GorgonVertexBufferBindings(GorgonInputLayout inputLayout, IReadOnlyList<GorgonVertexBufferBinding> bindings = null)
Parameters
Type | Name | Description |
---|---|---|
GorgonInputLayout | inputLayout | The input layout that describes the arrangement of the vertex data within the buffers being bound. |
IReadOnlyList<GorgonVertexBufferBinding> | bindings | [Optional] A list of vertex buffers to apply. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |
Fields
| Edit this page View SourceMaximumVertexBufferCount
The maximum number of vertex buffers allow to be bound at the same time.
Declaration
public const int MaximumVertexBufferCount = 32
Field Value
Type | Description |
---|---|
int |
Properties
| Edit this page View SourceInputLayout
Property to return the input layout assigned to the buffer bindings.
Declaration
public GorgonInputLayout InputLayout { get; }
Property Value
Type | Description |
---|---|
GorgonInputLayout |
Remarks
The input layout defines how the vertex data is arranged within the vertex buffers.
Methods
| Edit this page View SourceOnAssignDirtyItem(int, GorgonVertexBufferBinding)
Function called when a dirty item is found and added.
Declaration
protected override void OnAssignDirtyItem(int dirtyIndex, GorgonVertexBufferBinding value)
Parameters
Type | Name | Description |
---|---|---|
int | dirtyIndex | The index that is considered dirty. |
GorgonVertexBufferBinding | value | The dirty value. |
Overrides
| Edit this page View SourceOnClear()
Function called when the array is cleared.
Declaration
protected override void OnClear()