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 FShaderCompilerOutputStructVersion and ShaderCompileWorkerOutputVersion if FShaderCompilerOutput changes
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bFailedRemovingUnused | ||
| bool | bSerializeModifiedSource | ||
| bool | bSucceeded | ||
| bool | bSupportsQueryingUsedAttributes | ||
| bool | bUsedHLSLccCompiler | ||
| 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 | ||
| TArray< FShaderCodeValidationStride > | ParametersStrideToValidate | ||
| TArray< FShaderCodeValidationType > | ParametersUAVTypeToValidate | ||
| TArray< FShaderCodeValidationUBSize > | ParametersUBSizeToValidate | ||
| TArray< uint8 > | PlatformDebugData | ||
| TArray< FString > | PragmaDirectives | ||
| double | PreprocessTime | ||
| FShaderCode | ShaderCode | ||
| TArray< FShaderDiagnosticData > | ShaderDiagnosticDatas | ||
| TMap< FString, FShaderStatVariant > | ShaderStatistics | ||
| FShaderTarget | Target | ||
| TArray< FString > | UsedAttributes |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | Explicitly-defaulted copy/move ctors & assignment operators are needed temporarily due to deprecation of bFailedRemovingUnused/bUsedHLSLccCompiler fields. | ||
FShaderCompilerOutput
(
const FShaderCompilerOutput& |
Functions
| Type | Name | Description | |
|---|---|---|---|
| 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. | ||
| 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 |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FShaderCompilerOutput & | |||
| FShaderCompilerOutput & | operator=
(
const FShaderCompilerOutput& |