Class CBufferCollectionUpdaterEffectEntry
This is a collection of CBuffers associated by effects that is going to be updated.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class CBufferCollectionUpdaterEffectEntry : DisposableObject, IDisposable
Fields
ConstantBuffersBySlot
The constant buffers by slot.
Declaration
public readonly Dictionary<int, ConstantBuffer> ConstantBuffersBySlot
Field Value
Type | Description |
---|---|
Dictionary<int, ConstantBuffer> |
Properties
ReferenceCount
Gets the number of references pointing to this effect entry.
Declaration
public uint ReferenceCount { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
AddReference()
Add a refernece of this effect entry.
Declaration
public void AddReference()
Collect(IEngineShaderParameters)
Update the constant buffers.
Declaration
public void Collect(IEngineShaderParameters engineShaderParameters)
Parameters
Type | Name | Description |
---|---|---|
IEngineShaderParameters | engineShaderParameters | The engine shader parameters. |
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
Prepare(CommandBuffer)
Prepare all registered effects.
Declaration
public void Prepare(CommandBuffer commandBuffer)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | commandBuffer | The command buffer. |
RemoveReference()
Remove a refernece of this effect entry.
Declaration
public void RemoveReference()
UpdateCBufferSetters(MaterialPassResources)
Update constant buffer setter.
Declaration
public void UpdateCBufferSetters(MaterialPassResources materialPassResources)
Parameters
Type | Name | Description |
---|---|---|
MaterialPassResources | materialPassResources | The material pass resources. |