EMaterialValueType

The types which can be used by materials.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

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

Include

#include "MaterialShared.h"

Syntax

enum EMaterialValueType
{
    MCT_Float1                = 1,
    MCT_Float2                = 2,
    MCT_Float3                = 4,
    MCT_Float4                = 8,
    MCT_Float                 = 8|4|2|1,
    MCT_Texture2D             = 1 << 4,
    MCT_TextureCube           = 1 << 5,
    MCT_Texture2DArray        = 1 << 6,
    MCT_TextureCubeArray      = 1 << 7,
    MCT_VolumeTexture         = 1 << 8,
    MCT_StaticBool            = 1 << 9,
    MCT_Unknown               = 1 << 10,
    MCT_MaterialAttributes    = 1 << 11,
    MCT_TextureExternal       = 1 << 12,
    MCT_TextureVirtual        = 1 << 13,
    MCT_Texture               = MCT_Texture2D | MCT_TextureCube | MCT_Texture2DArray | MCT_TextureCubeArray | MCT_VolumeTexture | MCT_TextureExternal | MCT_TextureVirtual,
    MCT_VTPageTableResult     = 1 << 14,
    MCT_ShadingModel          = 1 << 15,
    MCT_Strata                = 1 << 16,
    MCT_LWCScalar             = 1 << 17,
    MCT_LWCVector2            = 1 << 18,
    MCT_LWCVector3            = 1 << 19,
    MCT_LWCVector4            = 1 << 20,
    MCT_LWCType               = MCT_LWCScalar | MCT_LWCVector2 | MCT_LWCVector3 | MCT_LWCVector4,
    MCT_Execution             = 1 << 21,
    MCT_VoidStatement         = 1 << 22,
}

Values

Name

Description

MCT_Float1

A scalar float type.

MCT_Float2

MCT_Float3

MCT_Float4

MCT_Float

Any size float type by definition, but this is treated as a scalar which can auto convert (by replication) to any other size float vector.

MCT_Texture2D

MCT_TextureCube

MCT_Texture2DArray

MCT_TextureCubeArray

MCT_VolumeTexture

MCT_StaticBool

MCT_Unknown

MCT_MaterialAttributes

MCT_TextureExternal

MCT_TextureVirtual

MCT_Texture

MCT_VTPageTableResult

Used internally when sampling from virtual textures

MCT_ShadingModel

MCT_Strata

MCT_LWCScalar

MCT_LWCVector2

MCT_LWCVector3

MCT_LWCVector4

MCT_LWCType

MCT_Execution

MCT_VoidStatement

Used for code chunks that are statements with no value, rather than expressions

Remarks

The types which can be used by materials.