using System;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000576 RID: 1398
	[Token(Token = "0x2000576")]
	public static class GraphicsUtils
	{
		// Token: 0x1700036F RID: 879
		// (get) Token: 0x06002E17 RID: 11799 RVA: 0x00062780 File Offset: 0x00060980
		[Token(Token = "0x1700036F")]
		public static bool isLinearColorSpace
		{
			[Token(Token = "0x6002E17")]
			[Address(RVA = "0x11733D0", Offset = "0x11721D0", VA = "0x1811733D0")]
			get
			{
				return QualitySettings.activeColorSpace == ColorSpace.Linear;
			}
		}

		// Token: 0x17000370 RID: 880
		// (get) Token: 0x06002E18 RID: 11800 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000370")]
		public static bool supportsDX11
		{
			[Token(Token = "0x6002E18")]
			[Address(RVA = "0x1173790", Offset = "0x1172590", VA = "0x181173790")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x17000371 RID: 881
		// (get) Token: 0x06002E19 RID: 11801 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000371")]
		public static Texture2D whiteTexture
		{
			[Token(Token = "0x6002E19")]
			[Address(RVA = "0x11737C0", Offset = "0x11725C0", VA = "0x1811737C0")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x17000372 RID: 882
		// (get) Token: 0x06002E1A RID: 11802 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000372")]
		public static Mesh quad
		{
			[Token(Token = "0x6002E1A")]
			[Address(RVA = "0x11733F0", Offset = "0x11721F0", VA = "0x1811733F0")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x06002E1B RID: 11803 RVA: 0x00062798 File Offset: 0x00060998
		[Token(Token = "0x6002E1B")]
		[Address(RVA = "0x1173060", Offset = "0x1171E60", VA = "0x181173060")]
		public static void Blit(Material material, int pass)
		{
			GL.PushMatrix();
			GL.LoadOrtho();
			bool flag = material.SetPass(pass);
			GL.Begin(5);
			int num = 0;
			GL.TexCoord2((float)0, (float)num);
			int num2 = 0;
			GL.Vertex3((float)0, (float)num2, 0.1f);
			int num3 = 0;
			GL.TexCoord2(1f, (float)num3);
			int num4 = 0;
			GL.Vertex3(1f, (float)num4, 0.1f);
			GL.TexCoord2((float)0, 1f);
			GL.Vertex3((float)0, 1f, 0.1f);
			GL.TexCoord2(1f, 1f);
			GL.Vertex3(1f, 1f, 0.1f);
			GL.End();
			GL.PopMatrix();
		}

		// Token: 0x06002E1C RID: 11804 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x6002E1C")]
		[Address(RVA = "0x1173160", Offset = "0x1171F60", VA = "0x181173160")]
		public static void ClearAndBlit(Texture source, RenderTexture destination, Material material, int pass, bool clearColor = true, bool clearDepth = false)
		{
			throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
		}

		// Token: 0x06002E1D RID: 11805 RVA: 0x00062854 File Offset: 0x00060A54
		[Token(Token = "0x6002E1D")]
		[Address(RVA = "0x1173300", Offset = "0x1172100", VA = "0x181173300")]
		public static void Destroy(Object obj)
		{
			int num = 0;
			if (obj != num)
			{
				Object.Destroy(obj);
				return;
			}
		}

		// Token: 0x06002E1E RID: 11806 RVA: 0x00062874 File Offset: 0x00060A74
		[Token(Token = "0x6002E1E")]
		[Address(RVA = "0x1173390", Offset = "0x1172190", VA = "0x181173390")]
		public static void Dispose()
		{
			GraphicsUtils.Destroy(GraphicsUtils.s_Quad);
		}

		// Token: 0x04003701 RID: 14081
		[Token(Token = "0x4003701")]
		private static Texture2D s_WhiteTexture;

		// Token: 0x04003702 RID: 14082
		[Token(Token = "0x4003702")]
		private static Mesh s_Quad;
	}
}
