mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Allow people to get the portal from ExecutionWholeArray.
This is required when doing some optimizations to PointGradient.
This commit is contained in:
parent
e462d34c60
commit
60843cbab8
@ -71,6 +71,9 @@ public:
|
||||
VTKM_EXEC
|
||||
void Set(vtkm::Id index, const T& t) const { this->Portal.Set(index, t); }
|
||||
|
||||
VTKM_EXEC
|
||||
const PortalType& GetPortal() const { return this->Portal; }
|
||||
|
||||
private:
|
||||
PortalType Portal;
|
||||
};
|
||||
@ -109,6 +112,9 @@ public:
|
||||
VTKM_EXEC
|
||||
T Get(vtkm::Id index) const { return this->Portal.Get(index); }
|
||||
|
||||
VTKM_EXEC
|
||||
const PortalType& GetPortal() const { return this->Portal; }
|
||||
|
||||
private:
|
||||
PortalType Portal;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user