using System;
using System.Runtime.InteropServices;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppSystem;

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200056B RID: 1387
	[Serializable]
	public class EyeAdaptationModel : PostProcessingModel
	{
		// Token: 0x170032FB RID: 13051
		// (get) Token: 0x0600968B RID: 38539 RVA: 0x0026A2CC File Offset: 0x002684CC
		// (set) Token: 0x0600968C RID: 38540 RVA: 0x0026A31C File Offset: 0x0026851C
		public unsafe EyeAdaptationModel.Settings settings
		{
			[CallerCount(0)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EyeAdaptationModel.NativeMethodInfoPtr_get_settings_Public_get_Settings_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
			[CallerCount(0)]
			set
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				checked
				{
					IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
					*ptr = ref value;
					IntPtr intPtr2;
					IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EyeAdaptationModel.NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
					Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				}
			}
		}

		// Token: 0x0600968D RID: 38541 RVA: 0x0026A370 File Offset: 0x00268570
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 616543, XrefRangeEnd = 616544, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void Reset()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), EyeAdaptationModel.NativeMethodInfoPtr_Reset_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600968E RID: 38542 RVA: 0x0026A3C0 File Offset: 0x002685C0
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 616546, RefRangeEnd = 616547, XrefRangeStart = 616544, XrefRangeEnd = 616546, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe EyeAdaptationModel()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<EyeAdaptationModel>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EyeAdaptationModel.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600968F RID: 38543 RVA: 0x0026A40C File Offset: 0x0026860C
		// Note: this type is marked as 'beforefieldinit'.
		static EyeAdaptationModel()
		{
			Il2CppClassPointerStore<EyeAdaptationModel>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "EyeAdaptationModel");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<EyeAdaptationModel>.NativeClassPtr);
			EyeAdaptationModel.NativeFieldInfoPtr_m_Settings = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel>.NativeClassPtr, "m_Settings");
			EyeAdaptationModel.NativeMethodInfoPtr_get_settings_Public_get_Settings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EyeAdaptationModel>.NativeClassPtr, 100675007);
			EyeAdaptationModel.NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EyeAdaptationModel>.NativeClassPtr, 100675008);
			EyeAdaptationModel.NativeMethodInfoPtr_Reset_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EyeAdaptationModel>.NativeClassPtr, 100675009);
			EyeAdaptationModel.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EyeAdaptationModel>.NativeClassPtr, 100675010);
		}

		// Token: 0x06009690 RID: 38544 RVA: 0x002671A0 File Offset: 0x002653A0
		public EyeAdaptationModel(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170032FA RID: 13050
		// (get) Token: 0x06009691 RID: 38545 RVA: 0x0026A4A0 File Offset: 0x002686A0
		// (set) Token: 0x06009692 RID: 38546 RVA: 0x0026A4C8 File Offset: 0x002686C8
		public unsafe EyeAdaptationModel.Settings m_Settings
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EyeAdaptationModel.NativeFieldInfoPtr_m_Settings);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(EyeAdaptationModel.NativeFieldInfoPtr_m_Settings)) = value;
			}
		}

		// Token: 0x040064D2 RID: 25810
		private static readonly IntPtr NativeFieldInfoPtr_m_Settings;

		// Token: 0x040064D3 RID: 25811
		private static readonly IntPtr NativeMethodInfoPtr_get_settings_Public_get_Settings_0;

		// Token: 0x040064D4 RID: 25812
		private static readonly IntPtr NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0;

		// Token: 0x040064D5 RID: 25813
		private static readonly IntPtr NativeMethodInfoPtr_Reset_Public_Virtual_Void_0;

		// Token: 0x040064D6 RID: 25814
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x0200056C RID: 1388
		public enum EyeAdaptationType
		{
			// Token: 0x040064D8 RID: 25816
			Progressive,
			// Token: 0x040064D9 RID: 25817
			Fixed
		}

		// Token: 0x0200056D RID: 1389
		[Serializable]
		[StructLayout(LayoutKind.Explicit)]
		public struct Settings
		{
			// Token: 0x170032FC RID: 13052
			// (get) Token: 0x06009693 RID: 38547 RVA: 0x0026A4EC File Offset: 0x002686EC
			public unsafe static EyeAdaptationModel.Settings defaultSettings
			{
				[CallerCount(2)]
				[CachedScanResults(RefRangeStart = 616541, RefRangeEnd = 616543, XrefRangeStart = 616541, XrefRangeEnd = 616541, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
				get
				{
					IntPtr* ptr = null;
					IntPtr intPtr2;
					IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(EyeAdaptationModel.Settings.NativeMethodInfoPtr_get_defaultSettings_Public_Static_get_Settings_0, 0, (void**)ptr, ref intPtr2);
					Il2CppException.RaiseExceptionIfNecessary(intPtr2);
					return *IL2CPP.il2cpp_object_unbox(intPtr);
				}
			}

			// Token: 0x06009694 RID: 38548 RVA: 0x0026A530 File Offset: 0x00268730
			// Note: this type is marked as 'beforefieldinit'.
			static Settings()
			{
				Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<EyeAdaptationModel>.NativeClassPtr, "Settings");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr);
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_lowPercent = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "lowPercent");
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_highPercent = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "highPercent");
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_minLuminance = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "minLuminance");
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_maxLuminance = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "maxLuminance");
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_keyValue = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "keyValue");
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_dynamicKeyValue = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "dynamicKeyValue");
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_adaptationType = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "adaptationType");
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_speedUp = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "speedUp");
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_speedDown = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "speedDown");
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_logMin = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "logMin");
				EyeAdaptationModel.Settings.NativeFieldInfoPtr_logMax = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, "logMax");
				EyeAdaptationModel.Settings.NativeMethodInfoPtr_get_defaultSettings_Public_Static_get_Settings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, 100675011);
			}

			// Token: 0x06009695 RID: 38549 RVA: 0x0026A64B File Offset: 0x0026884B
			public Object BoxIl2CppObject()
			{
				return new Object(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<EyeAdaptationModel.Settings>.NativeClassPtr, ref this));
			}

			// Token: 0x040064DA RID: 25818
			private static readonly IntPtr NativeFieldInfoPtr_lowPercent;

			// Token: 0x040064DB RID: 25819
			private static readonly IntPtr NativeFieldInfoPtr_highPercent;

			// Token: 0x040064DC RID: 25820
			private static readonly IntPtr NativeFieldInfoPtr_minLuminance;

			// Token: 0x040064DD RID: 25821
			private static readonly IntPtr NativeFieldInfoPtr_maxLuminance;

			// Token: 0x040064DE RID: 25822
			private static readonly IntPtr NativeFieldInfoPtr_keyValue;

			// Token: 0x040064DF RID: 25823
			private static readonly IntPtr NativeFieldInfoPtr_dynamicKeyValue;

			// Token: 0x040064E0 RID: 25824
			private static readonly IntPtr NativeFieldInfoPtr_adaptationType;

			// Token: 0x040064E1 RID: 25825
			private static readonly IntPtr NativeFieldInfoPtr_speedUp;

			// Token: 0x040064E2 RID: 25826
			private static readonly IntPtr NativeFieldInfoPtr_speedDown;

			// Token: 0x040064E3 RID: 25827
			private static readonly IntPtr NativeFieldInfoPtr_logMin;

			// Token: 0x040064E4 RID: 25828
			private static readonly IntPtr NativeFieldInfoPtr_logMax;

			// Token: 0x040064E5 RID: 25829
			private static readonly IntPtr NativeMethodInfoPtr_get_defaultSettings_Public_Static_get_Settings_0;

			// Token: 0x040064E6 RID: 25830
			[FieldOffset(0)]
			public float lowPercent;

			// Token: 0x040064E7 RID: 25831
			[FieldOffset(4)]
			public float highPercent;

			// Token: 0x040064E8 RID: 25832
			[FieldOffset(8)]
			public float minLuminance;

			// Token: 0x040064E9 RID: 25833
			[FieldOffset(12)]
			public float maxLuminance;

			// Token: 0x040064EA RID: 25834
			[FieldOffset(16)]
			public float keyValue;

			// Token: 0x040064EB RID: 25835
			[FieldOffset(20)]
			[MarshalAs(UnmanagedType.U1)]
			public bool dynamicKeyValue;

			// Token: 0x040064EC RID: 25836
			[FieldOffset(24)]
			public EyeAdaptationModel.EyeAdaptationType adaptationType;

			// Token: 0x040064ED RID: 25837
			[FieldOffset(28)]
			public float speedUp;

			// Token: 0x040064EE RID: 25838
			[FieldOffset(32)]
			public float speedDown;

			// Token: 0x040064EF RID: 25839
			[FieldOffset(36)]
			public int logMin;

			// Token: 0x040064F0 RID: 25840
			[FieldOffset(40)]
			public int logMax;
		}
	}
}
