Module |
|
Header |
/Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderCompilerCommon.h |
Include |
#include "ShaderCompilerCommon.h" |
Source |
/Engine/Source/Developer/ShaderCompilerCommon/Private/ShaderCompilerCommon.cpp |
bool RewriteHlsl
(
const FShaderConductorOptions & Options,
FString * OutSource
)
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.