Re: [PATCH 4/5] d3dx9: Copy the entire vector at once if there is no need of type conversions.
14 Apr
2014
14 Apr
'14
6:12 p.m.
On 14 April 2014 19:32, Matteo Bruni <mbruni(a)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.
4266
Age (days ago)
4266
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet