using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x02000631 RID: 1585
	public class PostEffectsHelper : MonoBehaviour
	{
		// Token: 0x0600A519 RID: 42265 RVA: 0x002A5710 File Offset: 0x002A3910
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653682, XrefRangeEnd = 653688, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnRenderImage(RenderTexture source, RenderTexture destination)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(source);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(destination);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostEffectsHelper.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A51A RID: 42266 RVA: 0x002A5784 File Offset: 0x002A3984
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653688, XrefRangeEnd = 653715, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void DrawLowLevelPlaneAlignedWithCamera(float dist, RenderTexture source, RenderTexture dest, Material material, Camera cameraForProjectionMatrix)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)5) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref dist;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(source);
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(dest);
			ptr[checked(unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(material);
			ptr[checked(unchecked((UIntPtr)4) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(cameraForProjectionMatrix);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostEffectsHelper.NativeMethodInfoPtr_DrawLowLevelPlaneAlignedWithCamera_Private_Static_Void_Single_RenderTexture_RenderTexture_Material_Camera_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A51B RID: 42267 RVA: 0x002A582C File Offset: 0x002A3A2C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653715, XrefRangeEnd = 653757, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void DrawBorder(RenderTexture dest, Material material)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(dest);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(material);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostEffectsHelper.NativeMethodInfoPtr_DrawBorder_Private_Static_Void_RenderTexture_Material_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A51C RID: 42268 RVA: 0x002A5890 File Offset: 0x002A3A90
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653757, XrefRangeEnd = 653778, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void DrawLowLevelQuad(float x1, float x2, float y1, float y2, RenderTexture source, RenderTexture dest, Material material)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)7) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref x1;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref x2;
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref y1;
			ptr[checked(unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref y2;
			ptr[checked(unchecked((UIntPtr)4) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(source);
			ptr[checked(unchecked((UIntPtr)5) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(dest);
			ptr[checked(unchecked((UIntPtr)6) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(material);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostEffectsHelper.NativeMethodInfoPtr_DrawLowLevelQuad_Private_Static_Void_Single_Single_Single_Single_RenderTexture_RenderTexture_Material_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A51D RID: 42269 RVA: 0x002A5958 File Offset: 0x002A3B58
		[CallerCount(67)]
		[CachedScanResults(RefRangeStart = 166362, RefRangeEnd = 166429, XrefRangeStart = 166362, XrefRangeEnd = 166429, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe PostEffectsHelper()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostEffectsHelper.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A51E RID: 42270 RVA: 0x002A59A4 File Offset: 0x002A3BA4
		// Note: this type is marked as 'beforefieldinit'.
		static PostEffectsHelper()
		{
			Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "PostEffectsHelper");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr);
			PostEffectsHelper.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr, 100676099);
			PostEffectsHelper.NativeMethodInfoPtr_DrawLowLevelPlaneAlignedWithCamera_Private_Static_Void_Single_RenderTexture_RenderTexture_Material_Camera_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr, 100676100);
			PostEffectsHelper.NativeMethodInfoPtr_DrawBorder_Private_Static_Void_RenderTexture_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr, 100676101);
			PostEffectsHelper.NativeMethodInfoPtr_DrawLowLevelQuad_Private_Static_Void_Single_Single_Single_Single_RenderTexture_RenderTexture_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr, 100676102);
			PostEffectsHelper.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr, 100676103);
		}

		// Token: 0x0600A51F RID: 42271 RVA: 0x0000351C File Offset: 0x0000171C
		public PostEffectsHelper(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x04006EB5 RID: 28341
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006EB6 RID: 28342
		private static readonly IntPtr NativeMethodInfoPtr_DrawLowLevelPlaneAlignedWithCamera_Private_Static_Void_Single_RenderTexture_RenderTexture_Material_Camera_0;

		// Token: 0x04006EB7 RID: 28343
		private static readonly IntPtr NativeMethodInfoPtr_DrawBorder_Private_Static_Void_RenderTexture_Material_0;

		// Token: 0x04006EB8 RID: 28344
		private static readonly IntPtr NativeMethodInfoPtr_DrawLowLevelQuad_Private_Static_Void_Single_Single_Single_Single_RenderTexture_RenderTexture_Material_0;

		// Token: 0x04006EB9 RID: 28345
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
