Navigation
API > API/Runtime > API/Runtime/RenderCore
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/ShaderCompilerJobTypes.h |
| Include | #include "ShaderCompilerJobTypes.h" |
Syntax
struct FShaderJobCacheRef
Remarks
Cached reference to the location of an in-flight job's FShaderJobData in the FShaderJobDataMap, used by the private FShaderJobCache class.
Caching the reference avoids the need to do additional map lookups to find the entry again, potentially avoiding a lock of the container for the lookup. Heap allocation of blocks is used by the cache to allow map entries to have a persistent location in memory. The persistent memory allows modifications of map entry data for a given job, without needing locks to protect against container resizing.
In-flight jobs and their duplicates reference the same FShaderJobData. Client code should treat this structure as opaque.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FShaderJobDataBlock * | Block | Pointer to block the private FShaderJobData is stored in | |
| int32 | DuplicateIndex | If job is a duplicate, index of pointer to job in DuplicateJobs array in FShaderJobCache, used for clearing the pointer when the in-flight job completes | |
| int32 | IndexInBlock | Index of FShaderJobData in the block |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Clear () |