Gorgon
Show / Hide Table of Contents

Class GorgonStateBuilderPoolAllocator<T>

An allocator used to retrieve states from a pool.

Inheritance
object
GorgonRingPool<T>
GorgonStateBuilderPoolAllocator<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 GorgonStateBuilderPoolAllocator<T> : GorgonRingPool<T>, IGorgonAllocator<T> where T : class, IEquatable<T>
Type Parameters
Name Description
T

The type of state

Constructors

| Edit this page View Source

GorgonStateBuilderPoolAllocator(int)

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

Declaration
public GorgonStateBuilderPoolAllocator(int size = 4096)
Parameters
Type Name Description
int size

[Optional] The number of items that can be stored in this pool.

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