如果rs_allocation已正确绑定,有没有办法检查RenderScrpt?

时间:2013-06-06 00:42:54

标签: android renderscript

每当我定义

rs_allocation abcd;
在我的renderscript中,我恐怕会忘记用Java绑定它,导致一些神秘的问题。有没有办法写

if (abcd == NULL)
    rsDebug("Error");

if (!rsIsValidAllocation(abcd))
    rsDebug("Error");

等?

1 个答案:

答案 0 :(得分:2)

你想要这样的东西......

if(!rsIsObject(abcd))
相关问题