Commit 4175ff29 authored by Robert Maynard's avatar Robert Maynard
Browse files

Allow dispatching based on a vtkm::Id2.

This is being added so that it is easy to schedule 2d grids easily, without
them having to pass in a 3d range.
parent 2a66dec1
......@@ -295,6 +295,15 @@ protected:
this->InvokeTransportParameters(invocation, numInstances);
}
template<typename Invocation>
VTKM_CONT_EXPORT
void BasicInvoke(const Invocation &invocation, vtkm::Id2 dimensions) const
{
vtkm::Id3 dim3d(dimensions[0], dimensions[1], 1);
this->InvokeTransportParameters(invocation, dim3d);
}
template<typename Invocation>
VTKM_CONT_EXPORT
void BasicInvoke(const Invocation &invocation, vtkm::Id3 dimensions) const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment