Class GorgonShaderResourceViews
A list of shader resource views to apply to the pipeline.
Implements
Inherited Members
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public sealed class GorgonShaderResourceViews : GorgonArray<GorgonShaderResourceView>, IList<GorgonShaderResourceView>, ICollection<GorgonShaderResourceView>, IGorgonReadOnlyArray<GorgonShaderResourceView>, IReadOnlyList<GorgonShaderResourceView>, IReadOnlyCollection<GorgonShaderResourceView>, IEnumerable<GorgonShaderResourceView>, IEnumerable, IEquatable<IReadOnlyList<GorgonShaderResourceView>>
Remarks
The shader resource view list is used to bind resources like textures and structured buffers to the GPU pipeline so that shaders can make use of them.
If a resource being bound is bound to the RenderTargets list, then the render target view will be unbound from the pipeline and rebound as a shader resource. This is because the render target cannot be used as a shader resource and a render target at the same time.
Constructors
| Edit this page View SourceGorgonShaderResourceViews(IReadOnlyList<GorgonShaderResourceView>)
Initializes a new instance of the GorgonShaderResourceViews class.
Declaration
public GorgonShaderResourceViews(IReadOnlyList<GorgonShaderResourceView> bufferViews = null)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<GorgonShaderResourceView> | bufferViews | [Optional] A list of buffer views to copy into the the list. |
Fields
| Edit this page View SourceMaximumShaderResourceViewCount
The maximum size for a shader resource view binding list.
Declaration
public const int MaximumShaderResourceViewCount = 64
Field Value
Type | Description |
---|---|
int |
Methods
| Edit this page View SourceOnAssignDirtyItem(int, GorgonShaderResourceView)
Function called when a dirty item is found and added.
Declaration
protected override void OnAssignDirtyItem(int dirtyIndex, GorgonShaderResourceView value)
Parameters
Type | Name | Description |
---|---|---|
int | dirtyIndex | The index that is considered dirty. |
GorgonShaderResourceView | value | The dirty value. |
Overrides
| Edit this page View SourceOnClear()
Function called when the array is cleared.
Declaration
protected override void OnClear()