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

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000532 RID: 1330
	public sealed class FxaaComponent : PostProcessingComponentRenderTexture<AntialiasingModel>
	{
		// Token: 0x17003242 RID: 12866
		// (get) Token: 0x06009491 RID: 38033 RVA: 0x0026335C File Offset: 0x0026155C
		public unsafe override bool active
		{
			[CallerCount(0)]
			[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 615566, XrefRangeEnd = 615567, 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: 0x06009492 RID: 38034 RVA: 0x002633AC File Offset: 0x002615AC
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 615592, RefRangeEnd = 615593, XrefRangeStart = 615567, XrefRangeEnd = 615592, 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: 0x06009493 RID: 38035 RVA: 0x00263420 File Offset: 0x00261620
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 615596, RefRangeEnd = 615597, XrefRangeStart = 615593, XrefRangeEnd = 615596, 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: 0x06009494 RID: 38036 RVA: 0x0026346C File Offset: 0x0026166C
		// 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, 100674876);
			FxaaComponent.NativeMethodInfoPtr_Render_Public_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FxaaComponent>.NativeClassPtr, 100674877);
			FxaaComponent.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<FxaaComponent>.NativeClassPtr, 100674878);
		}

		// Token: 0x06009495 RID: 38037 RVA: 0x002634D8 File Offset: 0x002616D8
		public FxaaComponent(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x0400630A RID: 25354
		private static readonly IntPtr NativeMethodInfoPtr_get_active_Public_Virtual_get_Boolean_0;

		// Token: 0x0400630B RID: 25355
		private static readonly IntPtr NativeMethodInfoPtr_Render_Public_Void_RenderTexture_RenderTexture_0;

		// Token: 0x0400630C RID: 25356
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;

		// Token: 0x02000533 RID: 1331
		public static class Uniforms : Object
		{
			// Token: 0x06009496 RID: 38038 RVA: 0x002634E4 File Offset: 0x002616E4
			// 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: 0x06009497 RID: 38039 RVA: 0x0000A688 File Offset: 0x00008888
			public Uniforms(IntPtr pointer)
				: base(pointer)
			{
			}

			// Token: 0x17003243 RID: 12867
			// (get) Token: 0x06009498 RID: 38040 RVA: 0x00263538 File Offset: 0x00261738
			// (set) Token: 0x06009499 RID: 38041 RVA: 0x00263556 File Offset: 0x00261756
			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: 0x17003244 RID: 12868
			// (get) Token: 0x0600949A RID: 38042 RVA: 0x00263568 File Offset: 0x00261768
			// (set) Token: 0x0600949B RID: 38043 RVA: 0x00263586 File Offset: 0x00261786
			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: 0x0400630D RID: 25357
			private static readonly IntPtr NativeFieldInfoPtr__QualitySettings;

			// Token: 0x0400630E RID: 25358
			private static readonly IntPtr NativeFieldInfoPtr__ConsoleSettings;
		}
	}
}
