using System;
using Il2CppInterop.Common.Attributes;
using Il2CppInterop.Runtime;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;

// Token: 0x020001AE RID: 430
public class PostProcessingRenderPass : ScriptableRenderPass
{
	// Token: 0x06004A71 RID: 19057 RVA: 0x00129DEC File Offset: 0x00127FEC
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 569193, XrefRangeEnd = 569196, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe PostProcessingRenderPass(PostProcessingRenderSettings settings, Material material)
		: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr))
	{
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(settings);
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(material);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostProcessingRenderPass.NativeMethodInfoPtr__ctor_Public_Void_PostProcessingRenderSettings_Material_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004A72 RID: 19058 RVA: 0x00129E68 File Offset: 0x00128068
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 569196, XrefRangeEnd = 569197, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe void Setup(RenderTargetIdentifier sourceRenderTarget, Material material)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref sourceRenderTarget;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(material);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostProcessingRenderPass.NativeMethodInfoPtr_Setup_Public_Void_RenderTargetIdentifier_Material_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004A73 RID: 19059 RVA: 0x00129ED4 File Offset: 0x001280D4
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 569197, XrefRangeEnd = 569208, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void Execute(ScriptableRenderContext context, ref RenderingData renderingData)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		IntPtr* ptr;
		checked
		{
			ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
			*ptr = ref context;
		}
		ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtrNotNull(renderingData);
		IntPtr intPtr2;
		IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PostProcessingRenderPass.NativeMethodInfoPtr_Execute_Public_Virtual_Void_ScriptableRenderContext_byref_RenderingData_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
		Il2CppException.RaiseExceptionIfNecessary(intPtr2);
	}

	// Token: 0x06004A74 RID: 19060 RVA: 0x00129F4C File Offset: 0x0012814C
	[CallerCount(0)]
	[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 569208, XrefRangeEnd = 569210, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
	public unsafe override void FrameCleanup(CommandBuffer cmd)
	{
		IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
		checked
		{
			IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
			*ptr = IL2CPP.Il2CppObjectBaseToPtr(cmd);
			IntPtr intPtr2;
			IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PostProcessingRenderPass.NativeMethodInfoPtr_FrameCleanup_Public_Virtual_Void_CommandBuffer_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
			Il2CppException.RaiseExceptionIfNecessary(intPtr2);
		}
	}

	// Token: 0x06004A75 RID: 19061 RVA: 0x00129FB0 File Offset: 0x001281B0
	// Note: this type is marked as 'beforefieldinit'.
	static PostProcessingRenderPass()
	{
		Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "", "PostProcessingRenderPass");
		IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr);
		PostProcessingRenderPass.NativeFieldInfoPtr_renderTag = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr, "renderTag");
		PostProcessingRenderPass.NativeFieldInfoPtr_temporaryRenderTargetHandle = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr, "temporaryRenderTargetHandle");
		PostProcessingRenderPass.NativeFieldInfoPtr_material = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr, "material");
		PostProcessingRenderPass.NativeFieldInfoPtr_sourceRenderTarget = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr, "sourceRenderTarget");
		PostProcessingRenderPass.NativeMethodInfoPtr__ctor_Public_Void_PostProcessingRenderSettings_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr, 100668333);
		PostProcessingRenderPass.NativeMethodInfoPtr_Setup_Public_Void_RenderTargetIdentifier_Material_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr, 100668334);
		PostProcessingRenderPass.NativeMethodInfoPtr_Execute_Public_Virtual_Void_ScriptableRenderContext_byref_RenderingData_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr, 100668335);
		PostProcessingRenderPass.NativeMethodInfoPtr_FrameCleanup_Public_Virtual_Void_CommandBuffer_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingRenderPass>.NativeClassPtr, 100668336);
	}

	// Token: 0x06004A76 RID: 19062 RVA: 0x0012A080 File Offset: 0x00128280
	public PostProcessingRenderPass(IntPtr pointer)
		: base(pointer)
	{
	}

	// Token: 0x17001AB4 RID: 6836
	// (get) Token: 0x06004A77 RID: 19063 RVA: 0x0012A08C File Offset: 0x0012828C
	// (set) Token: 0x06004A78 RID: 19064 RVA: 0x0012A0B5 File Offset: 0x001282B5
	public unsafe string renderTag
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PostProcessingRenderPass.NativeFieldInfoPtr_renderTag);
			return IL2CPP.Il2CppStringToManaged(*intPtr);
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(PostProcessingRenderPass.NativeFieldInfoPtr_renderTag), IL2CPP.ManagedStringToIl2Cpp(value));
		}
	}

	// Token: 0x17001AB5 RID: 6837
	// (get) Token: 0x06004A79 RID: 19065 RVA: 0x0012A0DC File Offset: 0x001282DC
	// (set) Token: 0x06004A7A RID: 19066 RVA: 0x0012A104 File Offset: 0x00128304
	public unsafe RenderTargetHandle temporaryRenderTargetHandle
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PostProcessingRenderPass.NativeFieldInfoPtr_temporaryRenderTargetHandle);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PostProcessingRenderPass.NativeFieldInfoPtr_temporaryRenderTargetHandle)) = value;
		}
	}

	// Token: 0x17001AB6 RID: 6838
	// (get) Token: 0x06004A7B RID: 19067 RVA: 0x0012A128 File Offset: 0x00128328
	// (set) Token: 0x06004A7C RID: 19068 RVA: 0x0012A15C File Offset: 0x0012835C
	public unsafe Material material
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PostProcessingRenderPass.NativeFieldInfoPtr_material);
			IntPtr intPtr2 = *intPtr;
			return (intPtr2 != 0) ? new Material(intPtr2) : null;
		}
		set
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
			IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(PostProcessingRenderPass.NativeFieldInfoPtr_material), IL2CPP.Il2CppObjectBaseToPtr(value));
		}
	}

	// Token: 0x17001AB7 RID: 6839
	// (get) Token: 0x06004A7D RID: 19069 RVA: 0x0012A184 File Offset: 0x00128384
	// (set) Token: 0x06004A7E RID: 19070 RVA: 0x0012A1AC File Offset: 0x001283AC
	public unsafe RenderTargetIdentifier sourceRenderTarget
	{
		get
		{
			IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PostProcessingRenderPass.NativeFieldInfoPtr_sourceRenderTarget);
			return *intPtr;
		}
		set
		{
			*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PostProcessingRenderPass.NativeFieldInfoPtr_sourceRenderTarget)) = value;
		}
	}

	// Token: 0x0400315A RID: 12634
	private static readonly IntPtr NativeFieldInfoPtr_renderTag;

	// Token: 0x0400315B RID: 12635
	private static readonly IntPtr NativeFieldInfoPtr_temporaryRenderTargetHandle;

	// Token: 0x0400315C RID: 12636
	private static readonly IntPtr NativeFieldInfoPtr_material;

	// Token: 0x0400315D RID: 12637
	private static readonly IntPtr NativeFieldInfoPtr_sourceRenderTarget;

	// Token: 0x0400315E RID: 12638
	private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_PostProcessingRenderSettings_Material_0;

	// Token: 0x0400315F RID: 12639
	private static readonly IntPtr NativeMethodInfoPtr_Setup_Public_Void_RenderTargetIdentifier_Material_0;

	// Token: 0x04003160 RID: 12640
	private static readonly IntPtr NativeMethodInfoPtr_Execute_Public_Virtual_Void_ScriptableRenderContext_byref_RenderingData_0;

	// Token: 0x04003161 RID: 12641
	private static readonly IntPtr NativeMethodInfoPtr_FrameCleanup_Public_Virtual_Void_CommandBuffer_0;
}
