Navigation
Unreal Engine C++ API Reference > Runtime > Engine
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Public/MaterialValueType.h |
Include | #include "MaterialValueType.h" |
Syntax
enum EMaterialValueType
{
MCT_Float1 = 1 << 0,
MCT_Float2 = 1 << 1,
MCT_Float3 = 1 << 2,
MCT_Float4 = 1 << 3,
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_SparseVolumeTexture = 1 << 14,
MCT_VTPageTableResult = 1 << 15,
MCT_ShadingModel = 1 << 16,
MCT_Substrate = 1 << 17,
MCT_LWCScalar = 1 << 18,
MCT_LWCVector2 = 1 << 19,
MCT_LWCVector3 = 1 << 20,
MCT_LWCVector4 = 1 << 21,
MCT_Execution = 1 << 22,
MCT_VoidStatement = 1 << 23,
MCT_Bool = 1 << 24,
MCT_UInt1 = 1 << 25,
MCT_UInt2 = 1 << 26,
MCT_UInt3 = 1 << 27,
MCT_UInt4 = 1 << 28,
MCT_TextureCollection = 1 << 29,
MCT_TextureMeshPaint = 1 << 30,
MCT_Texture = MCT_Texture2D | MCT_TextureCube | MCT_Texture2DArray | MCT_TextureCubeArray | MCT_VolumeTexture | MCT_TextureExternal | MCT_TextureVirtual,
MCT_Float = MCT_Float1 | MCT_Float2 | MCT_Float3 | MCT_Float4,
MCT_UInt = MCT_UInt1 | MCT_UInt2 | MCT_UInt3 | MCT_UInt4,
MCT_LWCType = MCT_LWCScalar | MCT_LWCVector2 | MCT_LWCVector3 | MCT_LWCVector4,
MCT_Numeric = MCT_Float | MCT_LWCType | MCT_Bool,
}
Values
Name | Description |
---|---|
MCT_Float1 | A scalar float type. |
MCT_Float2 | |
MCT_Float3 | |
MCT_Float4 | |
MCT_Texture2D | 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_TextureCube | |
MCT_Texture2DArray | |
MCT_TextureCubeArray | |
MCT_VolumeTexture | |
MCT_StaticBool | |
MCT_Unknown | |
MCT_MaterialAttributes | |
MCT_TextureExternal | |
MCT_TextureVirtual | |
MCT_SparseVolumeTexture | |
MCT_VTPageTableResult | Used internally when sampling from virtual textures |
MCT_ShadingModel | |
MCT_Substrate | |
MCT_LWCScalar | |
MCT_LWCVector2 | |
MCT_LWCVector3 | |
MCT_LWCVector4 | |
MCT_Execution | |
MCT_VoidStatement | Used for code chunks that are statements with no value, rather than expressions |
MCT_Bool | Non-static bool, only used in new HLSL translator |
MCT_UInt1 | Unsigned int types |
MCT_UInt2 | |
MCT_UInt3 | |
MCT_UInt4 | |
MCT_TextureCollection | |
MCT_TextureMeshPaint | |
MCT_Texture | MCT_SparseVolumeTexture is intentionally not (yet) included here because it differs a lot from the other texture types and may not be supported/appropriate for all MCT_Texture use cases. |
MCT_Float | |
MCT_UInt | |
MCT_LWCType | |
MCT_Numeric |
Remarks
The types which can be used by materials.