UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMaterialResource Class Reference

#include <MaterialShared.h>

+ Inheritance diagram for FMaterialResource:

Public Member Functions

ENGINE_API FMaterialResource ()
 
virtual ENGINE_API ~FMaterialResource ()
 
void SetMaterial (UMaterial *InMaterial, UMaterialInstance *InInstance, EShaderPlatform InShaderPlatform, EMaterialQualityLevel::Type InQualityLevel=EMaterialQualityLevel::Num)
 
ENGINE_API uint32 GetNumVirtualTextureStacks () const
 
virtual ENGINE_API FString GetMaterialUsageDescription () const override
 
virtual ENGINE_API EMaterialDomain GetMaterialDomain () const override
 
virtual ENGINE_API bool IsTwoSided () const override
 
virtual ENGINE_API bool IsThinSurface () const override
 
virtual ENGINE_API bool IsDitheredLODTransition () const override
 
virtual ENGINE_API bool IsTranslucencyWritingCustomDepth () const override
 
virtual ENGINE_API bool IsTranslucencyWritingVelocity () const override
 
virtual ENGINE_API bool IsTranslucencyVelocityFromDepth () const override
 
virtual ENGINE_API bool IsTranslucencyWritingFrontLayerTransparency () const override
 
virtual ENGINE_API bool IsTangentSpaceNormal () const override
 
virtual ENGINE_API bool ShouldGenerateSphericalParticleNormals () const override
 
virtual ENGINE_API bool ShouldDisableDepthTest () const override
 
virtual ENGINE_API bool ShouldWriteOnlyAlpha () const override
 
virtual ENGINE_API bool ShouldEnableResponsiveAA () const override
 
virtual ENGINE_API bool ShouldDoSSR () const override
 
virtual ENGINE_API bool ShouldDoContactShadows () const override
 
virtual ENGINE_API bool HasPixelAnimation () const override
 
virtual ENGINE_API bool UsesTemporalResponsiveness () const override
 
virtual ENGINE_API bool UsesMotionVectorWorldOffset () const override
 
virtual ENGINE_API bool IsLightFunction () const override
 
virtual ENGINE_API bool IsUsedWithEditorCompositing () const override
 
virtual ENGINE_API bool IsDeferredDecal () const override
 
virtual ENGINE_API bool IsVolumetricPrimitive () const override
 
virtual ENGINE_API bool IsWireframe () const override
 
virtual ENGINE_API bool IsVariableRateShadingAllowed () const override
 
virtual ENGINE_API EMaterialShadingRate GetShadingRate () const override
 
virtual ENGINE_API bool IsUIMaterial () const override
 
virtual ENGINE_API bool IsPostProcessMaterial () const override
 
virtual ENGINE_API bool IsSpecialEngineMaterial () const override
 
virtual ENGINE_API bool IsUsedWithSkeletalMesh () const override
 
virtual ENGINE_API bool IsUsedWithLandscape () const override
 
virtual ENGINE_API bool IsUsedWithParticleSystem () const override
 
virtual ENGINE_API bool IsUsedWithParticleSprites () const override
 
virtual ENGINE_API bool IsUsedWithBeamTrails () const override
 
virtual ENGINE_API bool IsUsedWithMeshParticles () const override
 
virtual ENGINE_API bool IsUsedWithNiagaraSprites () const override
 
virtual ENGINE_API bool IsUsedWithNiagaraRibbons () const override
 
virtual ENGINE_API bool IsUsedWithNiagaraMeshParticles () const override
 
virtual ENGINE_API bool IsUsedWithStaticLighting () const override
 
virtual ENGINE_API bool IsUsedWithMorphTargets () const override
 
virtual ENGINE_API bool IsUsedWithSplineMeshes () const override
 
virtual ENGINE_API bool IsUsedWithInstancedStaticMeshes () const override
 
virtual ENGINE_API bool IsUsedWithGeometryCollections () const override
 
virtual ENGINE_API bool IsUsedWithAPEXCloth () const override
 
virtual ENGINE_API bool IsUsedWithGeometryCache () const override
 
virtual ENGINE_API bool IsUsedWithWater () const override
 
virtual ENGINE_API bool IsUsedWithHairStrands () const override
 
virtual ENGINE_API bool IsUsedWithLidarPointCloud () const override
 
virtual ENGINE_API bool IsUsedWithVirtualHeightfieldMesh () const override
 
virtual ENGINE_API bool IsUsedWithNeuralNetworks () const override
 
virtual ENGINE_API bool IsUsedWithNanite () const override
 
virtual ENGINE_API bool IsUsedWithVoxels () const override
 
virtual ENGINE_API bool IsUsedWithVolumetricCloud () const override
 
virtual ENGINE_API bool IsUsedWithHeterogeneousVolumes () const override
 
virtual ENGINE_API bool IsUsedWithStaticMesh () const override
 
virtual ENGINE_API bool SamplesMaterialCache () const override
 
virtual ENGINE_API bool HasMaterialCacheOutput () const override
 
virtual ENGINE_API bool IsFullyRough () const override
 
virtual ENGINE_API bool GetForceCompatibleWithLightFunctionAtlas () const override
 
virtual ENGINE_API bool UseNormalCurvatureToRoughness () const override
 
virtual ENGINE_API enum EMaterialFloatPrecisionMode GetMaterialFloatPrecisionMode () const override
 
virtual ENGINE_API bool IsUsingAlphaToCoverage () const override
 
virtual ENGINE_API bool IsUsingPreintegratedGFForSimpleIBL () const override
 
virtual ENGINE_API bool IsUsingHQForwardReflections () const override
 
virtual ENGINE_API bool GetForwardBlendsSkyLightCubemaps () const override
 
virtual ENGINE_API bool IsUsingPlanarForwardReflections () const override
 
virtual ENGINE_API bool IsNonmetal () const override
 
virtual ENGINE_API bool UseLmDirectionality () const override
 
virtual ENGINE_API enum EBlendMode GetBlendMode () const override
 
virtual ENGINE_API enum ERefractionMode GetRefractionMode () const override
 
virtual ENGINE_API bool GetRootNodeOverridesDefaultRefraction () const override
 
virtual ENGINE_API uint32 GetMaterialDecalResponse () const override
 
virtual ENGINE_API bool HasBaseColorConnected () const override
 
virtual ENGINE_API bool HasNormalConnected () const override
 
virtual ENGINE_API bool HasRoughnessConnected () const override
 
virtual ENGINE_API bool HasSpecularConnected () const override
 
virtual ENGINE_API bool HasMetallicConnected () const override
 
virtual ENGINE_API bool HasEmissiveColorConnected () const override
 
virtual ENGINE_API bool HasAnisotropyConnected () const override
 
virtual ENGINE_API bool HasAmbientOcclusionConnected () const override
 
virtual ENGINE_API bool HasDisplacementConnected () const override
 
virtual ENGINE_API bool IsSubstrateMaterial () const override
 
virtual ENGINE_API bool HasMaterialPropertyConnected (EMaterialProperty In) const override
 
virtual ENGINE_API FMaterialShadingModelField GetShadingModels () const override
 
virtual ENGINE_API bool IsShadingModelFromMaterialExpression () const override
 
virtual ENGINE_API enum ETranslucencyLightingMode GetTranslucencyLightingMode () const override
 
virtual ENGINE_API float GetOpacityMaskClipValue () const override
 
virtual ENGINE_API bool GetCastDynamicShadowAsMasked () const override
 
virtual ENGINE_API bool IsDistorted () const override
 
virtual ENGINE_API ERefractionCoverageMode GetRefractionCoverageMode () const override
 
virtual ENGINE_API EPixelDepthOffsetMode GetPixelDepthOffsetMode () const override
 
virtual ENGINE_API float GetTranslucencyDirectionalLightingIntensity () const override
 
virtual ENGINE_API float GetTranslucentShadowDensityScale () const override
 
virtual ENGINE_API float GetTranslucentSelfShadowDensityScale () const override
 
virtual ENGINE_API float GetTranslucentSelfShadowSecondDensityScale () const override
 
virtual ENGINE_API float GetTranslucentSelfShadowSecondOpacity () const override
 
virtual ENGINE_API float GetTranslucentBackscatteringExponent () const override
 
virtual ENGINE_API bool IsTranslucencyAfterDOFEnabled () const override
 
virtual ENGINE_API bool IsTranslucencyAfterMotionBlurEnabled () const override
 
virtual ENGINE_API bool IsDualBlendingEnabled () const override
 
virtual ENGINE_API bool IsMobileSeparateTranslucencyEnabled () const override
 
virtual ENGINE_API FDisplacementScaling GetDisplacementScaling () const override
 
virtual ENGINE_API bool IsDisplacementFadeEnabled () const override
 
virtual ENGINE_API FDisplacementFadeRange GetDisplacementFadeRange () const override
 
virtual ENGINE_API FLinearColor GetTranslucentMultipleScatteringExtinction () const override
 
virtual ENGINE_API float GetTranslucentShadowStartOffset () const override
 
virtual ENGINE_API bool IsMasked () const override
 
virtual ENGINE_API bool IsDitherMasked () const override
 
virtual ENGINE_API bool AllowNegativeEmissiveColor () const override
 
virtual ENGINE_API FString GetFriendlyName () const override
 
virtual ENGINE_API FString GetAssetName () const override
 
virtual ENGINE_API bool RequiresSynchronousCompilation () const override
 
virtual ENGINE_API bool IsDefaultMaterial () const override
 
virtual ENGINE_API int32 GetNumCustomizedUVs () const override
 
virtual ENGINE_API int32 GetNumMaterialCacheTags () const override
 
virtual ENGINE_API int32 GetBlendableLocation () const override
 
virtual ENGINE_API int32 GetBlendablePriority () const override
 
virtual ENGINE_API bool GetBlendableOutputAlpha () const override
 
virtual ENGINE_API bool GetDisablePreExposureScale () const override
 
virtual ENGINE_API bool IsStencilTestEnabled () const override
 
virtual ENGINE_API uint32 GetStencilRefValue () const override
 
virtual ENGINE_API uint32 GetStencilCompare () const override
 
virtual ENGINE_API float GetRefractionDepthBiasValue () const override
 
virtual ENGINE_API bool ShouldApplyFogging () const override
 
virtual ENGINE_API bool ShouldApplyCloudFogging () const override
 
virtual ENGINE_API bool ShouldAlwaysEvaluateWorldPositionOffset () const override
 
virtual ENGINE_API bool IsSky () const override
 
virtual ENGINE_API bool ComputeFogPerPixel () const override
 
virtual ENGINE_API bool HasPerInstanceCustomData () const override
 
virtual ENGINE_API bool HasPerInstanceRandom () const override
 
virtual ENGINE_API bool HasVertexInterpolator () const override
 
virtual ENGINE_API bool HasRuntimeVirtualTextureOutput () const override
 
virtual ENGINE_API bool HasFirstPersonOutput () const override
 
virtual ENGINE_API bool CastsRayTracedShadows () const override
 
virtual ENGINE_API bool IsTessellationEnabled () const override
 
virtual ENGINE_API bool HasRenderTracePhysicalMaterialOutputs () const override
 
virtual ENGINE_API uint16 GetPreshaderGap () const override
 
virtual ENGINE_API UMaterialInterfaceGetMaterialInterface () const override
 
virtual ENGINE_API int32 GetNeuralProfileId () const override
 
virtual ENGINE_API bool HasSubstrateRoughnessTracking () const override
 
virtual ENGINE_API bool AllowTranslucentLocalLightShadow () const override
 
virtual ENGINE_API float GetTranslucentLocalLightShadowQuality () const override
 
virtual ENGINE_API float GetTranslucentDirectionalLightShadowQuality () const override
 
virtual ENGINE_API bool IsPersistent () const override
 
virtual ENGINE_API FGuid GetMaterialId () const override
 
virtual ENGINE_API FString GetFullPath () const override
 
ENGINE_API void GetResourceSizeEx (FResourceSizeEx &CumulativeResourceSize)
 
virtual ENGINE_API void LegacySerialize (FArchive &Ar) override
 
virtual ENGINE_API TArrayView< const TObjectPtr< UObject > > GetReferencedTextures () const override
 
virtual ENGINE_API TConstArrayView< TObjectPtr< UTextureCollection > > GetReferencedTextureCollections () const override
 
virtual ENGINE_API void AddReferencedObjects (FReferenceCollector &Collector) override
 
virtual ENGINE_API bool GetAllowDevelopmentShaderCompile () const override
 
const UMaterialGetMaterial () const
 
const UMaterialInstanceGetMaterialInstance () const
 
void SetMaterial (UMaterial *InMaterial)
 
void SetMaterialInstance (UMaterialInstance *InMaterialInstance)
 
virtual ENGINE_API void FeedbackMaterialLayersInstancedGraphFromCompilation (const FMaterialLayersFunctions *InLayers) override
 
virtual ENGINE_API const FMaterialLayersFunctionsGetMaterialLayers () const override
 
- Public Member Functions inherited from FMaterial
uint32 AddRef () const
 
uint32 Release () const
 
uint32 GetRefCount () const
 
 FMaterial ()
 
virtual ENGINE_API ~FMaterial ()
 
virtual ENGINE_API bool PrepareDestroy_GameThread ()
 
virtual ENGINE_API void PrepareDestroy_RenderThread ()
 
ENGINE_API bool CacheShaders (EShaderPlatform Platform, EMaterialShaderPrecompileMode PrecompileMode=EMaterialShaderPrecompileMode::Default, const ITargetPlatform *TargetPlatform=nullptr)
 
ENGINE_API bool CacheShaders (EMaterialShaderPrecompileMode PrecompileMode=EMaterialShaderPrecompileMode::Default, const ITargetPlatform *TargetPlatform=nullptr)
 
ENGINE_API bool CacheShaders (const FMaterialShaderMapId &ShaderMapId, EShaderPlatform Platform, EMaterialShaderPrecompileMode PrecompileMode=EMaterialShaderPrecompileMode::Default, const ITargetPlatform *TargetPlatform=nullptr)
 
ENGINE_API bool CacheShaders (const FMaterialShaderMapId &ShaderMapId, EMaterialShaderPrecompileMode PrecompileMode=EMaterialShaderPrecompileMode::Default, const ITargetPlatform *TargetPlatform=nullptr)
 
ENGINE_API FGraphEventArray CollectPSOs (ERHIFeatureLevel::Type InFeatureLevel, const FPSOPrecacheVertexFactoryDataList &VertexFactoryDataList, const FPSOPrecacheParams &PreCacheParams, EPSOPrecachePriority Priority, TArray< FMaterialPSOPrecacheRequestID > &OutMaterialPSORequestIDs)
 
ENGINE_API FGraphEventArray CollectPSOs (const FPSOPrecacheVertexFactoryDataList &VertexFactoryDataList, const FPSOPrecacheParams &PreCacheParams, EPSOPrecachePriority Priority, TArray< FMaterialPSOPrecacheRequestID > &OutMaterialPSORequestIDs)
 
ENGINE_API TArray< FMaterialPSOPrecacheRequestIDGetMaterialPSOPrecacheRequestIDs () const
 
void ClearPrecachedPSORequestIDs ()
 
virtual ENGINE_API bool ShouldCache (EShaderPlatform Platform, const FShaderType *ShaderType, const FVertexFactoryType *VertexFactoryType) const final
 
virtual ENGINE_API bool ShouldCache (const FShaderType *ShaderType, const FVertexFactoryType *VertexFactoryType) const
 
ENGINE_API bool ShouldCachePipeline (EShaderPlatform Platform, const FShaderPipelineType *PipelineType, const FVertexFactoryType *VertexFactoryType) const
 
ENGINE_API bool ShouldCachePipeline (const FShaderPipelineType *PipelineType, const FVertexFactoryType *VertexFactoryType) const
 
void SerializeInlineShaderMap (FArchive &Ar, const FName &SerializingAsset=NAME_None)
 
void RegisterInlineShaderMap (bool bLoadingCooked)
 
void ReleaseShaderMap ()
 
void DiscardShaderMap ()
 
virtual void GetShaderMapId (EShaderPlatform Platform, const ITargetPlatform *TargetPlatform, FMaterialShaderMapId &OutId) const
 
void BuildShaderMapId (FMaterialShaderMapId &OutId, EShaderPlatform Platform, const ITargetPlatform *TargetPlatform, EMaterialKeyInclude IncludeFlags=EMaterialKeyInclude::All) const
 
void BuildShaderMapId (FMaterialShaderMapId &OutId, const ITargetPlatform *TargetPlatform, EMaterialKeyInclude IncludeFlags=EMaterialKeyInclude::All) const
 
virtual bool IsUsedWithUI () const
 
virtual bool IsDualBlendingEnabled (EShaderPlatform Platform) const final
 
FString GetUniqueAssetName (EShaderPlatform Platform, const FMaterialShaderMapId &ShaderMapId) const
 
FString GetUniqueAssetName (const FMaterialShaderMapId &ShaderMapId) const
 
virtual void GetShaderTags (TArray< FName > &OutShaderTags) const
 
virtual EMaterialTranslateValidationFlags GetMaterialTranslateValidationFlags () const
 
FName GetOwnerFName () const
 
virtual bool IsPreview () const
 
ENGINE_API const FMaterialCachedExpressionDataGetCachedExpressionData () const
 
ENGINE_API bool IsRequiredComplete () const
 
ENGINE_API bool HasValidGameThreadShaderMap () const
 
bool ShouldCastDynamicShadows () const
 
EMaterialQualityLevel::Type GetQualityLevel () const
 
ENGINE_API const FUniformExpressionSetGetUniformExpressions () const
 
ENGINE_API TArrayView< const FMaterialTextureParameterInfoGetUniformTextureExpressions (EMaterialTextureParameterType Type) const
 
ENGINE_API TConstArrayView< FMaterialTextureCollectionParameterInfoGetUniformTextureCollectionExpressions () const
 
ENGINE_API TArrayView< const FMaterialNumericParameterInfoGetUniformNumericParameterExpressions () const
 
TArrayView< const FMaterialTextureParameterInfoGetUniform2DTextureExpressions () const
 
TArrayView< const FMaterialTextureParameterInfoGetUniformCubeTextureExpressions () const
 
TArrayView< const FMaterialTextureParameterInfoGetUniform2DArrayTextureExpressions () const
 
TArrayView< const FMaterialTextureParameterInfoGetUniformVolumeTextureExpressions () const
 
TArrayView< const FMaterialTextureParameterInfoGetUniformVirtualTextureExpressions () const
 
TArrayView< const FMaterialTextureParameterInfoGetUniformSparseVolumeTextureExpressions () const
 
const FStaticFeatureLevel GetFeatureLevel () const
 
const EShaderPlatform GetShaderPlatform () const
 
bool GetUsesDynamicParameter () const
 
ENGINE_API bool RequiresSceneColorCopy_GameThread () const
 
ENGINE_API bool RequiresSceneColorCopy_RenderThread () const
 
ENGINE_API bool NeedsSceneTextures () const
 
ENGINE_API bool NeedsGBuffer () const
 
ENGINE_API bool UsesEyeAdaptation () const
 
ENGINE_API bool UsesGlobalDistanceField_GameThread () const
 
ENGINE_API bool MaterialUsesWorldPositionOffset_RenderThread () const
 
ENGINE_API bool MaterialUsesWorldPositionOffset_GameThread () const
 
ENGINE_API bool MaterialUsesDisplacement_RenderThread () const
 
ENGINE_API bool MaterialUsesDisplacement_GameThread () const
 
ENGINE_API bool MaterialUsesPixelDepthOffset_RenderThread () const
 
ENGINE_API bool MaterialUsesPixelDepthOffset_GameThread () const
 
ENGINE_API bool MaterialUsesTemporalResponsiveness_RenderThread () const
 
ENGINE_API bool MaterialUsesTemporalResponsiveness_GameThread () const
 
ENGINE_API bool MaterialUsesMotionVectorWorldOffset_RenderThread () const
 
ENGINE_API bool MaterialUsesMotionVectorWorldOffset_GameThread () const
 
ENGINE_API bool MaterialModifiesMeshPosition_RenderThread () const
 
ENGINE_API bool MaterialModifiesMeshPosition_GameThread () const
 
ENGINE_API bool MaterialUsesDistanceCullFade_GameThread () const
 
ENGINE_API bool MaterialUsesSceneDepthLookup_RenderThread () const
 
ENGINE_API bool MaterialUsesSceneDepthLookup_GameThread () const
 
ENGINE_API uint8 GetCustomDepthStencilUsageMask_GameThread () const
 
ENGINE_API bool MaterialMayModifyMeshPosition () const
 
ENGINE_API uint8 GetRuntimeVirtualTextureOutputAttibuteMask_GameThread () const
 
ENGINE_API uint8 GetRuntimeVirtualTextureOutputAttibuteMask_RenderThread () const
 
ENGINE_API bool MaterialUsesAnisotropy_GameThread () const
 
ENGINE_API bool MaterialUsesAnisotropy_RenderThread () const
 
ENGINE_API bool MaterialIsLightFunctionAtlasCompatible_GameThread () const
 
ENGINE_API bool MaterialIsLightFunctionAtlasCompatible_RenderThread () const
 
ENGINE_API uint8 MaterialGetSubstrateMaterialType_GameThread () const
 
ENGINE_API uint8 MaterialGetSubstrateMaterialType_RenderThread () const
 
ENGINE_API uint8 MaterialGetSubstrateClosureCount_GameThread () const
 
ENGINE_API uint8 MaterialGetSubstrateClosureCount_RenderThread () const
 
ENGINE_API uint8 MaterialGetSubstrateUintPerPixel_GameThread () const
 
ENGINE_API uint8 MaterialGetSubstrateUintPerPixel_RenderThread () const
 
ENGINE_API ESubstrateTileType MaterialGetSubstrateTileType_GameThread () const
 
ENGINE_API ESubstrateTileType MaterialGetSubstrateTileType_RenderThread () const
 
ENGINE_API ESubstrateBsdfFeature MaterialGetSubstrateMaterialBsdfFeatures_GameThread () const
 
ENGINE_API ESubstrateBsdfFeature MaterialGetSubstrateMaterialBsdfFeatures_RenderThread () const
 
class FMaterialShaderMapGetGameThreadShaderMap () const
 
ENGINE_API void SetGameThreadShaderMap (FMaterialShaderMap *InMaterialShaderMap)
 
ENGINE_API void SetInlineShaderMap (FMaterialShaderMap *InMaterialShaderMap)
 
ENGINE_API void UpdateInlineShaderMapIsComplete ()
 
ENGINE_API class FMaterialShaderMapGetRenderingThreadShaderMap () const
 
bool IsGameThreadShaderMapComplete () const
 
bool IsRenderingThreadShaderMapComplete () const
 
ENGINE_API void SetRenderingThreadShaderMap (TRefCountPtr< FMaterialShaderMap > &InMaterialShaderMap)
 
template<typename ShaderType >
TShaderRef< ShaderType > GetShader (FVertexFactoryType *VertexFactoryType, const typename ShaderType::FPermutationDomain &PermutationVector, bool bFatalIfMissing=true) const
 
template<typename ShaderType >
TShaderRef< ShaderType > GetShader (FVertexFactoryType *VertexFactoryType, int32 PermutationId=0, bool bFatalIfMissing=true) const
 
ENGINE_API FShaderPipelineRef GetShaderPipeline (class FShaderPipelineType *ShaderPipelineType, FVertexFactoryType *VertexFactoryType, bool bFatalIfNotFound=true) const
 
ENGINE_API bool TryGetShaders (const FMaterialShaderTypes &InTypes, const FVertexFactoryType *InVertexFactoryType, FMaterialShaders &OutShaders) const
 
ENGINE_API bool HasShaders (const FMaterialShaderTypes &InTypes, const FVertexFactoryType *InVertexFactoryType) const
 
ENGINE_API bool ShouldCacheShaders (const EShaderPlatform ShaderPlatform, const FMaterialShaderTypes &InTypes, const FVertexFactoryType *InVertexFactoryType) const
 
ENGINE_API bool ShouldCacheShaders (const FMaterialShaderTypes &InTypes, const FVertexFactoryType *InVertexFactoryType) const
 
virtual EMaterialShaderMapUsage::Type GetMaterialShaderMapUsage () const
 
ENGINE_API bool GetMaterialExpressionSource (FString &OutSource)
 
ENGINE_API void GetPreshaderStats (uint32 &TotalParameters, uint32 &TotalOps) const
 
ENGINE_API bool WritesEveryPixel (bool bShadowPass=false) const
 
ENGINE_API bool WritesEveryPixel (bool bShadowPass, bool bVFTypeSupportsNullPixelShader) const
 
virtual void SetupExtraCompilationSettings (const EShaderPlatform Platform, FExtraShaderCompilerSettings &Settings) const final
 
virtual void SetupExtraCompilationSettings (FExtraShaderCompilerSettings &Settings) const
 
void DumpDebugInfo (FOutputDevice &OutputDevice)
 
void SaveShaderStableKeys (EShaderPlatform TargetShaderPlatform, struct FStableShaderKeyAndValue &SaveKeyVal)
 
void SaveShaderStableKeys (struct FStableShaderKeyAndValue &SaveKeyVal)
 
void SetOwnerBeginDestroyed ()
 
bool IsOwnerBeginDestroyed () const
 

Protected Member Functions

virtual ENGINE_API void BuildShaderMapIdOverride (const FBuildShaderMapIdArgs &Args) const override
 
virtual ENGINE_API int32 CompilePropertyAndSetMaterialProperty (EMaterialProperty Property, class FMaterialCompiler *Compiler, EShaderFrequency OverrideShaderFrequency, bool bUsePreviousFrameTime) const override
 
virtual ENGINE_API int32 CompileCustomAttribute (const FGuid &AttributeID, FMaterialCompiler *Compiler) const override
 
virtual ENGINE_API bool HasVertexPositionOffsetConnected () const override
 
virtual ENGINE_API bool HasPixelDepthOffsetConnected () const override
 
virtual ENGINE_API FString GetBaseMaterialPathName () const override
 
virtual ENGINE_API FString GetDebugName () const override
 
- Protected Member Functions inherited from FMaterial
const FMaterialShaderMapGetShaderMapToUse () const
 
void SetQualityLevelProperties (ERHIFeatureLevel::Type InFeatureLevel, EMaterialQualityLevel::Type InQualityLevel=EMaterialQualityLevel::Num)
 
void SetQualityLevelProperties (EShaderPlatform InShaderPlatform, EMaterialQualityLevel::Type InQualityLevel=EMaterialQualityLevel::Num)
 
virtual EMaterialShaderMapUsage::Type GetShaderMapUsage () const
 
ENGINE_API void GetDependentShaderAndVFTypes (EShaderPlatform Platform, const FPlatformTypeLayoutParameters &LayoutParams, TArray< FShaderType * > &OutShaderTypes, TArray< const FShaderPipelineType * > &OutShaderPipelineTypes, TArray< FVertexFactoryType * > &OutVFTypes) const
 
ENGINE_API void GetDependentShaderAndVFTypes (const FPlatformTypeLayoutParameters &LayoutParams, TArray< FShaderType * > &OutShaderTypes, TArray< const FShaderPipelineType * > &OutShaderPipelineTypes, TArray< FVertexFactoryType * > &OutVFTypes) const
 
bool GetLoadedCookedShaderMapId () const
 
void SetAllowPixelDepthOffset (bool bEnable)
 
bool AllowPixelDepthOffset () const
 

Protected Attributes

TObjectPtr< UMaterialMaterial
 
TObjectPtr< UMaterialInstanceMaterialInstance
 
FMaterialLayersFunctions MaterialLayersFunctions
 

Additional Inherited Members

- Static Public Member Functions inherited from FMaterial
static ENGINE_API void SetShaderMapsOnMaterialResources (const TMap< TRefCountPtr< FMaterial >, TRefCountPtr< FMaterialShaderMap > > &MaterialsToUpdate)
 
static ENGINE_API void DeferredDelete (FMaterial *Material)
 
static ENGINE_API void DeleteMaterialsOnRenderThread (TArray< TRefCountPtr< FMaterial > > &MaterialsRenderThread)
 
template<typename TMaterial >
static void DeferredDeleteArray (TArray< TRefCountPtr< TMaterial > > &Materials)
 
template<typename TMaterial >
static void DeferredDeleteArray (TArray< TMaterial * > &Materials)
 

Detailed Description

Implementation of the FMaterial interface for a UMaterial or UMaterialInstance.

Constructor & Destructor Documentation

◆ FMaterialResource()

FMaterialResource::FMaterialResource ( )

◆ ~FMaterialResource()

FMaterialResource::~FMaterialResource ( )
virtual

Member Function Documentation

◆ AddReferencedObjects()

void FMaterialResource::AddReferencedObjects ( FReferenceCollector Collector)
overridevirtual

Reimplemented from FMaterial.

◆ AllowNegativeEmissiveColor()

bool FMaterialResource::AllowNegativeEmissiveColor ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ AllowTranslucentLocalLightShadow()

bool FMaterialResource::AllowTranslucentLocalLightShadow ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ BuildShaderMapIdOverride()

void FMaterialResource::BuildShaderMapIdOverride ( const FBuildShaderMapIdArgs Args) const
overrideprotectedvirtual

The function that should be override by subclasses that want to modify either the DDC key or the IncrementalCook key.

Reimplemented from FMaterial.

◆ CastsRayTracedShadows()

bool FMaterialResource::CastsRayTracedShadows ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ CompileCustomAttribute()

int32 FMaterialResource::CompileCustomAttribute ( const FGuid AttributeID,
FMaterialCompiler Compiler 
) const
overrideprotectedvirtual

Used to translate code for custom output attributes such as ClearCoatBottomNormal

Reimplemented from FMaterial.

◆ CompilePropertyAndSetMaterialProperty()

int32 FMaterialResource::CompilePropertyAndSetMaterialProperty ( EMaterialProperty  Property,
class FMaterialCompiler Compiler,
EShaderFrequency  OverrideShaderFrequency,
bool  bUsePreviousFrameTime 
) const
overrideprotectedvirtual

Entry point for compiling a specific material property. This must call SetMaterialProperty.

Implements FMaterial.

◆ ComputeFogPerPixel()

bool FMaterialResource::ComputeFogPerPixel ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ FeedbackMaterialLayersInstancedGraphFromCompilation()

void FMaterialResource::FeedbackMaterialLayersInstancedGraphFromCompilation ( const FMaterialLayersFunctions InLayers)
overridevirtual

Reimplemented from FMaterial.

◆ GetAllowDevelopmentShaderCompile()

bool FMaterialResource::GetAllowDevelopmentShaderCompile ( ) const
overridevirtual

Returns true if this material is allowed to make development shaders via the global CVar CompileShadersForDevelopment.

Reimplemented from FMaterial.

◆ GetAssetName()

FString FMaterialResource::GetAssetName ( ) const
overridevirtual

Similar to GetFriendlyName, but but avoids historical behavior of the former, returning the exact asset name for material instances instead of just the material.

Reimplemented from FMaterial.

◆ GetBaseMaterialPathName()

FString FMaterialResource::GetBaseMaterialPathName ( ) const
overrideprotectedvirtual

Useful for debugging.

Reimplemented from FMaterial.

◆ GetBlendableLocation()

int32 FMaterialResource::GetBlendableLocation ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetBlendableOutputAlpha()

bool FMaterialResource::GetBlendableOutputAlpha ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetBlendablePriority()

int32 FMaterialResource::GetBlendablePriority ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetBlendMode()

EBlendMode FMaterialResource::GetBlendMode ( ) const
overridevirtual

Implements FMaterial.

◆ GetCastDynamicShadowAsMasked()

bool FMaterialResource::GetCastDynamicShadowAsMasked ( ) const
overridevirtual

Implements FMaterial.

◆ GetDebugName()

FString FMaterialResource::GetDebugName ( ) const
overrideprotectedvirtual

Reimplemented from FMaterial.

◆ GetDisablePreExposureScale()

bool FMaterialResource::GetDisablePreExposureScale ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetDisplacementFadeRange()

FDisplacementFadeRange FMaterialResource::GetDisplacementFadeRange ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetDisplacementScaling()

FDisplacementScaling FMaterialResource::GetDisplacementScaling ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetForceCompatibleWithLightFunctionAtlas()

bool FMaterialResource::GetForceCompatibleWithLightFunctionAtlas ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetForwardBlendsSkyLightCubemaps()

bool FMaterialResource::GetForwardBlendsSkyLightCubemaps ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetFriendlyName()

FString FMaterialResource::GetFriendlyName ( ) const
overridevirtual

Implements FMaterial.

◆ GetFullPath()

FString FMaterialResource::GetFullPath ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetMaterial()

const UMaterial * FMaterialResource::GetMaterial ( ) const
inline

◆ GetMaterialDecalResponse()

uint32 FMaterialResource::GetMaterialDecalResponse ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetMaterialDomain()

EMaterialDomain FMaterialResource::GetMaterialDomain ( ) const
overridevirtual

Implements FMaterial.

◆ GetMaterialFloatPrecisionMode()

EMaterialFloatPrecisionMode FMaterialResource::GetMaterialFloatPrecisionMode ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetMaterialId()

FGuid FMaterialResource::GetMaterialId ( ) const
overridevirtual

Gets the Guid that represents this material.

Implements FMaterial.

◆ GetMaterialInstance()

const UMaterialInstance * FMaterialResource::GetMaterialInstance ( ) const
inline

◆ GetMaterialInterface()

UMaterialInterface * FMaterialResource::GetMaterialInterface ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetMaterialLayers()

const FMaterialLayersFunctions * FMaterialResource::GetMaterialLayers ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetMaterialUsageDescription()

FString FMaterialResource::GetMaterialUsageDescription ( ) const
overridevirtual

Returns a string that describes the material's usage for debugging purposes.

Implements FMaterial.

◆ GetNeuralProfileId()

int32 FMaterialResource::GetNeuralProfileId ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetNumCustomizedUVs()

int32 FMaterialResource::GetNumCustomizedUVs ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetNumMaterialCacheTags()

int32 FMaterialResource::GetNumMaterialCacheTags ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetNumVirtualTextureStacks()

uint32 FMaterialResource::GetNumVirtualTextureStacks ( ) const

◆ GetOpacityMaskClipValue()

float FMaterialResource::GetOpacityMaskClipValue ( ) const
overridevirtual

Implements FMaterial.

◆ GetPixelDepthOffsetMode()

EPixelDepthOffsetMode FMaterialResource::GetPixelDepthOffsetMode ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetPreshaderGap()

uint16 FMaterialResource::GetPreshaderGap ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetReferencedTextureCollections()

TConstArrayView< TObjectPtr< UTextureCollection > > FMaterialResource::GetReferencedTextureCollections ( ) const
overridevirtual

Implements FMaterial.

◆ GetReferencedTextures()

TArrayView< const TObjectPtr< UObject > > FMaterialResource::GetReferencedTextures ( ) const
overridevirtual

Implements FMaterial.

◆ GetRefractionCoverageMode()

ERefractionCoverageMode FMaterialResource::GetRefractionCoverageMode ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetRefractionDepthBiasValue()

float FMaterialResource::GetRefractionDepthBiasValue ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetRefractionMode()

ERefractionMode FMaterialResource::GetRefractionMode ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetResourceSizeEx()

void FMaterialResource::GetResourceSizeEx ( FResourceSizeEx CumulativeResourceSize)

◆ GetRootNodeOverridesDefaultRefraction()

bool FMaterialResource::GetRootNodeOverridesDefaultRefraction ( ) const
overridevirtual

Implements FMaterial.

◆ GetShadingModels()

FMaterialShadingModelField FMaterialResource::GetShadingModels ( ) const
overridevirtual

Implements FMaterial.

◆ GetShadingRate()

EMaterialShadingRate FMaterialResource::GetShadingRate ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetStencilCompare()

uint32 FMaterialResource::GetStencilCompare ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetStencilRefValue()

uint32 FMaterialResource::GetStencilRefValue ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucencyDirectionalLightingIntensity()

float FMaterialResource::GetTranslucencyDirectionalLightingIntensity ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucencyLightingMode()

ETranslucencyLightingMode FMaterialResource::GetTranslucencyLightingMode ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucentBackscatteringExponent()

float FMaterialResource::GetTranslucentBackscatteringExponent ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucentDirectionalLightShadowQuality()

float FMaterialResource::GetTranslucentDirectionalLightShadowQuality ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucentLocalLightShadowQuality()

float FMaterialResource::GetTranslucentLocalLightShadowQuality ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucentMultipleScatteringExtinction()

FLinearColor FMaterialResource::GetTranslucentMultipleScatteringExtinction ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucentSelfShadowDensityScale()

float FMaterialResource::GetTranslucentSelfShadowDensityScale ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucentSelfShadowSecondDensityScale()

float FMaterialResource::GetTranslucentSelfShadowSecondDensityScale ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucentSelfShadowSecondOpacity()

float FMaterialResource::GetTranslucentSelfShadowSecondOpacity ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucentShadowDensityScale()

float FMaterialResource::GetTranslucentShadowDensityScale ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ GetTranslucentShadowStartOffset()

float FMaterialResource::GetTranslucentShadowStartOffset ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasAmbientOcclusionConnected()

bool FMaterialResource::HasAmbientOcclusionConnected ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasAnisotropyConnected()

bool FMaterialResource::HasAnisotropyConnected ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasBaseColorConnected()

bool FMaterialResource::HasBaseColorConnected ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasDisplacementConnected()

bool FMaterialResource::HasDisplacementConnected ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasEmissiveColorConnected()

bool FMaterialResource::HasEmissiveColorConnected ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasFirstPersonOutput()

bool FMaterialResource::HasFirstPersonOutput ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasMaterialCacheOutput()

bool FMaterialResource::HasMaterialCacheOutput ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasMaterialPropertyConnected()

bool FMaterialResource::HasMaterialPropertyConnected ( EMaterialProperty  In) const
overridevirtual

Reimplemented from FMaterial.

◆ HasMetallicConnected()

bool FMaterialResource::HasMetallicConnected ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasNormalConnected()

bool FMaterialResource::HasNormalConnected ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasPerInstanceCustomData()

bool FMaterialResource::HasPerInstanceCustomData ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasPerInstanceRandom()

bool FMaterialResource::HasPerInstanceRandom ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasPixelAnimation()

bool FMaterialResource::HasPixelAnimation ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasPixelDepthOffsetConnected()

bool FMaterialResource::HasPixelDepthOffsetConnected ( ) const
overrideprotectedvirtual

Reimplemented from FMaterial.

◆ HasRenderTracePhysicalMaterialOutputs()

bool FMaterialResource::HasRenderTracePhysicalMaterialOutputs ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasRoughnessConnected()

bool FMaterialResource::HasRoughnessConnected ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasRuntimeVirtualTextureOutput()

bool FMaterialResource::HasRuntimeVirtualTextureOutput ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasSpecularConnected()

bool FMaterialResource::HasSpecularConnected ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasSubstrateRoughnessTracking()

bool FMaterialResource::HasSubstrateRoughnessTracking ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasVertexInterpolator()

bool FMaterialResource::HasVertexInterpolator ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ HasVertexPositionOffsetConnected()

bool FMaterialResource::HasVertexPositionOffsetConnected ( ) const
overrideprotectedvirtual

Reimplemented from FMaterial.

◆ IsDefaultMaterial()

bool FMaterialResource::IsDefaultMaterial ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsDeferredDecal()

bool FMaterialResource::IsDeferredDecal ( ) const
overridevirtual

Implements FMaterial.

◆ IsDisplacementFadeEnabled()

bool FMaterialResource::IsDisplacementFadeEnabled ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsDistorted()

bool FMaterialResource::IsDistorted ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsDitheredLODTransition()

bool FMaterialResource::IsDitheredLODTransition ( ) const
overridevirtual

Implements FMaterial.

◆ IsDitherMasked()

bool FMaterialResource::IsDitherMasked ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsDualBlendingEnabled()

bool FMaterialResource::IsDualBlendingEnabled ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsFullyRough()

bool FMaterialResource::IsFullyRough ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsLightFunction()

bool FMaterialResource::IsLightFunction ( ) const
overridevirtual

Implements FMaterial.

◆ IsMasked()

bool FMaterialResource::IsMasked ( ) const
overridevirtual

Implements FMaterial.

◆ IsMobileSeparateTranslucencyEnabled()

bool FMaterialResource::IsMobileSeparateTranslucencyEnabled ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsNonmetal()

bool FMaterialResource::IsNonmetal ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsPersistent()

bool FMaterialResource::IsPersistent ( ) const
overridevirtual

Should shaders compiled for this material be saved to disk?

Implements FMaterial.

◆ IsPostProcessMaterial()

bool FMaterialResource::IsPostProcessMaterial ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsShadingModelFromMaterialExpression()

bool FMaterialResource::IsShadingModelFromMaterialExpression ( ) const
overridevirtual

Implements FMaterial.

◆ IsSky()

bool FMaterialResource::IsSky ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsSpecialEngineMaterial()

bool FMaterialResource::IsSpecialEngineMaterial ( ) const
overridevirtual

Implements FMaterial.

◆ IsStencilTestEnabled()

bool FMaterialResource::IsStencilTestEnabled ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsSubstrateMaterial()

bool FMaterialResource::IsSubstrateMaterial ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsTangentSpaceNormal()

bool FMaterialResource::IsTangentSpaceNormal ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsTessellationEnabled()

bool FMaterialResource::IsTessellationEnabled ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsThinSurface()

bool FMaterialResource::IsThinSurface ( ) const
overridevirtual

Implements FMaterial.

◆ IsTranslucencyAfterDOFEnabled()

bool FMaterialResource::IsTranslucencyAfterDOFEnabled ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsTranslucencyAfterMotionBlurEnabled()

bool FMaterialResource::IsTranslucencyAfterMotionBlurEnabled ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsTranslucencyVelocityFromDepth()

bool FMaterialResource::IsTranslucencyVelocityFromDepth ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsTranslucencyWritingCustomDepth()

bool FMaterialResource::IsTranslucencyWritingCustomDepth ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsTranslucencyWritingFrontLayerTransparency()

bool FMaterialResource::IsTranslucencyWritingFrontLayerTransparency ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsTranslucencyWritingVelocity()

bool FMaterialResource::IsTranslucencyWritingVelocity ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsTwoSided()

bool FMaterialResource::IsTwoSided ( ) const
overridevirtual

Implements FMaterial.

◆ IsUIMaterial()

bool FMaterialResource::IsUIMaterial ( ) const
overridevirtual

Implements FMaterial.

◆ IsUsedWithAPEXCloth()

bool FMaterialResource::IsUsedWithAPEXCloth ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithBeamTrails()

bool FMaterialResource::IsUsedWithBeamTrails ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithEditorCompositing()

bool FMaterialResource::IsUsedWithEditorCompositing ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsUsedWithGeometryCache()

bool FMaterialResource::IsUsedWithGeometryCache ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithGeometryCollections()

bool FMaterialResource::IsUsedWithGeometryCollections ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithHairStrands()

bool FMaterialResource::IsUsedWithHairStrands ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithHeterogeneousVolumes()

bool FMaterialResource::IsUsedWithHeterogeneousVolumes ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsUsedWithInstancedStaticMeshes()

bool FMaterialResource::IsUsedWithInstancedStaticMeshes ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithLandscape()

bool FMaterialResource::IsUsedWithLandscape ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithLidarPointCloud()

bool FMaterialResource::IsUsedWithLidarPointCloud ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithMeshParticles()

bool FMaterialResource::IsUsedWithMeshParticles ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithMorphTargets()

bool FMaterialResource::IsUsedWithMorphTargets ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithNanite()

bool FMaterialResource::IsUsedWithNanite ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithNeuralNetworks()

bool FMaterialResource::IsUsedWithNeuralNetworks ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsUsedWithNiagaraMeshParticles()

bool FMaterialResource::IsUsedWithNiagaraMeshParticles ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithNiagaraRibbons()

bool FMaterialResource::IsUsedWithNiagaraRibbons ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithNiagaraSprites()

bool FMaterialResource::IsUsedWithNiagaraSprites ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithParticleSprites()

bool FMaterialResource::IsUsedWithParticleSprites ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithParticleSystem()

bool FMaterialResource::IsUsedWithParticleSystem ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithSkeletalMesh()

bool FMaterialResource::IsUsedWithSkeletalMesh ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithSplineMeshes()

bool FMaterialResource::IsUsedWithSplineMeshes ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithStaticLighting()

bool FMaterialResource::IsUsedWithStaticLighting ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsedWithStaticMesh()

bool FMaterialResource::IsUsedWithStaticMesh ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsUsedWithVirtualHeightfieldMesh()

bool FMaterialResource::IsUsedWithVirtualHeightfieldMesh ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsUsedWithVolumetricCloud()

bool FMaterialResource::IsUsedWithVolumetricCloud ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsUsedWithVoxels()

bool FMaterialResource::IsUsedWithVoxels ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsUsedWithWater()

bool FMaterialResource::IsUsedWithWater ( ) const
overridevirtual

Reimplemented from FMaterial.

Reimplemented in FLandscapeMaterialResource.

◆ IsUsingAlphaToCoverage()

bool FMaterialResource::IsUsingAlphaToCoverage ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsUsingHQForwardReflections()

bool FMaterialResource::IsUsingHQForwardReflections ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsUsingPlanarForwardReflections()

bool FMaterialResource::IsUsingPlanarForwardReflections ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsUsingPreintegratedGFForSimpleIBL()

bool FMaterialResource::IsUsingPreintegratedGFForSimpleIBL ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsVariableRateShadingAllowed()

bool FMaterialResource::IsVariableRateShadingAllowed ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ IsVolumetricPrimitive()

bool FMaterialResource::IsVolumetricPrimitive ( ) const
overridevirtual

Implements FMaterial.

◆ IsWireframe()

bool FMaterialResource::IsWireframe ( ) const
overridevirtual

Implements FMaterial.

◆ LegacySerialize()

void FMaterialResource::LegacySerialize ( FArchive Ar)
overridevirtual

Serializes the material.

Reimplemented from FMaterial.

◆ RequiresSynchronousCompilation()

bool FMaterialResource::RequiresSynchronousCompilation ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ SamplesMaterialCache()

bool FMaterialResource::SamplesMaterialCache ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ SetMaterial() [1/2]

void FMaterialResource::SetMaterial ( UMaterial InMaterial)
inline

◆ SetMaterial() [2/2]

void FMaterialResource::SetMaterial ( UMaterial InMaterial,
UMaterialInstance InInstance,
EShaderPlatform  InShaderPlatform,
EMaterialQualityLevel::Type  InQualityLevel = EMaterialQualityLevel::Num 
)
inline

◆ SetMaterialInstance()

void FMaterialResource::SetMaterialInstance ( UMaterialInstance InMaterialInstance)
inline

◆ ShouldAlwaysEvaluateWorldPositionOffset()

bool FMaterialResource::ShouldAlwaysEvaluateWorldPositionOffset ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ ShouldApplyCloudFogging()

bool FMaterialResource::ShouldApplyCloudFogging ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ ShouldApplyFogging()

bool FMaterialResource::ShouldApplyFogging ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ ShouldDisableDepthTest()

bool FMaterialResource::ShouldDisableDepthTest ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ ShouldDoContactShadows()

bool FMaterialResource::ShouldDoContactShadows ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ ShouldDoSSR()

bool FMaterialResource::ShouldDoSSR ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ ShouldEnableResponsiveAA()

bool FMaterialResource::ShouldEnableResponsiveAA ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ ShouldGenerateSphericalParticleNormals()

bool FMaterialResource::ShouldGenerateSphericalParticleNormals ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ ShouldWriteOnlyAlpha()

bool FMaterialResource::ShouldWriteOnlyAlpha ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ UseLmDirectionality()

bool FMaterialResource::UseLmDirectionality ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ UseNormalCurvatureToRoughness()

bool FMaterialResource::UseNormalCurvatureToRoughness ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ UsesMotionVectorWorldOffset()

bool FMaterialResource::UsesMotionVectorWorldOffset ( ) const
overridevirtual

Reimplemented from FMaterial.

◆ UsesTemporalResponsiveness()

bool FMaterialResource::UsesTemporalResponsiveness ( ) const
overridevirtual

Reimplemented from FMaterial.

Member Data Documentation

◆ Material

TObjectPtr<UMaterial> FMaterialResource::Material
protected

◆ MaterialInstance

TObjectPtr<UMaterialInstance> FMaterialResource::MaterialInstance
protected

◆ MaterialLayersFunctions

FMaterialLayersFunctions FMaterialResource::MaterialLayersFunctions
protected

The documentation for this class was generated from the following files: