FShaderConductorContext::RewriteHlsl

Rewrites the specified HLSL shader source code.

Unreal Engine C++ API Reference > Developer > ShaderCompilerCommon > FShaderConductorContext

References

   
Module ShaderCompilerCommon
Header /Engine/Source/Developer/ShaderCompilerCommon/Public/ShaderConductorContext.h
Include #include "ShaderConductorContext.h"
Source /Engine/Source/Developer/ShaderCompilerCommon/Private/ShaderConductorContext.cpp
bool RewriteHlsl
(
    const [FShaderConductorOptions](API\Developer\ShaderCompilerCommon\FShaderConductorOptions) & Options,
    [FString](API\Runtime\Core\Containers\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.


Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library