Search Results for

    Show / Hide Table of Contents

    Class BaseMaterialDecorator

    Base Material Decorator class. (Decorate Material and ComputeTask classes).

    Inheritance
    object
    BaseMaterialDecorator
    ComputeTaskDecorator
    MaterialDecorator
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Evergine.Framework.Graphics
    Assembly: Evergine.Framework.dll
    Syntax
    public abstract class BaseMaterialDecorator

    Constructors

    BaseMaterialDecorator(BaseMaterial)

    Initializes a new instance of the BaseMaterialDecorator class.

    Declaration
    public BaseMaterialDecorator(BaseMaterial material)
    Parameters
    Type Name Description
    BaseMaterial material

    Base Material.

    Fields

    material

    The material.

    Declaration
    protected BaseMaterial material
    Field Value
    Type Description
    BaseMaterial

    Properties

    ActiveDirectivesNames

    Gets or sets the active directives.

    Declaration
    public string[] ActiveDirectivesNames { get; set; }
    Property Value
    Type Description
    string[]

    Effect

    Gets the Effect.

    Declaration
    public Effect Effect { get; }
    Property Value
    Type Description
    Effect

    Methods

    Dispose()

    Free material resources.

    Declaration
    public void Dispose()

    GetMaterialPassResources(string, bool)

    Gets the material resources associated to the specified pass name. If the specified passName does not exist in the material effect, return null. (Optional) IfRequired add a more restrictive condition, it indicates whether the pass exists and it is necessary.

    Declaration
    public MaterialPassResources GetMaterialPassResources(string passName, bool ifRequired = false)
    Parameters
    Type Name Description
    string passName

    Pass Name.

    bool ifRequired

    If the pass exists and it is required with the current active directives or only if the pass exists.

    Returns
    Type Description
    MaterialPassResources

    The material pass resources, or null if the passName doens't exist.

    Prepare(CommandBuffer)

    Sets the engine shader parameters in the constant buffers of the material.

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

    The command buffer.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX