TypedConstantParameter< TYPE > Struct Template Reference

#include <materialparameter.h>

Detailed Description

template<typename TYPE>
struct maxon::material::TypedConstantParameter< TYPE >

Defines a material parameter that is used to communicated via the ParameterStorageInterface. This class only holds a single value and no texture, but it may indicate the need for a texture representation.

Public Member Functions

 TypedConstantParameter ()=default
 
 TypedConstantParameter (TYPE &&value, Bool isConstant, UInt dynamicTimestamp, const InternedId &id)
 

Public Attributes

TYPE _value
 
Bool _isConstant
 
UInt _dynamicTimestamp
 
InternedId _id
 

Constructor & Destructor Documentation

◆ TypedConstantParameter() [1/2]

Default constructor. Creates an empty parameter.

◆ TypedConstantParameter() [2/2]

TypedConstantParameter ( TYPE &&  value,
Bool  isConstant,
UInt  dynamicTimestamp,
const InternedId id 
)

Constructor a parameter with the provided typed data.

Member Data Documentation

◆ _value

TYPE _value

◆ _isConstant

Bool _isConstant

◆ _dynamicTimestamp

UInt _dynamicTimestamp

◆ _id