using System;
using Cpp2IlInjected;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x02000600 RID: 1536
	[Token(Token = "0x2000600")]
	[ExecuteInEditMode]
	[AddComponentMenu("Image Effects/Color Adjustments/Color Correction (3D Lookup Texture)")]
	public class ColorCorrectionLookup : PostEffectsBase
	{
		// Token: 0x0600319A RID: 12698 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600319A")]
		[Address(RVA = "0xB9C1A0", Offset = "0xB9B1A0", VA = "0x180B9C1A0", Slot = "4")]
		public override bool CheckResources()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600319B RID: 12699 RVA: 0x0006B158 File Offset: 0x00069358
		[Token(Token = "0x600319B")]
		[Address(RVA = "0xB9C700", Offset = "0xB9B700", VA = "0x180B9C700")]
		private void OnDisable()
		{
			if (this.material)
			{
				UnityEngine.Object.DestroyImmediate(this.material);
				this.material = (ulong)0L;
			}
		}

		// Token: 0x0600319C RID: 12700 RVA: 0x0006B188 File Offset: 0x00069388
		[Token(Token = "0x600319C")]
		[Address(RVA = "0xB9C650", Offset = "0xB9B650", VA = "0x180B9C650")]
		private void OnDestroy()
		{
			/*
An exception occurred when decompiling this method (0600319C)

ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UnityStandardAssets.ImageEffects.ColorCorrectionLookup::OnDestroy()

 ---> System.Exception: Basic block has to end with unconditional control flow. 
{; 	IL_19:; 	stfld:Texture3D(ColorCorrectionLookup::converted3DLut, ldloc:ColorCorrectionLookup(this), conv.u8:uint64[exp:Texture3D](ldc.i8:int64[exp:uint64](0))); }; 
   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: 0x0600319D RID: 12701 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600319D")]
		[Address(RVA = "0xB9C9E0", Offset = "0xB9B9E0", VA = "0x180B9C9E0")]
		public void SetIdentityLut()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600319E RID: 12702 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600319E")]
		[Address(RVA = "0xB9CC60", Offset = "0xB9BC60", VA = "0x180B9CC60")]
		public bool ValidDimensions(Texture2D tex2d)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x0600319F RID: 12703 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x600319F")]
		[Address(RVA = "0xB9C210", Offset = "0xB9B210", VA = "0x180B9C210")]
		public void Convert(Texture2D temp2DTex, string path)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060031A0 RID: 12704 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60031A0")]
		[Address(RVA = "0xB9C7B0", Offset = "0xB9B7B0", VA = "0x180B9C7B0")]
		private void OnRenderImage(RenderTexture source, RenderTexture destination)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060031A1 RID: 12705 RVA: 0x0006B1B8 File Offset: 0x000693B8
		[Token(Token = "0x60031A1")]
		[Address(RVA = "0xB9CD30", Offset = "0xB9BD30", VA = "0x180B9CD30")]
		public ColorCorrectionLookup()
		{
		}

		// Token: 0x04003B42 RID: 15170
		[FieldOffset(Offset = "0x28")]
		[Token(Token = "0x4003B42")]
		public Shader shader;

		// Token: 0x04003B43 RID: 15171
		[FieldOffset(Offset = "0x30")]
		[Token(Token = "0x4003B43")]
		private Material material;

		// Token: 0x04003B44 RID: 15172
		[FieldOffset(Offset = "0x38")]
		[Token(Token = "0x4003B44")]
		public Texture3D converted3DLut;

		// Token: 0x04003B45 RID: 15173
		[FieldOffset(Offset = "0x40")]
		[Token(Token = "0x4003B45")]
		public string basedOnTempTex = "";
	}
}
