VTK-m  2.2
Public Types | List of all members
vtkm::worklet::WorkletReduceByKey::ReducedValuesInOut Struct Reference

A control signature tag for reduced output values. More...

#include <WorkletReduceByKey.h>

Inheritance diagram for vtkm::worklet::WorkletReduceByKey::ReducedValuesInOut:
vtkm::cont::arg::ControlSignatureTagBase

Public Types

using TypeCheckTag = vtkm::cont::arg::TypeCheckTagArrayInOut
 
using TransportTag = vtkm::cont::arg::TransportTagArrayInOut
 
using FetchTag = vtkm::exec::arg::FetchTagArrayDirectInOut
 

Detailed Description

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.

Member Typedef Documentation

◆ FetchTag

◆ TransportTag

◆ TypeCheckTag


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