Search Results for

    Show / Hide Table of Contents

    Class MaterialResourcesCacheEntry

    Cache entry for material resources.

    Inheritance
    object
    DisposableObject
    MaterialResourcesCacheEntry
    Inherited Members
    DisposableObject.Disposed
    DisposableObject.Dispose()
    DisposableObject.Dispose(bool)
    Namespace: Evergine.Framework.Graphics
    Assembly: Evergine.Framework.dll
    Syntax
    public class MaterialResourcesCacheEntry : DisposableObject

    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 drawing context.

    RenderObjectInfo renderObject

    The rendering 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[]

    Properties

    IsValid

    Gets a value indicating whether this entry is valid.

    Declaration
    public bool IsValid { get; }
    Property Value
    Type Description
    bool

    Methods

    Collect(long)

    Collects this cache.

    Declaration
    public void Collect(long frameCount)
    Parameters
    Type Name Description
    long frameCount

    The current frame ID.

    Destroy()

    Destroys all resources of this instance.

    Declaration
    protected override void Destroy()
    Overrides
    DisposableObject.Destroy()

    MakePipelineDirty()

    Mark this entry as dirty.

    Declaration
    public void MakePipelineDirty()

    PassIsAvailable(int)

    Indicates whether 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[])

    Sets 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.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX