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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005C2 RID: 1474
	public class ColorCorrectionRamp : ImageEffectBase
	{
		// Token: 0x06009AF5 RID: 39669 RVA: 0x0027B960 File Offset: 0x00279B60
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619700, XrefRangeEnd = 619710, 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: 0x06009AF6 RID: 39670 RVA: 0x0027B9D4 File Offset: 0x00279BD4
		[CallerCount(13)]
		[CachedScanResults(RefRangeStart = 227409, RefRangeEnd = 227422, XrefRangeStart = 227409, XrefRangeEnd = 227422, 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: 0x06009AF7 RID: 39671 RVA: 0x0027BA20 File Offset: 0x00279C20
		// 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, 100675289);
			ColorCorrectionRamp.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionRamp>.NativeClassPtr, 100675290);
		}

		// Token: 0x06009AF8 RID: 39672 RVA: 0x0027BA8C File Offset: 0x00279C8C
		public ColorCorrectionRamp(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x1700348C RID: 13452
		// (get) Token: 0x06009AF9 RID: 39673 RVA: 0x0027BA98 File Offset: 0x00279C98
		// (set) Token: 0x06009AFA RID: 39674 RVA: 0x0027BACC File Offset: 0x00279CCC
		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: 0x040067E8 RID: 26600
		private static readonly IntPtr NativeFieldInfoPtr_textureRamp;

		// Token: 0x040067E9 RID: 26601
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x040067EA RID: 26602
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
