使用gpu编程,在线程里面调用GPU时出现错误cg error: The program cound not bind
使用gpu编程,
如果不用线程直接调用就很好
在线程里面调用GPU时出现错误cg error: The program cound not bind.
请问怎么解决啊?
::CreateThread(0,0,get_feature_proc,pNewThread,0,&pNewThread->m_dwThreadID);
DWORD WINAPI get_feature_proc(LPVOID pParam)
{ //...这里面用到gpu绑定纹理之类的语句出错报告为cg error: The program cound not bind.
}