mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Update change-execution-object-creation.md
This commit is contained in:
parent
51cd5da84b
commit
79b28ead47
@ -1,5 +1,9 @@
|
||||
Changed how Execution objects are created and passed from the cont environment to the execution environment. See chapter 13.9 on worklets in the user manual for details.
|
||||
----
|
||||
# User defined execution objects now usable with runtime selection of device adapter
|
||||
|
||||
- Changed how Execution objects are created and passed from the cont environment to the execution environment. See chapter 13.9 on worklets in the user manual for details.
|
||||
|
||||
- Instead we will now fill out a class and call prepareForExecution() and create the execution object for the execution environment from this function. This way we do not have to template the class that extends `vtkm::cont::ExecutionObjectBase` on the device.
|
||||
|
||||
Example of new execution object:
|
||||
```cpp
|
||||
template <typename Device>
|
||||
@ -21,5 +25,3 @@ struct TestExecutionObject : public vtkm::cont::ExecutionObjectBase
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
Instead we will now fill out a class and call prepareForExecution() and create the execution object for the execution environment from this function. This way we do not have to template the class that extends `vtkm::cont::ExecutionObjectBase` on the device.
|
Loading…
Reference in New Issue
Block a user