Navigation
API > API/Runtime > API/Runtime/RenderCore
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/ShaderCompilerCore.h |
| Include | #include "ShaderCompilerCore.h" |
Syntax
struct FShaderCompilerInput
Remarks
Struct that gathers all readonly inputs needed for the compilation of a single shader.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bCachePreprocessed | True if the cache key for this job should be based on preprocessed source. | |
| bool | bCompilingForShaderPipeline | Shader pipeline information. | |
| bool | bIncludeUsedOutputs | ||
| bool | bIndependentPreprocessed | True if the backend for this job implements the independent preprocessing API. | |
| bool | bSkipPreprocessedCache | Skips the preprocessor and instead loads the usf file directly | |
| FName | CompressionFormat | ||
| FString | DebugDescription | Description of the configuration used when compiling. | |
| FString | DebugExtension | ||
| FString | DebugGroupName | Materialname or "Global" "for debugging and better error messages | |
| EShaderDebugInfoFlags | DebugInfoFlags | Indicates which additional debug outputs should be written for this compile job. | |
| FString | DumpDebugInfoPath | Only used if enabled by r.DumpShaderDebugInfo (platform/groupname) e.g. "" | |
| FString | DumpDebugInfoRootPath | Dump debug path (up to platform) e.g. "D:/Project/Saved/ShaderDebugInfo/PCD3D_SM5". | |
| FString | EntryPointName | ||
| FShaderCompilerEnvironment | Environment | Compilation Environment. | |
| FExtraShaderCompilerSettings | ExtraSettings | Additional compilation settings that can be filled by FMaterial::SetupExtraCompilationSettings FMaterial::SetupExtraCompilationSettings is usually called by each (*)MaterialShaderType::BeginCompileShader() function | |
| FShaderCompilerInputHash | Hash | Hash of this input (used as the key for the shader job cache) | |
| FOodleDataCompression::ECompressor | OodleCompressor | Oodle-specific compression algorithm - used if CompressionFormat is set to NAME_Oodle. | |
| FOodleDataCompression::ECompressionLevel | OodleLevel | Oodle-specific compression level - used if CompressionFormat is set to NAME_Oodle. | |
| TArray< FString > | RequiredSymbols | Array of symbols that should be maintained when deadstripping. | |
| const FShaderParametersMetadata * | RootParametersStructure | The root of the shader parameter structures / uniform buffers bound to this shader to generate shader resource table from. | |
| FName | ShaderFormat | ||
| FString | ShaderName | ||
| FName | ShaderPlatformName | ||
| TRefCountPtr< FSharedShaderCompilerEnvironment > | SharedEnvironment | ||
| uint32 | SupportedHardwareMask | ||
| FShaderTarget | Target | ||
| TArray< FString > | UsedOutputs | ||
| FString | VirtualSourceFilePath |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| PRAGMA_DISABLE_DEPRECATION_WARNINGS | Explicitly-defaulted ctors & assignment operators are needed temporarily due to deprecation of bSkipPreprocessedCache/bIndependentPreprocessed fields. | ||
FShaderCompilerInput
(
const FShaderCompilerInput& |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | DeserializeSharedInputs
(
FArchive& Ar, |
||
| PRAGMA_ENABLE_DEPRECATION_WARNINGS bool | |||
| void | GatherSharedInputs
(
TMap< FString, FString >& ExternalIncludes, |
||
| void | GatherSharedInputs
(
TArray< TRefCountPtr< FSharedShaderCompilerEnvironment > >& SharedEnvironments, |
||
| void | GatherSharedInputsAnsi
(
TMap< FString, TArray< ANSICHAR > >& ExternalIncludes, |
||
| FString | Common code to generate a debug string to associate with platform-specific shader symbol files and hashes Currently uses DebugGroupName, but can be updated to contain other important information as needed | ||
| FString | Generate human readable name for debugging | ||
| FString | |||
| FStringView | |||
| bool | |||
| bool | |||
| bool | |||
| void | SerializeSharedInputs
(
FArchive& Ar, |
||
| bool |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FShaderCompilerInput & | |||
| FShaderCompilerInput & | operator=
(
const FShaderCompilerInput& |