Search Results for

    Show / Hide Table of Contents

    Class DeferredMaterialShader

    Represents material that can be used to render objects to GBuffer.

    Inheritance
    IMaterial
    MaterialShader
    DeferredMaterialShader
    Inherited Members
    MaterialShader::_cb
    MaterialShader::_cbData
    MaterialShader::_info
    MaterialShader::_isLoaded
    MaterialShader::_shader
    MaterialShader::Create(const StringView& name, MemoryReadStream& shaderCacheStream, const MaterialInfo& info)
    MaterialShader::CreateDummy(MemoryReadStream& shaderCacheStream, const MaterialInfo& info)
    MaterialShader::GetInfo()
    MaterialShader::GetShader()
    IMaterial::IsDecal()
    IMaterial::IsDeformable()
    IMaterial::IsGUI()
    IMaterial::IsParticle()
    IMaterial::IsPostFx()
    MaterialShader::IsReady()
    IMaterial::IsSurface()
    IMaterial::IsTerrain()
    MaterialShader::Load(MemoryReadStream& shaderCacheStream, const MaterialInfo& info)
    MaterialShader::MaterialShader(const StringView& name)
    MaterialShader::~MaterialShader()
    Assembly: FlaxEngine.dll
    File: Engine/Graphics/Materials/DeferredMaterialShader.h
    Syntax
    public class DeferredMaterialShader : public MaterialShader

    Constructors

    DeferredMaterialShader(const StringView& name)

    Declaration
    public DeferredMaterialShader(const StringView& name)
    Parameters
    StringView name

    Methods

    Bind(BindParameters& params)

    Binds the material state to the GPU pipeline. Should be called before the draw command.

    Declaration
    public virtual void Bind(BindParameters& params) override
    Parameters
    BindParameters params

    The material bind settings.

    Overrides
    IMaterial::Bind(BindParameters& params)

    CanUseInstancing(InstancingHandler& handler)

    Returns true if material can use draw calls instancing.

    Declaration
    public virtual bool CanUseInstancing(InstancingHandler& handler) const override
    Parameters
    InstancingHandler handler

    The output data for the instancing handling used to hash, batch and write draw calls. Valid only when function returns true.

    Returns
    bool

    True if can use instancing, otherwise false.

    Overrides
    IMaterial::CanUseInstancing(InstancingHandler& handler)

    CanUseLightmap()

    Returns true if material can use lightmaps (this includes lightmaps offline baking and sampling at runtime).

    Declaration
    public virtual bool CanUseLightmap() const override
    Returns
    bool

    True if can use lightmaps, otherwise false

    Overrides
    IMaterial::CanUseLightmap()

    GetDrawModes()

    Gets the mask of render passes supported by this material.

    Declaration
    public virtual DrawPass GetDrawModes() const override
    Returns
    DrawPass

    The draw passes supported by this material.

    Overrides
    IMaterial::GetDrawModes()

    Load()

    Declaration
    protected virtual bool Load() override
    Returns
    bool

    Overrides
    MaterialShader::Load()

    Unload()

    Clears the loaded data.

    Declaration
    public virtual void Unload() override
    Overrides
    MaterialShader::Unload()
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat