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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x02000612 RID: 1554
	public class Blur : MonoBehaviour
	{
		// Token: 0x170036E4 RID: 14052
		// (get) Token: 0x0600A28D RID: 41613 RVA: 0x0029BA50 File Offset: 0x00299C50
		public unsafe Material material
		{
			[CallerCount(5)]
			[CachedScanResults(RefRangeStart = 651185, RefRangeEnd = 651190, XrefRangeStart = 651164, XrefRangeEnd = 651185, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
			get
			{
				IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IntPtr* ptr = null;
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Blur.NativeMethodInfoPtr_get_material_Protected_get_Material_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				IntPtr intPtr3 = intPtr;
				return (intPtr3 != 0) ? new Material(intPtr3) : null;
			}
		}

		// Token: 0x0600A28E RID: 41614 RVA: 0x0029BAA8 File Offset: 0x00299CA8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 651190, XrefRangeEnd = 651204, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Blur.NativeMethodInfoPtr_OnDisable_Protected_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A28F RID: 41615 RVA: 0x0029BAEC File Offset: 0x00299CEC
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 651204, XrefRangeEnd = 651213, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Start()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Blur.NativeMethodInfoPtr_Start_Protected_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A290 RID: 41616 RVA: 0x0029BB30 File Offset: 0x00299D30
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 651213, XrefRangeEnd = 651230, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void FourTapCone(RenderTexture source, RenderTexture dest, int iteration)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)3) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(source);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(dest);
			ptr[checked(unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref iteration;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Blur.NativeMethodInfoPtr_FourTapCone_Public_Void_RenderTexture_RenderTexture_Int32_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A291 RID: 41617 RVA: 0x0029BBB4 File Offset: 0x00299DB4
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 651230, XrefRangeEnd = 651238, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void DownSample4x(RenderTexture source, RenderTexture dest)
		{
			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(dest);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Blur.NativeMethodInfoPtr_DownSample4x_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A292 RID: 41618 RVA: 0x0029BC28 File Offset: 0x00299E28
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 651238, XrefRangeEnd = 651279, 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(Blur.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A293 RID: 41619 RVA: 0x0029BC9C File Offset: 0x00299E9C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 651279, XrefRangeEnd = 651280, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe Blur()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<Blur>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(Blur.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A294 RID: 41620 RVA: 0x0029BCE8 File Offset: 0x00299EE8
		// Note: this type is marked as 'beforefieldinit'.
		static Blur()
		{
			Il2CppClassPointerStore<Blur>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "Blur");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<Blur>.NativeClassPtr);
			Blur.NativeFieldInfoPtr_iterations = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Blur>.NativeClassPtr, "iterations");
			Blur.NativeFieldInfoPtr_blurSpread = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Blur>.NativeClassPtr, "blurSpread");
			Blur.NativeFieldInfoPtr_blurShader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Blur>.NativeClassPtr, "blurShader");
			Blur.NativeFieldInfoPtr_m_Material = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<Blur>.NativeClassPtr, "m_Material");
			Blur.NativeMethodInfoPtr_get_material_Protected_get_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Blur>.NativeClassPtr, 100675963);
			Blur.NativeMethodInfoPtr_OnDisable_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Blur>.NativeClassPtr, 100675964);
			Blur.NativeMethodInfoPtr_Start_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Blur>.NativeClassPtr, 100675965);
			Blur.NativeMethodInfoPtr_FourTapCone_Public_Void_RenderTexture_RenderTexture_Int32_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Blur>.NativeClassPtr, 100675966);
			Blur.NativeMethodInfoPtr_DownSample4x_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Blur>.NativeClassPtr, 100675967);
			Blur.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Blur>.NativeClassPtr, 100675968);
			Blur.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<Blur>.NativeClassPtr, 100675969);
		}

		// Token: 0x0600A295 RID: 41621 RVA: 0x0000351C File Offset: 0x0000171C
		public Blur(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x170036E0 RID: 14048
		// (get) Token: 0x0600A296 RID: 41622 RVA: 0x0029BDF4 File Offset: 0x00299FF4
		// (set) Token: 0x0600A297 RID: 41623 RVA: 0x0029BE1C File Offset: 0x0029A01C
		public unsafe int iterations
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Blur.NativeFieldInfoPtr_iterations);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Blur.NativeFieldInfoPtr_iterations)) = value;
			}
		}

		// Token: 0x170036E1 RID: 14049
		// (get) Token: 0x0600A298 RID: 41624 RVA: 0x0029BE40 File Offset: 0x0029A040
		// (set) Token: 0x0600A299 RID: 41625 RVA: 0x0029BE68 File Offset: 0x0029A068
		public unsafe float blurSpread
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Blur.NativeFieldInfoPtr_blurSpread);
				return *intPtr;
			}
			set
			{
				*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Blur.NativeFieldInfoPtr_blurSpread)) = value;
			}
		}

		// Token: 0x170036E2 RID: 14050
		// (get) Token: 0x0600A29A RID: 41626 RVA: 0x0029BE8C File Offset: 0x0029A08C
		// (set) Token: 0x0600A29B RID: 41627 RVA: 0x0029BEC0 File Offset: 0x0029A0C0
		public unsafe Shader blurShader
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(Blur.NativeFieldInfoPtr_blurShader);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Shader(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(Blur.NativeFieldInfoPtr_blurShader), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x170036E3 RID: 14051
		// (get) Token: 0x0600A29C RID: 41628 RVA: 0x0029BEE8 File Offset: 0x0029A0E8
		// (set) Token: 0x0600A29D RID: 41629 RVA: 0x0029BF13 File Offset: 0x0029A113
		public unsafe static Material m_Material
		{
			get
			{
				IntPtr intPtr;
				IL2CPP.il2cpp_field_static_get_value(Blur.NativeFieldInfoPtr_m_Material, (void*)(&intPtr));
				IntPtr intPtr2 = intPtr;
				return (intPtr2 != 0) ? new Material(intPtr2) : null;
			}
			set
			{
				IL2CPP.il2cpp_field_static_set_value(Blur.NativeFieldInfoPtr_m_Material, IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04006D1A RID: 27930
		private static readonly IntPtr NativeFieldInfoPtr_iterations;

		// Token: 0x04006D1B RID: 27931
		private static readonly IntPtr NativeFieldInfoPtr_blurSpread;

		// Token: 0x04006D1C RID: 27932
		private static readonly IntPtr NativeFieldInfoPtr_blurShader;

		// Token: 0x04006D1D RID: 27933
		private static readonly IntPtr NativeFieldInfoPtr_m_Material;

		// Token: 0x04006D1E RID: 27934
		private static readonly IntPtr NativeMethodInfoPtr_get_material_Protected_get_Material_0;

		// Token: 0x04006D1F RID: 27935
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Protected_Void_0;

		// Token: 0x04006D20 RID: 27936
		private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Void_0;

		// Token: 0x04006D21 RID: 27937
		private static readonly IntPtr NativeMethodInfoPtr_FourTapCone_Public_Void_RenderTexture_RenderTexture_Int32_0;

		// Token: 0x04006D22 RID: 27938
		private static readonly IntPtr NativeMethodInfoPtr_DownSample4x_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006D23 RID: 27939
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006D24 RID: 27940
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
