OWL
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
owl::Module::DeviceData Struct Reference

#include <Module.h>

Inheritance diagram for owl::Module::DeviceData:

Public Member Functions

 DeviceData (Module *parent, DeviceContext::SP device)
 
virtual ~DeviceData ()
 
void build ()
 
void destroy ()
 

Public Attributes

Module *const parent
 
OptixModule module = 0
 
CUmodule computeModule = 0
 

Detailed Description

any device-specific data, such as optix handles, cuda device pointers, etc

Constructor & Destructor Documentation

◆ DeviceData()

owl::Module::DeviceData::DeviceData ( Module parent,
DeviceContext::SP  device 
)

constructor

◆ ~DeviceData()

owl::Module::DeviceData::~DeviceData ( )
virtual

destructor

Member Function Documentation

◆ build()

void owl::Module::DeviceData::build ( )

build the optix side of this module on this device

◆ destroy()

void owl::Module::DeviceData::destroy ( )

destroy the optix data for this module; the owl data for the module itself remains valid

Member Data Documentation

◆ computeModule

CUmodule owl::Module::DeviceData::computeModule = 0

for the bounds function we have to build a separate module because this one is built outside of optix, and thus does not have the internal _optix_xyz() symbols in it

◆ module

OptixModule owl::Module::DeviceData::module = 0

optix-compiled module for the optix programs. for all optix* programs we can directly build the PTX code into a module using optixbuildmodule - this is the result of that operation

◆ parent

Module* const owl::Module::DeviceData::parent

pointer to the non-device specific part of this module


The documentation for this struct was generated from the following files: