| 35 | } |
| 36 | |
| 37 | inline void TutorialData_FreeTreeData(void* hptr, void* dptr) |
| 38 | { |
| 39 | if(hptr == dptr) { |
| 40 | // either CPU or unified memory mode |
| 41 | if(hptr) alignedFree(hptr); |
| 42 | } else { |
| 43 | if(hptr) alignedFree(hptr); |
| 44 | if(dptr) alignedUSMFree(dptr); |
| 45 | } |
| 46 | hptr = nullptr; |
| 47 | dptr = nullptr; |
| 48 | } |
| 49 | |
| 50 | inline void TutorialData_Destructor(TutorialData* This) |
| 51 | { |
no test coverage detected