UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FShaderJobData Struct Reference

Public Types

using FJobOutputHash = FBlake3Hash
 

Public Member Functions

bool IsEmpty () const
 
FORCEINLINE bool HasOutput () const
 

Public Attributes

FShaderCompilerInputHash InputHash
 
FJobOutputHash OutputHash
 
bool bOutputFromDDC
 
FShaderCommonCompileJobPtr JobInFlight
 
FShaderCommonCompileJobDuplicateJobsWaitList = nullptr
 

Detailed Description

Map element type for job cache

Member Typedef Documentation

◆ FJobOutputHash

Member Function Documentation

◆ HasOutput()

FORCEINLINE bool FShaderJobData::HasOutput ( ) const
inline

◆ IsEmpty()

bool FShaderJobData::IsEmpty ( ) const
inline

Member Data Documentation

◆ bOutputFromDDC

bool FShaderJobData::bOutputFromDDC

Track which code path wrote this output, for tracking down a bug

◆ DuplicateJobsWaitList

FShaderCommonCompileJob* FShaderJobData::DuplicateJobsWaitList = nullptr

Head of a linked list of duplicate jobs

◆ InputHash

FShaderCompilerInputHash FShaderJobData::InputHash

◆ JobInFlight

FShaderCommonCompileJobPtr FShaderJobData::JobInFlight

In-flight job with the given input hash. Needs to be a reference pointer to handle cancelling of jobs, where an async DDC query (which receives a pointer to FShaderJobData) may be in-flight that still references a job that has otherwise been deleted. Cancelled jobs will have been unlinked from the PendingSubmitJobTaskJobs list in RemoveAllPendingJobsWithId, which can be detected in the callback, and further processing on the job skipped.

◆ OutputHash

FJobOutputHash FShaderJobData::OutputHash

Output hash will be zero if output data has not been written yet, or can be cleared if output data has been removed


The documentation for this struct was generated from the following file: