Class MaterialResourcesCacheEntry
Material resources cache entry.
Implements
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class MaterialResourcesCacheEntry : DisposableObject, IDisposable
Constructors
MaterialResourcesCacheEntry(DrawContext, RenderObjectInfo)
Initializes a new instance of the MaterialResourcesCacheEntry class.
Declaration
public MaterialResourcesCacheEntry(DrawContext drawContext, RenderObjectInfo renderObject)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The draw context. |
RenderObjectInfo | renderObject | The render object. |
Fields
MaterialResourceSetters
The material setters.
Declaration
public MaterialResourceSetters MaterialResourceSetters
Field Value
Type | Description |
---|---|
MaterialResourceSetters |
PassResources
Material resources per pass.
Declaration
public MaterialResourcesCacheEntry.MaterialResourcesPerPass[] PassResources
Field Value
Type | Description |
---|---|
MaterialResourcesPerPass[] |
Methods
Collect()
Collect this cache.
Declaration
public void Collect()
Destroy()
Destroy all resources of this instance.
Declaration
protected override void Destroy()
Overrides
MakePipelineDirty()
Turn dirty this entry.
Declaration
public void MakePipelineDirty()
PassIsAvailable(int)
Indicates if the pass is available for this entry.
Declaration
public bool PassIsAvailable(int passId)
Parameters
Type | Name | Description |
---|---|---|
int | passId | The pass Id. |
Returns
Type | Description |
---|---|
bool | True if the pass is available. |
SetResources(EngineShaderParameters, ref uint[])
Set parameters to shaders.
Declaration
public void SetResources(EngineShaderParameters effectParams, ref uint[] dynamicCBufferOffsets)
Parameters
Type | Name | Description |
---|---|---|
EngineShaderParameters | effectParams | The effect auto parameters. |
uint[] | dynamicCBufferOffsets | The dynamic buffer offsets array. |