![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Public Member Functions | |
| FShaderJobCache (FCriticalSection &InCompileQueueSection) | |
| ~FShaderJobCache () | |
| template<typename JobType , typename KeyType > | |
| JobType * | PrepareJob (uint32 InId, const KeyType &InKey, EShaderCompileJobPriority InPriority) |
| void | RemoveJob (FShaderCommonCompileJob *InJob) |
| int32 | RemoveAllPendingJobsWithId (uint32 InId) |
| void | SubmitJob (FShaderCommonCompileJob *Job) |
| void | SubmitJobs (const TArray< FShaderCommonCompileJobPtr > &InJobs) |
| double | ProcessFinishedJob (FShaderCommonCompileJob *FinishedJob, EShaderCompileJobStatus Status) |
| void | AddToCacheAndProcessPending (FShaderCommonCompileJob *FinishedJob) |
| void | GetStats (FShaderCompilerStats &OutStats) const |
| int32 | GetNumPendingJobs (EShaderCompileJobPriority InPriority) const |
| int32 | GetNumOutstandingJobs () const |
| int32 | GetNumPendingJobs () const |
| int32 | GetPendingJobs (EShaderCompilerWorkerType InWorkerType, EShaderCompileJobPriority InPriority, int32 MinNumJobs, int32 MaxNumJobs, TArray< FShaderCommonCompileJobPtr > &OutJobs) |
Private implementation class for FShaderCompileJobCollection
| FShaderJobCache::FShaderJobCache | ( | FCriticalSection & | InCompileQueueSection | ) |
| FShaderJobCache::~FShaderJobCache | ( | ) |
| void FShaderJobCache::AddToCacheAndProcessPending | ( | FShaderCommonCompileJob * | FinishedJob | ) |
Adds the job to cache.
| int32 FShaderJobCache::GetNumOutstandingJobs | ( | ) | const |
| int32 FShaderJobCache::GetNumPendingJobs | ( | ) | const |
| int32 FShaderJobCache::GetNumPendingJobs | ( | EShaderCompileJobPriority | InPriority | ) | const |
| int32 FShaderJobCache::GetPendingJobs | ( | EShaderCompilerWorkerType | InWorkerType, |
| EShaderCompileJobPriority | InPriority, | ||
| int32 | MinNumJobs, | ||
| int32 | MaxNumJobs, | ||
| TArray< FShaderCommonCompileJobPtr > & | OutJobs | ||
| ) |
| void FShaderJobCache::GetStats | ( | FShaderCompilerStats & | OutStats | ) | const |
Populates caching stats in the given compiler stats struct.
|
inline |
| double FShaderJobCache::ProcessFinishedJob | ( | FShaderCommonCompileJob * | FinishedJob, |
| EShaderCompileJobStatus | Status | ||
| ) |
This is an entry point for all jobs that have finished the compilation (whether real or cached). Can be called from multiple threads. Returns mutex stall time.
|
inline |
| void FShaderJobCache::SubmitJob | ( | FShaderCommonCompileJob * | Job | ) |
| void FShaderJobCache::SubmitJobs | ( | const TArray< FShaderCommonCompileJobPtr > & | InJobs | ) |