FMeshMaterialShaderMap::BeginCompile

Enqueues compilation for all shaders for a material and vertex factory type.

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "MaterialShared.h"

Source

/Engine/Source/Runtime/Engine/Private/Materials/MeshMaterialShader.cpp

Syntax

uint32 BeginCompile
(
    uint32 ShaderMapId,
    const FMaterialShaderMapId & InShaderMapId,
    const FMaterial * Material,
    const FMeshMaterialShaderMapLayout & MeshLayout,
    FShaderCompilerEnvironment * MaterialEnvironment,
    EShaderPlatform Platform,
    TArray< TSharedRef< FShaderCommonCompileJob, ESPMode::ThreadSafe >> & NewJobs,
    FString DebugDescription,
    FString DebugExtension
)

Remarks

Enqueues compilation for all shaders for a material and vertex factory type.

Parameters

Parameter

Description

Material

The material to compile shaders for.

VertexFactoryType

The vertex factory type to compile shaders for.

Platform

The platform to compile for.

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