1
每當我在我的renderScript定義有沒有辦法檢查RenderScrpt是否正確綁定了rs_allocation?
rs_allocation abcd;
,我怕我會忘記從Java綁定它,導致神祕的問題。有沒有什麼辦法來寫
if (abcd == NULL)
rsDebug("Error");
或
if (!rsIsValidAllocation(abcd))
rsDebug("Error");
等?
測試這和它的作品。謝謝! –