27 typedef std::shared_ptr<SphereGeomType> 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 "SphereGeomType"; }
59 RegisteredObject::DeviceData::SP
createOn(
const DeviceContext::SP &device)
override;
69 typedef std::shared_ptr<SphereGeom> SP;
90 GeomType::SP geometryType);
93 RegisteredObject::DeviceData::SP
createOn(
const DeviceContext::SP &device)
override;
105 const std::vector<Buffer::SP> &radii,
113 std::vector<Buffer::SP> verticesBuffers;
114 std::vector<Buffer::SP> radiusBuffers;
125 assert(device && device->ID >= 0 && device->ID < (
int)
deviceData.size());
133 assert(device && device->ID >= 0 && device->ID < (
int)
deviceData.size());
Definition: Geometry.h:48
Definition: Geometry.h:41
Definition: Geometry.h:108
DeviceContext::SP device
Definition: Object.h:53
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
Definition: SphereGeom.h:31
DeviceData(const DeviceContext::SP &device)
void fillPGDesc(OptixProgramGroupDesc &pgDesc, GeomType *gt, int rayType) override
Definition: SphereGeom.h:26
DeviceData & getDD(const DeviceContext::SP &device) const
Definition: SphereGeom.h:123
std::shared_ptr< Geom > createGeom() override
RegisteredObject::DeviceData::SP createOn(const DeviceContext::SP &device) override
std::string toString() const override
Definition: SphereGeom.h:51
Definition: SphereGeom.h:73
std::vector< CUdeviceptr > verticesPointers
Definition: SphereGeom.h:79
std::vector< CUdeviceptr > radiusPointers
Definition: SphereGeom.h:84
Definition: SphereGeom.h:67
SphereGeomType::DeviceData & getTypeDD(const DeviceContext::SP &device) const
Definition: SphereGeom.h:139
RegisteredObject::DeviceData::SP createOn(const DeviceContext::SP &device) override
void setVertices(const std::vector< Buffer::SP > &vertices, const std::vector< Buffer::SP > &radii, size_t count)
std::string toString() const override
SphereGeom(Context *const context, GeomType::SP geometryType)
DeviceData & getDD(const DeviceContext::SP &device)
Definition: SphereGeom.h:131