d3dx9_36: Implentation of D3DXSHDot

Alexandre Julliard julliard at winehq.org
Fri Jun 22 04:02:38 CDT 2012


Nozomi Kodama <nozomi.kodama at yahoo.com> writes:

> +static void test_D3DXSHDot(void)
> +{
> +    unsigned int i;
> +    FLOAT a[64], b[64], got;
> +    CONST FLOAT expected[] =
> +    { 0.0f, 0.0f, 17.0f, 222.0f, 1300.0f, 5050.0f, 15225.0f, 38612.0f, 86352.0f, };
> +
> +    for (i = 0; i < 64; i++)
> +    {
> +        a[i] = (FLOAT)i;
> +        b[i] = (FLOAT)i + 0.5f;
> +    }

You should start with a non-zero value to tests orders 0 and 1 properly.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list