unable to unroll loop 报错

Posted Hichy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了unable to unroll loop 报错相关的知识,希望对你有一定的参考价值。

unable to unroll loop, loop does not appear to terminate in a timely manner (1024 iterations)
原本代码
for (int i = 0; i < _Loops; i++)
这里的_Loops是运行时,有程序传入的参数,在编译时报错

改写为字面值的最大值
for (int i = 0; i < 50; i++)
{
    ... ...
    if (i >= _Loops)
        break;
}

这个报错是 DirectX shader compiler 报的错

以上是关于unable to unroll loop 报错的主要内容,如果未能解决你的问题,请参考以下文章

Loop Unrolling 循环展开

OpenCL Unrolling Loops优化

服务器Mysql报错报错#2013 - Lost connection to MySQL server at 'reading initial communication packet

Nacos 启动报错 Unable to start web server……Unable to start embedded Tomcat

iOS 报错: [__NSArrayI removeAllObjects]: unrecognized selector sent to instance...?

git clone报错:fatal: unable to access ‘‘: SSL certificate problem: unable to get local issuer cer