This project has moved and is read-only. For the latest updates, please go here.


ID3DX11EffectVectorVariable methods with offset fail


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


walbourn wrote Feb 4, 2015 at 5:01 PM

See the discussion thread for more background.

Chazar wrote Feb 5, 2015 at 11: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 9, 2015 at 12:03 AM

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