Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualHodgman

Posted 22 August 2012 - 12:44 AM

How do I compile a .fx file without the "main" function/procedure?

Can you explain your problem a bit more? Every shader needs an "entry point" / "main function" (though with the Effects Framework, this is written in your technique block).

Are you compiling your shader for use with the Effects Framework, or as raw pixel/vertex shaders for use with the raw D3D APIs directly?
Also, what version of D3D are you targetting?

#1Hodgman

Posted 22 August 2012 - 12:40 AM

How do I compile a .fx file without the "main" function/procedure?

Can you explain your problem a bit more? Every shader needs an "entry point" / "main function".

Are you compiling your shader for use with the Effects Framework, or as raw pixel/vertex shaders for use with the raw D3D APIs directly?

PARTNERS