Class RenderObjectResourcesCache
A cache for pipeline states.
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 | The graphics context. |
Methods
Dispose()
Disposes of the class and its parent classes.
Declaration
public void Dispose()
Dispose(bool)
Disposes of the object.
Declaration
public virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | Indicates 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)
Gets a pipeline state.
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 | An array of passes. |
MaterialResourcesPerPass[] | passResources | The material resources per pass. |
MaterialResourceSetters | materialSetters | The material resource setters. |