Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetElement< T >()

static T System.Runtime.Intrinsics.Vector256< T >.GetElement< T > ( this Vector256< T > vector,
int index )
inlinestatic
Type Constraints
T :struct 

Definition at line 895 of file Vector256.cs.

895 : struct
896 {
897 ThrowHelper.ThrowForUnsupportedIntrinsicsVectorBaseType<T>();
898 if ((uint)index >= (uint)Vector256<T>.Count)
899 {
900 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
901 }
902 return Unsafe.Add(ref Unsafe.As<Vector256<T>, T>(ref vector), index);
903 }

References System.Runtime.Intrinsics.Vector256< T >.Count, System.index, and System.ThrowHelper.ThrowArgumentOutOfRangeException().