|
FZGPUModules 2.0
GPU-accelerated modular compression pipelines
|
#include <algorithms.h>
Scratch pointer returned by withTempStorage(), tagged with where it came from so freeTempStorage() routes to the matching free — tracking this explicitly (rather than inferring it from pool != nullptr at free time) matters because pool can be non-null yet still have fallen back to a raw allocation, if pool->allocate() itself returned null (e.g. pool exhaustion) rather than the pool being absent altogether.