31 typedef std::shared_ptr<LaunchParamsType> SP;
36 const std::vector<OWLVarDecl> &
varDecls);
38 virtual std::string
toString()
const {
return "LaunchParamsType"; }
45 typedef std::shared_ptr<LaunchParams> SP;
51 struct DeviceData :
public RegisteredObject::DeviceData {
54 DeviceData(
const DeviceContext::SP &device,
size_t dataSize);
57 const size_t dataSize;
59 OptixShaderBindingTable sbt = {};
77 LaunchParamsType::SP
type);
81 std::string
toString()
const override;
93 RegisteredObject::DeviceData::SP
createOn(
const DeviceContext::SP &device)
override;
111 assert(device && device->ID >= 0 && device->ID < (
int)
deviceData.size());
Definition: DeviceMemory.h:23
Definition: LaunchParams.h:30
virtual std::string toString() const
Definition: LaunchParams.h:38
Definition: LaunchParams.h:51
PinnedHostMem hostMemory
Definition: LaunchParams.h:65
cudaStream_t stream
Definition: LaunchParams.h:72
DeviceMemory deviceMemory
Definition: LaunchParams.h:68
Definition: LaunchParams.h:44
std::string toString() const override
Definition: LaunchParams.cpp:70
CUstream getCudaStream(const DeviceContext::SP &device)
Definition: LaunchParams.cpp:89
RegisteredObject::DeviceData::SP createOn(const DeviceContext::SP &device) override
Definition: LaunchParams.cpp:77
void sync()
Definition: LaunchParams.cpp:97
DeviceData & getDD(const DeviceContext::SP &device) const
Definition: LaunchParams.h:109
std::vector< DeviceData::SP > deviceData
Definition: Object.h:86
Definition: DeviceMemory.h:127
Definition: SBTObject.h:33
const std::vector< OWLVarDecl > varDecls
Definition: SBTObject.h:70
const size_t varStructSize
Definition: SBTObject.h:66
Definition: SBTObject.h:118
std::shared_ptr< LaunchParamsType > const type
Definition: SBTObject.h:134