   Problem with a .fx sample
  Hello all,i currently read myself into HLSL and .fx files using the D3DX effect interface.found a few .fx sample files (not from DX9sdk) but when i try to create the effect from it it gives me some kind of "unexpected token: texture0"here is the .fx files contents:texture texture0;texture texture1;float4 factor0;pixelshader two_stages_ps = asm{ps_1_1;tex t0;tex t1;lrp r0.w, v0, t0, t1;mov r0.xyz, c0;+mul r0.w, c0, r0;};technique two_stages_2{pass p0{Texture[0] = <texture0>;Texture[1] = <texture1>;PixelShaderConstant[0] = <factor0>;PixelShader = (two_stages_ps);}};question is...is this kind of .fx format has been used in earlier versions and is already obsolete or did i miss something??any feedback appreciated!best regards,- christoph -   
  Compiles fine for me in FX Composer.  Though doesn't render anything.Was there a reason you were using an older ASM-based example ?   ;  Thank you Griffin, forgot about FXComposer. Will download and try it when i'm home.And about the asm code...got that example from an application using an earlier version of DX. Think its 9.0b iirc.;  If your aim is to learn HLSL I would personally start with a more recent example The workshop in the DirectX SDK, ...\Samples\C++\Direct3D\Tutorials\HLSLWorkshop is OK, there are many other tutorials on the web.  Once you understand the concepts, if you want to delve deeper once you understand the high level and get into ASM you can do....