Jump to content
  • Advertisement
Sign in to follow this  
tridemax

Fragment Linker

This topic is 5135 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've tried to implement fragment linking under DirectX 9.0c and has some problems with it. First - 2 simple fragments: //---------------------------- // Input Pixel Fragment //---------------------------- void psInput(float4 inColor : COLOR0, out float4 outColor : r_Color) { outColor = inColor; } pixelfragment psInputFragment = compile_fragment ps_2_0 psInput(); //---------------------------- // Output Pixel Fragment //---------------------------- void psOutput(float4 inColor : r_Color, out float4 outColor : COLOR0) { outColor = inColor; } pixelfragment psOutputFragment = compile_fragment ps_2_0 psOutput(); Generated code: // // Generated by Microsoft (R) D3DX9 Fragment Linker 5.04.00.2904 // // flink /E psInputFragment /E psOutputFragment /T ps_2_0 // /Fx common.fga common.fg // ps_2_0 dcl v0 mov r0, v0 mov oC0, r0 // approximately 2 instruction slots used Why not mov oC0, v0? Microsoft promises "Register use optimization"... Second - this fragments cannot be gathered for ps_1_x target. Compiler quits with error: error X4502: invalid output semantic 'r_Color' error X2903: There was an error compiling the fragment 'psInputFragment' So, ps_1_x not supported? Or did I miss something? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!