-
Notifications
You must be signed in to change notification settings - Fork 216
Open
Description
CompressonatorSDK feedback procedure CMP_Feedback_Proc
declares two user parameters, pUser1
and pUser2
.
typedef bool(CMP_API* CMP_Feedback_Proc)(CMP_FLOAT fProgress, CMP_DWORD_PTR pUser1, CMP_DWORD_PTR pUser2); |
However, there does not appear to be a way for user to pass values for those parameters along with feedback procedure pointer. Feedback procedure is passed to following functions:
compressonator/cmp_compressonatorlib/compressonator.h
Lines 963 to 966 in f4b53d7
CMP_ERROR CMP_API CMP_ConvertTexture(CMP_Texture* pSourceTexture, | |
CMP_Texture* pDestTexture, | |
const CMP_CompressOptions* pOptions, | |
CMP_Feedback_Proc pFeedbackProc); |
CMP_ERROR CMP_API CMP_ConvertMipTexture(CMP_MipSet* p_MipSetIn, CMP_MipSet* p_MipSetOut, const CMP_CompressOptions* pOptions, CMP_Feedback_Proc pFeedbackProc); |
compressonator/cmp_compressonatorlib/compressonator.h
Lines 1057 to 1058 in f4b53d7
CMP_ERROR CMP_API CMP_ProcessTexture(CMP_MipSet* srcMipSet, CMP_MipSet* dstMipSet, KernelOptions kernelOptions, CMP_Feedback_Proc pFeedbackProc); | |
CMP_ERROR CMP_API CMP_CompressTexture(KernelOptions* options, CMP_MipSet srcMipSet, CMP_MipSet dstMipSet, CMP_Feedback_Proc pFeedback); |
None of them accept two user parameters that would be passed over to feedback procedure.
Metadata
Metadata
Assignees
Labels
No labels