FMaterialVirtualTextureStack

Windows
MacOS
Linux

References

Module

Engine

Header

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

Include

#include "MaterialShared.h"

Syntax

class FMaterialVirtualTextureStack

Variables

Name Description

Public variable

int32 [8]

 

LayerUniformExpressionIndices

Indices of the expressions that were set to layers in this stack.

Public variable

uint32

 

NumLayers

Number of layers that have been allocated in this stack.

Public variable

int32

 

PreallocatedStackTextureIndex

Index of a texture reference if we create a stack from a single known texture that has it's own layer stack.

Constructors

Name Description

Public function

FMaterialVirtualTextureStack()

Public function

FMaterialVirtualTextureStack

(
    int32 InPreallocatedStackTextureInd...
)

Construct with a texture index when this references a preallocated VT stack (for example when we are using a URuntimeVirtualTexture ).

Functions

Name Description

Public function

uint32

 

AddLayer()

Add space for a layer in the stack.

Public function Const

bool

 

AreLayersFull()

Returns true if we have allocated the maximum number of layers for this stack.

Public function Const

int32

 

FindLayer

(
    int32 UniformExpressionIndex
)

Find the layer in the stack that was set with this expression index.

Public function Const

uint32

 

GetNumLayers()

Get the number of layers allocated in the stack.

Public function Const

void

 

GetTextureValue

(
    const FMaterialRenderContext & Cont...,
    const FUniformExpressionSet & Unifo...,
    const URuntimeVirtualTexture *&...
)

Get the URuntimeVirtualTexture object if one was used to initialize this stack.

Public function Const

void

 

GetTextureValues

(
    const FMaterialRenderContext & Cont...,
    const FUniformExpressionSet & Unifo...,
    UTexture2D const** OutValu...
)

Get the array of UTexture2D objects for the expressions that in the layers of this stack.

Public function Const

const FTypeL ...

 

GetTypeLayout()

Public function Const

bool

 

IsPreallocatedStack()

Returns true if this is a stack that with a preallocated layout of layers (for example when we are using a URuntimeVirtualTexture ).

Public function

void

 

Serialize

(
    FArchive & Ar
)

Public function

uint32

 

SetLayer

(
    int32 LayerIndex,
    int32 UniformExpressionIndex
)

Set an expression index at a layer in the stack.

Public function Static

FTypeLayoutD ...

 

StaticGetTypeLayout()

Classes

Typedefs

Name

Description

DerivedType

InternalBaseType

Constants

Name

Description

CounterBase

InterfaceType

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