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

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000541 RID: 1345
	public sealed class UserLutComponent : PostProcessingComponentRenderTexture<UserLutModel>
	{
		// Token: 0x170032AC RID: 12972
		// (get) Token: 0x060095A5 RID: 38309 RVA: 0x00266A60 File Offset: 0x00264C60
		public unsafe override bool active
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 616320, XrefRangeEnd = 616327, 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: 0x060095A6 RID: 38310 RVA: 0x00266AB0 File Offset: 0x00264CB0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 616327, XrefRangeEnd = 616339, 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: 0x060095A7 RID: 38311 RVA: 0x00266B0C File Offset: 0x00264D0C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 616339, XrefRangeEnd = 616348, 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: 0x060095A8 RID: 38312 RVA: 0x00266B50 File Offset: 0x00264D50
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 616351, RefRangeEnd = 616352, XrefRangeStart = 616348, XrefRangeEnd = 616351, 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: 0x060095A9 RID: 38313 RVA: 0x00266B9C File Offset: 0x00264D9C
		// 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, 100674934);
			UserLutComponent.NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr, 100674935);
			UserLutComponent.NativeMethodInfoPtr_OnGUI_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr, 100674936);
			UserLutComponent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<UserLutComponent>.NativeClassPtr, 100674937);
		}

		// Token: 0x060095AA RID: 38314 RVA: 0x00266C1C File Offset: 0x00264E1C
		public UserLutComponent(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x040063B5 RID: 25525
		private static readonly IntPtr NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0;

		// Token: 0x040063B6 RID: 25526
		private static readonly IntPtr NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0;

		// Token: 0x040063B7 RID: 25527
		private static readonly IntPtr NativeMethodInfoPtr_OnGUI_Public_Void_0;

		// Token: 0x040063B8 RID: 25528
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x02000542 RID: 1346
		public static class Uniforms : Object
		{
			// Token: 0x060095AB RID: 38315 RVA: 0x00266C28 File Offset: 0x00264E28
			// 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: 0x060095AC RID: 38316 RVA: 0x0000A688 File Offset: 0x00008888
			public Uniforms(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x170032AD RID: 12973
			// (get) Token: 0x060095AD RID: 38317 RVA: 0x00266C7C File Offset: 0x00264E7C
			// (set) Token: 0x060095AE RID: 38318 RVA: 0x00266C9A File Offset: 0x00264E9A
			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: 0x170032AE RID: 12974
			// (get) Token: 0x060095AF RID: 38319 RVA: 0x00266CAC File Offset: 0x00264EAC
			// (set) Token: 0x060095B0 RID: 38320 RVA: 0x00266CCA File Offset: 0x00264ECA
			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: 0x040063B9 RID: 25529
			private static readonly IntPtr NativeFieldInfoPtr__UserLut;

			// Token: 0x040063BA RID: 25530
			private static readonly IntPtr NativeFieldInfoPtr__UserLut_Params;
		}
	}
}
