UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FMaterialRenderContext Struct Reference

#include <MaterialShared.h>

Public Member Functions

ENGINE_API FMaterialRenderContext (const FMaterialRenderProxy *InMaterialRenderProxy, const FMaterial &InMaterial, const FSceneView *InView)
 
 FMaterialRenderContext (const FMaterialRenderProxy *InMaterialRenderProxy, const FMaterial &InMaterial, bool bInShowSelection)
 
ENGINE_API void GetTextureParameterValue (const FHashedMaterialParameterInfo &ParameterInfo, int32 TextureIndex, const UTexture *&OutValue) const
 
ENGINE_API void GetTextureParameterValue (const FHashedMaterialParameterInfo &ParameterInfo, int32 TextureIndex, const URuntimeVirtualTexture *&OutValue) const
 
ENGINE_API void GetTextureParameterValue (const FHashedMaterialParameterInfo &ParameterInfo, int32 TextureIndex, const USparseVolumeTexture *&OutValue) const
 
ENGINE_API void GetTextureCollectionParameterValue (const FHashedMaterialParameterInfo &ParameterInfo, int32 TextureCollectionIndex, const UTextureCollection *&OutValue) const
 
ENGINE_API FGuid GetExternalTextureGuid (const FGuid &ExternalTextureGuid, const FName &ParameterName, int32 SourceTextureIndex) const
 

Public Attributes

const FMaterialRenderProxyMaterialRenderProxy
 
const FMaterialMaterial
 
bool bShowSelection
 

Detailed Description

The context of a material being rendered.

Constructor & Destructor Documentation

◆ FMaterialRenderContext() [1/2]

FMaterialRenderContext::FMaterialRenderContext ( const FMaterialRenderProxy InMaterialRenderProxy,
const FMaterial InMaterial,
const FSceneView InView 
)

Constructor

◆ FMaterialRenderContext() [2/2]

FMaterialRenderContext::FMaterialRenderContext ( const FMaterialRenderProxy InMaterialRenderProxy,
const FMaterial InMaterial,
bool  bInShowSelection 
)
inline

Member Function Documentation

◆ GetExternalTextureGuid()

FGuid FMaterialRenderContext::GetExternalTextureGuid ( const FGuid ExternalTextureGuid,
const FName ParameterName,
int32  SourceTextureIndex 
) const

◆ GetTextureCollectionParameterValue()

void FMaterialRenderContext::GetTextureCollectionParameterValue ( const FHashedMaterialParameterInfo ParameterInfo,
int32  TextureCollectionIndex,
const UTextureCollection *&  OutValue 
) const

◆ GetTextureParameterValue() [1/3]

void FMaterialRenderContext::GetTextureParameterValue ( const FHashedMaterialParameterInfo ParameterInfo,
int32  TextureIndex,
const URuntimeVirtualTexture *&  OutValue 
) const

◆ GetTextureParameterValue() [2/3]

void FMaterialRenderContext::GetTextureParameterValue ( const FHashedMaterialParameterInfo ParameterInfo,
int32  TextureIndex,
const USparseVolumeTexture *&  OutValue 
) const

◆ GetTextureParameterValue() [3/3]

void FMaterialRenderContext::GetTextureParameterValue ( const FHashedMaterialParameterInfo ParameterInfo,
int32  TextureIndex,
const UTexture *&  OutValue 
) const

Member Data Documentation

◆ bShowSelection

bool FMaterialRenderContext::bShowSelection

Whether or not selected objects should use their selection color.

◆ Material

const FMaterial& FMaterialRenderContext::Material

Material resource to use.

◆ MaterialRenderProxy

const FMaterialRenderProxy* FMaterialRenderContext::MaterialRenderProxy

material instance used for the material shader


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