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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005E0 RID: 1504
	public class SepiaTone : ImageEffectBase
	{
		// Token: 0x06009D1D RID: 40221 RVA: 0x00284030 File Offset: 0x00282230
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 621817, XrefRangeEnd = 621822, 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: 0x06009D1E RID: 40222 RVA: 0x002840A4 File Offset: 0x002822A4
		[CallerCount(13)]
		[CachedScanResults(RefRangeStart = 227409, RefRangeEnd = 227422, XrefRangeStart = 227409, XrefRangeEnd = 227422, 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: 0x06009D1F RID: 40223 RVA: 0x002840F0 File Offset: 0x002822F0
		// 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, 100675412);
			SepiaTone.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<SepiaTone>.NativeClassPtr, 100675413);
		}

		// Token: 0x06009D20 RID: 40224 RVA: 0x0027BA8C File Offset: 0x00279C8C
		public SepiaTone(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x04006949 RID: 26953
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x0400694A RID: 26954
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
