D3DXAssembleShaderFromFile function question

Hi

I am looking for a discription about the shader error codes which are generated by this function:

hrA = D3DXAssembleShaderFromFile( (LPCWSTR)TCFilename, NULL, NULL, 0, &pCode, &pDebug);

As far as I know it is possible to get an error discription if there is any by using

(char*)pDebug->GetBufferPointer() this function.

I tried to find more information about these error codes but couldnt find any in the forum and internet.

If somebody would provide me with more informations about these error codes I would appreciate.

(Internet URL etc.)

Thank you.

Martin



Answer this question

D3DXAssembleShaderFromFile function question

  • Tomas Srna

    Does DXGetErrorDescription() or DXGetErrorString() help you (Found in <dxerr.h>)


    Or are you more interested in collecting error codes as they would be returned from the function, to do some kind of switch() statement after the call


  • Patricko

    hm well I am interested in any informations about these error codes. Like what causes them, what are the circumstances that the function throws an error message etc. Especialy the erorrs which are generated by pDebug->GetBufferPointer().

    Thanks for DXGetErrorDescription(), DXGetErrorString I will check those functions.


  • D3DXAssembleShaderFromFile function question