! frees the buffer */
| 100 | |
| 101 | /*! frees the buffer */ |
| 102 | virtual void free() |
| 103 | { |
| 104 | if (!shared && ptr) { |
| 105 | #if defined(EMBREE_SYCL_SUPPORT) |
| 106 | if (dptr == ptr) { |
| 107 | dptr = nullptr; |
| 108 | } |
| 109 | #endif |
| 110 | device->free(ptr); |
| 111 | device->memoryMonitor(-ssize_t(this->bytes()), true); |
| 112 | ptr = nullptr; |
| 113 | } |
| 114 | #if defined(EMBREE_SYCL_SUPPORT) |
| 115 | if (!dshared && dptr) { |
| 116 | device->free(dptr); |
| 117 | device->memoryMonitor(-ssize_t(this->bytes()), true); |
| 118 | dptr = nullptr; |
| 119 | } |
| 120 | #endif |
| 121 | } |
| 122 | |
| 123 | /*! gets buffer pointer */ |
| 124 | void* data() |
nothing calls this directly
no test coverage detected