FMaterialUniformExpressionTexture

A texture expression.

Windows
MacOS
Linux

Inheritance Hierarchy

FRefCountedObject

FMaterialUniformExpression

FMaterialUniformExpressionTexture

Syntax

class FMaterialUniformExpressionTexture : public FMaterialUniformExpression

Remarks

A texture expression.

Variables

Name Description

Protected variable

ESamplerSourceM...

 

SamplerSource

Protected variable

EMaterialSample...

 

SamplerType

Sampler type of the expression that generated this

Protected variable

int32

 

TextureIndex

Index into FMaterial::GetReferencedTextures

Protected variable

UTexture *

 

TransientOverrideValue_GameThread

Texture that may be used in the editor for overriding the texture but never saved to disk, accessible only by the game thread!

Protected variable

UTexture *

 

TransientOverrideValue_RenderThread

Texture that may be used in the editor for overriding the texture but never saved to disk, accessible only by the rendering thread!

Constructors

Name Description

Public function

FMaterialUniformExpressionTexture()

Public function

FMaterialUniformExpressionTexture

(
    int32 InTextureIndex,
    EMaterialSamplerType InSamplerType,
    ESamplerSourceMode InSamplerSource
)

Functions

Name Description

Public function Virtual Const

void

 

GetGameThreadTextureValue

(
    const UMaterialInterface* Mate...,
    const FMaterial& Material,
    UTexture*& OutValue,
    bool bAllowOverride
)

Accesses the texture used for rendering this uniform expression.

Public function Const

EMaterialSam...

 

GetSamplerType()

Public function Const

int32

 

GetTextureIndex()

Public function Virtual

FMaterialUni...

 

GetTextureParameterUniformExpression()

Public function Virtual Const

void

 

GetTextureValue

(
    const FMaterialRenderContext& Cont...,
    const FMaterial& Material,
    const UTexture*& OutValue,
    ESamplerSourceMode& OutSamplerSour...
)

Public function Static

FMaterialUni...

 

SerializationConstructor()

Public function

void

 

SetTransientOverrideTextureValue

(
    UTexture* InOverrideTexture
)

Overridden from FMaterialUniformExpression

Name Description

Public function Virtual

FMaterialUni...

 

GetTextureUniformExpression()

Public function Virtual Const

FMaterialUni...

 

GetType()

Public function Virtual Const

bool

 

IsConstant()

Public function Virtual Const

bool

 

IsIdentical

(
    const FMaterialUniformExpression&#...
)

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Constants

Name

Description

StaticType

References

Module

Engine

Header

Runtime/Engine/Public/MaterialShared.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback