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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005D9 RID: 1497
	public class PostEffectsHelper : MonoBehaviour
	{
		// Token: 0x06009CC6 RID: 40134 RVA: 0x002829D4 File Offset: 0x00280BD4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621380, XrefRangeEnd = 621386, 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: 0x06009CC7 RID: 40135 RVA: 0x00282A48 File Offset: 0x00280C48
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621386, XrefRangeEnd = 621413, 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: 0x06009CC8 RID: 40136 RVA: 0x00282AF0 File Offset: 0x00280CF0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621413, XrefRangeEnd = 621455, 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: 0x06009CC9 RID: 40137 RVA: 0x00282B54 File Offset: 0x00280D54
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621455, XrefRangeEnd = 621476, 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: 0x06009CCA RID: 40138 RVA: 0x00282C1C File Offset: 0x00280E1C
		[CallerCount(63)]
		[CachedScanResults(RefRangeStart = 222154, RefRangeEnd = 222217, XrefRangeStart = 222154, XrefRangeEnd = 222217, 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: 0x06009CCB RID: 40139 RVA: 0x00282C68 File Offset: 0x00280E68
		// 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, 100675386);
			PostEffectsHelper.NativeMethodInfoPtr_DrawLowLevelPlaneAlignedWithCamera_Private_Static_Void_Single_RenderTexture_RenderTexture_Material_Camera_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr, 100675387);
			PostEffectsHelper.NativeMethodInfoPtr_DrawBorder_Private_Static_Void_RenderTexture_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr, 100675388);
			PostEffectsHelper.NativeMethodInfoPtr_DrawLowLevelQuad_Private_Static_Void_Single_Single_Single_Single_RenderTexture_RenderTexture_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr, 100675389);
			PostEffectsHelper.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostEffectsHelper>.NativeClassPtr, 100675390);
		}

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

		// Token: 0x0400690C RID: 26892
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x0400690D RID: 26893
		private static readonly IntPtr NativeMethodInfoPtr_DrawLowLevelPlaneAlignedWithCamera_Private_Static_Void_Single_RenderTexture_RenderTexture_Material_Camera_0;

		// Token: 0x0400690E RID: 26894
		private static readonly IntPtr NativeMethodInfoPtr_DrawBorder_Private_Static_Void_RenderTexture_Material_0;

		// Token: 0x0400690F RID: 26895
		private static readonly IntPtr NativeMethodInfoPtr_DrawLowLevelQuad_Private_Static_Void_Single_Single_Single_Single_RenderTexture_RenderTexture_Material_0;

		// Token: 0x04006910 RID: 26896
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
