mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Add a vtkm::Vec<T,N> fast path for CopyInto a vec of the same type
Rather than use the general case which has a for loop we can just use the assignment operator.
This commit is contained in:
parent
9edd5cd383
commit
5bc9ecef16
@ -798,6 +798,8 @@ public:
|
||||
: Superclass(src)
|
||||
{
|
||||
}
|
||||
|
||||
inline VTKM_EXEC_CONT void CopyInto(Vec<T, Size>& dest) const { dest = *this; }
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user