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

namespace UnityEngine.PostProcessing
{
	// Token: 0x020005E2 RID: 1506
	public class PostProcessingComponentRenderTexture<T> : PostProcessingComponent<T> where T : PostProcessingModel
	{
		// Token: 0x06009FB5 RID: 40885 RVA: 0x00290ADC File Offset: 0x0028ECDC
		[CallerCount(5874)]
		[CachedScanResults(RefRangeStart = 24, RefRangeEnd = 5898, XrefRangeStart = 24, XrefRangeEnd = 5898, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe virtual void Prepare(Material material)
		{
			IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			checked
			{
				IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
				*ptr = IL2CPP.Il2CppObjectBaseToPtr(material);
				IntPtr intPtr2;
				IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PostProcessingComponentRenderTexture<T>.NativeMethodInfoPtr_Prepare_Public_Virtual_New_Void_Material_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
				Il2CppException.RaiseExceptionIfNecessary(intPtr2);
			}
		}

		// Token: 0x06009FB6 RID: 40886 RVA: 0x00290B40 File Offset: 0x0028ED40
		[CallerCount(18)]
		[CachedScanResults(RefRangeStart = 379185, RefRangeEnd = 379203, XrefRangeStart = 379185, XrefRangeEnd = 379203, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
		public unsafe PostProcessingComponentRenderTexture()
			: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<PostProcessingComponentRenderTexture<T>>.NativeClassPtr))
		{
			IntPtr* ptr = null;
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostProcessingComponentRenderTexture<T>.NativeMethodInfoPtr__ctor_Protected_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}

		// Token: 0x06009FB7 RID: 40887 RVA: 0x00290B8C File Offset: 0x0028ED8C
		// Note: this type is marked as 'beforefieldinit'.
		static PostProcessingComponentRenderTexture()
		{
			Il2CppClassPointerStore<PostProcessingComponentRenderTexture<T>>.NativeClassPtr = IL2CPP.il2cpp_class_from_type(Type.internal_from_handle(IL2CPP.il2cpp_class_get_type(IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "PostProcessingComponentRenderTexture`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<PostProcessingComponentRenderTexture<T>>.NativeClassPtr);
			PostProcessingComponentRenderTexture<T>.NativeMethodInfoPtr_Prepare_Public_Virtual_New_Void_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponentRenderTexture<T>>.NativeClassPtr, 100675787);
			PostProcessingComponentRenderTexture<T>.NativeMethodInfoPtr__ctor_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponentRenderTexture<T>>.NativeClassPtr, 100675788);
		}

		// Token: 0x06009FB8 RID: 40888 RVA: 0x00290AD3 File Offset: 0x0028ECD3
		public PostProcessingComponentRenderTexture(IntPtr pointer)
			: base(pointer)
		{
		}

		// Token: 0x04006B47 RID: 27463
		private static readonly IntPtr NativeMethodInfoPtr_Prepare_Public_Virtual_New_Void_Material_0;

		// Token: 0x04006B48 RID: 27464
		private static readonly IntPtr NativeMethodInfoPtr__ctor_Protected_Void_0;
	}
}
