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

#include <MaterialUniformExpressions.h>

+ Inheritance diagram for FMaterialUniformExpressionTexture:

Public Member Functions

 FMaterialUniformExpressionTexture ()
 
 FMaterialUniformExpressionTexture (int32 InTextureIndex, EMaterialSamplerType InSamplerType, ESamplerSourceMode InSamplerSource, bool InVirtualTexture)
 
 FMaterialUniformExpressionTexture (int32 InTextureIndex, int16 InTextureLayerIndex, int16 InPageTableLayerIndex, EMaterialSamplerType InSamplerType)
 
 FMaterialUniformExpressionTexture (int32 InTextureIndex, EMaterialSamplerType InSamplerType)
 
virtual class FMaterialUniformExpressionTextureGetTextureUniformExpression ()
 
virtual class FMaterialUniformExpressionTextureParameterGetTextureParameterUniformExpression ()
 
virtual bool IsIdentical (const FMaterialUniformExpression *OtherExpression) const
 
int32 GetTextureIndex () const
 
int32 GetTextureLayerIndex () const
 
int32 GetMaterialCacheTagIndex () const
 
int32 GetPageTableLayerIndex () const
 
void SetMaterialCacheTagIndex (uint32 InMaterialCacheTagIndex)
 
ESamplerSourceMode GetSamplerSource () const
 
virtual void GetTextureParameterInfo (FMaterialTextureParameterInfo &OutParameter) const
 
- Public Member Functions inherited from FMaterialUniformExpression
virtual ~FMaterialUniformExpression ()
 
virtual FMaterialUniformExpressionTypeGetType () const =0
 
virtual class FMaterialUniformExpressionExternalTextureGetExternalTextureUniformExpression ()
 
virtual class FMaterialUniformExpressionTextureCollectionGetTextureCollectionUniformExpression ()
 
virtual bool IsConstant () const
 
virtual void WriteNumberOpcodes (UE::Shader::FPreshaderData &OutData) const
 
virtual void GetNumberValue (const struct FMaterialRenderContext &Context, FLinearColor &OutValue) const
 
virtual TArrayView< const FMaterialUniformExpression * > GetChildren () const
 
- Public Member Functions inherited from FRefCountedObject
 FRefCountedObject ()
 
virtual ~FRefCountedObject ()
 
 FRefCountedObject (const FRefCountedObject &Rhs)=delete
 
FRefCountedObjectoperator= (const FRefCountedObject &Rhs)=delete
 
FReturnedRefCountValue AddRef () const
 
uint32 Release () const
 
uint32 GetRefCount () const
 

Protected Attributes

int32 TextureIndex
 
int16 TextureLayerIndex
 
int16 MaterialCacheTagIndex
 
int16 PageTableLayerIndex
 
ESamplerSourceMode SamplerSource
 
bool bVirtualTexture
 

Additional Inherited Members

- Public Attributes inherited from FMaterialUniformExpression
int32 UniformOffset = INDEX_NONE
 
int32 UniformIndex = INDEX_NONE
 

Detailed Description

A texture expression.

Constructor & Destructor Documentation

◆ FMaterialUniformExpressionTexture() [1/4]

FMaterialUniformExpressionTexture::FMaterialUniformExpressionTexture ( )

◆ FMaterialUniformExpressionTexture() [2/4]

FMaterialUniformExpressionTexture::FMaterialUniformExpressionTexture ( int32  InTextureIndex,
EMaterialSamplerType  InSamplerType,
ESamplerSourceMode  InSamplerSource,
bool  InVirtualTexture 
)

◆ FMaterialUniformExpressionTexture() [3/4]

FMaterialUniformExpressionTexture::FMaterialUniformExpressionTexture ( int32  InTextureIndex,
int16  InTextureLayerIndex,
int16  InPageTableLayerIndex,
EMaterialSamplerType  InSamplerType 
)

◆ FMaterialUniformExpressionTexture() [4/4]

FMaterialUniformExpressionTexture::FMaterialUniformExpressionTexture ( int32  InTextureIndex,
EMaterialSamplerType  InSamplerType 
)

Member Function Documentation

◆ GetMaterialCacheTagIndex()

int32 FMaterialUniformExpressionTexture::GetMaterialCacheTagIndex ( ) const
inline

◆ GetPageTableLayerIndex()

int32 FMaterialUniformExpressionTexture::GetPageTableLayerIndex ( ) const
inline

Gets the page table channel index in the virtual texture stack if this is fixed. If we don't have a fixed layer then we will allocate during compilation (and not store here).

◆ GetSamplerSource()

ESamplerSourceMode FMaterialUniformExpressionTexture::GetSamplerSource ( ) const
inline

Get the sampler state object to use (globally shared or from texture asset).

◆ GetTextureIndex()

int32 FMaterialUniformExpressionTexture::GetTextureIndex ( ) const
inline

Gets texture index which is the index in the full set of referenced textures for this material.

◆ GetTextureLayerIndex()

int32 FMaterialUniformExpressionTexture::GetTextureLayerIndex ( ) const
inline

Gets the texture layer index in the virtual texture stack if this is fixed. If we don't have a fixed layer then we will allocate during compilation (and not store here).

◆ GetTextureParameterInfo()

void FMaterialUniformExpressionTexture::GetTextureParameterInfo ( FMaterialTextureParameterInfo OutParameter) const
virtual

◆ GetTextureParameterUniformExpression()

virtual class FMaterialUniformExpressionTextureParameter * FMaterialUniformExpressionTexture::GetTextureParameterUniformExpression ( )
inlinevirtual

◆ GetTextureUniformExpression()

virtual class FMaterialUniformExpressionTexture * FMaterialUniformExpressionTexture::GetTextureUniformExpression ( )
inlinevirtual

Reimplemented from FMaterialUniformExpression.

◆ IsIdentical()

bool FMaterialUniformExpressionTexture::IsIdentical ( const FMaterialUniformExpression OtherExpression) const
virtual

◆ SetMaterialCacheTagIndex()

void FMaterialUniformExpressionTexture::SetMaterialCacheTagIndex ( uint32  InMaterialCacheTagIndex)
inline

Member Data Documentation

◆ bVirtualTexture

bool FMaterialUniformExpressionTexture::bVirtualTexture
protected

Virtual texture flag used only for unique serialization

◆ MaterialCacheTagIndex

int16 FMaterialUniformExpressionTexture::MaterialCacheTagIndex
protected

Material cache tag index if this is a material cache binding

◆ PageTableLayerIndex

int16 FMaterialUniformExpressionTexture::PageTableLayerIndex
protected

Page table layer index in virtual texture stack if preallocated

◆ SamplerSource

ESamplerSourceMode FMaterialUniformExpressionTexture::SamplerSource
protected

Sampler state object source for this expression

◆ TextureIndex

int32 FMaterialUniformExpressionTexture::TextureIndex
protected

◆ TextureLayerIndex

int16 FMaterialUniformExpressionTexture::TextureLayerIndex
protected

Texture layer index in virtual texture stack if preallocated


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