d3dx9_36 [patch 2 of 3]: Implementation of D3DXSHScale
matteo.mystral at gmail.com
Wed Jun 27 07:14:25 CDT 2012
2012/6/27 Nozomi Kodama <nozomi.kodama at yahoo.com>:
-@ stub D3DXSHScale(ptr long ptr ptr)
+@ stdcall D3DXSHScale(ptr long ptr ptr)
+FLOAT* WINAPI D3DXSHScale(FLOAT *out, UINT order, CONST FLOAT *a,
CONST FLOAT scale)
The last parameter doesn't match between the function prototype and
the spec entry. Also, apparently MSDN agrees with your prototype,
while the docs in the last DirectX SDK have a pointer there. I guess
the tests demonstrate that the parameter is actually a plain float...
+ for (i = 0; i < 100; i++)
+ a[i] = (FLOAT)i;
+ b[i] = (FLOAT)i;
No need to cast.
+ D3DXSHScale(b, order, a, 5.0f);
Not important, but you could also verify that the returned pointer is == b.
+/* D3DXSHScale does not modify the elements of the array after the
order * order-th element */
Can you please indent those comments?
That's not needed at all.
Also, while you're at it, you should probably merge the two for loops
in the test, like Francois did in
More information about the wine-devel