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

namespace AmplifyColor
{
	// Token: 0x0200068F RID: 1679
	[Serializable]
	[StructLayout(2)]
	public struct RenderLayer
	{
		// Token: 0x0600AA2C RID: 43564 RVA: 0x002BC340 File Offset: 0x002BA540
		[CallerCount(4)]
		[CachedScanResults(RefRangeStart = 441352, RefRangeEnd = 441356, XrefRangeStart = 441352, XrefRangeEnd = 441356, 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: 0x0600AA2D RID: 43565 RVA: 0x002BC398 File Offset: 0x002BA598
		// 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, 100676576);
		}

		// Token: 0x0600AA2E RID: 43566 RVA: 0x002BC404 File Offset: 0x002BA604
		public Il2CppSystem.Object BoxIl2CppObject()
		{
			return new Il2CppSystem.Object(IL2CPP.il2cpp_value_box(Il2CppClassPointerStore<RenderLayer>.NativeClassPtr, ref this));
		}

		// Token: 0x04007290 RID: 29328
		private static readonly IntPtr NativeFieldInfoPtr_mask;

		// Token: 0x04007291 RID: 29329
		private static readonly IntPtr NativeFieldInfoPtr_color;

		// Token: 0x04007292 RID: 29330
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_LayerMask_Color_0;

		// Token: 0x04007293 RID: 29331
		[FieldOffset(0)]
		public LayerMask mask;

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