Module |
|
Header |
/Engine/Source/Developer/ShaderPreprocessor/Public/ShaderPreprocessor.h |
Include |
#include "ShaderPreprocessor.h" |
Source |
/Engine/Source/Developer/ShaderPreprocessor/Private/ShaderPreprocessor.cpp |
bool PreprocessShader
(
FString & OutPreprocessedShader,
FShaderCompilerOutput & ShaderOutput,
const FShaderCompilerInput & ShaderInput,
const FShaderCompilerDefinitions & AdditionalDefines,
EDumpShaderDefines DefinesPolicy
)
Preprocess a shader.
true if the shader is preprocessed without error.
Parameter |
Description |
---|---|
OutPreprocessedShader |
Upon return contains the preprocessed source code. |
ShaderOutput |
ShaderOutput to which errors can be added. |
ShaderInput |
The shader compiler input. |
AdditionalDefines |
Additional defines with which to preprocess the shader. |
bShaderDumpDefinesAsCommentedCode |
Whether to add shader definitions as comments. |