IShaderFormat::CreateShaderArchive

Create a format specific archive for precompiled shader code.

Windows
MacOS
Linux

References

Module

TargetPlatform

Header

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

Include

#include "Interfaces/IShaderFormat.h"

Syntax

virtual bool CreateShaderArchive
(
    FString const & LibraryName,
    FName Format,
    const FString & WorkingDirectory,
    const FString & OutputDir,
    const FString & DebugOutputDir,
    const FSerializedShaderArchive & SerializedShaders,
    const TArray< TArray< uint8 >> & ShaderCode,
    TArray< FString > * OutputFiles
) const

Remarks

Create a format specific archive for precompiled shader code.

Returns

true if the archive was created

Parameters

Parameter

Description

LibraryName

The name of this shader library.

Format

The format of shaders to cache.

WorkingDirectory

The working directory.

The

output directory for the archive.

The

directory for the debug data previously generated.

Optional

pointer to a TArray that on success will be filled with a list of the written file paths.

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