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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x0200062C RID: 1580
	public class ImageEffects : Il2CppSystem.Object
	{
		// Token: 0x0600A497 RID: 42135 RVA: 0x002A3614 File Offset: 0x002A1814
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 653124, RefRangeEnd = 653126, XrefRangeStart = 653104, XrefRangeEnd = 653124, 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: 0x0600A498 RID: 42136 RVA: 0x002A36C8 File Offset: 0x002A18C8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653126, XrefRangeEnd = 653130, 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: 0x0600A499 RID: 42137 RVA: 0x002A372C File Offset: 0x002A192C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 653130, XrefRangeEnd = 653134, 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: 0x0600A49A RID: 42138 RVA: 0x002A37A8 File Offset: 0x002A19A8
		[CallerCount(1664)]
		[CachedScanResults(RefRangeStart = 7711, RefRangeEnd = 9375, XrefRangeStart = 7711, XrefRangeEnd = 9375, 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: 0x0600A49B RID: 42139 RVA: 0x002A37F4 File Offset: 0x002A19F4
		// 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, 100676064);
			ImageEffects.NativeMethodInfoPtr_Blit_Public_Static_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffects>.NativeClassPtr, 100676065);
			ImageEffects.NativeMethodInfoPtr_BlitWithMaterial_Public_Static_Void_Material_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffects>.NativeClassPtr, 100676066);
			ImageEffects.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ImageEffects>.NativeClassPtr, 100676067);
		}

		// Token: 0x0600A49C RID: 42140 RVA: 0x0000A74C File Offset: 0x0000894C
		public ImageEffects(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x04006E68 RID: 28264
		private static readonly IntPtr NativeMethodInfoPtr_RenderDistortion_Public_Static_Void_Material_RenderTexture_RenderTexture_Single_Vector2_Vector2_0;

		// Token: 0x04006E69 RID: 28265
		private static readonly IntPtr NativeMethodInfoPtr_Blit_Public_Static_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006E6A RID: 28266
		private static readonly IntPtr NativeMethodInfoPtr_BlitWithMaterial_Public_Static_Void_Material_RenderTexture_RenderTexture_0;

		// Token: 0x04006E6B RID: 28267
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
