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

namespace AmplifyColor
{
	// Token: 0x02000637 RID: 1591
	[Serializable]
	[StructLayout(LayoutKind.Explicit)]
	public struct RenderLayer
	{
		// Token: 0x0600A1D9 RID: 41433 RVA: 0x00299604 File Offset: 0x00297804
		[CallerCount(4)]
		[CachedScanResults(RefRangeStart = 421650, RefRangeEnd = 421654, XrefRangeStart = 421650, XrefRangeEnd = 421654, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe RenderLayer(LayerMask mask, Color color)
		{
			IntPtr* ptr;
			checked
			{
				ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
				*ptr = ref mask;
			}
			ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = ref color;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(RenderLayer.NativeMethodInfoPtr__ctor_Public_Void_LayerMask_Color_0, ref this, (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x0600A1DA RID: 41434 RVA: 0x0029965C File Offset: 0x0029785C
		// Note: this type is marked as 'beforefieldinit'.
		static RenderLayer()
		{
			Il2CppClassPointerStore<RenderLayer>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "AmplifyColor", "RenderLayer");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<RenderLayer>.NativeClassPtr);
			RenderLayer.NativeFieldInfoPtr_mask = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<RenderLayer>.NativeClassPtr, "mask");
			RenderLayer.NativeFieldInfoPtr_color = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<RenderLayer>.NativeClassPtr, "color");
			RenderLayer.NativeMethodInfoPtr__ctor_Public_Void_LayerMask_Color_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<RenderLayer>.NativeClassPtr, 100675863);
		}

		// Token: 0x0600A1DB RID: 41435 RVA: 0x002996C8 File Offset: 0x002978C8
		public Il2CppSystem.Object BoxIl2CppObject()
		{
			return new Il2CppSystem.Object(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<RenderLayer>.NativeClassPtr, ref this));
		}

		// Token: 0x04006CE7 RID: 27879
		private static readonly IntPtr NativeFieldInfoPtr_mask;

		// Token: 0x04006CE8 RID: 27880
		private static readonly IntPtr NativeFieldInfoPtr_color;

		// Token: 0x04006CE9 RID: 27881
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_LayerMask_Color_0;

		// Token: 0x04006CEA RID: 27882
		[FieldOffset(0)]
		public LayerMask mask;

		// Token: 0x04006CEB RID: 27883
		[FieldOffset(4)]
		public Color color;
	}
}
