Gorgon
Show / Hide Table of Contents

Class GorgonVertexBufferBindings

A list of GorgonVertexBufferBinding values.

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

A GorgonVertexBufferBinding is used to bind a vertex buffer to the GPU pipeline so that it may be used for rendering.

Constructors

| Edit this page View Source

GorgonVertexBufferBindings(GorgonInputLayout, IReadOnlyList<GorgonVertexBufferBinding>)

Initializes a new instance of the GorgonVertexBufferBindings class.

Declaration
public GorgonVertexBufferBindings(GorgonInputLayout inputLayout, IReadOnlyList<GorgonVertexBufferBinding> bindings = null)
Parameters
Type Name Description
GorgonInputLayout inputLayout

The input layout that describes the arrangement of the vertex data within the buffers being bound.

IReadOnlyList<GorgonVertexBufferBinding> bindings

[Optional] A list of vertex buffers to apply.

Exceptions
Type Condition
ArgumentNullException

Thrown when the inputLayout parameter is null.

Fields

| Edit this page View Source

MaximumVertexBufferCount

The maximum number of vertex buffers allow to be bound at the same time.

Declaration
public const int MaximumVertexBufferCount = 32
Field Value
Type Description
int

Properties

| Edit this page View Source

InputLayout

Property to return the input layout assigned to the buffer bindings.

Declaration
public GorgonInputLayout InputLayout { get; }
Property Value
Type Description
GorgonInputLayout
Remarks

The input layout defines how the vertex data is arranged within the vertex buffers.

Methods

| Edit this page View Source

OnAssignDirtyItem(int, GorgonVertexBufferBinding)

Function called when a dirty item is found and added.

Declaration
protected override void OnAssignDirtyItem(int dirtyIndex, GorgonVertexBufferBinding value)
Parameters
Type Name Description
int dirtyIndex

The index that is considered dirty.

GorgonVertexBufferBinding value

The dirty value.

Overrides
GorgonArray<GorgonVertexBufferBinding>.OnAssignDirtyItem(int, GorgonVertexBufferBinding)
| Edit this page View Source

OnClear()

Function called when the array is cleared.

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