Navigation
API > API/Runtime > API/Runtime/RHI > API/Runtime/RHI/FDynamicRHI
Description
Attempts to open a shader library for the given shader platform & name within the provided directory.
| Name | RHICreateShaderLibrary |
| Type | function |
| Header File | /Engine/Source/Runtime/RHI/Public/DynamicRHI.h |
| Include Path | #include "DynamicRHI.h" |
virtual FRHIShaderLibraryRef RHICreateShaderLibrary
(
EShaderPlatform Platform,
FString const & FilePath,
FString const & Name
)
The new library if one exists and can be constructed, otherwise nil.
Parameters
| Name | Remarks |
|---|---|
| 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. |