PackedConstantParameter Struct Reference

#include <materialparameter.h>

Detailed Description

Defines a type-agnostic material parameter that is used to opaquely pass data along the ParameterStorageInterface 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

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

Public Attributes

Data _value
Bool _isConstant
UInt _dynamicTimestamp

Constructor & Destructor Documentation

◆ PackedConstantParameter() [1/2]

Default constructor. Creates an empty parameter.

◆ PackedConstantParameter() [2/2]

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

Constructor a parameter with the opaque provided data.

Member Function Documentation

◆ CopyFrom()

Result<void> CopyFrom ( const PackedConstantParameter src)

Member Data Documentation

◆ _value

Data _value

◆ _isConstant

Bool _isConstant

◆ _dynamicTimestamp

UInt _dynamicTimestamp