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

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000567 RID: 1383
	[Token(Token = "0x2000567")]
	public sealed class BuiltinDebugViewsComponent : PostProcessingComponentCommandBuffer<BuiltinDebugViewsModel>
	{
		// Token: 0x17000348 RID: 840
		// (get) Token: 0x06002FB3 RID: 12211 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000348")]
		public override bool active
		{
			[Token(Token = "0x6002FB3")]
			[Address(RVA = "0xB89020", Offset = "0xB88020", VA = "0x180B89020", Slot = "5")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x06002FB4 RID: 12212 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FB4")]
		[Address(RVA = "0xB88360", Offset = "0xB87360", VA = "0x180B88360", Slot = "4")]
		public override DepthTextureMode GetCameraFlags()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FB5 RID: 12213 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FB5")]
		[Address(RVA = "0xB88300", Offset = "0xB87300", VA = "0x180B88300", Slot = "10")]
		public override CameraEvent GetCameraEvent()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FB6 RID: 12214 RVA: 0x0006855C File Offset: 0x0006675C
		[Token(Token = "0x6002FB6")]
		[Address(RVA = "0xB883D0", Offset = "0xB873D0", VA = "0x180B883D0", Slot = "11")]
		public override string GetName()
		{
			return "Builtin Debug Views";
		}

		// Token: 0x06002FB7 RID: 12215 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FB7")]
		[Address(RVA = "0xB88BE0", Offset = "0xB87BE0", VA = "0x180B88BE0", Slot = "12")]
		public override void PopulateCommandBuffer(CommandBuffer cb)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FB8 RID: 12216 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FB8")]
		[Address(RVA = "0xB88190", Offset = "0xB87190", VA = "0x180B88190")]
		private void DepthPass(CommandBuffer cb)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FB9 RID: 12217 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FB9")]
		[Address(RVA = "0xB880C0", Offset = "0xB870C0", VA = "0x180B880C0")]
		private void DepthNormalsPass(CommandBuffer cb)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FBA RID: 12218 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FBA")]
		[Address(RVA = "0xB88400", Offset = "0xB87400", VA = "0x180B88400")]
		private void MotionVectorsPass(CommandBuffer cb)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FBB RID: 12219 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002FBB")]
		[Address(RVA = "0xB88ED0", Offset = "0xB87ED0", VA = "0x180B88ED0")]
		private void PrepareArrows()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002FBC RID: 12220 RVA: 0x00068570 File Offset: 0x00066770
		[Token(Token = "0x6002FBC")]
		[Address(RVA = "0xB88BB0", Offset = "0xB87BB0", VA = "0x180B88BB0", Slot = "7")]
		public override void OnDisable()
		{
			/*
An exception occurred when decompiling this method (06002FBC)

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: 0x06002FBD RID: 12221 RVA: 0x00068590 File Offset: 0x00066790
		[Token(Token = "0x6002FBD")]
		[Address(RVA = "0xB88FE0", Offset = "0xB87FE0", VA = "0x180B88FE0")]
		public BuiltinDebugViewsComponent()
		{
		}

		// Token: 0x0400380F RID: 14351
		[Token(Token = "0x400380F")]
		private const string k_ShaderString = "Hidden/Post FX/Builtin Debug Views";

		// Token: 0x04003810 RID: 14352
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003810")]
		private BuiltinDebugViewsComponent.ArrowArray m_Arrows;

		// Token: 0x02000568 RID: 1384
		[Token(Token = "0x2000568")]
		private static class Uniforms
		{
			// Token: 0x04003811 RID: 14353
			[Token(Token = "0x4003811")]
			internal static readonly int _DepthScale = Shader.PropertyToID("_DepthScale");

			// Token: 0x04003812 RID: 14354
			[Token(Token = "0x4003812")]
			internal static readonly int _TempRT = Shader.PropertyToID("_TempRT");

			// Token: 0x04003813 RID: 14355
			[Token(Token = "0x4003813")]
			internal static readonly int _Opacity = Shader.PropertyToID("_Opacity");

			// Token: 0x04003814 RID: 14356
			[Token(Token = "0x4003814")]
			internal static readonly int _MainTex = Shader.PropertyToID("_MainTex");

			// Token: 0x04003815 RID: 14357
			[Token(Token = "0x4003815")]
			internal static readonly int _TempRT2 = Shader.PropertyToID("_TempRT2");

			// Token: 0x04003816 RID: 14358
			[Token(Token = "0x4003816")]
			internal static readonly int _Amplitude = Shader.PropertyToID("_Amplitude");

			// Token: 0x04003817 RID: 14359
			[Token(Token = "0x4003817")]
			internal static readonly int _Scale = Shader.PropertyToID("_Scale");
		}

		// Token: 0x02000569 RID: 1385
		[Token(Token = "0x2000569")]
		private enum Pass
		{
			// Token: 0x04003819 RID: 14361
			[Token(Token = "0x4003819")]
			Depth,
			// Token: 0x0400381A RID: 14362
			[Token(Token = "0x400381A")]
			Normals,
			// Token: 0x0400381B RID: 14363
			[Token(Token = "0x400381B")]
			MovecOpacity,
			// Token: 0x0400381C RID: 14364
			[Token(Token = "0x400381C")]
			MovecImaging,
			// Token: 0x0400381D RID: 14365
			[Token(Token = "0x400381D")]
			MovecArrows
		}

		// Token: 0x0200056A RID: 1386
		[Token(Token = "0x200056A")]
		private class ArrowArray
		{
			// Token: 0x17000349 RID: 841
			// (get) Token: 0x06002FBF RID: 12223 RVA: 0x0006861C File Offset: 0x0006681C
			// (set) Token: 0x06002FC0 RID: 12224 RVA: 0x00068630 File Offset: 0x00066830
			[Token(Token = "0x17000349")]
			public Mesh mesh
			{
				[Token(Token = "0x6002FBF")]
				[Address(RVA = "0x32FD80", Offset = "0x32ED80", VA = "0x18032FD80")]
				[CompilerGenerated]
				get
				{
					return this.<mesh>k__BackingField;
				}
				[Token(Token = "0x6002FC0")]
				[Address(RVA = "0x3EDC60", Offset = "0x3ECC60", VA = "0x1803EDC60")]
				[CompilerGenerated]
				private set
				{
					/*
An exception occurred when decompiling this method (06002FC0)

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: 0x1700034A RID: 842
			// (get) Token: 0x06002FC1 RID: 12225 RVA: 0x00068644 File Offset: 0x00066844
			// (set) Token: 0x06002FC2 RID: 12226 RVA: 0x00068658 File Offset: 0x00066858
			[Token(Token = "0x1700034A")]
			public int columnCount
			{
				[Token(Token = "0x6002FC1")]
				[Address(RVA = "0x29D0F0", Offset = "0x29C0F0", VA = "0x18029D0F0")]
				get;
				[Token(Token = "0x6002FC2")]
				[Address(RVA = "0x29D100", Offset = "0x29C100", VA = "0x18029D100")]
				private set;
			}

			// Token: 0x1700034B RID: 843
			// (get) Token: 0x06002FC3 RID: 12227 RVA: 0x0006866C File Offset: 0x0006686C
			// (set) Token: 0x06002FC4 RID: 12228 RVA: 0x00068680 File Offset: 0x00066880
			[Token(Token = "0x1700034B")]
			public int rowCount
			{
				[Token(Token = "0x6002FC3")]
				[Address(RVA = "0x3763D0", Offset = "0x3753D0", VA = "0x1803763D0")]
				get;
				[Token(Token = "0x6002FC4")]
				[Address(RVA = "0x4C2380", Offset = "0x4C1380", VA = "0x1804C2380")]
				private set;
			}

			// Token: 0x06002FC5 RID: 12229 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x6002FC5")]
			[Address(RVA = "0x19BB6C0", Offset = "0x19BA6C0", VA = "0x1819BB6C0")]
			public void BuildMesh(int columns, int rows)
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}

			// Token: 0x06002FC6 RID: 12230 RVA: 0x000020D3 File Offset: 0x000002D3
			[Token(Token = "0x6002FC6")]
			[Address(RVA = "0x19BBBB0", Offset = "0x19BABB0", VA = "0x1819BBBB0")]
			public void Release()
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}

			// Token: 0x06002FC7 RID: 12231 RVA: 0x00068694 File Offset: 0x00066894
			[Token(Token = "0x6002FC7")]
			[Address(RVA = "0x36ABD0", Offset = "0x369BD0", VA = "0x18036ABD0")]
			public ArrowArray()
			{
			}
		}
	}
}
