| 19 | { |
| 20 | private: |
| 21 | char* alloc(void* ptr_in, bool &shared, EmbreeMemoryType memoryType) |
| 22 | { |
| 23 | if (ptr_in) |
| 24 | { |
| 25 | shared = true; |
| 26 | return (char*)ptr_in; |
| 27 | } |
| 28 | else |
| 29 | { |
| 30 | shared = false; |
| 31 | device->memoryMonitor(this->bytes(), false); |
| 32 | size_t b = (this->bytes()+15) & ssize_t(-16); |
| 33 | return (char*)device->malloc(b,16,memoryType); |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | public: |
| 38 | Buffer(Device* device, size_t numBytes_in, void* ptr_in) |
no test coverage detected