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

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000534 RID: 1332
	public sealed class GrainComponent : PostProcessingComponentRenderTexture<GrainModel>
	{
		// Token: 0x17003246 RID: 12870
		// (get) Token: 0x0600949C RID: 38044 RVA: 0x00263598 File Offset: 0x00261798
		public unsafe override bool active
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 615597, XrefRangeEnd = 615599, 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: 0x0600949D RID: 38045 RVA: 0x002635E8 File Offset: 0x002617E8
		[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: 0x0600949E RID: 38046 RVA: 0x0026362C File Offset: 0x0026182C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 615599, XrefRangeEnd = 615648, 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: 0x0600949F RID: 38047 RVA: 0x00263688 File Offset: 0x00261888
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 615651, RefRangeEnd = 615652, XrefRangeStart = 615648, XrefRangeEnd = 615651, 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: 0x060094A0 RID: 38048 RVA: 0x002636D4 File Offset: 0x002618D4
		// 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, 100674880);
			GrainComponent.NativeMethodInfoPtr_OnDisable_Public_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr, 100674881);
			GrainComponent.NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr, 100674882);
			GrainComponent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<GrainComponent>.NativeClassPtr, 100674883);
		}

		// Token: 0x060094A1 RID: 38049 RVA: 0x00263768 File Offset: 0x00261968
		public GrainComponent(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003245 RID: 12869
		// (get) Token: 0x060094A2 RID: 38050 RVA: 0x00263774 File Offset: 0x00261974
		// (set) Token: 0x060094A3 RID: 38051 RVA: 0x002637A8 File Offset: 0x002619A8
		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: 0x0400630F RID: 25359
		private static readonly IntPtr NativeFieldInfoPtr_m_GrainLookupRT;

		// Token: 0x04006310 RID: 25360
		private static readonly IntPtr NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0;

		// Token: 0x04006311 RID: 25361
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Public_Virtual_Void_0;

		// Token: 0x04006312 RID: 25362
		private static readonly IntPtr NativeMethodInfoPtr_Prepare_Public_Virtual_Void_Material_0;

		// Token: 0x04006313 RID: 25363
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x02000535 RID: 1333
		public static class Uniforms : Object
		{
			// Token: 0x060094A4 RID: 38052 RVA: 0x002637D0 File Offset: 0x002619D0
			// 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: 0x060094A5 RID: 38053 RVA: 0x0000A688 File Offset: 0x00008888
			public Uniforms(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x17003247 RID: 12871
			// (get) Token: 0x060094A6 RID: 38054 RVA: 0x0026384C File Offset: 0x00261A4C
			// (set) Token: 0x060094A7 RID: 38055 RVA: 0x0026386A File Offset: 0x00261A6A
			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: 0x17003248 RID: 12872
			// (get) Token: 0x060094A8 RID: 38056 RVA: 0x0026387C File Offset: 0x00261A7C
			// (set) Token: 0x060094A9 RID: 38057 RVA: 0x0026389A File Offset: 0x00261A9A
			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: 0x17003249 RID: 12873
			// (get) Token: 0x060094AA RID: 38058 RVA: 0x002638AC File Offset: 0x00261AAC
			// (set) Token: 0x060094AB RID: 38059 RVA: 0x002638CA File Offset: 0x00261ACA
			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: 0x1700324A RID: 12874
			// (get) Token: 0x060094AC RID: 38060 RVA: 0x002638DC File Offset: 0x00261ADC
			// (set) Token: 0x060094AD RID: 38061 RVA: 0x002638FA File Offset: 0x00261AFA
			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: 0x04006314 RID: 25364
			private static readonly IntPtr NativeFieldInfoPtr__Grain_Params1;

			// Token: 0x04006315 RID: 25365
			private static readonly IntPtr NativeFieldInfoPtr__Grain_Params2;

			// Token: 0x04006316 RID: 25366
			private static readonly IntPtr NativeFieldInfoPtr__GrainTex;

			// Token: 0x04006317 RID: 25367
			private static readonly IntPtr NativeFieldInfoPtr__Phase;
		}
	}
}
