mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-20 02:55:47 +00:00
Merge topic 'allow_runtime_construction_of_device_adapter_id'
a512cd495 Allow runtime construction of DeviceAdapterId Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Allison Vacanti <allison.vacanti@kitware.com> Merge-request: !1425
This commit is contained in:
commit
30293208b0
@ -63,6 +63,8 @@ struct DeviceAdapterId
|
||||
DeviceAdapterNameType GetName() const;
|
||||
|
||||
protected:
|
||||
friend DeviceAdapterId make_DeviceAdapterId(vtkm::Int8 id);
|
||||
|
||||
constexpr explicit DeviceAdapterId(vtkm::Int8 id)
|
||||
: Value(id)
|
||||
{
|
||||
@ -72,6 +74,11 @@ private:
|
||||
vtkm::Int8 Value;
|
||||
};
|
||||
|
||||
DeviceAdapterId make_DeviceAdapterId(vtkm::Int8 id)
|
||||
{
|
||||
return DeviceAdapterId(id);
|
||||
}
|
||||
|
||||
template <typename DeviceAdapter>
|
||||
struct DeviceAdapterTraits;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user