Class GorgonReadWriteViewBindings
A list of GorgonReadWriteViewBinding values.
Implements
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public sealed class GorgonReadWriteViewBindings : GorgonArray<GorgonReadWriteViewBinding>, IList<GorgonReadWriteViewBinding>, ICollection<GorgonReadWriteViewBinding>, IGorgonReadOnlyArray<GorgonReadWriteViewBinding>, IReadOnlyList<GorgonReadWriteViewBinding>, IReadOnlyCollection<GorgonReadWriteViewBinding>, IEnumerable<GorgonReadWriteViewBinding>, IEnumerable, IEquatable<IReadOnlyList<GorgonReadWriteViewBinding>>
Remarks
A GorgonReadWriteViewBinding is used to bind a GorgonReadWriteViewto the GPU pipeline so that it may be used for rendering from a shader.
When binding an unordered access view from a pixel shader it is important to note that they occupy the same slots as render targets. Thus, if the user sets an unordered access view at slot 0, and there is a render target already bound at that slot, then the target will be unbound and the unordered access view will replace it. Conversely, if the user binds a render target at slot 0 and there is already an unordered access view there, then it will be unbound. It is the responsibility of the developer to ensure there are no clashes in slot management.
Constructors
| Edit this page View SourceGorgonReadWriteViewBindings()
Initializes a new instance of the GorgonReadWriteViewBindings class.
Declaration
public GorgonReadWriteViewBindings()
Fields
| Edit this page View SourceMaximumReadWriteViewCount
The maximum number of vertex buffers allow to be bound at the same time.
Declaration
public const int MaximumReadWriteViewCount = 64
Field Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceOnAssignDirtyItem(int, GorgonReadWriteViewBinding)
Function called when a dirty item is found and added.
Declaration
protected override void OnAssignDirtyItem(int dirtyIndex, GorgonReadWriteViewBinding value)
Parameters
Type | Name | Description |
---|---|---|
int | dirtyIndex | The index that is considered dirty. |
GorgonReadWriteViewBinding | value | The dirty value. |
Overrides
| Edit this page View SourceOnClear()
Function called when the array is cleared.
Declaration
protected override void OnClear()
Overrides
| Edit this page View SourceOnValidate()
Function to validate an item being assigned to a slot.
Declaration
protected override void OnValidate()