[PATCH 4/5] d3dx9: Copy the entire vector at once if there is no need of type conversions.

Henri Verbeet hverbeet at gmail.com
Mon Apr 14 13:12:46 CDT 2014


On 14 April 2014 19:32, Matteo Bruni <mbruni at codeweavers.com> wrote:
> @@ -740,6 +740,12 @@ static void set_vector(struct d3dx_parameter *param, const D3DXVECTOR4 *vector)
>  {
>      UINT i;
>
> +    if (param->type == D3DXPT_FLOAT)
> +    {
> +        memcpy(param->data, vector, param->columns * sizeof(float));
> +        return;
> +    }
> +
When called from d3dx9_base_effect_set_vector_array(), this is not
quite optimal either.



More information about the wine-devel mailing list