設定Shader關鍵字高亮(網上轉)

來源:互聯網
上載者:User

標籤:

原文連結:http://www.cnblogs.com/cg_ghost/archive/2011/11/30/2268734.html

經過實驗,在VS2012有效。

1. 建立或編輯usertype.dat檔案(此檔案在VS安裝目錄下的Common7\IDE下面,比如我的就在D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\usertype.dat),添加如下的關鍵字列表,每個單詞佔一行,如果你想添加你自己的關鍵字,也可以按照這種方式添加在usertype.dat檔案中
2. 在vs中開啟Tools->Options...->TextEditor->File Extension
填寫你想使用的著色器副檔名,如fx, hlsl, vs, ps等等,然後Editor選擇Microsoft Visual C++
3. 重新啟動VS2005
關鍵字列表:
__global__
__host__
__device__
__constant__
__shared__
gridDim
blockIdx
blockDim
threadIdx
int1
uint1
int2
uint2
int3
uint3
int4
uint4
float1
float2
float3
float4
char1
char2
char3
char4
uchar1
uchar2
uchar3
uchar4
short1
short2
short3
short4
dim1
dim2
dim3
dim4
int2float
float2int
asm
asm_fragment
BINORMAL
BLENDINDICES0
BLENDWEIGHT0
COLOR0
COLOR1
COLOR2
COLOR3
column_major
compile
compile_fragment
discard
decl1
float2
float3
float3x3
float3x4
float4
float4x4
float4x3
half
half2
half3
half4
in
inout
int
int2
int3
int4
matrix
out
pass1
pixelfragment
row_major
sampler
sampler1D
sampler2D
sampler3D
samplerCUBE
sampler_state
shared
stateblock
stateblock_state
TANGENT
technique
texture
texture1D
texture2D
texture3D
textureCUBE
TEXCOORD0
TEXCOORD1
TEXCOORD2
TEXCOORD3
TEXCOORD4
TEXCOORD5
TEXCOORD6
TEXCOORD7
uniform
vector
vertexfragment
VPOS

設定Shader關鍵字高亮(網上轉)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.