FMaterial::GetShader

Finds the shader matching the template type and the passed in vertex factory, asserts if not found.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShared.h

Include

#include "MaterialShared.h"

Syntax

template<typename ShaderType>
TShaderRef< ShaderType > GetShader
(
    FVertexFactoryType * VertexFactoryType,
    const typename ShaderType::FPermutationDomain & PermutationVector,
    bool bFatalIfMissing
) const

Remarks

Finds the shader matching the template type and the passed in vertex factory, asserts if not found. Note - Only implemented for FMeshMaterialShaderTypes

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss