using System;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200058D RID: 1421
	[Token(Token = "0x200058D")]
	[Serializable]
	public class AntialiasingModel : PostProcessingModel
	{
		// Token: 0x1700035E RID: 862
		// (get) Token: 0x0600304D RID: 12365 RVA: 0x000020D3 File Offset: 0x000002D3
		// (set) Token: 0x0600304E RID: 12366 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x1700035E")]
		public AntialiasingModel.Settings settings
		{
			[Token(Token = "0x600304D")]
			[Address(RVA = "0x502F40", Offset = "0x501F40", VA = "0x180502F40")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
			[Token(Token = "0x600304E")]
			[Address(RVA = "0xDB3300", Offset = "0xDB2300", VA = "0x180DB3300")]
			set
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x0600304F RID: 12367 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600304F")]
		[Address(RVA = "0xDB3290", Offset = "0xDB2290", VA = "0x180DB3290", Slot = "4")]
		public override void Reset()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003050 RID: 12368 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003050")]
		[Address(RVA = "0xDB32C0", Offset = "0xDB22C0", VA = "0x180DB32C0")]
		public AntialiasingModel()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x040038F1 RID: 14577
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x40038F1")]
		[SerializeField]
		private AntialiasingModel.Settings m_Settings;

		// Token: 0x0200058E RID: 1422
		[Token(Token = "0x200058E")]
		public enum Method
		{
			// Token: 0x040038F3 RID: 14579
			[Token(Token = "0x40038F3")]
			Fxaa,
			// Token: 0x040038F4 RID: 14580
			[Token(Token = "0x40038F4")]
			Taa
		}

		// Token: 0x0200058F RID: 1423
		[Token(Token = "0x200058F")]
		public enum FxaaPreset
		{
			// Token: 0x040038F6 RID: 14582
			[Token(Token = "0x40038F6")]
			ExtremePerformance,
			// Token: 0x040038F7 RID: 14583
			[Token(Token = "0x40038F7")]
			Performance,
			// Token: 0x040038F8 RID: 14584
			[Token(Token = "0x40038F8")]
			Default,
			// Token: 0x040038F9 RID: 14585
			[Token(Token = "0x40038F9")]
			Quality,
			// Token: 0x040038FA RID: 14586
			[Token(Token = "0x40038FA")]
			ExtremeQuality
		}

		// Token: 0x02000590 RID: 1424
		[Token(Token = "0x2000590")]
		[Serializable]
		public struct FxaaQualitySettings
		{
			// Token: 0x06003051 RID: 12369 RVA: 0x000020D3 File Offset: 0x000002D3
			// Note: this type is marked as 'beforefieldinit'.
			[Token(Token = "0x6003051")]
			[Address(RVA = "0x19BD460", Offset = "0x19BC460", VA = "0x1819BD460")]
			static FxaaQualitySettings()
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}

			// Token: 0x040038FB RID: 14587
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x40038FB")]
			[Tooltip("The amount of desired sub-pixel aliasing removal. Effects the sharpeness of the output.")]
			[Range(0f, 1f)]
			public float subpixelAliasingRemovalAmount;

			// Token: 0x040038FC RID: 14588
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x40038FC")]
			[Range(0.063f, 0.333f)]
			[Tooltip("The minimum amount of local contrast required to qualify a region as containing an edge.")]
			public float edgeDetectionThreshold;

			// Token: 0x040038FD RID: 14589
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x40038FD")]
			[Range(0f, 0.0833f)]
			[Tooltip("Local contrast adaptation value to disallow the algorithm from executing on the darker regions.")]
			public float minimumRequiredLuminance;

			// Token: 0x040038FE RID: 14590
			[Token(Token = "0x40038FE")]
			public static AntialiasingModel.FxaaQualitySettings[] presets;
		}

		// Token: 0x02000591 RID: 1425
		[Token(Token = "0x2000591")]
		[Serializable]
		public struct FxaaConsoleSettings
		{
			// Token: 0x06003052 RID: 12370 RVA: 0x000020D3 File Offset: 0x000002D3
			// Note: this type is marked as 'beforefieldinit'.
			[Token(Token = "0x6003052")]
			[Address(RVA = "0x19BD350", Offset = "0x19BC350", VA = "0x1819BD350")]
			static FxaaConsoleSettings()
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}

			// Token: 0x040038FF RID: 14591
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x40038FF")]
			[Tooltip("The amount of spread applied to the sampling coordinates while sampling for subpixel information.")]
			[Range(0.33f, 0.5f)]
			public float subpixelSpreadAmount;

			// Token: 0x04003900 RID: 14592
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x4003900")]
			[Attribute(Name = "RangeAttribute", RVA = "0x2620E0", Offset = "0x2614E0")]
			[Tooltip("This value dictates how sharp the edges in the image are kept; a higher value implies sharper edges.")]
			public float edgeSharpnessAmount;

			// Token: 0x04003901 RID: 14593
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x4003901")]
			[Range(0.125f, 0.25f)]
			[Tooltip("The minimum amount of local contrast required to qualify a region as containing an edge.")]
			public float edgeDetectionThreshold;

			// Token: 0x04003902 RID: 14594
			[FieldOffset(Offset = "0xC")]
			[Token(Token = "0x4003902")]
			[Range(0.04f, 0.06f)]
			[Tooltip("Local contrast adaptation value to disallow the algorithm from executing on the darker regions.")]
			public float minimumRequiredLuminance;

			// Token: 0x04003903 RID: 14595
			[Token(Token = "0x4003903")]
			public static AntialiasingModel.FxaaConsoleSettings[] presets;
		}

		// Token: 0x02000592 RID: 1426
		[Token(Token = "0x2000592")]
		[Serializable]
		public struct FxaaSettings
		{
			// Token: 0x1700035F RID: 863
			// (get) Token: 0x06003053 RID: 12371 RVA: 0x00069420 File Offset: 0x00067620
			[Token(Token = "0x1700035F")]
			public static AntialiasingModel.FxaaSettings defaultSettings
			{
				[Token(Token = "0x6003053")]
				[Address(RVA = "0x547500", Offset = "0x546500", VA = "0x180547500")]
				get
				{
					return (uint)2;
				}
			}

			// Token: 0x04003904 RID: 14596
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003904")]
			public AntialiasingModel.FxaaPreset preset;
		}

		// Token: 0x02000593 RID: 1427
		[Token(Token = "0x2000593")]
		[Serializable]
		public struct TaaSettings
		{
			// Token: 0x17000360 RID: 864
			// (get) Token: 0x06003054 RID: 12372 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000360")]
			public static AntialiasingModel.TaaSettings defaultSettings
			{
				[Token(Token = "0x6003054")]
				[Address(RVA = "0x19BDF20", Offset = "0x19BCF20", VA = "0x1819BDF20")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003905 RID: 14597
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003905")]
			[Tooltip("The diameter (in texels) inside which jitter samples are spread. Smaller values result in crisper but more aliased output, while larger values result in more stable but blurrier output.")]
			[Range(0.1f, 1f)]
			public float jitterSpread;

			// Token: 0x04003906 RID: 14598
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x4003906")]
			[Tooltip("Controls the amount of sharpening applied to the color buffer.")]
			[Range(0f, 3f)]
			public float sharpen;

			// Token: 0x04003907 RID: 14599
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x4003907")]
			[Tooltip("The blend coefficient for a stationary fragment. Controls the percentage of history sample blended into the final color.")]
			[Range(0f, 0.99f)]
			public float stationaryBlending;

			// Token: 0x04003908 RID: 14600
			[FieldOffset(Offset = "0xC")]
			[Token(Token = "0x4003908")]
			[Tooltip("The blend coefficient for a fragment with significant motion. Controls the percentage of history sample blended into the final color.")]
			[Range(0f, 0.99f)]
			public float motionBlending;
		}

		// Token: 0x02000594 RID: 1428
		[Token(Token = "0x2000594")]
		[Serializable]
		public struct Settings
		{
			// Token: 0x17000361 RID: 865
			// (get) Token: 0x06003055 RID: 12373 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x17000361")]
			public static AntialiasingModel.Settings defaultSettings
			{
				[Token(Token = "0x6003055")]
				[Address(RVA = "0x19BDBB0", Offset = "0x19BCBB0", VA = "0x1819BDBB0")]
				get
				{
					throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
				}
			}

			// Token: 0x04003909 RID: 14601
			[FieldOffset(Offset = "0x0")]
			[Token(Token = "0x4003909")]
			public AntialiasingModel.Method method;

			// Token: 0x0400390A RID: 14602
			[FieldOffset(Offset = "0x4")]
			[Token(Token = "0x400390A")]
			public AntialiasingModel.FxaaSettings fxaaSettings;

			// Token: 0x0400390B RID: 14603
			[FieldOffset(Offset = "0x8")]
			[Token(Token = "0x400390B")]
			public AntialiasingModel.TaaSettings taaSettings;
		}
	}
}
