Navigation
API > API/Developer > API/Developer/ShaderCompilerCommon
Description
EXPERIMENTAL: Adds a new function to the shader where calls to FunctionToInline_ from EntryPoint_ are inlined using AST manipulation Current limitations:
- Inlining from nested compound statement scopes is not supported (currently only trivial call statements in the body are processed)
- Functions with return statements cannot be inlined
- Multiple levels of inlining are not supported
| Name | InlineFunction |
| Type | function |
| Header File | /Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderCompilerCommon.h |
| Include Path | #include "ShaderCompilerCommon.h" |
bool InlineFunction
(
FString & InOutSourceCode,
FString & InOutEntryPoint,
const FStringView FunctionToInline,
TArray< FString > & OutErrors
)