template<typename T, typename R>
struct nanovdb::BufferTraits< cuda::Buffer< T, R > >
GridHandle support for the single-space cuda::Buffer: the buffer owns exactly one allocation, resident on the device, so the handle parses metadata through a device read and exposes only the device accessors. Requires byte-addressed storage.
- Note
- This trait doubles as the definition of the single-space device-buffer concept: a buffer whose BufferTraits specialization sets hasDeviceSingle guarantees ElementType and ResourceType typedefs, data(), size() and size_bytes() (byte-addressed elements, enforced by the consumer), resource(), copy(), destroy(), and stream() when the resource is stream-ordered. Any consumer of hasDeviceSingle may rely on exactly this interface and nothing more; in particular, scratch allocates through resource() as a cuda::Buffer, so a conforming buffer never needs to be constructible by a consumer.