IShaderFormat::StripShaderCode

Strips the shader bytecode provided of any unnecessary optional data elements when archiving shaders into the shared library.

Windows
MacOS
Linux

References

Module

TargetPlatform

Header

/Engine/Source/Developer/TargetPlatform/Public/Interfaces/IShaderFormat.h

Include

#include "Interfaces/IShaderFormat.h"

Syntax

virtual bool StripShaderCode
(
    TArray< uint8 > & Code,
    FString const & DebugOutputDir,
    bool const bNative
) const

Remarks

Strips the shader bytecode provided of any unnecessary optional data elements when archiving shaders into the shared library.

Returns

True if the format has successfully stripped the extraneous data from shaders, otherwise false

Parameters

Parameter

Description

Code

The byte code to strip (must be uncompressed).

DebugOutputDir

The output directory to write the debug symbol file for this shader.

bNative

Whether the final shader library uses a native format which may determine how the shader is stripped.

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