   Direct3D 9 with Cg question
  I'm using Nvidia's Cg for my shaders and when I do cgD3D9GetLatestVertexProfile/cgD3D9GetLatestPixelProfile, I get back vs_3_0 and ps_3_0, respectively. When looking at examples done in HLSL for Direct3D 9, I try implementing them in Cg and I seem to run into a lot of branching problems where I get CG ERROR "Unknown Error", and that's it. Has anyone else run into this problem? Also, I tried setting my profiles manually to hlslv and hlslf and I no longer have the restrictions on branching it seems. When I check out PIX, it shows they are compiled for vs_3_0 and ps_3_0, so I'm not sure why the ones Cg compiles as vs_3_0 and ps_3_0 don't work the same. Secondly, even though the branching seems to work, I no longer seem to be able to control the sampler states such as min/mag/mip filtering so everything is set to D3DTEXF_NONE it seems.Does anyone know the differences between setting the profiles to vs_3_0/ps_3_0 and hlslv/hlslf ? Also, does anyone know how to control the texture filtering when using hlslv/hlslf ? All the examples I've seen with HLSL have the sampler states in the effect file. Does that mean the hlslv/hlslf profiles are meant for cgFX files where it seems you can do that?I hope someone here can help, as the Nvidia forums for Cg don't seem to get the attention they should.   