using System;
using System.Runtime.CompilerServices;
using Cpp2IlInjected;
using UnityEngine.Rendering;

namespace UnityEngine.PostProcessing
{
	// Token: 0x0200050F RID: 1295
	[Token(Token = "0x200050F")]
	public sealed class BuiltinDebugViewsComponent : PostProcessingComponentCommandBuffer<BuiltinDebugViewsModel>
	{
		// Token: 0x17000323 RID: 803
		// (get) Token: 0x06002CEA RID: 11498 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000323")]
		public override bool active
		{
			[Token(Token = "0x6002CEA")]
			[Address(RVA = "0x1348720", Offset = "0x1347520", VA = "0x181348720", Slot = "5")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x06002CEB RID: 11499 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002CEB")]
		[Address(RVA = "0x1347A60", Offset = "0x1346860", VA = "0x181347A60", Slot = "4")]
		public override DepthTextureMode GetCameraFlags()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002CEC RID: 11500 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002CEC")]
		[Address(RVA = "0x1347A00", Offset = "0x1346800", VA = "0x181347A00", Slot = "10")]
		public override CameraEvent GetCameraEvent()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002CED RID: 11501 RVA: 0x000612C8 File Offset: 0x0005F4C8
		[Token(Token = "0x6002CED")]
		[Address(RVA = "0x1347AD0", Offset = "0x13468D0", VA = "0x181347AD0", Slot = "11")]
		public override string GetName()
		{
			return "Builtin Debug Views";
		}

		// Token: 0x06002CEE RID: 11502 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002CEE")]
		[Address(RVA = "0x13482E0", Offset = "0x13470E0", VA = "0x1813482E0", Slot = "12")]
		public override void PopulateCommandBuffer(CommandBuffer cb)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002CEF RID: 11503 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002CEF")]
		[Address(RVA = "0x1347890", Offset = "0x1346690", VA = "0x181347890")]
		private void DepthPass(CommandBuffer cb)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002CF0 RID: 11504 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002CF0")]
		[Address(RVA = "0x13477C0", Offset = "0x13465C0", VA = "0x1813477C0")]
		private void DepthNormalsPass(CommandBuffer cb)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002CF1 RID: 11505 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002CF1")]
		[Address(RVA = "0x1347B00", Offset = "0x1346900", VA = "0x181347B00")]
		private void MotionVectorsPass(CommandBuffer cb)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002CF2 RID: 11506 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002CF2")]
		[Address(RVA = "0x13485D0", Offset = "0x13473D0", VA = "0x1813485D0")]
		private void PrepareArrows()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002CF3 RID: 11507 RVA: 0x000612DC File Offset: 0x0005F4DC
		[Token(Token = "0x6002CF3")]
		[Address(RVA = "0x13482B0", Offset = "0x13470B0", VA = "0x1813482B0", Slot = "7")]
		public override void OnDisable()
		{
			/*
An exception occurred when decompiling this method (06002CF3)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UnityEngine.PostProcessing.BuiltinDebugViewsComponent::OnDisable()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	call:void(ArrowArray::Release, ldloc:ArrowArray(var_0_06)); }; 
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
   --- End of inner exception stack trace ---
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
   at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
		}

		// Token: 0x06002CF4 RID: 11508 RVA: 0x000612FC File Offset: 0x0005F4FC
		[Token(Token = "0x6002CF4")]
		[Address(RVA = "0x13486E0", Offset = "0x13474E0", VA = "0x1813486E0")]
		public BuiltinDebugViewsComponent()
		{
		}

		// Token: 0x04003525 RID: 13605
		[Token(Token = "0x4003525")]
		private const string k_ShaderString = "Hidden/Post FX/Builtin Debug Views";

		// Token: 0x04003526 RID: 13606
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003526")]
		private BuiltinDebugViewsComponent.ArrowArray m_Arrows;

		// Token: 0x02000510 RID: 1296
		[Token(Token = "0x2000510")]
		private static class Uniforms
		{
			// Token: 0x04003527 RID: 13607
			[Token(Token = "0x4003527")]
			internal static readonly int _DepthScale = Shader.PropertyToID("_DepthScale");

			// Token: 0x04003528 RID: 13608
			[Token(Token = "0x4003528")]
			internal static readonly int _TempRT = Shader.PropertyToID("_TempRT");

			// Token: 0x04003529 RID: 13609
			[Token(Token = "0x4003529")]
			internal static readonly int _Opacity = Shader.PropertyToID("_Opacity");

			// Token: 0x0400352A RID: 13610
			[Token(Token = "0x400352A")]
			internal static readonly int _MainTex = Shader.PropertyToID("_MainTex");

			// Token: 0x0400352B RID: 13611
			[Token(Token = "0x400352B")]
			internal static readonly int _TempRT2 = Shader.PropertyToID("_TempRT2");

			// Token: 0x0400352C RID: 13612
			[Token(Token = "0x400352C")]
			internal static readonly int _Amplitude = Shader.PropertyToID("_Amplitude");

			// Token: 0x0400352D RID: 13613
			[Token(Token = "0x400352D")]
			internal static readonly int _Scale = Shader.PropertyToID("_Scale");
		}

		// Token: 0x02000511 RID: 1297
		[Token(Token = "0x2000511")]
		private enum Pass
		{
			// Token: 0x0400352F RID: 13615
			[Token(Token = "0x400352F")]
			Depth,
			// Token: 0x04003530 RID: 13616
			[Token(Token = "0x4003530")]
			Normals,
			// Token: 0x04003531 RID: 13617
			[Token(Token = "0x4003531")]
			MovecOpacity,
			// Token: 0x04003532 RID: 13618
			[Token(Token = "0x4003532")]
			MovecImaging,
			// Token: 0x04003533 RID: 13619
			[Token(Token = "0x4003533")]
			MovecArrows
		}

		// Token: 0x02000512 RID: 1298
		[Token(Token = "0x2000512")]
		private class ArrowArray
		{
			// Token: 0x17000324 RID: 804
			// (get) Token: 0x06002CF6 RID: 11510 RVA: 0x00061388 File Offset: 0x0005F588
			// (set) Token: 0x06002CF7 RID: 11511 RVA: 0x0006139C File Offset: 0x0005F59C
			[Token(Token = "0x17000324")]
			public Mesh mesh
			{
				[Token(Token = "0x6002CF6")]
				[Address(RVA = "0x2B4010", Offset = "0x2B2E10", VA = "0x1802B4010")]
				[CompilerGenerated]
				get
				{
					return this.<mesh>k__BackingField;
				}
				[Token(Token = "0x6002CF7")]
				[Address(RVA = "0x385090", Offset = "0x383E90", VA = "0x180385090")]
				[CompilerGenerated]
				private set
				{
					/*
An exception occurred when decompiling this method (06002CF7)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UnityEngine.PostProcessing.BuiltinDebugViewsComponent/ArrowArray::set_mesh(UnityEngine.Mesh)

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	stfld:Mesh(ArrowArray::<mesh>k__BackingField, ldloc:ArrowArray(this), ldloc:Mesh(value)); }; 
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
   at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
   --- End of inner exception stack trace ---
   at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
   at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
*/;
				}
			}

			// Token: 0x17000325 RID: 805
			// (get) Token: 0x06002CF8 RID: 11512 RVA: 0x000613B0 File Offset: 0x0005F5B0
			// (set) Token: 0x06002CF9 RID: 11513 RVA: 0x000613C4 File Offset: 0x0005F5C4
			[Token(Token = "0x17000325")]
			public int columnCount
			{
				[Token(Token = "0x6002CF8")]
				[Address(RVA = "0x296740", Offset = "0x295540", VA = "0x180296740")]
				get;
				[Token(Token = "0x6002CF9")]
				[Address(RVA = "0x296750", Offset = "0x295550", VA = "0x180296750")]
				private set;
			}

			// Token: 0x17000326 RID: 806
			// (get) Token: 0x06002CFA RID: 11514 RVA: 0x000613D8 File Offset: 0x0005F5D8
			// (set) Token: 0x06002CFB RID: 11515 RVA: 0x000613EC File Offset: 0x0005F5EC
			[Token(Token = "0x17000326")]
			public int rowCount
			{
				[Token(Token = "0x6002CFA")]
				[Address(RVA = "0x4669A0", Offset = "0x4657A0", VA = "0x1804669A0")]
				get;
				[Token(Token = "0x6002CFB")]
				[Address(RVA = "0x4669D0", Offset = "0x4657D0", VA = "0x1804669D0")]
				private set;
			}

			// Token: 0x06002CFC RID: 11516 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x6002CFC")]
			[Address(RVA = "0x5F8520", Offset = "0x5F7320", VA = "0x1805F8520")]
			public void BuildMesh(int columns, int rows)
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}

			// Token: 0x06002CFD RID: 11517 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x6002CFD")]
			[Address(RVA = "0x5F8A10", Offset = "0x5F7810", VA = "0x1805F8A10")]
			public void Release()
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}

			// Token: 0x06002CFE RID: 11518 RVA: 0x00061400 File Offset: 0x0005F600
			[Token(Token = "0x6002CFE")]
			[Address(RVA = "0x3D8B20", Offset = "0x3D7920", VA = "0x1803D8B20")]
			public ArrowArray()
			{
			}
		}
	}
}
