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-27 22:40:13 -04:00
commit 30f95114e0

@ -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();