|
OWL
OptiX7 Wrapper Library
|
#include <RayGen.h>
Classes | |
| struct | DeviceData |
Public Types | |
| typedef std::shared_ptr< RayGen > | SP |
Public Types inherited from owl::SBTObject< RayGenType > | |
| typedef std::shared_ptr< SBTObject > | SP |
Public Types inherited from owl::ContextObject | |
| typedef std::shared_ptr< ContextObject > | SP |
Public Types inherited from owl::Object | |
| typedef std::shared_ptr< Object > | SP |
Public Member Functions | |
| RayGen (Context *const context, RayGenType::SP type) | |
| virtual | ~RayGen () |
| std::string | toString () const override |
| void | launch (const vec2i &dims) |
| void | launchAsync (const vec2i &dims, const LaunchParams::SP &launchParams) |
| void | writeSBTRecord (uint8_t *const sbtRecord, const DeviceContext::SP &device) |
| RegisteredObject::DeviceData::SP | createOn (const DeviceContext::SP &device) override |
| DeviceData & | getDD (const DeviceContext::SP &device) const |
Public Member Functions inherited from owl::SBTObject< RayGenType > | |
| SBTObject (Context *const context, ObjectRegistry ®istry, std::shared_ptr< RayGenType > type) | |
| virtual std::string | toString () const |
Public Member Functions inherited from owl::SBTObjectBase | |
| SBTObjectBase (Context *const context, ObjectRegistry ®istry, std::shared_ptr< SBTObjectType > type) | |
| bool | hasVariable (const std::string &name) |
| Variable::SP | getVariable (const std::string &name) |
| void | writeVariables (uint8_t *sbtEntry, const DeviceContext::SP &device) const |
Public Member Functions inherited from owl::RegisteredObject | |
| RegisteredObject (Context *const context, ObjectRegistry ®istry) | |
| ~RegisteredObject () | |
Public Member Functions inherited from owl::ContextObject | |
| ContextObject (Context *const context) | |
Public Member Functions inherited from owl::Object | |
| 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 () |
Additional Inherited Members | |
Public Attributes inherited from owl::SBTObject< RayGenType > | |
| std::shared_ptr< RayGenType > const | type |
Public Attributes inherited from owl::SBTObjectBase | |
| const std::vector< Variable::SP > | variables |
| std::shared_ptr< SBTObjectType > const | type |
Public Attributes inherited from owl::RegisteredObject | |
| int | ID |
| ObjectRegistry & | registry |
Public Attributes inherited from owl::ContextObject | |
| Context *const | context |
Public Attributes inherited from owl::Object | |
| const size_t | uniqueID |
| std::vector< DeviceData::SP > | deviceData |
Static Public Attributes inherited from owl::Object | |
| static std::atomic< uint64_t > | nextAvailableID |
an actual instance of a raygen program - defined by its type and variable values
| typedef std::shared_ptr<RayGen> owl::RayGen::SP |
| owl::RayGen::RayGen | ( | Context *const | context, |
| RayGenType::SP | type | ||
| ) |
create new raygen of given type
|
virtual |
clean up...
|
override |
creates the device-specific data for this group
|
inline |
get reference to given device-specific data for this object
| void owl::RayGen::launch | ( | const vec2i & | dims | ) |
execute a synchronous launch of this raygen program, of given dimensions - this will wait for the program to complete
| void owl::RayGen::launchAsync | ( | const vec2i & | dims, |
| const LaunchParams::SP & | lp | ||
| ) |
launch this raygen prog with given launch params, but do NOT wait for completion - this means the SBT shuld NOT be changed or rebuild until a launchParams->sync() has been done
|
overridevirtual |
pretty-printer, for printf-debugging
Reimplemented from owl::ContextObject.
| void owl::RayGen::writeSBTRecord | ( | uint8_t *const | sbtRecord, |
| const DeviceContext::SP & | device | ||
| ) |
write the given SBT record, using the given device's corresponding device-side data represenataion