MCPcopy Create free account
hub / github.com/RenderKit/embree / TutorialData_FreeTreeData

Function TutorialData_FreeTreeData

tutorials/forest/forest_device.h:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37inline 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
50inline void TutorialData_Destructor(TutorialData* This)
51{

Callers 2

TutorialData_DestructorFunction · 0.85
forest_device.cppFile · 0.85

Calls 2

alignedFreeFunction · 0.85
alignedUSMFreeFunction · 0.85

Tested by

no test coverage detected