Class GorgonConstantBuffers
A list of constant buffers used for shaders.
Implements
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public sealed class GorgonConstantBuffers : GorgonArray<GorgonConstantBufferView>, IList<GorgonConstantBufferView>, ICollection<GorgonConstantBufferView>, IGorgonReadOnlyArray<GorgonConstantBufferView>, IReadOnlyList<GorgonConstantBufferView>, IReadOnlyCollection<GorgonConstantBufferView>, IEnumerable<GorgonConstantBufferView>, IEnumerable, IEquatable<IReadOnlyList<GorgonConstantBufferView>>
Remarks
This is used to pass a set of GorgonConstantBuffer objects to a GorgonDrawCallCommon object. This allows an application to set a single or multiple constant buffers at the same time and thus provides a performance boost over setting them individually.
Constructors
| Edit this page View SourceGorgonConstantBuffers(IReadOnlyList<GorgonConstantBufferView>)
Initializes a new instance of the GorgonConstantBuffers class.
Declaration
public GorgonConstantBuffers(IReadOnlyList<GorgonConstantBufferView> bufferViews = null)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<GorgonConstantBufferView> | bufferViews | [Optional] A list of buffer views to copy into the the list. |
Fields
| Edit this page View SourceMaximumConstantBufferCount
The maximum size for a constant buffer binding list.
Declaration
public const int MaximumConstantBufferCount = 14
Field Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceOnAssignDirtyItem(int, GorgonConstantBufferView)
Function called when a dirty item is found and added.
Declaration
protected override void OnAssignDirtyItem(int dirtyIndex, GorgonConstantBufferView value)
Parameters
Type | Name | Description |
---|---|---|
int | dirtyIndex | The index that is considered dirty. |
GorgonConstantBufferView | value | The dirty value. |
Overrides
| Edit this page View SourceOnClear()
Function called when the array is cleared.
Declaration
protected override void OnClear()