Navigation
API > API/Runtime > API/Runtime/RenderCore
Inheritance Hierarchy
- FRHIResource
- FRHIShaderLibrary
- FShaderCodeArchive
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/ShaderCodeArchive.h |
| Include | #include "ShaderCodeArchive.h" |
Syntax
class FShaderCodeArchive : public FRHIShaderLibrary
Variables
| Type | Name | Description | |
|---|---|---|---|
| FShaderUsageVisualizer | DebugVisualizer | Debug visualizer - in Shipping compiles out to an empty struct with no-op functions | |
| IFileCacheHandle * | FileCacheHandle | Library file handle for async reads. | |
| int64 | LibraryCodeOffset | Offset at where shader code starts in a code library. | |
| FString | LibraryDir | Library directory. | |
| FSerializedShaderArchive | SerializedShaders | The shader code present in the library. | |
| FRWLock | ShaderPreloadLock | ||
| TArray< FShaderPreloadEntry > | ShaderPreloads |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FShaderCodeArchive
(
EShaderPlatform InPlatform, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | CheckShaderCreation
(
void* ShaderPtr, |
||
| FShaderCodeArchive * | |||
| int64 | GetSizeBytes () |
||
| void | OnShaderPreloadFinished
(
int32 ShaderIndex, |
||
| bool | WaitForPreload
(
FShaderPreloadEntry& ShaderPreloadEntry |
Overridden from FRHIShaderLibrary
| Type | Name | Description | |
|---|---|---|---|
| TRefCountPtr< FRHIShader > | CreateShader
(
int32 Index |
||
| int32 | FindShaderIndex
(
const FSHAHash& Hash |
||
| int32 | FindShaderMapIndex
(
const FSHAHash& Hash |
||
| int32 | |||
| int32 | |||
| int32 | GetNumShadersForShaderMap
(
int32 ShaderMapIndex |
||
| FSHAHash | GetShaderHash
(
int32 ShaderMapIndex, |
||
| int32 | GetShaderIndex
(
int32 ShaderMapIndex, |
||
| bool | |||
| bool | PreloadShader
(
int32 ShaderIndex, |
||
| bool | PreloadShaderMap
(
int32 ShaderMapIndex, |
||
| void | ReleasePreloadedShader
(
int32 ShaderIndex |
||
| void | Teardown () |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FShaderPreloadEntry |