Android 如果rs_分配已正确绑定,是否有方法签入RenderScrpt?
每当我定义Android 如果rs_分配已正确绑定,是否有方法签入RenderScrpt?,android,renderscript,Android,Renderscript,每当我定义 rs_allocation abcd; 在我的renderscript中,我担心我会忘记从Java绑定它,从而导致一些神秘的问题。有没有写的方法 if (abcd == NULL) rsDebug("Error"); 或 等等?你想要这样的东西 if(!rsIsObject(abcd)) if(!rsIsObject(abcd))
rs_allocation abcd;
在我的renderscript中,我担心我会忘记从Java绑定它,从而导致一些神秘的问题。有没有写的方法
if (abcd == NULL)
rsDebug("Error");
或
等等?你想要这样的东西
if(!rsIsObject(abcd))
if(!rsIsObject(abcd))