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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005D4 RID: 1492
	public class ImageEffects : Il2CppSystem.Object
	{
		// Token: 0x06009C44 RID: 40004 RVA: 0x002808D8 File Offset: 0x0027EAD8
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 620822, RefRangeEnd = 620824, XrefRangeStart = 620802, XrefRangeEnd = 620822, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void RenderDistortion(Material material, RenderTexture source, RenderTexture destination, float angle, Vector2 center, Vector2 radius)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)6) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(material);
			}
			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(destination);
			ptr[checked(unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref angle;
			ptr[checked(unchecked((UIntPtr)4) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref center;
			ptr[checked(unchecked((UIntPtr)5) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref radius;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ImageEffects.NativeMethodInfoPtr_RenderDistortion_Public_Static_Void_Material_RenderTexture_RenderTexture_Single_Vector2_Vector2_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009C45 RID: 40005 RVA: 0x0028098C File Offset: 0x0027EB8C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620824, XrefRangeEnd = 620828, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void Blit(RenderTexture source, RenderTexture dest)
		{
			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(dest);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ImageEffects.NativeMethodInfoPtr_Blit_Public_Static_Void_RenderTexture_RenderTexture_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009C46 RID: 40006 RVA: 0x002809F0 File Offset: 0x0027EBF0
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 620828, XrefRangeEnd = 620832, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe static void BlitWithMaterial(Material material, RenderTexture source, RenderTexture dest)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(material);
			}
			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);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ImageEffects.NativeMethodInfoPtr_BlitWithMaterial_Public_Static_Void_Material_RenderTexture_RenderTexture_0, 0, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009C47 RID: 40007 RVA: 0x00280A6C File Offset: 0x0027EC6C
		[CallerCount(1642)]
		[CachedScanResults(RefRangeStart = 7417, RefRangeEnd = 9059, XrefRangeStart = 7417, XrefRangeEnd = 9059, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ImageEffects()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ImageEffects>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ImageEffects.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009C48 RID: 40008 RVA: 0x00280AB8 File Offset: 0x0027ECB8
		// Note: this type is marked as 'beforefieldinit'.
		static ImageEffects()
		{
			Il2CppClassPointerStore<ImageEffects>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "ImageEffects");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ImageEffects>.NativeClassPtr);
			ImageEffects.NativeMethodInfoPtr_RenderDistortion_Public_Static_Void_Material_RenderTexture_RenderTexture_Single_Vector2_Vector2_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffects>.NativeClassPtr, 100675351);
			ImageEffects.NativeMethodInfoPtr_Blit_Public_Static_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffects>.NativeClassPtr, 100675352);
			ImageEffects.NativeMethodInfoPtr_BlitWithMaterial_Public_Static_Void_Material_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffects>.NativeClassPtr, 100675353);
			ImageEffects.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffects>.NativeClassPtr, 100675354);
		}

		// Token: 0x06009C49 RID: 40009 RVA: 0x0000A688 File Offset: 0x00008888
		public ImageEffects(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x040068BF RID: 26815
		private static readonly IntPtr NativeMethodInfoPtr_RenderDistortion_Public_Static_Void_Material_RenderTexture_RenderTexture_Single_Vector2_Vector2_0;

		// Token: 0x040068C0 RID: 26816
		private static readonly IntPtr NativeMethodInfoPtr_Blit_Public_Static_Void_RenderTexture_RenderTexture_0;

		// Token: 0x040068C1 RID: 26817
		private static readonly IntPtr NativeMethodInfoPtr_BlitWithMaterial_Public_Static_Void_Material_RenderTexture_RenderTexture_0;

		// Token: 0x040068C2 RID: 26818
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
