Class ConstantBufferPool
A constant buffer pool for an effect.
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects
Assembly: Evergine.Framework.dll
Syntax
public class ConstantBufferPool : DisposableObject
Constructors
ConstantBufferPool(Effect)
Initializes a new instance of the ConstantBufferPool class.
Declaration
public ConstantBufferPool(Effect effect)
Parameters
Type | Name | Description |
---|---|---|
Effect | effect | The effect. |
Methods
Destroy()
Destroys all resources of this instance.
Declaration
protected override void Destroy()
Overrides
ReleaseConstantBuffer(int, ConstantBuffer)
Releases a constant buffer to allow others to use it.
Declaration
public void ReleaseConstantBuffer(int slot, ConstantBuffer constantBuffer)
Parameters
Type | Name | Description |
---|---|---|
int | slot | The slot. |
ConstantBuffer | constantBuffer | The constant buffer. |
RetrieveCBuffer(int)
Retrieves a constant buffer from the pool.
Declaration
public ConstantBuffer RetrieveCBuffer(int slot)
Parameters
Type | Name | Description |
---|---|---|
int | slot | The constant buffer slot. |
Returns
Type | Description |
---|---|
ConstantBuffer | The constant buffer. |