FShaderConductorContext::LoadSource

Loads the shader source and converts the input descriptor to a format suitable for ShaderConductor.

Windows
MacOS
Linux

References

Module

ShaderCompilerCommon

Header

/Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderCompilerCommon.h

Include

#include "ShaderCompilerCommon.h"

Source

/Engine/Source/Developer/ShaderCompilerCommon/Private/ShaderCompilerCommon.cpp

Syntax

bool LoadSource
(
    const ANSICHAR * ShaderSource,
    const ANSICHAR * Filename,
    const ANSICHAR * EntryPoint,
    EHlslShaderFrequency ShaderStage,
    const FShaderCompilerDefinitions * Definitions
)

Remarks

Loads the shader source and converts the input descriptor to a format suitable for ShaderConductor. If 'Definitions' is null, the previously loaded definitions are not modified.

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