VTK-m  2.2
vtkm::exec::arg::FetchTagArrayDirectInOut Struct Reference

Fetch tag for in-place modifying array values with direct indexing. More...

#include <FetchTagArrayDirectInOut.h>

Detailed Description

Fetch tag for in-place modifying array values with direct indexing.

FetchTagArrayDirectInOut is a tag used with the Fetch class to do in-place modification of values in an array portal. The fetch uses direct indexing, so the thread index given to Store is used as the index into the array.

When using FetchTagArrayDirectInOut with a worklet invocation with a scatter, it is a bit undefined how the in/out array should be indexed. Should it be the size of the input arrays and written back there, or should it be the size of the output arrays and pre-filled with the output. The implementation indexes based on the output because it is safer. The output will have a unique index for each worklet instance, so you don't have to worry about writes stomping on each other (which they would inevitably do if index as input).


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