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

namespace UnityEngine.PostProcessing
{
	// Token: 0x020005D0 RID: 1488
	[Token(Token = "0x20005D0")]
	public sealed class RenderTextureFactory : IDisposable
	{
		// Token: 0x060030EB RID: 12523 RVA: 0x00069B7C File Offset: 0x00067D7C
		[Token(Token = "0x60030EB")]
		[Address(RVA = "0x505630", Offset = "0x504630", VA = "0x180505630")]
		public RenderTextureFactory()
		{
			/*
An exception occurred when decompiling this method (060030EB)

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: 0x060030EC RID: 12524 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60030EC")]
		[Address(RVA = "0x5052A0", Offset = "0x5042A0", VA = "0x1805052A0")]
		public RenderTexture Get(RenderTexture baseRenderTexture)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060030ED RID: 12525 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60030ED")]
		[Address(RVA = "0x505440", Offset = "0x504440", VA = "0x180505440")]
		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: 0x060030EE RID: 12526 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60030EE")]
		[Address(RVA = "0x505510", Offset = "0x504510", VA = "0x180505510")]
		public void Release(RenderTexture rt)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060030EF RID: 12527 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60030EF")]
		[Address(RVA = "0x5051C0", Offset = "0x5041C0", VA = "0x1805051C0")]
		public void ReleaseAll()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060030F0 RID: 12528 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60030F0")]
		[Address(RVA = "0x5051C0", Offset = "0x5041C0", VA = "0x1805051C0", Slot = "4")]
		public void Dispose()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x040039EE RID: 14830
		[FieldOffset(Offset = "0x10")]
		[Token(Token = "0x40039EE")]
		private HashSet<RenderTexture> m_TemporaryRTs;
	}
}
