12 # ifndef SLOPTIXACCELSTRUCT_H
13 # define SLOPTIXACCELSTRUCT_H
14 # include <optix_types.h>
18 class SLOptixAccelStruct
22 ~SLOptixAccelStruct();
24 OptixTraversableHandle optixTraversableHandle() {
return _handle; }
27 void buildAccelerationStructure();
28 void updateAccelerationStructure();
30 OptixBuildInput _buildInput = {};
31 OptixAccelBuildOptions _accelBuildOptions = {};
32 OptixAccelBufferSizes _accelBufferSizes = {};
33 OptixTraversableHandle _handle = 0;
34 SLOptixCudaBuffer<void>* _buffer;