Gorgon
Show / Hide Table of Contents

Class Gorgon2DBatchStatePoolAllocator

An allocator used to retrieve 2D batch states from a pool.

Inheritance
object
GorgonRingPool<Gorgon2DBatchState>
Gorgon2DBatchStatePoolAllocator
Implements
IGorgonAllocator<Gorgon2DBatchState>
Inherited Members
GorgonRingPool<Gorgon2DBatchState>.ItemAllocator
GorgonRingPool<Gorgon2DBatchState>.TotalSize
GorgonRingPool<Gorgon2DBatchState>.AvailableSlots
GorgonRingPool<Gorgon2DBatchState>.Allocate(Action<Gorgon2DBatchState>)
GorgonRingPool<Gorgon2DBatchState>.Reset(bool)
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Gorgon.Renderers
Assembly: Gorgon.Renderers.Gorgon2D.dll
Syntax
public class Gorgon2DBatchStatePoolAllocator : GorgonRingPool<Gorgon2DBatchState>, IGorgonAllocator<Gorgon2DBatchState>

Constructors

| Edit this page View Source

Gorgon2DBatchStatePoolAllocator(int)

Initializes a new instance of the Gorgon2DBatchStatePoolAllocator class.

Declaration
public Gorgon2DBatchStatePoolAllocator(int objectCount = 1024)
Parameters
Type Name Description
int objectCount

[Optional] The number of objects to initialize the pool with.

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