Navigation
API > API/Developer > API/Developer/ShaderCompilerCommon > API/Developer/ShaderCompilerCommon/UE__ShaderCompilerCommon__Remove-
References
| Module | ShaderCompilerCommon |
| Header | /Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderCompilerCommon.h |
| Include | #include "ShaderCompilerCommon.h" |
| Source | /Engine/Source/Developer/ShaderCompilerCommon/Private/ShaderCompilerCommon.cpp |
namespace UE
{
namespace ShaderCompilerCommon
{
bool UE&58;&58;ShaderCompilerCommon&58;&58;RemoveDeadCode
&40;
FString & InOutPreprocessedShaderSource,
const FString & EntryPoint,
TArray< FShaderCompilerError > & OutErrors
&41;
}
}
Remarks
Rewrites a fully preprocessed shader source code, removing any functions or structs that are not reachable from a given entry point or list of symbols. This is a high-level wrapper for UE::ShaderMinifier that should be used in all shader compiler back-ends for consistency. Any errors encountered during parsing or minification are added to OutErrors. InOutPreprocessedShaderSource is replaced with the rewritten code on success and is kept intact on failure.