浏览代码
Originally, I concatenated strings in order to generated the clustered light list generation kernel name. But @chman pointed out this would be bad for the GC, since this code runs every frame. So instead, I pre-generate the kernel names, and index into a 2D array to select the correct kernel string. Heck, it may even look nicer this way./main
Robert Srinivasiah
7 年前
当前提交
8828b0b7
共有 1 个文件被更改,包括 27 次插入 和 9 次删除
正在加载...
Reference in new issue