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

namespace UnityStandardAssets.ImageEffects
{
	// Token: 0x020005C1 RID: 1473
	public class ColorCorrectionLookup : PostEffectsBase
	{
		// Token: 0x06009AE3 RID: 39651 RVA: 0x0027B418 File Offset: 0x00279618
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619569, XrefRangeEnd = 619574, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe override bool CheckResources()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), ColorCorrectionLookup.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x06009AE4 RID: 39652 RVA: 0x0027B474 File Offset: 0x00279674
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619574, XrefRangeEnd = 619582, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void OnDisable()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ColorCorrectionLookup.NativeMethodInfoPtr_OnDisable_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009AE5 RID: 39653 RVA: 0x0027B4B8 File Offset: 0x002796B8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619582, XrefRangeEnd = 619590, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public new unsafe void OnDestroy()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ColorCorrectionLookup.NativeMethodInfoPtr_OnDestroy_Private_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009AE6 RID: 39654 RVA: 0x0027B4FC File Offset: 0x002796FC
		[CallerCount(1)]
		[CachedScanResults(RefRangeStart = 619615, RefRangeEnd = 619616, XrefRangeStart = 619590, XrefRangeEnd = 619615, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void SetIdentityLut()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ColorCorrectionLookup.NativeMethodInfoPtr_SetIdentityLut_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009AE7 RID: 39655 RVA: 0x0027B540 File Offset: 0x00279740
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619616, XrefRangeEnd = 619623, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe bool ValidDimensions(Texture2D tex2d)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(tex2d);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ColorCorrectionLookup.NativeMethodInfoPtr_ValidDimensions_Public_Boolean_Texture2D_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
				return *IL2CPP.il2cpp_object_unbox(intPtr);
			}
		}

		// Token: 0x06009AE8 RID: 39656 RVA: 0x0027B5A8 File Offset: 0x002797A8
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619623, XrefRangeEnd = 619675, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe void Convert(Texture2D temp2DTex, string path)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(temp2DTex);
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.ManagedStringToIl2Cpp(path);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ColorCorrectionLookup.NativeMethodInfoPtr_Convert_Public_Void_Texture2D_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009AE9 RID: 39657 RVA: 0x0027B61C File Offset: 0x0027981C
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619675, XrefRangeEnd = 619696, 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(ColorCorrectionLookup.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009AEA RID: 39658 RVA: 0x0027B690 File Offset: 0x00279890
		[CallerCount(0)]
		[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 619696, XrefRangeEnd = 619700, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe ColorCorrectionLookup()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(ColorCorrectionLookup.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009AEB RID: 39659 RVA: 0x0027B6DC File Offset: 0x002798DC
		// Note: this type is marked as 'beforefieldinit'.
		static ColorCorrectionLookup()
		{
			Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "ColorCorrectionLookup");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr);
			ColorCorrectionLookup.NativeFieldInfoPtr_shader = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, "shader");
			ColorCorrectionLookup.NativeFieldInfoPtr_material = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, "material");
			ColorCorrectionLookup.NativeFieldInfoPtr_converted3DLut = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, "converted3DLut");
			ColorCorrectionLookup.NativeFieldInfoPtr_basedOnTempTex = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, "basedOnTempTex");
			ColorCorrectionLookup.NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, 100675281);
			ColorCorrectionLookup.NativeMethodInfoPtr_OnDisable_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, 100675282);
			ColorCorrectionLookup.NativeMethodInfoPtr_OnDestroy_Private_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, 100675283);
			ColorCorrectionLookup.NativeMethodInfoPtr_SetIdentityLut_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, 100675284);
			ColorCorrectionLookup.NativeMethodInfoPtr_ValidDimensions_Public_Boolean_Texture2D_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, 100675285);
			ColorCorrectionLookup.NativeMethodInfoPtr_Convert_Public_Void_Texture2D_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, 100675286);
			ColorCorrectionLookup.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, 100675287);
			ColorCorrectionLookup.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<ColorCorrectionLookup>.NativeClassPtr, 100675288);
		}

		// Token: 0x06009AEC RID: 39660 RVA: 0x00275EC4 File Offset: 0x002740C4
		public ColorCorrectionLookup(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003488 RID: 13448
		// (get) Token: 0x06009AED RID: 39661 RVA: 0x0027B7FC File Offset: 0x002799FC
		// (set) Token: 0x06009AEE RID: 39662 RVA: 0x0027B830 File Offset: 0x00279A30
		public unsafe Shader shader
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ColorCorrectionLookup.NativeFieldInfoPtr_shader);
				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(ColorCorrectionLookup.NativeFieldInfoPtr_shader), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x17003489 RID: 13449
		// (get) Token: 0x06009AEF RID: 39663 RVA: 0x0027B858 File Offset: 0x00279A58
		// (set) Token: 0x06009AF0 RID: 39664 RVA: 0x0027B88C File Offset: 0x00279A8C
		public unsafe Material material
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ColorCorrectionLookup.NativeFieldInfoPtr_material);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Material(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ColorCorrectionLookup.NativeFieldInfoPtr_material), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x1700348A RID: 13450
		// (get) Token: 0x06009AF1 RID: 39665 RVA: 0x0027B8B4 File Offset: 0x00279AB4
		// (set) Token: 0x06009AF2 RID: 39666 RVA: 0x0027B8E8 File Offset: 0x00279AE8
		public unsafe Texture3D converted3DLut
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ColorCorrectionLookup.NativeFieldInfoPtr_converted3DLut);
				IntPtr intPtr2 = *intPtr;
				return (intPtr2 != 0) ? new Texture3D(intPtr2) : null;
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ColorCorrectionLookup.NativeFieldInfoPtr_converted3DLut), IL2CPP.Il2CppObjectBaseToPtr(value));
			}
		}

		// Token: 0x1700348B RID: 13451
		// (get) Token: 0x06009AF3 RID: 39667 RVA: 0x0027B910 File Offset: 0x00279B10
		// (set) Token: 0x06009AF4 RID: 39668 RVA: 0x0027B939 File Offset: 0x00279B39
		public unsafe string basedOnTempTex
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(ColorCorrectionLookup.NativeFieldInfoPtr_basedOnTempTex);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(ColorCorrectionLookup.NativeFieldInfoPtr_basedOnTempTex), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

		// Token: 0x040067DC RID: 26588
		private static readonly IntPtr NativeFieldInfoPtr_shader;

		// Token: 0x040067DD RID: 26589
		private static readonly IntPtr NativeFieldInfoPtr_material;

		// Token: 0x040067DE RID: 26590
		private static readonly IntPtr NativeFieldInfoPtr_converted3DLut;

		// Token: 0x040067DF RID: 26591
		private static readonly IntPtr NativeFieldInfoPtr_basedOnTempTex;

		// Token: 0x040067E0 RID: 26592
		private static readonly IntPtr NativeMethodInfoPtr_CheckResources_Public_Virtual_Boolean_0;

		// Token: 0x040067E1 RID: 26593
		private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Private_Void_0;

		// Token: 0x040067E2 RID: 26594
		private static readonly IntPtr NativeMethodInfoPtr_OnDestroy_Private_Void_0;

		// Token: 0x040067E3 RID: 26595
		private static readonly IntPtr NativeMethodInfoPtr_SetIdentityLut_Public_Void_0;

		// Token: 0x040067E4 RID: 26596
		private static readonly IntPtr NativeMethodInfoPtr_ValidDimensions_Public_Boolean_Texture2D_0;

		// Token: 0x040067E5 RID: 26597
		private static readonly IntPtr NativeMethodInfoPtr_Convert_Public_Void_Texture2D_String_0;

		// Token: 0x040067E6 RID: 26598
		private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;

		// Token: 0x040067E7 RID: 26599
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
	}
}
