Represents the layout of an mi::neuraylib::ITarget_argument_block with support for nested elements. More...
Public Member Functions | |
virtual Size | get_size () const =0 |
Returns the size of the target argument block. More... | |
virtual Size | get_num_elements (Target_value_layout_state state=Target_value_layout_state()) const =0 |
Get the number of arguments / elements at the given layout state. More... | |
virtual Size | get_layout (IValue::Kind &kind, Size &arg_size, Target_value_layout_state state=Target_value_layout_state()) const =0 |
Get the offset, the size and the kind of the argument / element inside the argument block at the given layout state. More... | |
virtual Target_value_layout_state | get_nested_state (Size i, Target_value_layout_state state=Target_value_layout_state()) const =0 |
Get the layout state for the i'th argument / element inside the argument value block at the given layout state. More... | |
virtual Sint32 | set_value (char *block, IValue const *value, ITarget_resource_callback *resource_callback, Target_value_layout_state state=Target_value_layout_state()) const =0 |
Set the value inside the given block at the given layout state. More... | |
Additional Inherited Members | |
![]() | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, IInterface > | Self |
Own type. More... | |
typedef Uuid_t< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11 > | IID |
Declares the interface ID (IID) of this interface. More... | |
![]() | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... | |
Represents the layout of an mi::neuraylib::ITarget_argument_block with support for nested elements.
The structure of the layout corresponds to the structure of the arguments of the compiled material not of the original material. Especially note, that the i'th argument of a compiled material does not in general correspond to the i'th argument of the original material.
See Instance-compilation and class-compilation for more details.
|
pure virtual |
Get the offset, the size and the kind of the argument / element inside the argument block at the given layout state.
[out] | kind | Receives the kind of the argument. |
[out] | arg_size | Receives the size of the argument. |
state | The layout state representing the current nesting within the argument value block. The default value is used for the top-level. |
"~mi::Size(0)"
if the state is invalid.
|
pure virtual |
Get the layout state for the i'th argument / element inside the argument value block at the given layout state.
i | The index of the argument / element. |
state | The layout state representing the current nesting within the argument value block. The default value is used for the top-level. |
"~mi::Uint32(0)"
as m_state_offs if the element is atomic.
|
pure virtual |
Get the number of arguments / elements at the given layout state.
state | The layout state representing the current nesting within the argument value block. The default value is used for the top-level. |
|
pure virtual |
Returns the size of the target argument block.
|
pure virtual |
Set the value inside the given block at the given layout state.
[in,out] | block | The argument value block buffer to be modified. |
[in] | value | The value to be set. It has to match the expected kind. |
[in] | resource_callback | Callback for retrieving resource indices for resource values. |
[in] | state | The layout state representing the current nesting within the argument value block. The default value is used for the top-level. |
NULL
pointer.