feat: Implement a custom MetaAllocator for uLib::Vector to enable GPU memory management and integrate CUDA support into the build system.
This commit is contained in:
@@ -26,7 +26,8 @@
|
||||
#ifndef VOXRAYTRACER_H
|
||||
#define VOXRAYTRACER_H
|
||||
|
||||
#include "Math/DataAllocator.h"
|
||||
#include <Core/DataAllocator.h>
|
||||
#include <Core/Vector.h>
|
||||
#include <math.h>
|
||||
#include <vector>
|
||||
|
||||
@@ -56,9 +57,9 @@ public:
|
||||
|
||||
void AppendRay(const RayData &in);
|
||||
|
||||
inline DataAllocator<Element> &Data() { return this->m_Data; }
|
||||
inline uLib::Vector<Element> &Data() { return this->m_Data; }
|
||||
|
||||
inline const DataAllocator<Element> &Data() const { return this->m_Data; }
|
||||
inline const uLib::Vector<Element> &Data() const { return this->m_Data; }
|
||||
|
||||
inline size_t Count() const { return this->m_Count; }
|
||||
|
||||
@@ -71,7 +72,7 @@ public:
|
||||
void PrintSelf(std::ostream &o);
|
||||
|
||||
private:
|
||||
DataAllocator<Element> m_Data;
|
||||
uLib::Vector<Element> m_Data;
|
||||
Scalarf m_TotalLength;
|
||||
size_t m_Count;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user