看了幾個小時的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
七星重劍 閱讀(3186)
評論(4) 編輯 收藏 引用 所屬分類:
Game Graphics