Gorgon
Show / Hide Table of Contents

Class GorgonShaderResourceViews

A list of shader resource views to apply to the pipeline.

Inheritance
object
GorgonArray<GorgonShaderResourceView>
GorgonShaderResourceViews
Implements
IList<GorgonShaderResourceView>
ICollection<GorgonShaderResourceView>
IGorgonReadOnlyArray<GorgonShaderResourceView>
IReadOnlyList<GorgonShaderResourceView>
IReadOnlyCollection<GorgonShaderResourceView>
IEnumerable<GorgonShaderResourceView>
IEnumerable
IEquatable<IReadOnlyList<GorgonShaderResourceView>>
Inherited Members
GorgonArray<GorgonShaderResourceView>.Length
GorgonArray<GorgonShaderResourceView>.IsDirty
GorgonArray<GorgonShaderResourceView>.this[int]
GorgonArray<GorgonShaderResourceView>.AsSpan(int, int)
GorgonArray<GorgonShaderResourceView>.AsSpan()
GorgonArray<GorgonShaderResourceView>.AsMemory(int, int)
GorgonArray<GorgonShaderResourceView>.AsMemory()
GorgonArray<GorgonShaderResourceView>.GetDirtyItems(bool)
GorgonArray<GorgonShaderResourceView>.MarkDirty(Range)
GorgonArray<GorgonShaderResourceView>.ResetAt(int)
GorgonArray<GorgonShaderResourceView>.IndexOf(GorgonShaderResourceView)
GorgonArray<GorgonShaderResourceView>.Contains(GorgonShaderResourceView)
GorgonArray<GorgonShaderResourceView>.CopyDirty(GorgonArray<GorgonShaderResourceView>)
GorgonArray<GorgonShaderResourceView>.CopyTo(GorgonShaderResourceView[], int)
GorgonArray<GorgonShaderResourceView>.CopyTo(GorgonArray<GorgonShaderResourceView>, int)
GorgonArray<GorgonShaderResourceView>.Clear()
GorgonArray<GorgonShaderResourceView>.GetEnumerator()
GorgonArray<GorgonShaderResourceView>.Equals(IReadOnlyList<GorgonShaderResourceView>)
GorgonArray<GorgonShaderResourceView>.DirtyEquals(IGorgonReadOnlyArray<GorgonShaderResourceView>, int)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
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 Source

GorgonShaderResourceViews(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 Source

MaximumShaderResourceViewCount

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 Source

OnAssignDirtyItem(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
GorgonArray<GorgonShaderResourceView>.OnAssignDirtyItem(int, GorgonShaderResourceView)
| Edit this page View Source

OnClear()

Function called when the array is cleared.

Declaration
protected override void OnClear()
Overrides
GorgonArray<GorgonShaderResourceView>.OnClear()

Implements

IList<T>
ICollection<T>
IGorgonReadOnlyArray<T>
IReadOnlyList<T>
IReadOnlyCollection<T>
IEnumerable<T>
IEnumerable
IEquatable<T>

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonTreeLinqExtensions.TraverseDepthFirst<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
GorgonTreeLinqExtensions.Traverse<T>(IEnumerable<T>, Func<T, IEnumerable<T>>)
GorgonIReadOnlyListExtensions.Contains<T>(IReadOnlyList<T>, T)
GorgonIReadOnlyListExtensions.CopyTo<T>(IReadOnlyList<T>, T[])
GorgonIReadOnlyListExtensions.FirstIndexOf<T>(IReadOnlyList<T>, Predicate<T>)
GorgonIReadOnlyListExtensions.IndexOf<T>(IReadOnlyList<T>, T)
GorgonIReadOnlyListExtensions.LastIndexOf<T>(IReadOnlyList<T>, Predicate<T>)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author