OWL
|
#include <Geometry.h>
Public Types | |
typedef std::shared_ptr< DeviceData > | SP |
Public Member Functions | |
DeviceData (const DeviceContext::SP &device) | |
void | buildHitGroupPrograms (GeomType *gt) |
virtual void | fillPGDesc (OptixProgramGroupDesc &pgDesc, GeomType *gt, int rayType) |
Public Attributes | |
std::vector< OptixProgramGroup > | hgPGs |
any device-specific data, such as optix handles, cuda device pointers, etc - for geomtypes that's pretty much the OptixProgramGroup's that describe the precompiled programs to use for geometries of this type
owl::GeomType::DeviceData::DeviceData | ( | const DeviceContext::SP & | device | ) |
constructor - passthrough to parent class
construtor - passthrough to parent class
void owl::GeomType::DeviceData::buildHitGroupPrograms | ( | GeomType * | gt | ) |
build the optix program groups for the given (parent) geomtype
|
virtual |
fill in an OptixProgramGroup descriptor with the module and program names for this type
Reimplemented in owl::CurvesGeomType::DeviceData, owl::SphereGeomType::DeviceData, and owl::UserGeomType::DeviceData.
std::vector<OptixProgramGroup> owl::GeomType::DeviceData::hgPGs |
hit group program groups, per ray type