Gorgon
Show / Hide Table of Contents

Class GorgonConstantBuffers

A list of constant buffers used for shaders.

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

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

MaximumConstantBufferCount

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 Source

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

OnClear()

Function called when the array is cleared.

Declaration
protected override void OnClear()
Overrides
GorgonArray<GorgonConstantBufferView>.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