using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using Il2CppInterop.Runtime.InteropTypes.Arrays;
using Il2CppSystem;
using UnityEngine.Rendering;

namespace UnityEngine.PostProcessing
{
	// Token: 0x02000589 RID: 1417
	public class PostProcessingComponentCommandBuffer<T> : PostProcessingComponent<T> where T : PostProcessingModel
	{
		// Token: 0x0600975C RID: 38748 RVA: 0x0026DB78 File Offset: 0x0026BD78
		[CallerCount(0)]
		public unsafe virtual CameraEvent GetCameraEvent()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PostProcessingComponentCommandBuffer<T>.NativeMethodInfoPtr_GetCameraEvent_Public_Abstract_Virtual_New_CameraEvent_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return *IL2CPP.il2cpp_object_unbox(intPtr);
		}

		// Token: 0x0600975D RID: 38749 RVA: 0x0026DBD4 File Offset: 0x0026BDD4
		[CallerCount(0)]
		public unsafe virtual string GetName()
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PostProcessingComponentCommandBuffer<T>.NativeMethodInfoPtr_GetName_Public_Abstract_Virtual_New_String_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			return IL2CPP.Il2CppStringToManaged(intPtr);
		}

		// Token: 0x0600975E RID: 38750 RVA: 0x0026DC2C File Offset: 0x0026BE2C
		[CallerCount(0)]
		public unsafe virtual void PopulateCommandBuffer(CommandBuffer cb)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(cb);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PostProcessingComponentCommandBuffer<T>.NativeMethodInfoPtr_PopulateCommandBuffer_Public_Abstract_Virtual_New_Void_CommandBuffer_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x0600975F RID: 38751 RVA: 0x0026DC90 File Offset: 0x0026BE90
		[CallerCount(18)]
		[CachedScanResults(RefRangeStart = 617118, RefRangeEnd = 617136, XrefRangeStart = 617115, XrefRangeEnd = 617118, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe PostProcessingComponentCommandBuffer()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<PostProcessingComponentCommandBuffer<T>>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostProcessingComponentCommandBuffer<T>.NativeMethodInfoPtr__ctor_Protected_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009760 RID: 38752 RVA: 0x0026DCDC File Offset: 0x0026BEDC
		// Note: this type is marked as 'beforefieldinit'.
		static PostProcessingComponentCommandBuffer()
		{
			Il2CppClassPointerStore<PostProcessingComponentCommandBuffer<T>>.NativeClassPtr = IL2CPP.il2cpp_class_from_type(Type.internal_from_handle(IL2CPP.il2cpp_class_get_type(IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "PostProcessingComponentCommandBuffer`1"))).MakeGenericType(new Il2CppReferenceArray<Type>(new Type[] { Type.internal_from_handle(IL2CPP.il2cpp_class_get_type(Il2CppClassPointerStore<T>.NativeClassPtr)) })).TypeHandle.value);
			IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<PostProcessingComponentCommandBuffer<T>>.NativeClassPtr);
			PostProcessingComponentCommandBuffer<T>.NativeMethodInfoPtr_GetCameraEvent_Public_Abstract_Virtual_New_CameraEvent_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponentCommandBuffer<T>>.NativeClassPtr, 100675070);
			PostProcessingComponentCommandBuffer<T>.NativeMethodInfoPtr_GetName_Public_Abstract_Virtual_New_String_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponentCommandBuffer<T>>.NativeClassPtr, 100675071);
			PostProcessingComponentCommandBuffer<T>.NativeMethodInfoPtr_PopulateCommandBuffer_Public_Abstract_Virtual_New_Void_CommandBuffer_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponentCommandBuffer<T>>.NativeClassPtr, 100675072);
			PostProcessingComponentCommandBuffer<T>.NativeMethodInfoPtr__ctor_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponentCommandBuffer<T>>.NativeClassPtr, 100675073);
		}

		// Token: 0x06009761 RID: 38753 RVA: 0x0026DD97 File Offset: 0x0026BF97
		public PostProcessingComponentCommandBuffer(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x0400659A RID: 26010
		private static readonly IntPtr NativeMethodInfoPtr_GetCameraEvent_Public_Abstract_Virtual_New_CameraEvent_0;

		// Token: 0x0400659B RID: 26011
		private static readonly IntPtr NativeMethodInfoPtr_GetName_Public_Abstract_Virtual_New_String_0;

		// Token: 0x0400659C RID: 26012
		private static readonly IntPtr NativeMethodInfoPtr_PopulateCommandBuffer_Public_Abstract_Virtual_New_Void_CommandBuffer_0;

		// Token: 0x0400659D RID: 26013
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Protected_Void_0;
	}
}
