IShaderFormat::StripShaderCode

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

Unreal Engine C++ API Reference > Developer > TargetPlatform > Interfaces > IShaderFormat

References

   
Module TargetPlatform
Header /Engine/Source/Developer/TargetPlatform/Public/Interfaces/IShaderFormat.h
Include #include "Interfaces/IShaderFormat.h"
virtual bool StripShaderCode
(
    [TArray](API\Runtime\Core\Containers\TArray)< uint8 > & Code,
    [FString](API\Runtime\Core\Containers\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. True if the format has successfully stripped the extraneous data from shaders, otherwise false

Parameters

Name 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.

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library