Navigation
Unreal Engine C++ API Reference > 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 ShaderCompileWorkerOutputVersion if FShaderCompilerOutput changes
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bSerializeModifiedSource | |
![]() |
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 | This field should be set by backends which do not implement the independent preprocessing API to contain the "final" shader source as passed to the platform compiler. |
![]() |
FSHAHash | OutputHash | |
![]() |
FShaderParameterMap | ParameterMap | |
![]() |
TArray< FShaderCodeValidationStride > | ParametersStrideToValidate | |
![]() |
TArray< uint8 > | PlatformDebugData | |
![]() |
TArray< FString > | PragmaDirectives | |
![]() |
double | PreprocessTime | |
![]() |
FShaderCode | ShaderCode | |
![]() |
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 |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FShaderCompilerOutput & | ||
![]() |
FShaderCompilerOutput & | operator=
(
const FShaderCompilerOutput& |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bFailedRemovingUnused | bFailedRemovingUnused field is no longer used |
![]() |
bool | bUsedHLSLccCompiler | bUsedHLSLccCompiler field is no longer used |