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

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

#include <MRCuda/MRCudaPolyline.h>

Public Member Functions

Polyline2Data data () const
 Returns data buffers.
 operator Polyline2Data () const
void reset ()
 Resets data buffers.

Static Public Member Functions

static Expected< Polyline2DataHolder > fromLines (const Polyline2 &polyline)
static size_t heapBytes (const Polyline2 &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 Polyline2 data.

Member Function Documentation

◆ data()

Polyline2Data MR::Cuda::Polyline2DataHolder::data ( ) const

Returns data buffers.

◆ fromLines()

Expected< Polyline2DataHolder > MR::Cuda::Polyline2DataHolder::fromLines ( const Polyline2 & 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()

size_t MR::Cuda::Polyline2DataHolder::heapBytes ( const Polyline2 & polyline)
static

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

◆ operator Polyline2Data()

MR::Cuda::Polyline2DataHolder::operator Polyline2Data ( ) const
inline

◆ reset()

void MR::Cuda::Polyline2DataHolder::reset ( )

Resets data buffers.


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