OpenVDB 13.1.0
Loading...
Searching...
No Matches
BufferHasDeviceSingle< BufferT, typename > Struct Template Reference

Detects whether BufferTraits<BufferT> defines hasDeviceSingle, i.e. whether the buffer manages a single device-resident allocation. More...

#include <nanovdb/HostBuffer.h>

Static Public Attributes

static constexpr bool value = false

Detailed Description

template<typename BufferT, typename = void>
struct nanovdb::BufferHasDeviceSingle< BufferT, typename >

Detects whether BufferTraits<BufferT> defines hasDeviceSingle, i.e. whether the buffer manages a single device-resident allocation.

Defaults to false when the trait member is absent, so pre-existing BufferTraits specializations (in or out of tree) that only define hasDeviceDual keep compiling unchanged.

Member Data Documentation

◆ value

template<typename BufferT, typename = void>
bool value = false
staticconstexpr