carb::assets::IsLoadCanceledFn

Defined in carb/assets/AssetsTypes.h

using carb::assets::IsLoadCanceledFn = bool (*)(void *userData)

Determines if a currently processed load has been canceled.

This function is used by the LoadAssetFn to determine if it can abort processing early. Calling this function is optional. For longer or multi-stage loading processes, calling this function can be an indicator as to whether any assets still exist which are interested in the data that LoadAssetFn is processing.

Note

This callback is only valid within the scope of the LoadAssetFn function

Parameters

userData – Must be the isLoadCanceledUserData provided to LoadAssetFn.

Returns

true if the load was canceled and should be aborted; false otherwise.