Navigation
API > API/Runtime > API/Runtime/Engine
Represents the evaluation of a material parameter directly to a word offset in the preshader uniform buffer. A UniformParameterEvaluation avoids the overhead of executing an entire preshader when all it does is evaluate a parameter with a single instruction, and is also used to efficiently preload parameters.
Note that during material translation, BufferOffset may contain a unique "register" index, which is later fixed up to the buffer offset by a call to FixupNumericParameterEvaluations.
| Name | FMaterialUniformParameterEvaluation |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/MaterialShared.h |
| Include Path | #include "MaterialShared.h" |
Syntax
class FMaterialUniformParameterEvaluation
Typedefs
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| InternalBaseType | typename TGetBaseTypeHelper< FMaterialUniformParameterEvaluation >::Type | MaterialShared.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| uint16BufferOffset | Index of the parameter for UniformExpressionSet::GetNumericParameter() | MaterialShared.h | ||
| uint16ComponentCount | Offset in words where result will be written. | MaterialShared.h | ||
| uint16ParameterIndex | MaterialShared.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
INTERNAL_DECLARE_TYPE_LAYOUT_COMMON
(
FMaterialUniformParameterEvaluation |
MaterialShared.h | ||
INTERNAL_LAYOUT_INTERFACE_PREFIX_NonVirtual() |
MaterialShared.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void InternalDestroy
(
void* Object, |
MaterialShared.h | ||
static void InternalInitializeBases
(
FTypeLayoutDesc& TypeDesc |
MaterialShared.h | ||
static FTypeLayoutDesc & StaticGetTypeLayout() |
MaterialShared.h |