Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/ShaderCore.h |
Include |
#include "ShaderCore.h" |
Source |
/Engine/Source/Runtime/RenderCore/Private/ShaderCore.cpp |
bool LoadShaderSourceFile
(
const TCHAR * VirtualFilePath,
EShaderPlatform ShaderPlatform,
FString * OutFileContents,
TArray< FShaderCompilerError > * OutCompileErrors
)
Loads the shader file with the given name.
True if the file was successfully loaded.
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. |