Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include | #include "MaterialShared.h" |
Syntax
class FMaterialShaderMapId
Remarks
Contains all the information needed to uniquely identify a FMaterialShaderMap.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FGuid | BaseMaterialId | The base material's StateId. | |
| FSHAHash | BasePropertyOverridesHash | A hash of the base property overrides for this material instance. | |
| bool | bUsingNewHLSLGenerator | Is the material using the new HLSL generator? | |
| FSHAHash | CookedShaderMapIdHash | ||
| ERHIFeatureLevel::Type | FeatureLevel | Feature level that the shader map is going to be compiled for. | |
| FPlatformTypeLayoutParameters | LayoutParams | Type layout parameters of the memory image | |
| EMaterialQualityLevel::Type | QualityLevel | Quality level that this shader map is going to be compiled at. | |
| TArray< FGuid > | ReferencedFunctions | Guids of any functions the material was dependent on. | |
| TArray< FGuid > | ReferencedParameterCollections | Guids of any Parameter Collections the material was dependent on. | |
| TArray< FShaderPipelineTypeDependency > | ShaderPipelineTypeDependencies | Shader pipeline types of shader pipelines that are inlined in this shader map in the DDC. | |
| TArray< FShaderTypeDependency > | ShaderTypeDependencies | Shader types of shaders that are inlined in this shader map in the DDC. | |
| FStrataCompilationConfig | StrataCompilationConfig | The Strata configuration used when compiling this material, can be tweaked in the material editor for live visualization of simplification. | |
| FSHAHash | TextureReferencesHash | Hash of the textures referenced by the uniform expressions in the shader map. | |
| EMaterialShaderMapUsage::Type | Usage | Indicates what use case this shader map will be for. | |
| FString | UsageCustomOutput | Name of which specific custom output this shader map will be a use case for. | |
| TArray< FVertexFactoryTypeDependency > | VertexFactoryTypeDependencies | Vertex factory types of shaders that are inlined in this shader map in the DDC. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AppendKeyString
(
FString& KeyString, |
Appends string representations of this Id to a key string. | |
| void | AppendStaticParametersString
(
FString& ParamsString |
||
| bool | ContainsShaderPipelineType
(
const FShaderPipelineType* ShaderPipelineType |
Returns true if the requested shader type is a dependency of this shader map Id. | |
| bool | ContainsShaderType
(
const FShaderType* ShaderType, |
Returns true if the requested shader type is a dependency of this shader map Id. | |
| bool | ContainsVertexFactoryType
(
const FVertexFactoryType* VFType |
Returns true if the requested vertex factory type is a dependency of this shader map Id. | |
| bool | Equals
(
const FMaterialShaderMapId& ReferenceSet, |
Tests this set against another for equality. | |
| void | GetMaterialHash
(
FSHAHash& OutHash |
||
| void | GetMaterialHash
(
FSHAHash& OutHash, |
Hashes the material-specific part of this shader map Id. | |
| const TOptional< FMaterialLayersFunctions::ID > & | |||
| EShaderPermutationFlags | |||
| SIZE_T | GetSizeBytes () |
||
| const TArray< FStaticComponentMaskParameter > & | |||
| const TArray< FStaticSwitchParameter > & | |||
| const TArray< FStaticTerrainLayerWeightParameter > & | |||
| bool | Ensure content is valid - for example overrides are set deterministically for serialization and sorting | ||
| bool | IsCookedId () |
||
| bool | IsValid () |
||
| void | |||
| void | SetShaderDependencies
(
const TArray< FShaderType* >& ShaderTypes, |
||
| void | UpdateFromParameterSet
(
const FStaticParameterSet& StaticParameters |
Updates the Id's static parameter set data. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FMaterialShaderMapId& ReferenceSet |
||
| bool | operator==
(
const FMaterialShaderMapId& ReferenceSet |
Tests this set against another for equality |