27 typedef std::shared_ptr<CurvesGeomType> SP;
32 typedef std::shared_ptr<DeviceData> SP;
43 int rayType)
override;
48 const std::vector<OWLVarDecl> &
varDecls);
51 std::string
toString()
const override {
return "CurvesGeomType"; }
59 RegisteredObject::DeviceData::SP
createOn(
const DeviceContext::SP &device)
override;
61 void setDegree(
int degree,
bool force_caps);
79 typedef std::shared_ptr<CurvesGeom> SP;
105 GeomType::SP geometryType);
108 RegisteredObject::DeviceData::SP
createOn(
const DeviceContext::SP &device)
override;
120 const std::vector<Buffer::SP> &widths,
131 int segmentIndicesCount = 0;
132 Buffer::SP segmentIndicesBuffer;
135 std::vector<Buffer::SP> verticesBuffers;
136 std::vector<Buffer::SP> widthsBuffers;
147 assert(device && device->ID >= 0 && device->ID < (
int)
deviceData.size());
155 assert(device && device->ID >= 0 && device->ID < (
int)
deviceData.size());
Definition: CurvesGeom.h:31
void fillPGDesc(OptixProgramGroupDesc &pgDesc, GeomType *gt, int rayType) override
DeviceData(const DeviceContext::SP &device)
Definition: CurvesGeom.h:26
bool forceCaps
Definition: CurvesGeom.h:69
std::shared_ptr< Geom > createGeom() override
int degree
Definition: CurvesGeom.h:64
DeviceData & getDD(const DeviceContext::SP &device) const
Definition: CurvesGeom.h:145
RegisteredObject::DeviceData::SP createOn(const DeviceContext::SP &device) override
std::string toString() const override
Definition: CurvesGeom.h:51
Definition: CurvesGeom.h:83
std::vector< CUdeviceptr > verticesPointers
Definition: CurvesGeom.h:89
CUdeviceptr indicesPointer
Definition: CurvesGeom.h:99
std::vector< CUdeviceptr > widthsPointers
Definition: CurvesGeom.h:94
Definition: CurvesGeom.h:77
void setSegmentIndices(Buffer::SP indices, size_t count)
std::string toString() const override
RegisteredObject::DeviceData::SP createOn(const DeviceContext::SP &device) override
DeviceData & getDD(const DeviceContext::SP &device)
Definition: CurvesGeom.h:153
void setVertices(const std::vector< Buffer::SP > &vertices, const std::vector< Buffer::SP > &widths, size_t count)
CurvesGeom(Context *const context, GeomType::SP geometryType)
CurvesGeomType::DeviceData & getTypeDD(const DeviceContext::SP &device) const
Definition: CurvesGeom.h:161
Definition: Geometry.h:48
Definition: Geometry.h:41
Definition: Geometry.h:108
std::vector< DeviceData::SP > deviceData
Definition: Object.h:86
const std::vector< OWLVarDecl > varDecls
Definition: SBTObject.h:70
const size_t varStructSize
Definition: SBTObject.h:66
std::shared_ptr< GeomType > const type
Definition: SBTObject.h:134