using System;
using Cpp2IlInjected;

namespace UnityEngine.PostProcessing
{
	// Token: 0x020005CE RID: 1486
	[Token(Token = "0x20005CE")]
	public static class GraphicsUtils
	{
		// Token: 0x17000394 RID: 916
		// (get) Token: 0x060030E0 RID: 12512 RVA: 0x00069A50 File Offset: 0x00067C50
		[Token(Token = "0x17000394")]
		public static bool isLinearColorSpace
		{
			[Token(Token = "0x60030E0")]
			[Address(RVA = "0x1642A10", Offset = "0x1641A10", VA = "0x181642A10")]
			get
			{
				return QualitySettings.activeColorSpace == ColorSpace.Linear;
			}
		}

		// Token: 0x17000395 RID: 917
		// (get) Token: 0x060030E1 RID: 12513 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000395")]
		public static bool supportsDX11
		{
			[Token(Token = "0x60030E1")]
			[Address(RVA = "0x1642DD0", Offset = "0x1641DD0", VA = "0x181642DD0")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x17000396 RID: 918
		// (get) Token: 0x060030E2 RID: 12514 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000396")]
		public static Texture2D whiteTexture
		{
			[Token(Token = "0x60030E2")]
			[Address(RVA = "0x1642E00", Offset = "0x1641E00", VA = "0x181642E00")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x17000397 RID: 919
		// (get) Token: 0x060030E3 RID: 12515 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x17000397")]
		public static Mesh quad
		{
			[Token(Token = "0x60030E3")]
			[Address(RVA = "0x1642A30", Offset = "0x1641A30", VA = "0x181642A30")]
			get
			{
				throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
			}
		}

		// Token: 0x060030E4 RID: 12516 RVA: 0x00069A68 File Offset: 0x00067C68
		[Token(Token = "0x60030E4")]
		[Address(RVA = "0x16426A0", Offset = "0x16416A0", VA = "0x1816426A0")]
		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: 0x060030E5 RID: 12517 RVA: 0x000020D3 File Offset: 0x000002D3
		[Token(Token = "0x60030E5")]
		[Address(RVA = "0x16427A0", Offset = "0x16417A0", VA = "0x1816427A0")]
		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: 0x060030E6 RID: 12518 RVA: 0x00069B24 File Offset: 0x00067D24
		[Token(Token = "0x60030E6")]
		[Address(RVA = "0x1642940", Offset = "0x1641940", VA = "0x181642940")]
		public static void Destroy(Object obj)
		{
			int num = 0;
			if (obj != num)
			{
				Object.Destroy(obj);
				return;
			}
		}

		// Token: 0x060030E7 RID: 12519 RVA: 0x00069B44 File Offset: 0x00067D44
		[Token(Token = "0x60030E7")]
		[Address(RVA = "0x16429D0", Offset = "0x16419D0", VA = "0x1816429D0")]
		public static void Dispose()
		{
			GraphicsUtils.Destroy(GraphicsUtils.s_Quad);
		}

		// Token: 0x040039EB RID: 14827
		[Token(Token = "0x40039EB")]
		private static Texture2D s_WhiteTexture;

		// Token: 0x040039EC RID: 14828
		[Token(Token = "0x40039EC")]
		private static Mesh s_Quad;
	}
}
