|
OWL
OptiX7 Wrapper Library
|
#include <LaunchParams.h>
Public Member Functions | |
| DeviceData (const DeviceContext::SP &device, size_t dataSize) | |
Public Attributes | |
| OptixShaderBindingTable | sbt = {} |
| const size_t | dataSize |
| std::vector< uint8_t > | hostMemory |
| DeviceMemory | deviceMemory |
| cudaStream_t | stream = nullptr |
device-specific data for these lauch params - each instance needs its own host- and device-side memory to store the parameter values (to avoid messing with other launches if and when we use multiple async launches in parallel!)
| owl::LaunchParams::DeviceData::DeviceData | ( | const DeviceContext::SP & | device, |
| size_t | dataSize | ||
| ) |
constructor, which allocs all the device-side data
| const size_t owl::LaunchParams::DeviceData::dataSize |
| DeviceMemory owl::LaunchParams::DeviceData::deviceMemory |
the cuda device memory we copy the launch params to
| std::vector<uint8_t> owl::LaunchParams::DeviceData::hostMemory |
host-size memory for the launch paramters - we have a host-side copy, too, so we can leave the launch2D call without having to first wait for the cudaMemcpy to complete
| OptixShaderBindingTable owl::LaunchParams::DeviceData::sbt = {} |
| cudaStream_t owl::LaunchParams::DeviceData::stream = nullptr |
a cuda stream we can use for the async upload and the following async launch