VTK-m
2.2
|
A control signature tag for reduced output values. More...
#include <WorkletReduceByKey.h>
Public Types | |
using | TypeCheckTag = vtkm::cont::arg::TypeCheckTagArrayInOut |
using | TransportTag = vtkm::cont::arg::TransportTagArrayInOut |
using | FetchTag = vtkm::exec::arg::FetchTagArrayDirectInOut |
A control signature tag for reduced output values.
A WorkletReduceByKey
operates by collecting all identical keys and calling one instance of the worklet for those identical keys. The worklet then produces a "reduced" value per key.
This tag specifies a vtkm::cont::ArrayHandle
object that holds the values. It is an input/output array with entries for each reduced value. The number of values in the array must equal the number of unique keys.
This tag behaves the same as ReducedValuesIn
except that the worklet may write values back into the array. Make sure that the associated parameter to the worklet operator is a reference so that the changed value gets written back to the array.
using vtkm::worklet::WorkletReduceByKey::ReducedValuesInOut::FetchTag = vtkm::exec::arg::FetchTagArrayDirectInOut |
using vtkm::worklet::WorkletReduceByKey::ReducedValuesInOut::TransportTag = vtkm::cont::arg::TransportTagArrayInOut |
using vtkm::worklet::WorkletReduceByKey::ReducedValuesInOut::TypeCheckTag = vtkm::cont::arg::TypeCheckTagArrayInOut |