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

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss