OpenVDB 13.1.0
Loading...
Searching...
No Matches
is_device_accessible_resource< R, typename > Struct Template Reference

Companion detection: is_device_accessible_resource<R>::value is true iff R declares static constexpr bool DEVICE_ACCESSIBLE = / true, i.e. its allocations are also valid device addresses even though they are host-accessible (e.g. ManagedResource). A handle over such a resource exposes both accessor families. Purely device-resident resources do not need the marker: not being host-accessible already implies device residency. More...

#include <nanovdb/cuda/DeviceResource.h>

Detailed Description

template<typename R, typename = void>
struct nanovdb::cuda::is_device_accessible_resource< R, typename >

Companion detection: is_device_accessible_resource<R>::value is true iff R declares static constexpr bool DEVICE_ACCESSIBLE = / true, i.e. its allocations are also valid device addresses even though they are host-accessible (e.g. ManagedResource). A handle over such a resource exposes both accessor families. Purely device-resident resources do not need the marker: not being host-accessible already implies device residency.