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

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000573 RID: 1395
	public sealed class TrackballAttribute : PropertyAttribute
	{
		// Token: 0x06009B88 RID: 39816 RVA: 0x00281720 File Offset: 0x0027F920
		[CallerCount(2)]
		[CachedScanResults(RefRangeStart = 147653, RefRangeEnd = 147655, XrefRangeStart = 147653, XrefRangeEnd = 147655, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe TrackballAttribute(string method)
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<TrackballAttribute>.NativeClassPtr))
		{
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.ManagedStringToIl2Cpp(method);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(TrackballAttribute.NativeMethodInfoPtr__ctor_Public_Void_String_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009B89 RID: 39817 RVA: 0x00281784 File Offset: 0x0027F984
		// Note: this type is marked as 'beforefieldinit'.
		static TrackballAttribute()
		{
			Il2CppClassPointerStore<TrackballAttribute>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "TrackballAttribute");
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<TrackballAttribute>.NativeClassPtr);
			TrackballAttribute.NativeFieldInfoPtr_method = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<TrackballAttribute>.NativeClassPtr, "method");
			TrackballAttribute.NativeMethodInfoPtr__ctor_Public_Void_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<TrackballAttribute>.NativeClassPtr, 100675492);
		}

		// Token: 0x06009B8A RID: 39818 RVA: 0x0010FC50 File Offset: 0x0010DE50
		public TrackballAttribute(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x17003462 RID: 13410
		// (get) Token: 0x06009B8B RID: 39819 RVA: 0x002817DC File Offset: 0x0027F9DC
		// (set) Token: 0x06009B8C RID: 39820 RVA: 0x00281805 File Offset: 0x0027FA05
		public unsafe string method
		{
			get
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(TrackballAttribute.NativeFieldInfoPtr_method);
				return IL2CPP.Il2CppStringToManaged(*intPtr);
			}
			set
			{
				IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
				IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(TrackballAttribute.NativeFieldInfoPtr_method), IL2CPP.ManagedStringToIl2Cpp(value));
			}
		}

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

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