mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 01:49:02 +00:00
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:
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();
|
||||
|
Loading…
Reference in New Issue
Block a user