Axiom.Core.InstancedGeometry.RemapIndexes C# (CSharp) Method

RemapIndexes() private method

private RemapIndexes ( uint src, uint dst, int>.Dictionary &remap, int numIndexes ) : void
src uint
dst uint
remap int>.Dictionary
numIndexes int
return void
		internal unsafe void RemapIndexes( uint* src, uint* dst, ref Dictionary<int, int> remap, int numIndexes )
		{
			for ( int i = 0; i < numIndexes; ++i )
			{
				int searchIdx = (int)*src++;
				// look up original and map to target
				Debug.Assert( remap.ContainsKey( searchIdx ) );

				*dst++ = (uint)remap[ searchIdx ];
			}
		}

Same methods

InstancedGeometry::RemapIndexes ( ushort src, ushort dst, int>.Dictionary &remap, int numIndexes ) : void