Search Results for

    Show / Hide Table of Contents

    Class DrawContextResources

    This is a class responsible for managing all draw context resources (material, effects, resourcesets, etc.).

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

    Constructors

    DrawContextResources(DrawContext)

    Initializes a new instance of the DrawContextResources class.

    Declaration
    public DrawContextResources(DrawContext drawContext)
    Parameters
    Type Name Description
    DrawContext drawContext

    The drawing context.

    Fields

    DrawContext

    The associated drawing context.

    Declaration
    public readonly DrawContext DrawContext
    Field Value
    Type Description
    DrawContext

    EffectResources

    Draws the effect collection.

    Declaration
    public Dictionary<Effect, DrawContextEffectResources> EffectResources
    Field Value
    Type Description
    Dictionary<Effect, DrawContextEffectResources>

    Properties

    PerDrawCallCBufferCollection

    Gets the per-draw-call CBuffer collection.

    Declaration
    public CBufferCollectionUpdater PerDrawCallCBufferCollection { get; }
    Property Value
    Type Description
    CBufferCollectionUpdater

    PerSceneCBufferCollection

    Gets the per scene CBuffer collection.

    Declaration
    public CBufferCollectionUpdater PerSceneCBufferCollection { get; }
    Property Value
    Type Description
    CBufferCollectionUpdater

    PerViewCBufferCollection

    Gets the per-view CBuffer collection.

    Declaration
    public CBufferCollectionUpdater PerViewCBufferCollection { get; }
    Property Value
    Type Description
    CBufferCollectionUpdater

    Methods

    CollectView()

    Collects the materials.

    Declaration
    public void CollectView()

    Destroy()

    Destroys all resources of this instance.

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

    GetDrawEffectResources(Effect)

    Gets the effect resources.

    Declaration
    public DrawContextEffectResources GetDrawEffectResources(Effect effect)
    Parameters
    Type Name Description
    Effect effect

    The effect.

    Returns
    Type Description
    DrawContextEffectResources

    The drawing effect resources.

    Prepare(CommandBuffer)

    Prepares all registered effects.

    Declaration
    public void Prepare(CommandBuffer commandBuffer)
    Parameters
    Type Name Description
    CommandBuffer commandBuffer

    The command buffer.

    RegisterMaterialPass(MaterialPassResources)

    Registers an effect to create its Constant Buffers.

    Declaration
    public MaterialPassResourceSet RegisterMaterialPass(MaterialPassResources passResources)
    Parameters
    Type Name Description
    MaterialPassResources passResources

    The material pass resources.

    Returns
    Type Description
    MaterialPassResourceSet

    The material pass resource set instance.

    UnregisterMaterialPass(MaterialPassResources)

    Unregister an effect for creating its Constant Buffers.

    Declaration
    public void UnregisterMaterialPass(MaterialPassResources passResources)
    Parameters
    Type Name Description
    MaterialPassResources passResources

    The material pass resources.

    Extension Methods

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