Search Results for

    Show / Hide Table of Contents

    Class MaterialResourceSetters

    Collection of Material Resource setters.

    Inheritance
    object
    MaterialResourceSetters
    Namespace: Evergine.Framework.Graphics
    Assembly: Evergine.Framework.dll
    Syntax
    public class MaterialResourceSetters

    Fields

    cBufferSetters

    Setter's Collection.

    Declaration
    public CBufferEngineData[] cBufferSetters
    Field Value
    Type Description
    CBufferEngineData[]

    textureInfoSetter

    Collection of texture info.

    Declaration
    public TextureInfo[] textureInfoSetter
    Field Value
    Type Description
    TextureInfo[]

    Methods

    SetAutoTextures(IEngineShaderParameters, BaseMaterial)

    Set texture resources to the material.

    Declaration
    public void SetAutoTextures(IEngineShaderParameters shaderParameters, BaseMaterial material)
    Parameters
    Type Name Description
    IEngineShaderParameters shaderParameters

    The shader parameters.

    BaseMaterial material

    The material to set resources to.

    SetAutoTextures(IEngineShaderParameters, TextureSlot[])

    Sets texture resources to the material.

    Declaration
    public bool SetAutoTextures(IEngineShaderParameters shaderParameters, TextureSlot[] textureSlots)
    Parameters
    Type Name Description
    IEngineShaderParameters shaderParameters

    The shader parameters.

    TextureSlot[] textureSlots

    The material to set resources.

    Returns
    Type Description
    bool

    true if some texture has changed.

    SetCBufferResources(IEngineShaderParameters, BaseMaterial, uint[])

    Sets constant buffer parameters to the specified material.

    Declaration
    public void SetCBufferResources(IEngineShaderParameters shaderParameters, BaseMaterial material, uint[] dynamicConstantBufferOffsets = null)
    Parameters
    Type Name Description
    IEngineShaderParameters shaderParameters

    The shader parameters.

    BaseMaterial material

    The material to set resources on.

    uint[] dynamicConstantBufferOffsets

    The dynamic offsets.

    SetResources(UpdatePolicy, IEngineShaderParameters, BaseMaterial, uint[])

    Sets resources to the specified material.

    Declaration
    public void SetResources(UpdatePolicy updatePolicies, IEngineShaderParameters shaderParameters, BaseMaterial material, uint[] dynamicConstantBufferOffsets = null)
    Parameters
    Type Name Description
    UpdatePolicy updatePolicies

    The update policy.

    IEngineShaderParameters shaderParameters

    The shader parameters.

    BaseMaterial material

    The material to set resources to.

    uint[] dynamicConstantBufferOffsets

    The dynamic offsets.

    SetResources(IEngineShaderParameters, BaseMaterial, uint[])

    Sets resources to the specified material.

    Declaration
    public void SetResources(IEngineShaderParameters shaderParameters, BaseMaterial material, uint[] dynamicConstantBufferOffsets = null)
    Parameters
    Type Name Description
    IEngineShaderParameters shaderParameters

    The shader parameters.

    BaseMaterial material

    The material to set resources for.

    uint[] dynamicConstantBufferOffsets

    The dynamic offsets.

    Extension Methods

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