using System;
using System.Collections.Generic;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000578 RID: 1400
	[Token(Token = "0x2000578")]
	public sealed class RenderTextureFactory : IDisposable
	{
		// Token: 0x06002E22 RID: 11810 RVA: 0x000628AC File Offset: 0x00060AAC
		[Token(Token = "0x6002E22")]
		[Address(RVA = "0xBE78C0", Offset = "0xBE66C0", VA = "0x180BE78C0")]
		public RenderTextureFactory()
		{
			/*
An exception occurred when decompiling this method (06002E22)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UnityEngine.PostProcessing.RenderTextureFactory::.ctor()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	Block_0:; 	call:void(object::.ctor, ldloc:RenderTextureFactory[exp:object](this)); 	stloc:class [System.Core]System.Collections.Generic.HashSet`1<class [UnityEngine.CoreModule]UnityEngine.RenderTexture>(var_0_0B, newobj:HashSet`1[exp:class [System.Core]System.Collections.Generic.HashSet`1<class [UnityEngine.CoreModule]UnityEngine.RenderTexture>](HashSet`1::.ctor)); 	stfld:class [System.Core]System.Collections.Generic.HashSet`1<class [UnityEngine.CoreModule]UnityEngine.RenderTexture>(RenderTextureFactory::m_TemporaryRTs, ldloc:RenderTextureFactory(this), ldloc:class [System.Core]System.Collections.Generic.HashSet`1<class [UnityEngine.CoreModule]UnityEngine.RenderTexture>(var_0_0B)); }; 
   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: 0x06002E23 RID: 11811 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E23")]
		[Address(RVA = "0xBE7450", Offset = "0xBE6250", VA = "0x180BE7450")]
		public RenderTexture Get(RenderTexture baseRenderTexture)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E24 RID: 11812 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E24")]
		[Address(RVA = "0xBE75F0", Offset = "0xBE63F0", VA = "0x180BE75F0")]
		public RenderTexture Get(int width, int height, int depthBuffer = 0, RenderTextureFormat format = RenderTextureFormat.ARGBHalf, RenderTextureReadWrite rw = RenderTextureReadWrite.Default, FilterMode filterMode = FilterMode.Bilinear, TextureWrapMode wrapMode = TextureWrapMode.Clamp, string name = "FactoryTempTexture")
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E25 RID: 11813 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E25")]
		[Address(RVA = "0xBE77A0", Offset = "0xBE65A0", VA = "0x180BE77A0")]
		public void Release(RenderTexture rt)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E26 RID: 11814 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E26")]
		[Address(RVA = "0xBE76C0", Offset = "0xBE64C0", VA = "0x180BE76C0")]
		public void ReleaseAll()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E27 RID: 11815 RVA: 0x000628CC File Offset: 0x00060ACC
		[Token(Token = "0x6002E27")]
		[Address(RVA = "0xBE7440", Offset = "0xBE6240", VA = "0x180BE7440", Slot = "4")]
		public void Dispose()
		{
			this.ReleaseAll();
		}

		// Token: 0x04003704 RID: 14084
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x4003704")]
		private HashSet<RenderTexture> m_TemporaryRTs;
	}
}
