Class RenderObjectResourcesCache
A pipeline state cache.
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public class RenderObjectResourcesCache
Constructors
RenderObjectResourcesCache(GraphicsContext)
Initializes a new instance of the RenderObjectResourcesCache class.
Declaration
public RenderObjectResourcesCache(GraphicsContext graphicsContext)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsContext | graphicsContext | Graphics context. |
Methods
Dispose()
Dispose of class and parent classes.
Declaration
public void Dispose()
Dispose(bool)
Dispose the object.
Declaration
public virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Whether to dispose of unmanaged resources. |
~RenderObjectResourcesCache()
Finalizes an instance of the RenderObjectResourcesCache class.
Declaration
protected ~RenderObjectResourcesCache()
GetMaterialSetters(RenderObjectInfo, DrawContext, RenderPass[], ref MaterialResourcesPerPass[], out MaterialResourceSetters)
Get a pipeline sate.
Declaration
public void GetMaterialSetters(RenderObjectInfo renderMesh, DrawContext drawContext, RenderPass[] passes, ref MaterialResourcesCacheEntry.MaterialResourcesPerPass[] passResources, out MaterialResourceSetters materialSetters)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderObjectInfo | renderMesh | The render mesh. |
| DrawContext | drawContext | The draw context. |
| RenderPass[] | passes | The array of passes. |
| MaterialResourcesPerPass[] | passResources | The material resources by pass. |
| MaterialResourceSetters | materialSetters | The material resource setters. |