Blender V5.0
blender::fn::lazy_function::InputState Struct Reference

Public Attributes

void * value = nullptr
ValueUsage usage = ValueUsage::Maybe
bool was_ready_for_execution = false

Detailed Description

Definition at line 80 of file lazy_function_graph_executor.cc.

Member Data Documentation

◆ usage

ValueUsage blender::fn::lazy_function::InputState::usage = ValueUsage::Maybe

How the node intends to use this input. By default, all inputs may be used. Based on which outputs are used, a node can decide that an input will definitely be used or is never used. This allows freeing values early and avoids unnecessary computations.

Definition at line 94 of file lazy_function_graph_executor.cc.

◆ value

void* blender::fn::lazy_function::InputState::value = nullptr

Value of this input socket. By default, the value is empty. When other nodes are done computing their outputs, the computed values will be forwarded to linked input sockets. The value will then live here until it is found that it is not needed anymore.

If was_ready_for_execution is true, access does not require holding the node lock.

Definition at line 88 of file lazy_function_graph_executor.cc.

◆ was_ready_for_execution

bool blender::fn::lazy_function::InputState::was_ready_for_execution = false

Set to true once value is set and will stay true afterwards. Access during execution of a node, does not require holding the node lock.

Definition at line 99 of file lazy_function_graph_executor.cc.


The documentation for this struct was generated from the following file: