#include <Geometry.h>
|
| | GeomType (Context *const context, size_t varStructSize, const std::vector< OWLVarDecl > &varDecls) |
| |
| std::string | toString () const override |
| |
| DeviceData & | getDD (const DeviceContext::SP &device) const |
| |
| RegisteredObject::DeviceData::SP | createOn (const DeviceContext::SP &device) override |
| |
| virtual std::shared_ptr< Geom > | createGeom ()=0 |
| |
| void | setAnyHitProgram (int rayType, Module::SP module, const std::string &progName) |
| |
| void | setClosestHitProgram (int rayType, Module::SP module, const std::string &progName) |
| |
| | SBTObjectType (Context *const context, ObjectRegistry ®istry, size_t varStructSize, const std::vector< OWLVarDecl > &varDecls) |
| |
| int | getVariableIdx (const std::string &varName) |
| |
| bool | hasVariable (const std::string &varName) |
| |
| std::string | toString () const override |
| |
| void | declareVariable (const std::string &varName, OWLDataType type, size_t offset) |
| |
| std::vector< Variable::SP > | instantiateVariables () |
| |
| | RegisteredObject (Context *const context, ObjectRegistry ®istry) |
| |
| | ~RegisteredObject () |
| |
| | ContextObject (Context *const context) |
| |
| | Object () |
| |
| virtual DeviceData::SP | createOn (const std::shared_ptr< DeviceContext > &device) |
| |
| void | createDeviceData (const std::vector< std::shared_ptr< DeviceContext >> &devices) |
| |
| template<typename T > |
| std::shared_ptr< T > | as () |
| |
◆ SP
◆ GeomType()
| owl::GeomType::GeomType |
( |
Context *const |
context, |
|
|
size_t |
varStructSize, |
|
|
const std::vector< OWLVarDecl > & |
varDecls |
|
) |
| |
create new geometry type with given parameters/variables
constructor - mostly pass through to parent class
- Parameters
-
| varStructSize | size of the struct on the device |
| varDecls | list of variables within this struct that we can/have to set |
◆ createGeom()
| virtual std::shared_ptr<Geom> owl::GeomType::createGeom |
( |
| ) |
|
|
pure virtual |
◆ createOn()
creates the device-specific data for this group
◆ getDD()
get reference to given device-specific data for this object
◆ setAnyHitProgram()
| void owl::GeomType::setAnyHitProgram |
( |
int |
rayType, |
|
|
Module::SP |
module, |
|
|
const std::string & |
progName |
|
) |
| |
sets the anyhit program to run for given ray type
◆ setClosestHitProgram()
| void owl::GeomType::setClosestHitProgram |
( |
int |
rayType, |
|
|
Module::SP |
module, |
|
|
const std::string & |
progName |
|
) |
| |
sets the closest program to run for given ray type
◆ toString()
| std::string owl::GeomType::toString |
( |
| ) |
const |
|
overridevirtual |
◆ anyHit
anyhit programs to run for this geom - one per ray type
◆ closestHit
closest programs to run for this geom - one per ray type
The documentation for this struct was generated from the following files: