FMaterialCompilationOutput

Stores outputs from the material compile that need to be saved.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/MaterialShared.h

Include

#include "MaterialShared.h"

Syntax

class FMaterialCompilationOutput

Remarks

Stores outputs from the material compile that need to be saved.

Variables

Name Description

Public variable

uint8: 1

 

bHasRuntimeVirtualTextureOutput

True if the material supports virtual texture output

Public variable

uint8: 1

 

bModifiesMeshPosition

True if the material modifies the the mesh position.

Public variable

uint8: 1

 

bNeedsSceneTextures

True if the material needs the scenetexture lookups.

Public variable

uint8: 1

 

bUsesDistanceCullFade

True if the material uses distance cull fade

Public variable

uint8: 1

 

bUsesEyeAdaptation

True if the material uses the EyeAdaptationLookup

Public variable

uint8: 1

 

bUsesGlobalDistanceField

True if material uses the global distance field

Public variable

uint8: 1

 

bUsesPixelDepthOffset

True if the material writes a pixel depth offset

Public variable

uint8: 1

 

bUsesWorldPositionOffset

Whether the material uses world position offset.

Public variable

uint16

 

EstimatedNumTextureSamplesPS

Public variable

uint16

 

EstimatedNumTextureSamplesVS

Number of times SampleTexture is called, excludes custom nodes.

Public variable

uint16

 

EstimatedNumVirtualTextureLookups

Number of virtual texture lookups performed, excludes direct invocation in shaders (for example VT lightmaps)

Public variable

uint8

 

NumUsedCustomInterpolatorScalars

Number of used custom vertex interpolation scalars.

Public variable

uint8

 

NumUsedUVScalars

Number of used custom UV scalars.

Public variable

FUniformExpress...

 

UniformExpressionSet

Public variable

uint32

 

UsedSceneTextures

Bitfield of the ESceneTextures used

Constructors

Name Description

Public function

FMaterialCompilationOutput()

Functions

Name Description

Public function Const

bool

 

IsSceneTextureUsed

(
    ESceneTextureId TexId
)

Public function Const

bool

 

NeedsGBuffer()

True if the material uses any GBuffer textures

Public function Const

bool

 

RequiresSceneColorCopy()

Indicates whether the material uses scene color.

Public function

void

 

Serialize

(
    FArchive& Ar
)

Public function

void

 

SetIsSceneTextureUsed

(
    ESceneTextureId TexId
)

Public function Const

bool

 

UsesSceneDepthLookup()

True if the material uses the SceneDepth lookup

Public function Const

bool

 

UsesVelocitySceneTexture()

True if the material uses the Velocity SceneTexture lookup

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