Open Search
    InstructionData Struct Reference

    #include <materialparameter.h>

    Detailed Description

    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
     

    Constructor & Destructor Documentation

    ◆ InstructionData() [1/2]

    InstructionData ( )
    default

    ◆ InstructionData() [2/2]

    InstructionData ( const Id id,
    Data &&  value,
    Bool  isForTexture 
    )
    explicit

    Member Function Documentation

    ◆ CopyFrom()

    Result<void> CopyFrom ( const InstructionData src)

    ◆ IsEqual()

    Bool IsEqual ( const InstructionData other,
    EQUALITY  equality = EQUALITY::DEEP 
    ) const

    ◆ GetHashCode()

    HashInt GetHashCode ( ) const

    Member Data Documentation

    ◆ _id

    Id _id

    Modifier type (one of MATERIAL::INSTRUCTIONS::[MODIFIER_ID])

    ◆ _value

    Data _value

    Payload value. Must be InstructionGraph (not implemented) if _id == MATERIAL::INSTRUCTIONS::GRAPHMODIFIER.

    ◆ _isForTexture

    Bool _isForTexture

    Is making effect for scalar values or for textures.