设置Shader关键字高亮(网上转)

mac2022-06-30  23

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__gridDimblockIdxblockDimthreadIdxint1uint1int2uint2int3uint3int4uint4float1float2float3float4char1char2char3char4uchar1uchar2uchar3uchar4short1short2short3short4dim1dim2dim3dim4int2floatfloat2intasmasm_fragmentBINORMALBLENDINDICES0BLENDWEIGHT0COLOR0COLOR1COLOR2COLOR3column_majorcompilecompile_fragmentdiscarddecl1float2float3float3x3float3x4float4float4x4float4x3halfhalf2half3half4ininoutintint2int3int4matrixoutpass1pixelfragmentrow_majorsamplersampler1Dsampler2Dsampler3DsamplerCUBEsampler_statesharedstateblockstateblock_stateTANGENTtechniquetexturetexture1Dtexture2Dtexture3DtextureCUBETEXCOORD0TEXCOORD1TEXCOORD2TEXCOORD3TEXCOORD4TEXCOORD5TEXCOORD6TEXCOORD7uniformvectorvertexfragmentVPOS

转载于:https://www.cnblogs.com/cg_ghost/archive/2011/11/30/2268734.html

相关资源:Unity shaderlab&cg vs关键词高亮工具
最新回复(0)