Gorgon
Show / Hide Table of Contents

Class GorgonDrawCallPoolAllocator<T>

An allocator used to retrieve draw calls from a pool.

Inheritance
object
GorgonRingPool<T>
GorgonDrawCallPoolAllocator<T>
Implements
IGorgonAllocator<T>
Inherited Members
GorgonRingPool<T>.ItemAllocator
GorgonRingPool<T>.TotalSize
GorgonRingPool<T>.AvailableSlots
GorgonRingPool<T>.Allocate(Action<T>)
GorgonRingPool<T>.Reset(bool)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Graphics.Core
Assembly: Gorgon.Graphics.Core.dll
Syntax
public class GorgonDrawCallPoolAllocator<T> : GorgonRingPool<T>, IGorgonAllocator<T> where T : GorgonDrawCallCommon
Type Parameters
Name Description
T

The type of draw call.

Constructors

| Edit this page View Source

GorgonDrawCallPoolAllocator(int)

Initializes a new instance of the GorgonLinearPool<T> class.

Declaration
public GorgonDrawCallPoolAllocator(int objectCount)
Parameters
Type Name Description
int objectCount

The number of total objects available to the allocator.

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown when the objectCount parameter is less than 1.

Implements

IGorgonAllocator<T>

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
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