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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x02000638 RID: 1592
	public class SepiaTone : ImageEffectBase
	{
		// Token: 0x0600A570 RID: 42352 RVA: 0x002A6D6C File Offset: 0x002A4F6C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 654119, XrefRangeEnd = 654124, 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(SepiaTone.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A571 RID: 42353 RVA: 0x002A6DE0 File Offset: 0x002A4FE0
		[CallerCount(13)]
		[CachedScanResults(RefRangeStart = 235327, RefRangeEnd = 235340, XrefRangeStart = 235327, XrefRangeEnd = 235340, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe SepiaTone()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<SepiaTone>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(SepiaTone.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A572 RID: 42354 RVA: 0x002A6E2C File Offset: 0x002A502C
		// Note: this type is marked as 'beforefieldinit'.
		static SepiaTone()
		{
			Il2CppClassPointerStore<SepiaTone>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "SepiaTone");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<SepiaTone>.NativeClassPtr);
			SepiaTone.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SepiaTone>.NativeClassPtr, 100676125);
			SepiaTone.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SepiaTone>.NativeClassPtr, 100676126);
		}

		// Token: 0x0600A573 RID: 42355 RVA: 0x0029E7C8 File Offset: 0x0029C9C8
		public SepiaTone(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x04006EF2 RID: 28402
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006EF3 RID: 28403
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
