Sign in to follow this  
Mille

HLSL effect file, shader model 3.0 ?

Recommended Posts

Mille    166
Hey all, I was trying to write an HLSL effect (*.fx file) with shader model 3.0, and was hoping to declare the technique like this: technique MyTechnique { pass P0 { VertexShader = compile vs_3_0 MyVertexShader(..); PixelShader = compile ps_3_0 MyPixelShader(..); } } but this doese NOT compile - does the DirectX effect system even works for SM3.0 ?, I have the feeling that is DO NOT. Also, if you run fxc.exe, there is no "fx_3_0" option .. (?) Anyone knows anything about shader model 3.0 and effect files, and how I can make shader model 3.0 based shaders ? thanks ..

Share this post


Link to post
Share on other sites
ramy    148
if it doesnt want to compile the file and u dont have any syntax error or number of instructions r correct then ur vga doesnt support SM 3.0.

yes DirectX 9.0 supports SM 3.0.

int he utilities in the DX sdk in the caps app, check out the Vertex and Pixel shader compatible versions.

Share this post


Link to post
Share on other sites
Mille    166

Allright, my card supports SM3.0 (GForce FX7800), but I was using a "wrong" fxc.exe version. The shader compilation goes like this:

fxc.exe /Zi /Tfx_2_0 /Fo MyShaderFolder\$(InputName).fxo $(InputPath)

And this works fine with the latest fxc.exe from Februar 2006 update.
Sorry about this foolish post ... :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this