Archived

This topic is now archived and is closed to further replies.

Edidas

vertex shader problem for DX9

Recommended Posts

Edidas    102
hi, I know that there is a new interface firstly introduced by DX9, ID3DXFragmentLinker. I''m really happy to know that because programming shader in such a way is 100 times more flexible than the usual way, but... Does anyone ever tried using D3DXGatherFragmentsFromFile?? I found that there is no documentation nor example details how a "fragment" should be defined in a shader file, which NVidia (NVLINK) uses "#beginfragment" & "#endfragment" to do this trick. I even tried passing the whole file which is originally from SDK, but this function still failed. The following is how I implemented: HRESULT hr = D3DXGatherFragmentsFromFile( "my_shader.vsh", macroArray, NULL, D3DXSHADER_SKIPVALIDATION, &ppShader, &ppErrorMsgs ); Can anyone help?? I''m totally stuck! thanks so much in advance EdidaS

Share this post


Link to post
Share on other sites
Pinzmon    127
MS posted their GDC powerpoint presentations yesterday. There was one that had a section on the fragment linker - look in "DirectX Shader Management - Craig Peeper.ppt". It gives examples of the fragment declaration. You can find the ppts Here.


Hope it helps,
Pinz

Share this post


Link to post
Share on other sites