mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Fixing ColorTable::PrepareForExecution and DispatcherMapField
This commit is contained in:
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,
|
||||
|
Loading…
Reference in New Issue
Block a user