28 return socket->is_available() &&
StringRef(socket->
idname) !=
"NodeSocketVirtual";
33 if (!input.is_logically_linked()) {
36 return input.logically_linked_sockets()[0];
40 const std::optional<int> dimensions)
50 switch (dimensions.value_or(3)) {
62 switch (dimensions.value_or(2)) {
156 return node.typeinfo->build_multi_function;
162 switch (node_default_input_type) {
190 return input->index();
208 return input_descriptor;
213 nodes::StructureType::Single;
218 return input_descriptor;
226 input_descriptor.
domain_priority = node_group.interface_input_index(socket);
232 return input_descriptor;
#define BLI_assert_unreachable()
bool skip_updating_sockets
Vector< SocketDeclaration * > inputs
int compositor_domain_priority() const
StructureType structure_type
const CompositorInputRealizationMode & compositor_realization_mode() const
NodeDefaultInputType default_input_type
bNodeSocketType NodeSocketTypeUndefined
ResultType socket_data_type_to_result_type(const eNodeSocketDatatype data_type, const std::optional< int > dimensions=std::nullopt)
void compute_dispatch_threads_at_least(gpu::Shader *shader, int2 threads_range, int2 local_size=int2(16))
const bNodeSocket * find_preview_output_socket(const bNode &node)
@ UniformImageCoordinates
bool is_node_preview_needed(const bNode &node)
ResultType get_node_interface_socket_result_type(const bNodeTreeInterfaceSocket &socket)
const bNodeSocket * get_output_linked_to_input(const bNodeSocket &input)
static std::optional< ImplicitInputType > get_implicit_input(const NodeDefaultInputType node_default_input_type)
bool is_output_linked_to_input_conditioned(const bNodeSocket &output, FunctionRef< bool(const bNodeSocket &)> condition)
static int get_domain_priority(const bNodeSocket *input, const nodes::SocketDeclaration *socket_declaration)
InputDescriptor input_descriptor_from_interface_input(const bNodeTree &node_group, const bNodeTreeInterfaceSocket &socket)
ResultType get_node_socket_result_type(const bNodeSocket *socket)
bool is_pixel_node(const bNode &node)
InputDescriptor input_descriptor_from_input_socket(const bNodeSocket *socket)
bool is_socket_available(const bNodeSocket *socket)
VecBase< T, Size > divide_ceil(const VecBase< T, Size > &a, const VecBase< T, Size > &b)
void GPU_compute_dispatch(gpu::Shader *shader, uint groups_x_len, uint groups_y_len, uint groups_z_len, const gpu::shader::SpecializationConstants *constants_state=nullptr)
@ NODE_DEFAULT_INPUT_ID_INDEX_FIELD
@ NODE_DEFAULT_INPUT_HANDLE_RIGHT_FIELD
@ NODE_DEFAULT_INPUT_SCENE_FRAME
@ NODE_DEFAULT_INPUT_SELF_OBJECT
@ NODE_DEFAULT_INPUT_POSITION_FIELD
@ NODE_DEFAULT_INPUT_HANDLE_LEFT_FIELD
@ NODE_DEFAULT_INPUT_INDEX_FIELD
@ NODE_DEFAULT_INPUT_INSTANCE_TRANSFORM_FIELD
@ NODE_DEFAULT_INPUT_UNIFORM_IMAGE_COORDINATES
@ NODE_DEFAULT_INPUT_NORMAL_FIELD
@ NODE_DEFAULT_INPUT_VALUE
bke::bNodeSocketType * typeinfo
NodeSocketInterfaceStructureType structure_type
NodeDefaultInputType default_input