Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include | #include "MaterialShared.h" |
Syntax
class FMaterialVirtualTextureStack
Constructors
| Type | Name | Description | |
|---|---|---|---|
FMaterialVirtualTextureStack
(
int32 InPreallocatedStackTextureIndex |
Construct with a texture index when this references a preallocated VT stack (for example when we are using a URuntimeVirtualTexture). |
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint32 | AddLayer () |
Add space for a layer in the stack. | |
| bool | Returns true if we have allocated the maximum number of layers for this stack. | ||
| int32 | Find the layer in the stack that was set with this expression index. | ||
| uint32 | GetNumLayers () |
Get the number of layers allocated in the stack. | |
| void | GetTextureValue
(
const FMaterialRenderContext& Context, |
Get the URuntimeVirtualTexture object if one was used to initialize this stack. | |
| void | GetTextureValue
(
const FMaterialRenderContext& Context, |
Get the USparseVolumeTexture object if one was used to initialize this stack. | |
| void | GetTextureValues
(
const FMaterialRenderContext& Context, |
Get the array of UTexture objects for the expressions that in the layers of this stack. | |
| bool | Returns true if this is a stack that with a preallocated layout of layers (for example when we are using a URuntimeVirtualTexture). | ||
LAYOUT_ARRAY
(
int32, |
Indices of the expressions that were set to layers in this stack. | ||
LAYOUT_FIELD
(
uint32, |
Number of layers that have been allocated in this stack. | ||
LAYOUT_FIELD
(
int32, |
Index of a texture reference if we create a stack from a single known texture that has it's own layer stack. | ||
| void | |||
| uint32 | Set an expression index at a layer in the stack. |