27 typedef std::shared_ptr<TrianglesGeomType> SP;
31 const std::vector<OWLVarDecl> &
varDecls);
34 std::string
toString()
const override {
return "TriangleGeomType"; }
46 typedef std::shared_ptr<TrianglesGeom> SP;
67 GeomType::SP geometryType);
70 RegisteredObject::DeviceData::SP
createOn(
const DeviceContext::SP &device)
override;
106 std::vector<Buffer::SP> buffers;
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
Definition: Triangles.h:26
std::shared_ptr< Geom > createGeom() override
std::string toString() const override
Definition: Triangles.h:34
Definition: Triangles.h:50
std::vector< CUdeviceptr > vertexPointers
Definition: Triangles.h:56
CUdeviceptr indexPointer
Definition: Triangles.h:61
Definition: Triangles.h:44
DeviceData & getDD(const DeviceContext::SP &device) const
Definition: Triangles.h:115
std::string toString() const override
void setVertices(const std::vector< Buffer::SP > &vertices, size_t count, size_t stride, size_t offset)
void setIndices(Buffer::SP indices, size_t count, size_t stride, size_t offset)
TrianglesGeom(Context *const context, GeomType::SP geometryType)
RegisteredObject::DeviceData::SP createOn(const DeviceContext::SP &device) override
void computeBounds(box3f bounds[2])