using System;
using System.Collections.Generic;
using System.Xml.Schema;
using Cpp2IlInjected;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x02000617 RID: 1559
	[Token(Token = "0x2000617")]
	[ExecuteInEditMode]
	[RequireComponent(typeof(Camera))]
	public class PostEffectsBase : MonoBehaviour
	{
		// Token: 0x060031F3 RID: 12787 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60031F3")]
		[Address(RVA = "0xEB8850", Offset = "0xEB7850", VA = "0x180EB8850")]
		protected Material CheckShaderAndCreateMaterial(Shader s, Material m2Create)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060031F4 RID: 12788 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60031F4")]
		[Address(RVA = "0xEB91E0", Offset = "0xEB81E0", VA = "0x180EB91E0")]
		protected Material CreateMaterial(Shader s, Material m2Create)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060031F5 RID: 12789 RVA: 0x0006BE68 File Offset: 0x0006A068
		[Token(Token = "0x60031F5")]
		[Address(RVA = "0xEB98B0", Offset = "0xEB88B0", VA = "0x180EB98B0")]
		private void OnEnable()
		{
			this.isSupported = true;
		}

		// Token: 0x060031F6 RID: 12790 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60031F6")]
		[Address(RVA = "0xEB97C0", Offset = "0xEB87C0", VA = "0x180EB97C0")]
		private void OnDestroy()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060031F7 RID: 12791 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60031F7")]
		[Address(RVA = "0xEB97C0", Offset = "0xEB87C0", VA = "0x180EB97C0")]
		private void RemoveCreatedMaterials()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060031F8 RID: 12792 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60031F8")]
		[Address(RVA = "0xEB9160", Offset = "0xEB8160", VA = "0x180EB9160")]
		protected bool CheckSupport()
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060031F9 RID: 12793 RVA: 0x0006BE7C File Offset: 0x0006A07C
		[Token(Token = "0x60031F9")]
		[Address(RVA = "0xEB87A0", Offset = "0xEB77A0", VA = "0x180EB87A0", Slot = "4")]
		public virtual bool CheckResources()
		{
			string text = this.ToString();
			Debug.LogWarning("CheckResources () for " + text + " should be overwritten.");
			return this.isSupported;
		}

		// Token: 0x060031FA RID: 12794 RVA: 0x0006BEAC File Offset: 0x0006A0AC
		[Token(Token = "0x60031FA")]
		[Address(RVA = "0x634150", Offset = "0x633150", VA = "0x180634150")]
		protected void Start()
		{
			XmlSchemaType xmlType = base.XmlType;
		}

		// Token: 0x060031FB RID: 12795 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60031FB")]
		[Address(RVA = "0xEB9020", Offset = "0xEB8020", VA = "0x180EB9020")]
		protected bool CheckSupport(bool needDepth)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060031FC RID: 12796 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60031FC")]
		[Address(RVA = "0xEB9100", Offset = "0xEB8100", VA = "0x180EB9100")]
		protected bool CheckSupport(bool needDepth, bool needHdr)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x060031FD RID: 12797 RVA: 0x0006BEC0 File Offset: 0x0006A0C0
		[Token(Token = "0x60031FD")]
		[Address(RVA = "0x41ED90", Offset = "0x41DD90", VA = "0x18041ED90")]
		public bool Dx11Support()
		{
			return this.supportDX11;
		}

		// Token: 0x060031FE RID: 12798 RVA: 0x0006BED4 File Offset: 0x0006A0D4
		[Token(Token = "0x60031FE")]
		[Address(RVA = "0xEB98C0", Offset = "0xEB88C0", VA = "0x180EB98C0")]
		protected void ReportAutoDisable()
		{
			string text = this.ToString();
			Debug.LogWarning("The image effect " + text + " has been disabled as it's not supported on the current platform.");
		}

		// Token: 0x060031FF RID: 12799 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60031FF")]
		[Address(RVA = "0xEB8D10", Offset = "0xEB7D10", VA = "0x180EB8D10")]
		private bool CheckShader(Shader s)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003200 RID: 12800 RVA: 0x0006BF00 File Offset: 0x0006A100
		[Token(Token = "0x6003200")]
		[Address(RVA = "0xEB97A0", Offset = "0xEB87A0", VA = "0x180EB97A0")]
		protected void NotSupported()
		{
			int num = 0;
			base.enabled = num != 0;
			this.isSupported = false;
		}

		// Token: 0x06003201 RID: 12801 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6003201")]
		[Address(RVA = "0xEB9400", Offset = "0xEB8400", VA = "0x180EB9400")]
		protected void DrawBorder(RenderTexture dest, Material material)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06003202 RID: 12802 RVA: 0x0006BF20 File Offset: 0x0006A120
		[Token(Token = "0x6003202")]
		[Address(RVA = "0xEB9960", Offset = "0xEB8960", VA = "0x180EB9960")]
		public PostEffectsBase()
		{
			List<Material> list = new List();
			this.createdMaterials = list;
			base..ctor();
		}

		// Token: 0x04003C07 RID: 15367
		[FieldOffset(Offset = "0x18")]
		[Token(Token = "0x4003C07")]
		protected bool supportHDRTextures = true;

		// Token: 0x04003C08 RID: 15368
		[FieldOffset(Offset = "0x19")]
		[Token(Token = "0x4003C08")]
		protected bool supportDX11;

		// Token: 0x04003C09 RID: 15369
		[FieldOffset(Offset = "0x1A")]
		[Token(Token = "0x4003C09")]
		protected bool isSupported = true;

		// Token: 0x04003C0A RID: 15370
		[FieldOffset(Offset = "0x20")]
		[Token(Token = "0x4003C0A")]
		private List<Material> createdMaterials;
	}
}
