2

Closed

ID3DX11EffectVectorVariable methods with offset fail

description

The memcpy in TVector4Variable<IBaseInterface>::SetFloatVectorArray and TVector4Variable<IBaseInterface>::GetFloatVectorArray does not properly handle offsets > 0.
Closed May 8, 2015 at 11:11 PM by walbourn
Fix submitted to CodePlex & GitHub.

comments

walbourn wrote Feb 4, 2015 at 4:01 PM

See the discussion thread for more background.

Chazar wrote Feb 5, 2015 at 10:00 AM

It seems that it is only issue of TVector4Variable (not all ID3DX11EffectVectorVariable). TVector4Variable has only 4 methods Get/SetFloatVectorArray and Get/SetFloatVector. Other methods like bool or int equivalents are derived from TVectorVariable and seems to work properly. So only memcpy in lines 2536 and 2559 in EffectVariable.inl (Nov 24, 2014) needs to be corrected.

walbourn wrote May 8, 2015 at 11:03 PM

Sorry, I forgot to apply this before the April 2015 release. It's submitted now.