protected override void UnlockImpl() { //set the bytes array inside the texture surface.SetData( mipLevel, XnaHelper.ToRectangle( _lockedBox ), _bufferBytes, 0, _bufferBytes.Length ); }