PackedMaterialParameter Struct Reference

#include <nodematerialexchange.h>

Detailed Description

Defines a type-agnostic material parameter that is used to opaquely pass data along the MaterialExchangeInterface with DataDictionary objects. This class only holds a single value and no texture, but it may indicate the need for a texture representation.

Public Member Functions

 PackedMaterialParameter ()=default
 PackedMaterialParameter (Data &&value, Bool isConstant, UInt dynamicTimestamp)
Result< void > CopyFrom (const PackedMaterialParameter &src)

Public Attributes

Data _value
Bool _isConstant
UInt _dynamicTimestamp

Constructor & Destructor Documentation

◆ PackedMaterialParameter() [1/2]

Default constructor. Creates an empty parameter.

◆ PackedMaterialParameter() [2/2]

PackedMaterialParameter ( Data &&  value,
Bool  isConstant,
UInt  dynamicTimestamp 

Constructor a parameter with the opaque provided data.

Member Function Documentation

◆ CopyFrom()

Result<void> CopyFrom ( const PackedMaterialParameter src)

Member Data Documentation

◆ _value

Data _value

◆ _isConstant

Bool _isConstant

◆ _dynamicTimestamp

UInt _dynamicTimestamp