Class ConstantBufferPool
A constant buffer pool for an effect.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics.Effects
Assembly: Evergine.Framework.dll
Syntax
public class ConstantBufferPool : DisposableObject, IDisposable
  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()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
  Overrides
ReleaseConstantBuffer(int, ConstantBuffer)
Release a constant buffer to allow others to use them.
Declaration
public void ReleaseConstantBuffer(int slot, ConstantBuffer constantBuffer)
  Parameters
| Type | Name | Description | 
|---|---|---|
| int | slot | The slot.  | 
      
| ConstantBuffer | constantBuffer | The constant buffer.  | 
      
RetrieveCBuffer(int)
Retrieve a constant buffer from the pool.
Declaration
public ConstantBuffer RetrieveCBuffer(int slot)
  Parameters
| Type | Name | Description | 
|---|---|---|
| int | slot | The cbuffer slot.  | 
      
Returns
| Type | Description | 
|---|---|
| ConstantBuffer | The constant buffer.  |