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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x0200061A RID: 1562
	public class ColorCorrectionRamp : ImageEffectBase
	{
		// Token: 0x0600A348 RID: 41800 RVA: 0x0029E69C File Offset: 0x0029C89C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 652002, XrefRangeEnd = 652012, 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(ColorCorrectionRamp.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

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

		// Token: 0x0600A34A RID: 41802 RVA: 0x0029E75C File Offset: 0x0029C95C
		// Note: this type is marked as 'beforefieldinit'.
		static ColorCorrectionRamp()
		{
			Il2CppClassPointerStore<ColorCorrectionRamp>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "ColorCorrectionRamp");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ColorCorrectionRamp>.NativeClassPtr);
			ColorCorrectionRamp.NativeFieldInfoPtr_textureRamp = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ColorCorrectionRamp>.NativeClassPtr, "textureRamp");
			ColorCorrectionRamp.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionRamp>.NativeClassPtr, 100676002);
			ColorCorrectionRamp.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionRamp>.NativeClassPtr, 100676003);
		}

		// Token: 0x0600A34B RID: 41803 RVA: 0x0029E7C8 File Offset: 0x0029C9C8
		public ColorCorrectionRamp(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003727 RID: 14119
		// (get) Token: 0x0600A34C RID: 41804 RVA: 0x0029E7D4 File Offset: 0x0029C9D4
		// (set) Token: 0x0600A34D RID: 41805 RVA: 0x0029E808 File Offset: 0x0029CA08
		public unsafe Texture textureRamp
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ColorCorrectionRamp.NativeFieldInfoPtr_textureRamp);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Texture(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ColorCorrectionRamp.NativeFieldInfoPtr_textureRamp), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x04006D91 RID: 28049
		private static readonly IntPtr NativeFieldInfoPtr_textureRamp;

		// Token: 0x04006D92 RID: 28050
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x04006D93 RID: 28051
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
