carb::assets::LoadParametersEqualsFn
Defined in carb/assets/AssetsTypes.h
-
using carb::assets::LoadParametersEqualsFn = bool (*)(const LoadParameters *loadParametersA, const LoadParameters *loadParametersB)
Loader function (member of LoaderDesc) that determines if two LoadParameters derivatives are equal.
Note
This function is required for any types where a LoadParameters derivative may be passed to IAssets::loadAsset().
Note
Avoid using
memcmp()
to compare parameters structs as padding within the struct could cause the comparison to unexpectedly fail.- Param loadParametersA
A LoadParameters to compare.
- Param loadParametersB
A LoadParameters to compare.
- Return
true
if loadParametersA == loadParametersB;false
otherwise.