Merge branch 'fix/color_table_sample' into 'master'

sample the color table on the device

See merge request vtk/vtk-m!1908
This commit is contained in:
Matt Larsen 2024-06-28 23:02:32 -04:00
commit 718a48af7a

@ -115,10 +115,7 @@ void Mapper::SetActiveColorTable(const vtkm::cont::ColorTable& colorTable)
vtkm::cont::ArrayHandle<vtkm::Vec4ui_8> temp;
{
vtkm::cont::ScopedRuntimeDeviceTracker tracker(vtkm::cont::DeviceAdapterTagSerial{});
colorTable.Sample(1024, temp);
}
colorTable.Sample(1024, temp);
this->ColorMap.Allocate(1024);
auto portal = this->ColorMap.WritePortal();