VTK-m
2.2
|
The ExecutionSignature
tag to use to get the visit index.
More...
#include <WorkletReduceByKey.h>
Additional Inherited Members | |
Public Types inherited from vtkm::exec::arg::VisitIndex | |
using | AspectTag = vtkm::exec::arg::AspectTagVisitIndex |
Static Public Attributes inherited from vtkm::exec::arg::VisitIndex | |
static constexpr vtkm::IdComponent | INDEX = 1 |
The ExecutionSignature
tag to use to get the visit index.
This tag produces a vtkm::IdComponent
that uniquely identifies when multiple worklet invocations operate on the same input item, which can happen when defining a worklet with scatter.
When a worklet is dispatched, there is a scatter operation defined that optionally allows each input to go to multiple output entries. When one input is assigned to multiple outputs, there needs to be a mechanism to uniquely identify which output is which. The visit index is a value between 0 and the number of outputs a particular input goes to. This tag in the ExecutionSignature
passes the visit index for this work.