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

namespace UnityEngine.PostProcessing
{
	// Token: 0x020005B1 RID: 1457
	[Serializable]
	public class ChromaticAberrationModel : PostProcessingModel
	{
		// Token: 0x1700356B RID: 13675
		// (get) Token: 0x06009E69 RID: 40553 RVA: 0x0028B318 File Offset: 0x00289518
		// (set) Token: 0x06009E6A RID: 40554 RVA: 0x0028B364 File Offset: 0x00289564
		public unsafe ChromaticAberrationModel.Settings settings
		{
			[CallerCount(0)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ChromaticAberrationModel.NativeMethodInfoPtr_get_settings_Public_get_Settings_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return new ChromaticAberrationModel.Settings(intPtr);
			}
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 648731, XrefRangeEnd = 648732, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			set
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				checked
				{
					IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
					*ptr = IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtrNotNull(value));
					IntPtr intPtr2;
					IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ChromaticAberrationModel.NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
					Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				}
			}
		}

		// Token: 0x06009E6B RID: 40555 RVA: 0x0028B3C4 File Offset: 0x002895C4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 648732, XrefRangeEnd = 648734, 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), ChromaticAberrationModel.NativeMethodInfoPtr_Reset_Public_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009E6C RID: 40556 RVA: 0x0028B414 File Offset: 0x00289614
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 648737, RefRangeEnd = 648738, XrefRangeStart = 648734, XrefRangeEnd = 648737, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ChromaticAberrationModel()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ChromaticAberrationModel.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009E6D RID: 40557 RVA: 0x0028B460 File Offset: 0x00289660
		// Note: this type is marked as 'beforefieldinit'.
		static ChromaticAberrationModel()
		{
			Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "ChromaticAberrationModel");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr);
			ChromaticAberrationModel.NativeFieldInfoPtr_m_Settings = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr, "m_Settings");
			ChromaticAberrationModel.NativeMethodInfoPtr_get_settings_Public_get_Settings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr, 100675688);
			ChromaticAberrationModel.NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr, 100675689);
			ChromaticAberrationModel.NativeMethodInfoPtr_Reset_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr, 100675690);
			ChromaticAberrationModel.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr, 100675691);
		}

		// Token: 0x06009E6E RID: 40558 RVA: 0x00289EDC File Offset: 0x002880DC
		public ChromaticAberrationModel(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700356A RID: 13674
		// (get) Token: 0x06009E6F RID: 40559 RVA: 0x0028B4F4 File Offset: 0x002896F4
		// (set) Token: 0x06009E70 RID: 40560 RVA: 0x0028B526 File Offset: 0x00289726
		public ChromaticAberrationModel.Settings m_Settings
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChromaticAberrationModel.NativeFieldInfoPtr_m_Settings);
				return new ChromaticAberrationModel.Settings(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<ChromaticAberrationModel.Settings>.NativeClassPtr, intPtr));
			}
			set
			{
				cpblk(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChromaticAberrationModel.NativeFieldInfoPtr_m_Settings), IL2CPP.il2cpp_object_unbox(IL2CPP.Il2CppObjectBaseToPtr(value)), IL2CPP.il2cpp_class_value_size(Il2CppClassPointerStore<ChromaticAberrationModel.Settings>.NativeClassPtr, (UIntPtr)0));
			}
		}

		// Token: 0x040069F7 RID: 27127
		private static readonly IntPtr NativeFieldInfoPtr_m_Settings;

		// Token: 0x040069F8 RID: 27128
		private static readonly IntPtr NativeMethodInfoPtr_get_settings_Public_get_Settings_0;

		// Token: 0x040069F9 RID: 27129
		private static readonly IntPtr NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0;

		// Token: 0x040069FA RID: 27130
		private static readonly IntPtr NativeMethodInfoPtr_Reset_Public_Virtual_Void_0;

		// Token: 0x040069FB RID: 27131
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x020005B2 RID: 1458
		[Serializable]
		public sealed class Settings : ValueType
		{
			// Token: 0x1700356E RID: 13678
			// (get) Token: 0x06009E71 RID: 40561 RVA: 0x0028B55C File Offset: 0x0028975C
			public unsafe static ChromaticAberrationModel.Settings defaultSettings
			{
				[CallerCount(2)]
				[CachedScanResults(RefRangeStart = 648729, RefRangeEnd = 648731, XrefRangeStart = 648728, XrefRangeEnd = 648729, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
				get
				{
					IntPtr* ptr = null;
					IntPtr intPtr2;
					IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ChromaticAberrationModel.Settings.NativeMethodInfoPtr_get_defaultSettings_Public_Static_get_Settings_0, 0, (void**)ptr, ref intPtr2);
					Il2CppException.RaiseExceptionIfNecessary(intPtr2);
					return new ChromaticAberrationModel.Settings(intPtr);
				}
			}

			// Token: 0x06009E72 RID: 40562 RVA: 0x0028B598 File Offset: 0x00289798
			// Note: this type is marked as 'beforefieldinit'.
			static Settings()
			{
				Il2CppClassPointerStore<ChromaticAberrationModel.Settings>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr, "Settings");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ChromaticAberrationModel.Settings>.NativeClassPtr);
				ChromaticAberrationModel.Settings.NativeFieldInfoPtr_spectralTexture = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ChromaticAberrationModel.Settings>.NativeClassPtr, "spectralTexture");
				ChromaticAberrationModel.Settings.NativeFieldInfoPtr_intensity = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ChromaticAberrationModel.Settings>.NativeClassPtr, "intensity");
				ChromaticAberrationModel.Settings.NativeMethodInfoPtr_get_defaultSettings_Public_Static_get_Settings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChromaticAberrationModel.Settings>.NativeClassPtr, 100675692);
			}

			// Token: 0x06009E73 RID: 40563 RVA: 0x001295E7 File Offset: 0x001277E7
			public Settings(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x06009E74 RID: 40564 RVA: 0x0028B600 File Offset: 0x00289800
			public unsafe Settings()
			{
				IntPtr intPtr = stackalloc byte[(UIntPtr)IL2CPP.il2cpp_class_value_size(Il2CppClassPointerStore<ChromaticAberrationModel.Settings>.NativeClassPtr, (UIntPtr)0)];
				base..ctor(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<ChromaticAberrationModel.Settings>.NativeClassPtr, intPtr));
			}

			// Token: 0x1700356C RID: 13676
			// (get) Token: 0x06009E75 RID: 40565 RVA: 0x0028B630 File Offset: 0x00289830
			// (set) Token: 0x06009E76 RID: 40566 RVA: 0x0028B664 File Offset: 0x00289864
			public unsafe Texture2D spectralTexture
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChromaticAberrationModel.Settings.NativeFieldInfoPtr_spectralTexture);
					IntPtr intPtr2 = *intPtr;
					return (intPtr2 != 0) ? new Texture2D(intPtr2) : null;
				}
				set
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
					IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChromaticAberrationModel.Settings.NativeFieldInfoPtr_spectralTexture), IL2CPP.Il2CppObjectBaseToPtr(value));
				}
			}

			// Token: 0x1700356D RID: 13677
			// (get) Token: 0x06009E77 RID: 40567 RVA: 0x0028B68C File Offset: 0x0028988C
			// (set) Token: 0x06009E78 RID: 40568 RVA: 0x0028B6B4 File Offset: 0x002898B4
			public unsafe float intensity
			{
				get
				{
					IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChromaticAberrationModel.Settings.NativeFieldInfoPtr_intensity);
					return *intPtr;
				}
				set
				{
					*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ChromaticAberrationModel.Settings.NativeFieldInfoPtr_intensity)) = value;
				}
			}

			// Token: 0x040069FC RID: 27132
			private static readonly IntPtr NativeFieldInfoPtr_spectralTexture;

			// Token: 0x040069FD RID: 27133
			private static readonly IntPtr NativeFieldInfoPtr_intensity;

			// Token: 0x040069FE RID: 27134
			private static readonly IntPtr NativeMethodInfoPtr_get_defaultSettings_Public_Static_get_Settings_0;
		}
	}
}
