LoadShaderSourceFile

Loads the shader file with the given name.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/ShaderCore.h

Include

#include "ShaderCore.h"

Source

/Engine/Source/Runtime/RenderCore/Private/ShaderCore.cpp

Syntax

bool LoadShaderSourceFile
(
    const TCHAR * VirtualFilePath,
    EShaderPlatform ShaderPlatform,
    FString * OutFileContents,
    TArray< FShaderCompilerError > * OutCompileErrors
)

Remarks

Loads the shader file with the given name.

Returns

True if the file was successfully loaded.

Parameters

Parameter

Description

VirtualFilePath

The virtual path of shader file to load.

OutFileContents

If true is returned, will contain the contents of the shader file. Can be null.

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