Class GorgonStateBuilderPoolAllocator<T>
An allocator used to retrieve states from a pool.
Implements
Inherited Members
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 SourceGorgonStateBuilderPoolAllocator(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. |