Fixing ColorTable::PrepareForExecution and DispatcherMapField

This commit is contained in:
Jérôme Dubois 2020-04-03 13:48:10 +02:00
parent 48e4446f7d
commit 4416f85543

@ -166,10 +166,11 @@ struct MapColorAndVerticesInvokeFunctor
{
VTKM_IS_DEVICE_ADAPTER_TAG(Device);
vtkm::cont::Token token;
MapColorAndVertices worklet(
this->ColorTable.PrepareForExecution(device), this->SMin, this->SDiff);
vtkm::worklet::DispatcherMapField<MapColorAndVertices, Device> dispatcher(worklet);
this->ColorTable.PrepareForExecution(device, token), this->SMin, this->SDiff);
vtkm::worklet::DispatcherMapField<MapColorAndVertices> dispatcher(worklet);
dispatcher.SetDevice(Device{});
vtkm::cont::ArrayHandleIndex indexArray(this->TriangleIndices.GetNumberOfValues());
dispatcher.Invoke(indexArray,