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

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200058A RID: 1418
	public sealed class FxaaComponent : PostProcessingComponentRenderTexture<AntialiasingModel>
	{
		// Token: 0x170034DD RID: 13533
		// (get) Token: 0x06009CE4 RID: 40164 RVA: 0x00286098 File Offset: 0x00284298
		public unsafe override bool active
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 647876, XrefRangeEnd = 647877, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FxaaComponent.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: 0x06009CE5 RID: 40165 RVA: 0x002860E8 File Offset: 0x002842E8
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 647902, RefRangeEnd = 647903, XrefRangeStart = 647877, XrefRangeEnd = 647902, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Render(RenderTexture source, RenderTexture destination)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(source);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(destination);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FxaaComponent.NativeMethodInfoPtr_Render_Public_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009CE6 RID: 40166 RVA: 0x0028615C File Offset: 0x0028435C
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 647906, RefRangeEnd = 647907, XrefRangeStart = 647903, XrefRangeEnd = 647906, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe FxaaComponent()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<FxaaComponent>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(FxaaComponent.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009CE7 RID: 40167 RVA: 0x002861A8 File Offset: 0x002843A8
		// Note: this type is marked as 'beforefieldinit'.
		static FxaaComponent()
		{
			Il2CppClassPointerStore<FxaaComponent>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "FxaaComponent");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<FxaaComponent>.NativeClassPtr);
			FxaaComponent.NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FxaaComponent>.NativeClassPtr, 100675589);
			FxaaComponent.NativeMethodInfoPtr_Render_Public_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FxaaComponent>.NativeClassPtr, 100675590);
			FxaaComponent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FxaaComponent>.NativeClassPtr, 100675591);
		}

		// Token: 0x06009CE8 RID: 40168 RVA: 0x00286214 File Offset: 0x00284414
		public FxaaComponent(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x040068B3 RID: 26803
		private static readonly IntPtr NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0;

		// Token: 0x040068B4 RID: 26804
		private static readonly IntPtr NativeMethodInfoPtr_Render_Public_Void_RenderTexture_RenderTexture_0;

		// Token: 0x040068B5 RID: 26805
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x0200058B RID: 1419
		public static class Uniforms : Object
		{
			// Token: 0x06009CE9 RID: 40169 RVA: 0x00286220 File Offset: 0x00284420
			// Note: this type is marked as 'beforefieldinit'.
			static Uniforms()
			{
				Il2CppClassPointerStore<FxaaComponent.Uniforms>.NativeClassPtr = IL2CPP.GetIl2CppNestedType(Il2CppClassPointerStore<FxaaComponent>.NativeClassPtr, "Uniforms");
				IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<FxaaComponent.Uniforms>.NativeClassPtr);
				FxaaComponent.Uniforms.NativeFieldInfoPtr__QualitySettings = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FxaaComponent.Uniforms>.NativeClassPtr, "_QualitySettings");
				FxaaComponent.Uniforms.NativeFieldInfoPtr__ConsoleSettings = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<FxaaComponent.Uniforms>.NativeClassPtr, "_ConsoleSettings");
			}

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

			// Token: 0x170034DE RID: 13534
			// (get) Token: 0x06009CEB RID: 40171 RVA: 0x00286274 File Offset: 0x00284474
			// (set) Token: 0x06009CEC RID: 40172 RVA: 0x00286292 File Offset: 0x00284492
			public unsafe static int _QualitySettings
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(FxaaComponent.Uniforms.NativeFieldInfoPtr__QualitySettings, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(FxaaComponent.Uniforms.NativeFieldInfoPtr__QualitySettings, (void*)(&value));
				}
			}

			// Token: 0x170034DF RID: 13535
			// (get) Token: 0x06009CED RID: 40173 RVA: 0x002862A4 File Offset: 0x002844A4
			// (set) Token: 0x06009CEE RID: 40174 RVA: 0x002862C2 File Offset: 0x002844C2
			public unsafe static int _ConsoleSettings
			{
				get
				{
					int num;
					IL2CPP.il2cpp_field_static_get_value(FxaaComponent.Uniforms.NativeFieldInfoPtr__ConsoleSettings, (void*)(&num));
					return num;
				}
				set
				{
					IL2CPP.il2cpp_field_static_set_value(FxaaComponent.Uniforms.NativeFieldInfoPtr__ConsoleSettings, (void*)(&value));
				}
			}

			// Token: 0x040068B6 RID: 26806
			private static readonly IntPtr NativeFieldInfoPtr__QualitySettings;

			// Token: 0x040068B7 RID: 26807
			private static readonly IntPtr NativeFieldInfoPtr__ConsoleSettings;
		}
	}
}
