Sign in to follow this  

Fragment Linker

This topic is 4857 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

This topic is 4857 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.

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