using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;
using UnityEngine;

namespace MTAssets.UltimateLODSystem.MeshSimplifier
{
	// Token: 0x02000620 RID: 1568
	[Serializable]
	public sealed class BlendShapeFrame : ValueType
	{
		// Token: 0x0600A073 RID: 41075 RVA: 0x002911E4 File Offset: 0x0028F3E4
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 624344, RefRangeEnd = 624345, XrefRangeStart = 624341, XrefRangeEnd = 624344, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe BlendShapeFrame(float frameWeight, Il2CppStructArray<Vector3> deltaVertices, Il2CppStructArray<Vector3> deltaNormals, Il2CppStructArray<Vector3> deltaTangents)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<BlendShapeFrame>.NativeClassPtr))
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)4) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref frameWeight;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(deltaVertices);
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(deltaNormals);
			ptr[checked(unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(deltaTangents);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(BlendShapeFrame.NativeMethodInfoPtr__ctor_Public_Void_Single_Il2CppStructArray_1_Vector3_Il2CppStructArray_1_Vector3_Il2CppStructArray_1_Vector3_0, IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtrNotNull(this)), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A074 RID: 41076 RVA: 0x00291290 File Offset: 0x0028F490
		// Note: this type is marked as 'beforefieldinit'.
		static BlendShapeFrame()
		{
			Il2CppClassPointerStore<BlendShapeFrame>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "MTAssets.UltimateLODSystem.MeshSimplifier", "BlendShapeFrame");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<BlendShapeFrame>.NativeClassPtr);
			BlendShapeFrame.NativeFieldInfoPtr_FrameWeight = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BlendShapeFrame>.NativeClassPtr, "FrameWeight");
			BlendShapeFrame.NativeFieldInfoPtr_DeltaVertices = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BlendShapeFrame>.NativeClassPtr, "DeltaVertices");
			BlendShapeFrame.NativeFieldInfoPtr_DeltaNormals = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BlendShapeFrame>.NativeClassPtr, "DeltaNormals");
			BlendShapeFrame.NativeFieldInfoPtr_DeltaTangents = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<BlendShapeFrame>.NativeClassPtr, "DeltaTangents");
			BlendShapeFrame.NativeMethodInfoPtr__ctor_Public_Void_Single_Il2CppStructArray_1_Vector3_Il2CppStructArray_1_Vector3_Il2CppStructArray_1_Vector3_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<BlendShapeFrame>.NativeClassPtr, 100675642);
		}

		// Token: 0x0600A075 RID: 41077 RVA: 0x0011646F File Offset: 0x0011466F
		public BlendShapeFrame(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x0600A076 RID: 41078 RVA: 0x00291324 File Offset: 0x0028F524
		public unsafe BlendShapeFrame()
		{
			IntPtr intPtr = stackalloc byte[(UIntPtr)IL2CPP.il2cpp_class_value_size(Il2CppClassPointerStore<BlendShapeFrame>.NativeClassPtr, (UIntPtr)0)];
			base..ctor(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<BlendShapeFrame>.NativeClassPtr, intPtr));
		}

		// Token: 0x1700366F RID: 13935
		// (get) Token: 0x0600A077 RID: 41079 RVA: 0x00291354 File Offset: 0x0028F554
		// (set) Token: 0x0600A078 RID: 41080 RVA: 0x0029137C File Offset: 0x0028F57C
		public unsafe float FrameWeight
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrame.NativeFieldInfoPtr_FrameWeight);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrame.NativeFieldInfoPtr_FrameWeight)) = value;
			}
		}

		// Token: 0x17003670 RID: 13936
		// (get) Token: 0x0600A079 RID: 41081 RVA: 0x002913A0 File Offset: 0x0028F5A0
		// (set) Token: 0x0600A07A RID: 41082 RVA: 0x002913D4 File Offset: 0x0028F5D4
		public unsafe Il2CppStructArray<Vector3> DeltaVertices
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrame.NativeFieldInfoPtr_DeltaVertices);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Il2CppStructArray<Vector3>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrame.NativeFieldInfoPtr_DeltaVertices), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003671 RID: 13937
		// (get) Token: 0x0600A07B RID: 41083 RVA: 0x002913FC File Offset: 0x0028F5FC
		// (set) Token: 0x0600A07C RID: 41084 RVA: 0x00291430 File Offset: 0x0028F630
		public unsafe Il2CppStructArray<Vector3> DeltaNormals
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrame.NativeFieldInfoPtr_DeltaNormals);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Il2CppStructArray<Vector3>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrame.NativeFieldInfoPtr_DeltaNormals), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003672 RID: 13938
		// (get) Token: 0x0600A07D RID: 41085 RVA: 0x00291458 File Offset: 0x0028F658
		// (set) Token: 0x0600A07E RID: 41086 RVA: 0x0029148C File Offset: 0x0028F68C
		public unsafe Il2CppStructArray<Vector3> DeltaTangents
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrame.NativeFieldInfoPtr_DeltaTangents);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Il2CppStructArray<Vector3>(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(BlendShapeFrame.NativeFieldInfoPtr_DeltaTangents), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04006B6E RID: 27502
		private static readonly IntPtr NativeFieldInfoPtr_FrameWeight;

		// Token: 0x04006B6F RID: 27503
		private static readonly IntPtr NativeFieldInfoPtr_DeltaVertices;

		// Token: 0x04006B70 RID: 27504
		private static readonly IntPtr NativeFieldInfoPtr_DeltaNormals;

		// Token: 0x04006B71 RID: 27505
		private static readonly IntPtr NativeFieldInfoPtr_DeltaTangents;

		// Token: 0x04006B72 RID: 27506
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Single_Il2CppStructArray_1_Vector3_Il2CppStructArray_1_Vector3_Il2CppStructArray_1_Vector3_0;
	}
}
