Navigation
API > API/Runtime > API/Runtime/RenderCore
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/ShaderCompilerCore.h |
| Include | #include "ShaderCompilerCore.h" |
Syntax
struct FShaderCompilerOutput
Remarks
The output of the shader compiler. Bump UE_SHADER_CACHE_VERSION and ShaderCompileWorkerOutputVersion if FShaderCompilerOutput changes
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bSerializeModifiedSource | ||
| bool | bSerializingForCache | ||
| bool | bSucceeded | ||
| bool | bSupportsQueryingUsedAttributes | ||
| double | CompileTime | ||
| TArray< FShaderCompilerError > | Errors | ||
| FString | ModifiedEntryPointName | Use this field to store the entry point name if it's modified as part of the shader format's compilation process. | |
| FString | ModifiedShaderSource | Use this field to store the shader source code if it's modified as part of the shader format's compilation process. | |
| uint32 | NumInstructions | ||
| uint32 | NumTextureSamplers | ||
| FString | OptionalFinalShaderSource | ||
| FSHAHash | OutputHash | ||
| FShaderParameterMap | ParameterMap | ||
| TArray< FShaderCodeValidationType > | ParametersSRVTypeToValidate | ||
| PRAGMA_ENABLE_DEPRECATION_WARNINGSTArray< FShaderCodeValidationStride > | ParametersStrideToValidate | ||
| TArray< FShaderCodeValidationType > | ParametersUAVTypeToValidate | ||
| TArray< FShaderCodeValidationUBSize > | ParametersUBSizeToValidate | ||
| TArray< uint8 > | PlatformDebugData | ||
| TArray< FString > | PragmaDirectives | ||
| double | PreprocessTime | ||
| FShaderCode | ShaderCode | ||
| TArray< FShaderDiagnosticData > | ShaderDiagnosticDatas | ||
| TArray< FGenericShaderStat > | ShaderStatistics | ||
| FShaderTarget | Target | ||
| TArray< FString > | UsedAttributes | ||
| FShaderCompilerInputHash | ValidateInputHash |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | Explicitly-defaulted copy/move ctors & assignment operators are needed temporarily due to deprecation of OptionalFinalShaderSource and PragmaDirectives fields. | ||
FShaderCompilerOutput
(
const FShaderCompilerOutput& |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddStatistic
(
const TCHAR* Name, |
||
| void | CompressOutput
(
FName ShaderCompressionFormat, |
Calls GenerateOutputHash() before the compression, replaces FShaderCode with the compressed data (if compression result was smaller). | |
| void | Generates OutputHash from the compiler output. | ||
| const FShaderCodeResource & | |||
| void | Add optional data in ShaderCode to perform additional shader input validation at runtime | ||
| void | Add optional diagnostic data in ShaderCode to perform assert translation at runtime | ||
| void | SetCodeFromResource
(
FShaderCodeResource&& Resource |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FShaderCompilerOutput & | |||
| FShaderCompilerOutput & | operator=
(
const FShaderCompilerOutput& |