#include <materialparameter.h>
An atomic modification instruction that controls the material creation process. The definition space is abstracted away from material creator implementation, meaning that each material importer uses its own means to achieve the modified result. One should consider instructions as an auxiliary (and hence not mandatory) source of information that improves the quality the of created materials.
Public Member Functions | |
InstructionData ()=default | |
InstructionData (const Id &id, Data &&value, Bool isForTexture) | |
Result< void > | CopyFrom (const InstructionData &src) |
Bool | IsEqual (const InstructionData &other, EQUALITY equality=EQUALITY::DEEP) const |
HashInt | GetHashCode () const |
Public Attributes | |
Id | _id |
Data | _value |
Bool | _isForTexture |
|
default |
|
explicit |
Result<void> CopyFrom | ( | const InstructionData & | src | ) |
Bool IsEqual | ( | const InstructionData & | other, |
EQUALITY | equality = EQUALITY::DEEP |
||
) | const |
HashInt GetHashCode | ( | ) | const |
Id _id |
Modifier type (one of MATERIAL::INSTRUCTIONS::[MODIFIER_ID])
Data _value |
Payload value. Must be InstructionGraph (not implemented) if _id == MATERIAL::INSTRUCTIONS::GRAPHMODIFIER.
Bool _isForTexture |
Is making effect for scalar values or for textures.