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

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200058C RID: 1420
	public sealed class GrainComponent : PostProcessingComponentRenderTexture<GrainModel>
	{
		// Token: 0x170034E1 RID: 13537
		// (get) Token: 0x06009CEF RID: 40175 RVA: 0x002862D4 File Offset: 0x002844D4
		public unsafe override bool active
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 647907, XrefRangeEnd = 647909, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GrainComponent.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: 0x06009CF0 RID: 40176 RVA: 0x00286324 File Offset: 0x00284524
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GrainComponent.NativeMethodInfoPtr_OnDisable_Public_Virtual_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009CF1 RID: 40177 RVA: 0x00286368 File Offset: 0x00284568
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 647909, XrefRangeEnd = 647958, 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(GrainComponent.NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009CF2 RID: 40178 RVA: 0x002863C4 File Offset: 0x002845C4
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 647961, RefRangeEnd = 647962, XrefRangeStart = 647958, XrefRangeEnd = 647961, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe GrainComponent()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(GrainComponent.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009CF3 RID: 40179 RVA: 0x00286410 File Offset: 0x00284610
		// Note: this type is marked as 'beforefieldinit'.
		static GrainComponent()
		{
			Il2CppClassPointerStore<GrainComponent>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "GrainComponent");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr);
			GrainComponent.NativeFieldInfoPtr_m_GrainLookupRT = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr, "m_GrainLookupRT");
			GrainComponent.NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr, 100675593);
			GrainComponent.NativeMethodInfoPtr_OnDisable_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr, 100675594);
			GrainComponent.NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr, 100675595);
			GrainComponent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr, 100675596);
		}

		// Token: 0x06009CF4 RID: 40180 RVA: 0x002864A4 File Offset: 0x002846A4
		public GrainComponent(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170034E0 RID: 13536
		// (get) Token: 0x06009CF5 RID: 40181 RVA: 0x002864B0 File Offset: 0x002846B0
		// (set) Token: 0x06009CF6 RID: 40182 RVA: 0x002864E4 File Offset: 0x002846E4
		public unsafe RenderTexture m_GrainLookupRT
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(GrainComponent.NativeFieldInfoPtr_m_GrainLookupRT);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new RenderTexture(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(GrainComponent.NativeFieldInfoPtr_m_GrainLookupRT), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x040068B8 RID: 26808
		private static readonly IntPtr NativeFieldInfoPtr_m_GrainLookupRT;

		// Token: 0x040068B9 RID: 26809
		private static readonly IntPtr NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0;

		// Token: 0x040068BA RID: 26810
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Public_Virtual_Void_0;

		// Token: 0x040068BB RID: 26811
		private static readonly IntPtr NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0;

		// Token: 0x040068BC RID: 26812
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x0200058D RID: 1421
		public static class Uniforms : Object
		{
			// Token: 0x06009CF7 RID: 40183 RVA: 0x0028650C File Offset: 0x0028470C
			// Note: this type is marked as 'beforefieldinit'.
			static Uniforms()
			{
				Il2CppClassPointerStore<GrainComponent.Uniforms>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr, "Uniforms");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<GrainComponent.Uniforms>.NativeClassPtr);
				GrainComponent.Uniforms.NativeFieldInfoPtr__Grain_Params1 = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GrainComponent.Uniforms>.NativeClassPtr, "_Grain_Params1");
				GrainComponent.Uniforms.NativeFieldInfoPtr__Grain_Params2 = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GrainComponent.Uniforms>.NativeClassPtr, "_Grain_Params2");
				GrainComponent.Uniforms.NativeFieldInfoPtr__GrainTex = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GrainComponent.Uniforms>.NativeClassPtr, "_GrainTex");
				GrainComponent.Uniforms.NativeFieldInfoPtr__Phase = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<GrainComponent.Uniforms>.NativeClassPtr, "_Phase");
			}

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

			// Token: 0x170034E2 RID: 13538
			// (get) Token: 0x06009CF9 RID: 40185 RVA: 0x00286588 File Offset: 0x00284788
			// (set) Token: 0x06009CFA RID: 40186 RVA: 0x002865A6 File Offset: 0x002847A6
			public unsafe static int _Grain_Params1
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(GrainComponent.Uniforms.NativeFieldInfoPtr__Grain_Params1, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(GrainComponent.Uniforms.NativeFieldInfoPtr__Grain_Params1, (void*)(&value));
				}
			}

			// Token: 0x170034E3 RID: 13539
			// (get) Token: 0x06009CFB RID: 40187 RVA: 0x002865B8 File Offset: 0x002847B8
			// (set) Token: 0x06009CFC RID: 40188 RVA: 0x002865D6 File Offset: 0x002847D6
			public unsafe static int _Grain_Params2
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(GrainComponent.Uniforms.NativeFieldInfoPtr__Grain_Params2, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(GrainComponent.Uniforms.NativeFieldInfoPtr__Grain_Params2, (void*)(&value));
				}
			}

			// Token: 0x170034E4 RID: 13540
			// (get) Token: 0x06009CFD RID: 40189 RVA: 0x002865E8 File Offset: 0x002847E8
			// (set) Token: 0x06009CFE RID: 40190 RVA: 0x00286606 File Offset: 0x00284806
			public unsafe static int _GrainTex
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(GrainComponent.Uniforms.NativeFieldInfoPtr__GrainTex, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(GrainComponent.Uniforms.NativeFieldInfoPtr__GrainTex, (void*)(&value));
				}
			}

			// Token: 0x170034E5 RID: 13541
			// (get) Token: 0x06009CFF RID: 40191 RVA: 0x00286618 File Offset: 0x00284818
			// (set) Token: 0x06009D00 RID: 40192 RVA: 0x00286636 File Offset: 0x00284836
			public unsafe static int _Phase
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(GrainComponent.Uniforms.NativeFieldInfoPtr__Phase, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(GrainComponent.Uniforms.NativeFieldInfoPtr__Phase, (void*)(&value));
				}
			}

			// Token: 0x040068BD RID: 26813
			private static readonly IntPtr NativeFieldInfoPtr__Grain_Params1;

			// Token: 0x040068BE RID: 26814
			private static readonly IntPtr NativeFieldInfoPtr__Grain_Params2;

			// Token: 0x040068BF RID: 26815
			private static readonly IntPtr NativeFieldInfoPtr__GrainTex;

			// Token: 0x040068C0 RID: 26816
			private static readonly IntPtr NativeFieldInfoPtr__Phase;
		}
	}
}
