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

namespace MTAssets.UltimateLODSystem.MeshSimplifier
{
	// Token: 0x02000678 RID: 1656
	[Serializable]
	public sealed class BlendShapeFrame : ValueType
	{
		// Token: 0x0600A8C6 RID: 43206 RVA: 0x002B3F20 File Offset: 0x002B2120
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 656642, RefRangeEnd = 656643, XrefRangeStart = 656639, XrefRangeEnd = 656642, 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: 0x0600A8C7 RID: 43207 RVA: 0x002B3FCC File Offset: 0x002B21CC
		// 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, 100676355);
		}

		// Token: 0x0600A8C8 RID: 43208 RVA: 0x001295E7 File Offset: 0x001277E7
		public BlendShapeFrame(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x0600A8C9 RID: 43209 RVA: 0x002B4060 File Offset: 0x002B2260
		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: 0x1700390A RID: 14602
		// (get) Token: 0x0600A8CA RID: 43210 RVA: 0x002B4090 File Offset: 0x002B2290
		// (set) Token: 0x0600A8CB RID: 43211 RVA: 0x002B40B8 File Offset: 0x002B22B8
		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: 0x1700390B RID: 14603
		// (get) Token: 0x0600A8CC RID: 43212 RVA: 0x002B40DC File Offset: 0x002B22DC
		// (set) Token: 0x0600A8CD RID: 43213 RVA: 0x002B4110 File Offset: 0x002B2310
		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: 0x1700390C RID: 14604
		// (get) Token: 0x0600A8CE RID: 43214 RVA: 0x002B4138 File Offset: 0x002B2338
		// (set) Token: 0x0600A8CF RID: 43215 RVA: 0x002B416C File Offset: 0x002B236C
		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: 0x1700390D RID: 14605
		// (get) Token: 0x0600A8D0 RID: 43216 RVA: 0x002B4194 File Offset: 0x002B2394
		// (set) Token: 0x0600A8D1 RID: 43217 RVA: 0x002B41C8 File Offset: 0x002B23C8
		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: 0x04007117 RID: 28951
		private static readonly IntPtr NativeFieldInfoPtr_FrameWeight;

		// Token: 0x04007118 RID: 28952
		private static readonly IntPtr NativeFieldInfoPtr_DeltaVertices;

		// Token: 0x04007119 RID: 28953
		private static readonly IntPtr NativeFieldInfoPtr_DeltaNormals;

		// Token: 0x0400711A RID: 28954
		private static readonly IntPtr NativeFieldInfoPtr_DeltaTangents;

		// Token: 0x0400711B RID: 28955
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_Single_Il2CppStructArray_1_Vector3_Il2CppStructArray_1_Vector3_Il2CppStructArray_1_Vector3_0;
	}
}
