热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

unabletounrollloop报错

unabletounrollloop,loopdoesnotappeartoterminateinatimelymanner(1024iterations)原本代码for(inti
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 报错


推荐阅读
author-avatar
小甜蜜陈诗蓉_614
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有