| 36 | |
| 37 | public: |
| 38 | Buffer(Device* device, size_t numBytes_in, void* ptr_in) |
| 39 | : device(device), numBytes(numBytes_in) |
| 40 | { |
| 41 | device->refInc(); |
| 42 | |
| 43 | ptr = alloc(ptr_in, shared, EmbreeMemoryType::USM_SHARED); |
| 44 | #if defined(EMBREE_SYCL_SUPPORT) |
| 45 | dshared = true; |
| 46 | dptr = ptr; |
| 47 | modified = true; |
| 48 | #endif |
| 49 | } |
| 50 | |
| 51 | Buffer(Device* device, size_t numBytes_in, void* ptr_in, void* dptr_in) |
| 52 | : device(device), numBytes(numBytes_in) |
nothing calls this directly
no test coverage detected