bombomby / optick

C++ Profiler For Games
https://optick.dev
MIT License
2.95k stars 296 forks source link

add userdata attribut to function SaveCapture #137

Open irov opened 3 years ago

irov commented 3 years ago

using the function is inconvenient with the current implementation. As I need to use globals for it to work

please add

typedef void(*CaptureSaveChunkCb)(const char*,size_t, void * _ud);
OPTICK_API bool SaveCapture(CaptureSaveChunkCb dataCb, void * _ud, bool force = true);