Class Gorgon2DShaderStatePoolAllocator<T>
An allocator used to retrieve 2D shader states from a pool.
Implements
Inherited Members
Namespace: Gorgon.Renderers
Assembly: Gorgon.Renderers.Gorgon2D.dll
Syntax
public class Gorgon2DShaderStatePoolAllocator<T> : GorgonRingPool<Gorgon2DShaderState<T>>, IGorgonAllocator<Gorgon2DShaderState<T>> where T : GorgonShader
Type Parameters
Name | Description |
---|---|
T | The type of shader. Must inherit from GorgonShader. |
Constructors
| Edit this page View SourceGorgon2DShaderStatePoolAllocator(int)
Initializes a new instance of the Gorgon2DShaderStatePoolAllocator<T> class.
Declaration
public Gorgon2DShaderStatePoolAllocator(int objectCount = 128)
Parameters
Type | Name | Description |
---|---|---|
int | objectCount | [Optional] The number of objects to initialize the pool with. |