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

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000599 RID: 1433
	public sealed class UserLutComponent : PostProcessingComponentRenderTexture<UserLutModel>
	{
		// Token: 0x17003547 RID: 13639
		// (get) Token: 0x06009DF8 RID: 40440 RVA: 0x0028979C File Offset: 0x0028799C
		public unsafe override bool active
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 648630, XrefRangeEnd = 648637, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UserLutComponent.NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06009DF9 RID: 40441 RVA: 0x002897EC File Offset: 0x002879EC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 648637, XrefRangeEnd = 648649, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void Prepare(Material uberMaterial)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(uberMaterial);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UserLutComponent.NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009DFA RID: 40442 RVA: 0x00289848 File Offset: 0x00287A48
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 648649, XrefRangeEnd = 648658, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnGUI()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UserLutComponent.NativeMethodInfoPtr_OnGUI_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009DFB RID: 40443 RVA: 0x0028988C File Offset: 0x00287A8C
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 648661, RefRangeEnd = 648662, XrefRangeStart = 648658, XrefRangeEnd = 648661, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe UserLutComponent()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(UserLutComponent.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009DFC RID: 40444 RVA: 0x002898D8 File Offset: 0x00287AD8
		// Note: this type is marked as 'beforefieldinit'.
		static UserLutComponent()
		{
			Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "UserLutComponent");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr);
			UserLutComponent.NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr, 100675647);
			UserLutComponent.NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr, 100675648);
			UserLutComponent.NativeMethodInfoPtr_OnGUI_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr, 100675649);
			UserLutComponent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr, 100675650);
		}

		// Token: 0x06009DFD RID: 40445 RVA: 0x00289958 File Offset: 0x00287B58
		public UserLutComponent(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x0400695E RID: 26974
		private static readonly IntPtr NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0;

		// Token: 0x0400695F RID: 26975
		private static readonly IntPtr NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0;

		// Token: 0x04006960 RID: 26976
		private static readonly IntPtr NativeMethodInfoPtr_OnGUI_Public_Void_0;

		// Token: 0x04006961 RID: 26977
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x0200059A RID: 1434
		public static class Uniforms : Object
		{
			// Token: 0x06009DFE RID: 40446 RVA: 0x00289964 File Offset: 0x00287B64
			// Note: this type is marked as 'beforefieldinit'.
			static Uniforms()
			{
				Il2CppClassPointerStore<UserLutComponent.Uniforms>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr, "Uniforms");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<UserLutComponent.Uniforms>.NativeClassPtr);
				UserLutComponent.Uniforms.NativeFieldInfoPtr__UserLut = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UserLutComponent.Uniforms>.NativeClassPtr, "_UserLut");
				UserLutComponent.Uniforms.NativeFieldInfoPtr__UserLut_Params = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<UserLutComponent.Uniforms>.NativeClassPtr, "_UserLut_Params");
			}

			// Token: 0x06009DFF RID: 40447 RVA: 0x0000A74C File Offset: 0x0000894C
			public Uniforms(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x17003548 RID: 13640
			// (get) Token: 0x06009E00 RID: 40448 RVA: 0x002899B8 File Offset: 0x00287BB8
			// (set) Token: 0x06009E01 RID: 40449 RVA: 0x002899D6 File Offset: 0x00287BD6
			public unsafe static int _UserLut
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(UserLutComponent.Uniforms.NativeFieldInfoPtr__UserLut, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(UserLutComponent.Uniforms.NativeFieldInfoPtr__UserLut, (void*)(&value));
				}
			}

			// Token: 0x17003549 RID: 13641
			// (get) Token: 0x06009E02 RID: 40450 RVA: 0x002899E8 File Offset: 0x00287BE8
			// (set) Token: 0x06009E03 RID: 40451 RVA: 0x00289A06 File Offset: 0x00287C06
			public unsafe static int _UserLut_Params
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(UserLutComponent.Uniforms.NativeFieldInfoPtr__UserLut_Params, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(UserLutComponent.Uniforms.NativeFieldInfoPtr__UserLut_Params, (void*)(&value));
				}
			}

			// Token: 0x04006962 RID: 26978
			private static readonly IntPtr NativeFieldInfoPtr__UserLut;

			// Token: 0x04006963 RID: 26979
			private static readonly IntPtr NativeFieldInfoPtr__UserLut_Params;
		}
	}
}
