Re: d3dx9: Implementation of D3DXGetShaderSize 2/3

2008-04-06 Thread H. Verbeet
On 06/04/2008, Luis Busquets <[EMAIL PROTECTED]> wrote: > The +1 of the end is because finally address points to the end token. So +1 > is the end token. This function has been tested with all shaders of > Civilization 4 and has responded successfully. > My bad, I misread that as (address-(pFunctio

d3dx9: Implementation of D3DXGetShaderSize 2/3

2008-04-06 Thread Luis Busquets
The +1 of the end is because finally address points to the end token. So +1 is the end token. This function has been tested with all shaders of Civilization 4 and has responded successfully. The attached patch has included the suggestions. H. Verbeet escribió: On 06/04/2008, Luis Busquets <[

Re: d3dx9: Implementation of D3DXGetShaderSize

2008-04-06 Thread H. Verbeet
On 06/04/2008, Luis Busquets <[EMAIL PROTECTED]> wrote: > This function obtains the size of a shader bytestream. It does so looking > for the End token. > >+UINT D3DXGetShaderSize(DWORD * pFunction) I would expect this to take a const pointer. Also, there's no reason to use Microsoft's (broken) na