mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-08 03:18:58 +00:00
Update vtkm/interop to use non-deprecated make_ArrayHandle API
This commit is contained in:
parent
b7a9eb0c73
commit
47843ea2e3
@ -182,7 +182,7 @@ public:
|
||||
this->Resource->Map();
|
||||
|
||||
ValueType* beginPointer = this->Resource->GetMappedPoiner<ValueType>(size);
|
||||
auto deviceMemory = vtkm::cont::make_ArrayHandle(beginPointer, size);
|
||||
auto deviceMemory = vtkm::cont::make_ArrayHandle(beginPointer, size, vtkm::CopyFlag::Off);
|
||||
|
||||
//Do a device to device memory copy
|
||||
vtkm::cont::DeviceAdapterAlgorithm<DeviceAdapterTag>::Copy(handle, deviceMemory);
|
||||
|
@ -66,7 +66,7 @@ public:
|
||||
|
||||
T* storage = reinterpret_cast<T*>(this->TempStorage.get());
|
||||
//construct a handle that is a view onto the memory
|
||||
return vtkm::cont::make_ArrayHandle(storage, size);
|
||||
return vtkm::cont::make_ArrayHandle(storage, size, vtkm::CopyFlag::Off);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
|
Loading…
Reference in New Issue
Block a user