FShaderConductorContext::RewriteHlsl

Rewrites the specified HLSL shader source code.

Windows
MacOS
Linux

References

Module

ShaderCompilerCommon

Header

/Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderCompilerCommon.h

Include

#include "ShaderCompilerCommon.h"

Source

/Engine/Source/Developer/ShaderCompilerCommon/Private/ShaderCompilerCommon.cpp

Syntax

bool RewriteHlsl
(
    const FShaderConductorOptions & Options,
    FString * OutSource
)

Remarks

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss