MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::Cuda::Polyline3DataHolder Class Reference

Helper class to manage the GPU memory-backed buffers for Polyline3 data. More...

#include <MRCudaPolyline.h>

Public Member Functions

MRCUDA_API Polyline3Data data () const
 Returns data buffers.
 
 operator Polyline3Data () const
 
MRCUDA_API void reset ()
 Resets data buffers.
 

Static Public Member Functions

static MRCUDA_API Expected< Polyline3DataHolderfromLines (const Polyline3 &polyline)
 
static MRCUDA_API size_t heapBytes (const Polyline3 &polyline)
 Computes the GPU memory amount required to allocate data for the polyline.
 

Detailed Description

Helper class to manage the GPU memory-backed buffers for Polyline3 data.

Member Function Documentation

◆ data()

MRCUDA_API Polyline3Data MR::Cuda::Polyline3DataHolder::data ( ) const

Returns data buffers.

◆ fromLines()

static MRCUDA_API Expected< Polyline3DataHolder > MR::Cuda::Polyline3DataHolder::fromLines ( const Polyline3 & polyline)
static

Allocates data buffers in the GPU memory and copies data to it. Returns error if the CUDA runtime couldn't allocate memory or copy host data.

◆ heapBytes()

static MRCUDA_API size_t MR::Cuda::Polyline3DataHolder::heapBytes ( const Polyline3 & polyline)
static

Computes the GPU memory amount required to allocate data for the polyline.

◆ operator Polyline3Data()

MR::Cuda::Polyline3DataHolder::operator Polyline3Data ( ) const
inline

◆ reset()

MRCUDA_API void MR::Cuda::Polyline3DataHolder::reset ( )

Resets data buffers.


The documentation for this class was generated from the following file: