Navigation
API > API/Developer > API/Developer/ShaderCompilerCommon > API/Developer/ShaderCompilerCommon/FShaderConductorContext
Description
Rewrites the specified HLSL shader source code. This allows to reduce the HLSL code by removing unused global resources for instance. This will update the internally loaded source (see 'LoadSource'), so the output parameter 'OutSource' is optional.
| Name | RewriteHlsl |
| Type | function |
| Header File | /Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderConductorContext.h |
| Include Path | #include "ShaderConductorContext.h" |
| Source | /Engine/Source/Developer/ShaderCompilerCommon/Private/ShaderConductorContext.cpp |
PRAGMA_ENABLE_DEPRECATION_WARNINGS bool RewriteHlsl
(
const FShaderConductorOptions & Options,
FString * OutSource
)