看了几个小时的CUDA,大体了解了是干吗的,没啥成果,写下这个文章,以后继续研究
//==============
安装好CUDA SDK后,在这个目录下
C:\Program Files\NVIDIA Corporation\NVIDIA SDK 10\NVIDIA CUDA SDK\doc\syntax_highlighting\visual_studio_8
看里面的readme.txt就可以了。
下面是内容:
Want pretty syntax highlighting when editing your .cu files in Visual Studio?
Heres how:
---
Visual Studio .Net 2005 / Visual Studio 8:
1. If you don't have a usertype.dat file in your "Microsoft Visual Studio 8\Common7\IDE" folder, then copy the included usertype.dat file there. If you do, append the contents of the included usertype.dat onto the end of the "Microsoft Visual Studio 8\Common7\IDE\usertype.dat"
2. Start Visual Studio 8. Select the menu "Tools->Options...". Open "Text Editor" in the tree view on the left, and click on "File Extension". Type cu in the "Extension" box, and click "Add". Click "OK" on the dialog box.
3. Restart Visual Studio and your shaders should now have syntax highlighting.
posted on 2007-02-25 00:14
七星重剑 阅读(3175)
评论(4) 编辑 收藏 引用 所属分类:
Game Graphics