FDynamicRHI::RHICreateShaderLibrary

FlushType: Must be Thread-Safe.

Windows
MacOS
Linux

References

Module

RHI

Header

/Engine/Source/Runtime/RHI/Public/DynamicRHI.h

Include

#include "DynamicRHI.h"

Syntax

virtual FRHIShaderLibraryRef RHICreateShaderLibrary
(
    EShaderPlatform Platform,
    FString const & FilePath,
    FString const & Name
)

Remarks

Attempts to open a shader library for the given shader platform & name within the provided directory.

Returns

The new library if one exists and can be constructed, otherwise nil.

Parameters

Parameter

Description

Platform

The shader platform for shaders withing the library.

FilePath

The directory in which the library should exist.

Name

The name of the library, i.e. "Global" or "Unreal" without shader-platform or file-extension qualification.

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