Device

template<class native_device_type, class = typename std::enable_if<is_device_supported<native_device_type>()>::type>
device create_device(native_device_type &&native_device)

Creates a new device from @native_device_type.

Return

device object

Parameters
  • native_device: the existing handle of device

device create_device()