| 397 | } |
| 398 | |
| 399 | RTC_API void* rtcThreadLocalAlloc(RTCThreadLocalAllocator localAllocator, size_t bytes, size_t align) |
| 400 | { |
| 401 | FastAllocator::CachedAllocator* alloc = (FastAllocator::CachedAllocator*) localAllocator; |
| 402 | RTC_CATCH_BEGIN; |
| 403 | RTC_TRACE(rtcThreadLocalAlloc); |
| 404 | return alloc->malloc0(bytes,align); |
| 405 | RTC_CATCH_END(alloc->alloc->getDevice()); |
| 406 | return nullptr; |
| 407 | } |
| 408 | |
| 409 | RTC_API void rtcMakeStaticBVH(RTCBVH hbvh) |
| 410 | { |