ffxContext is already defined as a mutable void pointer:
|
typedef void* ffxContext; |
Only ffxCreateContext() and ffxDestroyContext() are documented to update the value of this pointer, and must hence take a mutable pointer to ffxContext.
The other functions -ffxConfigure/ffxQuery/ffxDispatch- don't seem to need to update it to a different context, hence could/should take the ffxContext by value or at the very least be made an immutable (const) pointer?
ffxContextis already defined as a mutable void pointer:FidelityFX-SDK/Kits/FidelityFX/api/include/ffx_api.h
Line 45 in 0836aa7
Only
ffxCreateContext()andffxDestroyContext()are documented to update the value of this pointer, and must hence take a mutable pointer toffxContext.The other functions -
ffxConfigure/ffxQuery/ffxDispatch- don't seem to need to update it to a different context, hence could/should take theffxContextby value or at the very least be made an immutable (const) pointer?