MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ needs_cluster_id()

bool MayaFlux::Nodes::Network::GpuFieldOperator::needs_cluster_id ( ) const

Whether build_spec() needs a per-vertex cluster id this cycle.

Returns
True only if at least one current binding was given a cluster argument. False for every operator that has never called a cluster-scoped bind() overload – the ordinary case – in which build_spec() emits exactly the shader it always has, with no cluster_id binding, no extra SSBO read, and no extra branch anywhere in the kernel. VertexFieldProcessor checks this to decide whether it needs to resolve and bind a hash_cluster_id state field at all.

Definition at line 441 of file GpuFieldOperator.cpp.

442{
443 return std::ranges::any_of(m_bindings,
444 [](const Binding& b) { return b.cluster.has_value(); });
445}
size_t b

References b, and m_bindings.

Referenced by build_spec().

+ Here is the caller graph for this function: