FProxyMaterialCompiler

A proxy for the material compiler interface which by default passes all function calls unmodified.

Windows
MacOS
Linux

Inheritance Hierarchy

FMaterialCompiler

FProxyMaterialCompiler

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialCompiler.h

Include

#include "MaterialCompiler.h"

Syntax

class FProxyMaterialCompiler : public FMaterialCompiler

Remarks

A proxy for the material compiler interface which by default passes all function calls unmodified. Note: Any functions of FMaterialCompiler that change the internal compiler state must be routed!

Variables

Name Description

Protected variable

FMaterialCompil...

 

Compiler

Constructors

Name Description

Public function

FProxyMaterialCompiler

(
    FMaterialCompiler* InCompiler
)

Constructor.

Overridden from FMaterialCompiler

Name Description

Public function Virtual

int32

 

Abs

(
    int32 X
)

Public function Virtual

int32

 

AccessCollectionParameter

(
    UMaterialParameterCollection* ...,
    int32 ParameterIndex,
    int32 ComponentIndex
)

Public function Virtual

int32

 

ActorWorldPosition()

Public function Virtual

int32

 

Add

(
    int32 A,
    int32 B
)

Public function Virtual

int32

 

AntialiasedTextureMask

(
    int32 Tex,
    int32 UV,
    float Threshold,
    uint8 Channel
)

Public function Virtual

void

 

AppendExpressionError

(
    UMaterialExpression* Expressio...,
    const TCHAR* Text
)

Public function Virtual

int32

 

AppendVector

(
    int32 A,
    int32 B
)

Public function Virtual

int32

 

Arccosine

(
    int32 X
)

Public function Virtual

int32

 

ArccosineFast

(
    int32 X
)

Public function Virtual

int32

 

Arcsine

(
    int32 X
)

Public function Virtual

int32

 

ArcsineFast

(
    int32 X
)

Public function Virtual

int32

 

Arctangent

(
    int32 X
)

Public function Virtual

int32

 

Arctangent2

(
    int32 Y,
    int32 X
)

Public function Virtual

int32

 

Arctangent2Fast

(
    int32 Y,
    int32 X
)

Public function Virtual

int32

 

ArctangentFast

(
    int32 X
)

Public function Virtual

int32

 

AtmosphericFogColor

(
    int32 WorldPosition
)

Public function Virtual

int32

 

AtmosphericLightColor()

Public function Virtual

int32

 

AtmosphericLightVector()

Public function Virtual

int32

 

BlackBody

(
    int32 Temp
)

Public function Virtual

int32

 

CallExpression

(
    FMaterialExpressionKey ExpressionKe...,
    FMaterialCompiler* InCompiler
)

Public function Virtual

int32

 

CameraVector()

Public function Virtual

int32

 

Ceil

(
    int32 X
)

Public function Virtual

int32

 

Clamp

(
    int32 X,
    int32 A,
    int32 B
)

Public function Virtual

int32

 

ComponentMask

(
    int32 Vector,
    bool R,
    bool G,
    bool B,
    bool A
)

Public function Virtual

int32

 

Constant

(
    float X
)

Public function Virtual

int32

 

Constant2

(
    float X,
    float Y
)

Public function Virtual

int32

 

Constant3

(
    float X,
    float Y,
    float Z
)

Public function Virtual

int32

 

Constant4

(
    float X,
    float Y,
    float Z,
    float W
)

Public function Virtual

int32

 

Cosine

(
    int32 X
)

Public function Virtual

int32

 

Cross

(
    int32 A,
    int32 B
)

Public function Virtual

int32

 

CustomExpression

(
    UMaterialExpressionCustom* Cus...,
    TArray< int32 >& CompiledInputs
)

Public function Virtual

int32

 

CustomOutput

(
    UMaterialExpressionCustomOutput...,
    int32 OutputIndex,
    int32 OutputCode
)

Public function Virtual

int32

 

CustomPrimitiveData

(
    int32 OutputIndex,
    EMaterialValueType Type
)

Public function Virtual

int32

 

DDX

(
    int32 X
)

Public function Virtual

int32

 

DDY

(
    int32 X
)

Public function Virtual

int32

 

DecalLifetimeOpacity()

Public function Virtual

int32

 

DeltaTime()

Public function Virtual

int32

 

DepthOfFieldFunction

(
    int32 Depth,
    int32 FunctionValueIndex
)

Public function Virtual

int32

 

DistanceCullFade()

Public function Virtual

int32

 

DistanceFieldGradient

(
    int32 PositionArg
)

Public function Virtual

int32

 

DistanceToNearestSurface

(
    int32 PositionArg
)

Public function Virtual

int32

 

Div

(
    int32 A,
    int32 B
)

Public function Virtual

int32

 

Dot

(
    int32 A,
    int32 B
)

Public function Virtual

int32

 

DynamicParameter

(
    FLinearColor& DefaultValue,
    uint32 ParameterIndex
)

Public function Virtual

int32

 

Error

(
    const TCHAR* Text
)

Public function Virtual

int32

 

ExternalTexture

(
    UTexture* InTexture,
    int32& TextureReferenceIndex
)

Public function Virtual

int32

 

ExternalTexture

(
    const FGuid& ExternalTextureGuid
)

Public function Virtual

int32

 

ExternalTextureCoordinateOffset

(
    int32 TextureReferenceIndex,
    TOptional< FName > ParameterName
)

Public function Virtual

int32

 

ExternalTextureCoordinateOffset

(
    const FGuid& ExternalTextureGuid
)

Public function Virtual

int32

 

ExternalTextureCoordinateScaleRotation

(
    const FGuid& ExternalTextureGuid
)

Public function Virtual

int32

 

ExternalTextureCoordinateScaleRotation

(
    int32 TextureReferenceIndex,
    TOptional< FName > ParameterName
)

Public function Virtual

int32

 

ExternalTextureParameter

(
    FName ParameterName,
    UTexture* DefaultValue,
    int32& TextureReferenceIndex
)

Public function Virtual

int32

 

EyeAdaptation()

Public function Virtual

int32

 

Floor

(
    int32 X
)

Public function Virtual

int32

 

Fmod

(
    int32 A,
    int32 B
)

Public function Virtual

int32

 

ForceCast

(
    int32 Code,
    EMaterialValueType DestType,
    uint32 ForceCastFlags
)

Public function Virtual

int32

 

Frac

(
    int32 X
)

Public function Virtual

int32

 

GameTime

(
    bool bPeriodic,
    float Period
)

Public function Virtual

int32

 

GetCurrentFunctionStackDepth()

Public function Virtual Const

EShaderFrequ...

 

GetCurrentShaderFrequency()

Gets value stored by SetMaterialProperty()

Public function Virtual

ERHIFeatureL...

 

GetFeatureLevel()

Public function Virtual

const FGuid

 

GetMaterialAttribute()

Gets the current top of the MaterialAttributes property stack.

Public function Virtual Const

FMaterialSha...

 

GetMaterialShadingModels()

Public function Virtual Const

EMaterialVal...

 

GetParameterType

(
    int32 Index
)

Public function Virtual Const

FMaterialUni...

 

GetParameterUniformExpression

(
    int32 Index
)

Public function Virtual

int32

 

GetPixelPosition()

Public function Virtual

EMaterialQua...

 

GetQualityLevel()

Public function Virtual

UObject *...

 

GetReferencedTexture

(
    int32 Index
)

Public function Virtual

int32

 

GetSceneTextureViewSize

(
    int32 SceneTextureId,
    bool InvProperty
)

Public function Virtual

EShaderPlatf...

 

GetShaderPlatform()

Public function Virtual

bool

 

GetStaticBoolValue

(
    int32 BoolIndex,
    bool& bSucceeded
)

Public function Virtual Const

const ITarge...

 

GetTargetPlatform()

Public function Virtual Const

bool

 

GetTextureForExpression

(
    int32 Index,
    int32& OutTextureIndex,
    EMaterialSamplerType& OutSamplerTy...,
    TOptional< FName >& OutParameterNa...
)

Public function Virtual

EMaterialVal...

 

GetType

(
    int32 Code
)

Public function Virtual

int32

 

GetViewportUV()

Public function Virtual

int32

 

GIReplace

(
    int32 Direct,
    int32 StaticIndirect,
    int32 DynamicIndirect
)

Public function Virtual

int32

 

If

(
    int32 A,
    int32 B,
    int32 AGreaterThanB,
    int32 AEqualsB,
    int32 ALessThanB,
    int32 Threshold
)

Public function Virtual Const

bool

 

IsDevelopmentFeatureEnabled

(
    const FName& FeatureName
)

Public function Virtual

int32

 

Length

(
    int32 X
)

Public function Virtual

int32

 

Lerp

(
    int32 X,
    int32 Y,
    int32 A
)

Public function Virtual

int32

 

LightmapUVs()

Public function Virtual

int32

 

LightmassReplace

(
    int32 Realtime,
    int32 Lightmass
)

Public function Virtual

int32

 

LightVector()

Public function Virtual

int32

 

Logarithm10

(
    int32 X
)

Public function Virtual

int32

 

Logarithm2

(
    int32 X
)

Public function Virtual

int32

 

MapARPassthroughCameraUV

(
    int32 UV
)

Public function Virtual

int32

 

MaterialProxyReplace

(
    int32 Realtime,
    int32 MaterialProxy
)

Public function Virtual

int32

 

Max

(
    int32 A,
    int32 B
)

Public function Virtual

int32

 

Min

(
    int32 A,
    int32 B
)

Public function Virtual

int32

 

Mul

(
    int32 A,
    int32 B
)

Public function Virtual

int32

 

Noise

(
    int32 Position,
    float Scale,
    int32 Quality,
    uint8 NoiseFunction,
    bool bTurbulence,
    int32 Levels,
    float OutputMin,
    float OutputMax,
    float LevelScale,
    int32 FilterWidth,
    bool bTiling,
    uint32 TileSize
)

Public function Virtual

int32

 

ObjectBounds()

Public function Virtual

int32

 

ObjectOrientation()

Public function Virtual

int32

 

ObjectRadius()

Public function Virtual

int32

 

ObjectWorldPosition()

Public function Virtual

int32

 

ParticleColor()

Public function Virtual

int32

 

ParticleMacroUV()

Public function Virtual

int32

 

ParticlePosition()

Public function Virtual

int32

 

ParticleRadius()

Public function Virtual

int32

 

ParticleSubUV

(
    int32 TextureIndex,
    EMaterialSamplerType SamplerType,
    bool bBlend
)

Public function Virtual

int32

 

PerInstanceFadeAmount()

Public function Virtual

int32

 

PerInstanceRandom()

Public function Virtual

int32

 

PeriodicHint

(
    int32 PeriodicCode
)

Public function Virtual

int32

 

PixelDepth()

Public function Virtual

int32

 

PixelNormalWS()

Public function Virtual

FMaterialFun...

 

PopFunction()

Pops a function from the compiler's function stack, which indicates that compilation is leaving a function.

Public function Virtual

FGuid

 

PopMaterialAttribute()

Pops a MaterialAttributes property off the stack.

Public function Virtual

FMaterialPar...

 

PopParameterOwner()

Pops a parameter owner off the stack.

Public function Virtual

int32

 

Power

(
    int32 Base,
    int32 Exponent
)

Public function Virtual

int32

 

PrecomputedAOMask()

Public function Virtual

int32

 

PreSkinnedLocalBounds

(
    int32 OutputIndex
)

Public function Virtual

int32

 

PreSkinnedNormal()

Public function Virtual

int32

 

PreSkinnedPosition()

Public function Virtual

void

 

PushFunction

Pushes a function onto the compiler's function stack, which indicates that compilation is entering a function.

Public function Virtual

void

 

PushMaterialAttribute

(
    const FGuid& InAttributeID
)

Pushes a material attributes property onto the stack.

Public function Virtual

void

 

PushParameterOwner

(
    const FMaterialParameterInfo& InOw...
)

Pushes a parameter owner onto the stack.

Public function Virtual

int32

 

RayTracingQualitySwitchReplace

(
    int32 Normal,
    int32 RayTraced
)

Public function Virtual

int32

 

RealTime

(
    bool bPeriodic,
    float Period
)

Public function Virtual

int32

 

ReflectionVector()

Public function Virtual

int32

 

RotateAboutAxis

(
    int32 NormalizedRotationAxisAndAngl...,
    int32 PositionOnAxisIndex,
    int32 PositionIndex
)

Public function Virtual

int32

 

RotateScaleOffsetTexCoords

(
    int32 TexCoordCodeIndex,
    int32 RotationScale,
    int32 Offset
)

Public function Virtual

int32

 

Round

(
    int32 X
)

Public function Virtual

int32

 

Saturate

(
    int32 X
)

Public function Virtual

int32

 

ScalarParameter

(
    FName ParameterName,
    float DefaultValue
)

Public function Virtual

int32

 

SceneColor

(
    int32 Offset,
    int32 ViewportUV,
    bool bUseOffset
)

Public function Virtual

int32

 

SceneDepth

(
    int32 Offset,
    int32 ViewportUV,
    bool bUseOffset
)

Public function Virtual

int32

 

SceneTextureLookup

(
    int32 ViewportUV,
    uint32 SceneTextureId,
    bool bFiltered
)

Public function Virtual

void

 

SetBaseMaterialAttribute

(
    const FGuid& InAttributeID
)

Sets the bottom MaterialAttributes property of the stack.

Public function Virtual

void

 

SetMaterialProperty

(
    EMaterialProperty InProperty,
    EShaderFrequency OverrideShaderFreq...,
    bool bUsePreviousFrameTime
)

Sets internal state CurrentShaderFrequency

Public function Virtual

int32

 

ShadingModel

(
    EMaterialShadingModel InSelectedSha...
)

Public function Virtual

int32

 

ShadowReplace

(
    int32 Default,
    int32 Shadow
)

Public function Virtual

int32

 

Sign

(
    int32 X
)

Public function Virtual

int32

 

Sine

(
    int32 X
)

Public function Virtual

int32

 

Sobol

(
    int32 Cell,
    int32 Index,
    int32 Seed
)

Public function Virtual

int32

 

SpeedTree

(
    int32 GeometryArg,
    int32 WindArg,
    int32 LODArg,
    float BillboardThreshold,
    bool bAccurateWindVelocities,
    bool bExtraBend,
    int32 ExtraBendArg
)

Public function Virtual

int32

 

SphericalParticleOpacity

(
    int32 Density
)

Public function Virtual

int32

 

SquareRoot

(
    int32 X
)

Public function Virtual

int32

 

StaticBool

(
    bool Value
)

Public function Virtual

int32

 

StaticBoolParameter

(
    FName ParameterName,
    bool bDefaultValue
)

Public function Virtual

int32

 

StaticComponentMask

(
    int32 Vector,
    FName ParameterName,
    bool bDefaultR,
    bool bDefaultG,
    bool bDefaultB,
    bool bDefaultA
)

Public function Virtual

const FMater...

 

StaticMaterialLayersParameter

(
    FName ParameterName
)

Public function Virtual

int32

 

StaticTerrainLayerWeight

(
    FName ParameterName,
    int32 Default
)

Public function Virtual

int32

 

Sub

(
    int32 A,
    int32 B
)

Public function Virtual

int32

 

Tangent

(
    int32 X
)

Public function Virtual

int32

 

TemporalSobol

(
    int32 Index,
    int32 Seed
)

Public function Virtual

int32

 

Texture

(
    UTexture* InTexture,
    int32& TextureReferenceIndex,
    EMaterialSamplerType SamplerType,
    ESamplerSourceMode SamplerSource,
    ETextureMipValueMode MipValueMode
)

Public function Virtual

int32

 

TextureCoordinate

(
    uint32 CoordinateIndex,
    bool UnMirrorU,
    bool UnMirrorV
)

Public function Virtual

int32

 

TextureCoordinateOffset()

Public function Virtual

int32

 

TextureDecalDerivative

(
    bool bDDY
)

Public function Virtual

int32

 

TextureDecalMipmapLevel

(
    int32 TextureSizeInput
)

Public function Virtual

int32

 

TextureParameter

(
    FName ParameterName,
    UTexture* DefaultValue,
    int32& TextureReferenceIndex,
    EMaterialSamplerType SamplerType,
    ESamplerSourceMode SamplerSource
)

Public function Virtual

int32

 

TextureProperty

(
    int32 InTexture,
    EMaterialExposedTextureProperty Pro...
)

Public function Virtual

int32

 

TextureSample

(
    int32 InTexture,
    int32 Coordinate,
    enum EMaterialSamplerType SamplerTy...,
    int32 MipValue0Index,
    int32 MipValue1Index,
    ETextureMipValueMode MipValueMode,
    ESamplerSourceMode SamplerSource,
    int32 TextureReferenceIndex,
    bool AutomaticViewMipBias
)

Public function Virtual

int32

 

TransformPosition

(
    EMaterialCommonBasis SourceCoordBas...,
    EMaterialCommonBasis DestCoordBasis,
    int32 A
)

Public function Virtual

int32

 

TransformVector

(
    EMaterialCommonBasis SourceCoordBas...,
    EMaterialCommonBasis DestCoordBasis,
    int32 A
)

Public function Virtual

int32

 

Truncate

(
    int32 X
)

Public function Virtual

int32

 

TwoSidedSign()

Public function Virtual

int32

 

ValidCast

(
    int32 Code,
    EMaterialValueType DestType
)

Casts the passed in code to DestType, or generates a compile error if the cast is not valid.

Public function Virtual

int32

 

VectorNoise

(
    int32 Position,
    int32 Quality,
    uint8 NoiseFunction,
    bool bTiling,
    uint32 TileSize
)

Public function Virtual

int32

 

VectorParameter

(
    FName ParameterName,
    const FLinearColor& DefaultValue
)

Public function Virtual

int32

 

VertexColor()

Public function Virtual

int32

 

VertexNormal()

Public function Virtual

int32

 

ViewProperty

(
    EMaterialExposedViewProperty Proper...,
    bool InvProperty
)

Public function Virtual

int32

 

VirtualTexture

(
    URuntimeVirtualTexture* InText...,
    int32 LayerIndex,
    int32& TextureReferenceIndex,
    EMaterialSamplerType SamplerType
)

Public function Virtual

int32

 

VirtualTextureOutput()

Public function Virtual

int32

 

VirtualTextureOutputReplace

(
    int32 Default,
    int32 VirtualTexture
)

Public function Virtual

int32

 

VirtualTextureParam

(
    int32 TextureIndex,
    int32 ParamIndex
)

Public function Virtual

int32

 

VirtualTextureUnpack

(
    int32 CodeIndex,
    EVirtualTextureUnpackType UnpackTyp...
)

Public function Virtual

int32

 

VirtualTextureWorldToUV

(
    int32 WorldPositionIndex,
    int32 P0,
    int32 P1,
    int32 P2
)

Public function Virtual

int32

 

WorldPosition

(
    EWorldPositionIncludedOffsets World...
)

Select Skin
Light
Dark

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