随笔 - 505  文章 - 1034  trackbacks - 0
<2009年9月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910


子曾经曰过:编程无他,唯手熟尔!

常用链接

留言簿(94)

随笔分类(649)

随笔档案(505)

相册

BCB

Crytek

  • crymod
  • Crytek's Offical Modding Portal

Game Industry

OGRE

other

Programmers

Qt

WOW Stuff

搜索

  •  

积分与排名

  • 积分 - 894865
  • 排名 - 14

最新随笔

最新评论

阅读排行榜

评论排行榜

看了几个小时的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 七星重剑 阅读(3156) 评论(4)  编辑 收藏 引用 所属分类: Game Graphics

FeedBack:
# re: 让vs2005支持NVDIA CUDA的cu文件语法高亮显示 2007-02-25 09:41 Jedimaster
末了看这readme.txt,只要把userdata.dat拷贝到IDE目录下,然后运行那个注册表文件就可以了  回复  更多评论
  
# re: 让vs2005支持NVDIA CUDA的cu文件语法高亮显示 2007-06-25 14:53 davv
不需要运行注册表文件,也没有什么注册表文件,只需要copy usertype.dat到指定目录,然后添加扩展名由vc++打开即可高亮显示  回复  更多评论
  
# re: 让vs2005支持NVDIA CUDA的cu文件语法高亮显示 2008-12-05 16:30 delacroix21cn
可以通过vs2005的Tools菜单中的Options来设置的。

方法是在打开的Options对话框中的Text Editor->File Extension中,将cu后缀设置为通过Microsoft Visual C++打开。  回复  更多评论
  
# re: 让vs2005支持NVDIA CUDA的cu文件语法高亮显示 2008-12-05 16:33 delacroix21cn
当然了,也要重启vs2005  回复  更多评论
  

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理