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

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000559 RID: 1369
	[Serializable]
	public class ChromaticAberrationModel : PostProcessingModel
	{
		// Token: 0x170032D0 RID: 13008
		// (get) Token: 0x06009616 RID: 38422 RVA: 0x002685DC File Offset: 0x002667DC
		// (set) Token: 0x06009617 RID: 38423 RVA: 0x00268628 File Offset: 0x00266828
		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 = 616421, XrefRangeEnd = 616422, 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: 0x06009618 RID: 38424 RVA: 0x00268688 File Offset: 0x00266888
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 616422, XrefRangeEnd = 616424, 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: 0x06009619 RID: 38425 RVA: 0x002686D8 File Offset: 0x002668D8
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 616427, RefRangeEnd = 616428, XrefRangeStart = 616424, XrefRangeEnd = 616427, 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: 0x0600961A RID: 38426 RVA: 0x00268724 File Offset: 0x00266924
		// 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, 100674975);
			ChromaticAberrationModel.NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr, 100674976);
			ChromaticAberrationModel.NativeMethodInfoPtr_Reset_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr, 100674977);
			ChromaticAberrationModel.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ChromaticAberrationModel>.NativeClassPtr, 100674978);
		}

		// Token: 0x0600961B RID: 38427 RVA: 0x002671A0 File Offset: 0x002653A0
		public ChromaticAberrationModel(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170032CF RID: 13007
		// (get) Token: 0x0600961C RID: 38428 RVA: 0x002687B8 File Offset: 0x002669B8
		// (set) Token: 0x0600961D RID: 38429 RVA: 0x002687EA File Offset: 0x002669EA
		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: 0x0400644E RID: 25678
		private static readonly IntPtr NativeFieldInfoPtr_m_Settings;

		// Token: 0x0400644F RID: 25679
		private static readonly IntPtr NativeMethodInfoPtr_get_settings_Public_get_Settings_0;

		// Token: 0x04006450 RID: 25680
		private static readonly IntPtr NativeMethodInfoPtr_set_settings_Public_set_Void_Settings_0;

		// Token: 0x04006451 RID: 25681
		private static readonly IntPtr NativeMethodInfoPtr_Reset_Public_Virtual_Void_0;

		// Token: 0x04006452 RID: 25682
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x0200055A RID: 1370
		[Serializable]
		public sealed class Settings : ValueType
		{
			// Token: 0x170032D3 RID: 13011
			// (get) Token: 0x0600961E RID: 38430 RVA: 0x00268820 File Offset: 0x00266A20
			public unsafe static ChromaticAberrationModel.Settings defaultSettings
			{
				[CallerCount(2)]
				[CachedScanResults(RefRangeStart = 616419, RefRangeEnd = 616421, XrefRangeStart = 616418, XrefRangeEnd = 616419, 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: 0x0600961F RID: 38431 RVA: 0x0026885C File Offset: 0x00266A5C
			// 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, 100674979);
			}

			// Token: 0x06009620 RID: 38432 RVA: 0x0011646F File Offset: 0x0011466F
			public Settings(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x06009621 RID: 38433 RVA: 0x002688C4 File Offset: 0x00266AC4
			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: 0x170032D1 RID: 13009
			// (get) Token: 0x06009622 RID: 38434 RVA: 0x002688F4 File Offset: 0x00266AF4
			// (set) Token: 0x06009623 RID: 38435 RVA: 0x00268928 File Offset: 0x00266B28
			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: 0x170032D2 RID: 13010
			// (get) Token: 0x06009624 RID: 38436 RVA: 0x00268950 File Offset: 0x00266B50
			// (set) Token: 0x06009625 RID: 38437 RVA: 0x00268978 File Offset: 0x00266B78
			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: 0x04006453 RID: 25683
			private static readonly IntPtr NativeFieldInfoPtr_spectralTexture;

			// Token: 0x04006454 RID: 25684
			private static readonly IntPtr NativeFieldInfoPtr_intensity;

			// Token: 0x04006455 RID: 25685
			private static readonly IntPtr NativeMethodInfoPtr_get_defaultSettings_Public_Static_get_Settings_0;
		}
	}
}
