让UltraEdit为你打造一个HLSL编译器(亮显功能和编译纠错功能)!

1、用WORDFILE.TXT替换掉原有的
2、配置UltraEdit-32的编译环境:
   2.1 选择安装SDK路径下的/Microsoft DirectX SDK (December 2005)/Utilities/Bin/x86/fxc.exe做为编译器
   2.2 增加编译按纽(这个大多数教程都有)
   2.3 右击UltraEdit主工具条,选择ADVANCED
   2.4 高级->工具配置->增加新命令行
           fxc /Zi /Tfx_2_0 /Fo"%p%n.fxo"  "%p%n.fx"
       工作目录手动添加到/Microsoft DirectX SDK (December 2005)/Utilities/Bin/x86/fxc.exe
   2.5 高级->工具配置->选项 选择DOS程序
   2.6 高级->工具配置->输出 命令输出选择 输出到列表,勾选扑获输出和不替换文本

   2.7 更改快捷键当前命令CTR + B;


/L20"HLSL" HLSL_LANG Line Comment = // Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "' File Extensions = fx hlsl FX HLSL
/Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> ,    .?
/Function String = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]+([^p*&:, ^t^[^]a-zA-Z_0-9.!]++)[~;]"
/Function String 1 = "%[a-zA-Z_0-9*]*::^([a-zA-Z_0-9^~]+^)[ ^t^p]++([^p*&:, ^t^[^]/*^-'=:&a-zA-Z_0-9./(!]++)[~;]"
/Function String 2 = "%[a-zA-Z_0-9][a-zA-Z_0-9^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&:, ^t^[^]a-zA-Z_0-9./(!]++)[~;]"
/Function String 3 = "%[a-zA-Z_0-9*&$^[^]*]+[ ^t]+[a-zA-Z_0-9*&$^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&:, ^t^[^]a-zA-Z_0-9./(!]++)[~;]"
/Function String 4 = "%[a-z_0-9^[^]*]++ [a-z_0-9*^[^]]+[ ^t]++[a-z_0-9*^[^]]+[ ^t]++^([*a-z_0-9]+^)[ ^t]++([^p*&:, ^t^[^]a-z_0-9./(!]++)[~;]"
/Function String 5 = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]++([^p*&:, ^t^[^]a-zA-Z_0-9./()!]++)[~;]"
/Member String = "^([A-Za-z0-9_:.]+^)[ ^t^*&]+$S[ ^t^[^]A-Za-z0-9_]++[(-);,]"
/Variable String = "%[ ^t]++^([!-~ ^t<>]+*[~a-z^p]^)$S[ ^t;,()^-]"
/Indent Strings = "{" "if" "else" ":"
/Unindent Strings = "}"
/Open Brace Strings =  "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Open Fold Strings = "{"
/Close Fold Strings = "}"
/C1"Keywords" STYLE_KEYWORD
#define #include
bool void int true false
float float2 float3 float4 float2x2 float3x3 float4x4 float2x4 float3x4 float4x3 float4x2 float2x3 float3x2
half half2 half3 half4 half2x2 half3x3 half4x4
double double2 double2x2
vector matrix string texture
struct
return typedef uniform in out inout extern shared static volatile const
if for while do else inline
sampler2D sampler3D samplerCUBE
COLOR COLOR0 COLOR1 COLOR2 COLOR3 COLOR4 COLOR5 COLOR6 COLOR7 COLOR8 COLOR9 COLOR10 COLOR11
TEXCOORD TEXCOORD0 TEXCOORD1 TEXCOORD2 TEXCOORD3 TEXCOORD4 TEXCOORD5 TEXCOORD6 TEXCOORD7 TEXCOORD8 TEXCOORD9 TEXCOORD10 TEXCOORD11
NORMAL NORMAL0 NORMAL1 NORMAL2 NORMAL3 NORMAL4 NORMAL5 NORMAL6 NORMAL7 NORMAL8 NORMAL9 NORMAL10 NORMAL11
/C2"Effect Framework" STYLE_EXTENSION
sampler_state
asm compile decl VertexShader PixelShader
technique Pass
vs_1_1 vs_2_0 vs_2_x vs_2_sw vs_3_0
ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_x ps_2_sw ps_3_0
/C3"Cg extensions" STYLE_EXTENSION
/C4"Functions" STYLE_FUNCTION
abs acos all any asin atan
atan2 ceil clamp clip cos cosh
cross D3DCOLORtoUBYTE4 ddx ddy degrees determinant
distance dot exp exp2 faceforward floor
fmod frac frexp fwidth isfinite isinf
isnan ldexp length lerp lit log
log10 log2 max min modf mul
noise normalize pow radians reflect refract
round rsqrt saturate sign sin sincos
sinh smoothstep sqrt step tan tanh
tex1D tex1Dgrad tex1Dbias tex1Dgrad tex1Dlog tex1Dproj
tex2D tex2Dbias tex2Dgrad tex2Dlod tex2Dproj tex3D
tex3Dbias tex3Dgrad tex3Dlod tex3Dproj texCUBE texCUBEbias
texCUBEgrad texCUBElod  texCUBEproj transpose



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值