Navigation
API > API/Runtime > API/Runtime/RenderCore
Description
Primes the shader file hash cache for a batch of virtual file paths, acquiring each lock only once for the entire batch rather than once per file. Prefer this over repeated TryGetShaderFileHash calls when pre-warming the cache for a known set of files.
| Name | PrimeShaderFileHashCache |
| Type | function |
| Header File | /Engine/Source/Runtime/RenderCore/Public/ShaderCore.h |
| Include Path | #include "ShaderCore.h" |
| Source | /Engine/Source/Runtime/RenderCore/Private/ShaderCore.cpp |
void PrimeShaderFileHashCache
(
TArrayView < const FString > VirtualFilePaths,
EShaderPlatform ShaderPlatform
)
Parameters
| Name | Remarks |
|---|---|
| VirtualFilePaths | List of virtual shader file paths to prime. |
| ShaderPlatform | Shader platform the hashes are for. |