225 lines
9.7 KiB
C#
225 lines
9.7 KiB
C#
using System;
|
|
using Il2CppInterop.Common.Attributes;
|
|
using Il2CppInterop.Runtime;
|
|
using Il2CppInterop.Runtime.InteropTypes;
|
|
using Il2CppInterop.Runtime.InteropTypes.Arrays;
|
|
using Il2CppSystem;
|
|
|
|
namespace UnityEngine.PostProcessing
|
|
{
|
|
// Token: 0x02000591 RID: 1425
|
|
public class PostProcessingComponent<T> : PostProcessingComponentBase where T : PostProcessingModel
|
|
{
|
|
// Token: 0x1700336C RID: 13164
|
|
// (get) Token: 0x06009803 RID: 38915 RVA: 0x0027032C File Offset: 0x0026E52C
|
|
// (set) Token: 0x06009804 RID: 38916 RVA: 0x0027037C File Offset: 0x0026E57C
|
|
public unsafe T model
|
|
{
|
|
[CallerCount(10)]
|
|
[CachedScanResults(RefRangeStart = 7455, RefRangeEnd = 7465, XrefRangeStart = 7455, XrefRangeEnd = 7465, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
get
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostProcessingComponent<T>.NativeMethodInfoPtr_get_model_Public_get_T_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
return IL2CPP.PointerToValueGeneric<T>(intPtr, false, true);
|
|
}
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 0, XrefRangeEnd = 0, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
set
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
checked
|
|
{
|
|
IntPtr* ptr = stackalloc IntPtr[unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)];
|
|
IntPtr* ptr2 = ptr;
|
|
T ptr4;
|
|
if (!typeof(T).IsValueType)
|
|
{
|
|
T t = value;
|
|
if (!(t is string))
|
|
{
|
|
ref T ptr3 = (ptr4 = IL2CPP.Il2CppObjectBaseToPtr(t as Il2CppObjectBase));
|
|
if ((ref ptr3) != null)
|
|
{
|
|
ptr4 = ref ptr3;
|
|
if (IL2CPP.il2cpp_class_is_valuetype(IL2CPP.il2cpp_object_get_class(ref ptr3)))
|
|
{
|
|
ptr4 = IL2CPP.il2cpp_object_unbox(ref ptr3);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
ptr4 = IL2CPP.ManagedStringToIl2Cpp(t as string);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
ptr4 = ref value;
|
|
}
|
|
*ptr2 = ref ptr4;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostProcessingComponent<T>.NativeMethodInfoPtr_set_model_Internal_set_Void_T_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x06009805 RID: 38917 RVA: 0x00270428 File Offset: 0x0026E628
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 634840, XrefRangeEnd = 634845, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe virtual void Init(PostProcessingContext pcontext, T pmodel)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr;
|
|
checked
|
|
{
|
|
ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.Il2CppObjectBaseToPtr(pcontext);
|
|
}
|
|
IntPtr* ptr2 = ptr + checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr);
|
|
T ptr4;
|
|
if (!typeof(T).IsValueType)
|
|
{
|
|
T t = pmodel;
|
|
if (!(t is string))
|
|
{
|
|
ref T ptr3 = (ptr4 = IL2CPP.Il2CppObjectBaseToPtr(t as Il2CppObjectBase));
|
|
if ((ref ptr3) != null)
|
|
{
|
|
ptr4 = ref ptr3;
|
|
if (IL2CPP.il2cpp_class_is_valuetype(IL2CPP.il2cpp_object_get_class(ref ptr3)))
|
|
{
|
|
ptr4 = IL2CPP.il2cpp_object_unbox(ref ptr3);
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
ptr4 = IL2CPP.ManagedStringToIl2Cpp(t as string);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
ptr4 = ref pmodel;
|
|
}
|
|
*ptr2 = ref ptr4;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PostProcessingComponent<T>.NativeMethodInfoPtr_Init_Public_Virtual_New_Void_PostProcessingContext_T_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06009806 RID: 38918 RVA: 0x002704F8 File Offset: 0x0026E6F8
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 634845, XrefRangeEnd = 634846, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe override PostProcessingModel GetModel()
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), PostProcessingComponent<T>.NativeMethodInfoPtr_GetModel_Public_Virtual_PostProcessingModel_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
IntPtr intPtr3 = intPtr;
|
|
return (intPtr3 != 0) ? new PostProcessingModel(intPtr3) : null;
|
|
}
|
|
|
|
// Token: 0x06009807 RID: 38919 RVA: 0x0027055C File Offset: 0x0026E75C
|
|
[CallerCount(54)]
|
|
[CachedScanResults(RefRangeStart = 223517, RefRangeEnd = 223571, XrefRangeStart = 223517, XrefRangeEnd = 223571, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe PostProcessingComponent()
|
|
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<PostProcessingComponent<T>>.NativeClassPtr))
|
|
{
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(PostProcessingComponent<T>.NativeMethodInfoPtr__ctor_Protected_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06009808 RID: 38920 RVA: 0x002705A8 File Offset: 0x0026E7A8
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
static PostProcessingComponent()
|
|
{
|
|
Il2CppClassPointerStore<PostProcessingComponent<T>>.NativeClassPtr = IL2CPP.il2cpp_class_from_type(Type.internal_from_handle(IL2CPP.il2cpp_class_get_type(IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityEngine.PostProcessing", "PostProcessingComponent`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<PostProcessingComponent<T>>.NativeClassPtr);
|
|
PostProcessingComponent<T>.NativeFieldInfoPtr__model_k__BackingField = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<PostProcessingComponent<T>>.NativeClassPtr, "<model>k__BackingField");
|
|
PostProcessingComponent<T>.NativeMethodInfoPtr_get_model_Public_get_T_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponent<T>>.NativeClassPtr, 100675115);
|
|
PostProcessingComponent<T>.NativeMethodInfoPtr_set_model_Internal_set_Void_T_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponent<T>>.NativeClassPtr, 100675116);
|
|
PostProcessingComponent<T>.NativeMethodInfoPtr_Init_Public_Virtual_New_Void_PostProcessingContext_T_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponent<T>>.NativeClassPtr, 100675117);
|
|
PostProcessingComponent<T>.NativeMethodInfoPtr_GetModel_Public_Virtual_PostProcessingModel_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponent<T>>.NativeClassPtr, 100675118);
|
|
PostProcessingComponent<T>.NativeMethodInfoPtr__ctor_Protected_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<PostProcessingComponent<T>>.NativeClassPtr, 100675119);
|
|
}
|
|
|
|
// Token: 0x06009809 RID: 38921 RVA: 0x0027068B File Offset: 0x0026E88B
|
|
public PostProcessingComponent(IntPtr pointer)
|
|
: base(pointer)
|
|
{
|
|
}
|
|
|
|
// Token: 0x1700336B RID: 13163
|
|
// (get) Token: 0x0600980A RID: 38922 RVA: 0x00270694 File Offset: 0x0026E894
|
|
// (set) Token: 0x0600980B RID: 38923 RVA: 0x002706C0 File Offset: 0x0026E8C0
|
|
public unsafe T _model_k__BackingField
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(PostProcessingComponent<T>.NativeFieldInfoPtr__model_k__BackingField);
|
|
return IL2CPP.PointerToValueGeneric<T>(intPtr, true, false);
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr intPtr2 = intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(PostProcessingComponent<T>.NativeFieldInfoPtr__model_k__BackingField);
|
|
Type typeFromHandle = typeof(T);
|
|
if (!typeFromHandle.IsValueType)
|
|
{
|
|
if (!string.Equals(typeFromHandle.FullName, "System.String"))
|
|
{
|
|
IntPtr intPtr4;
|
|
IntPtr intPtr3 = (intPtr4 = IL2CPP.Il2CppObjectBaseToPtr(value as Il2CppObjectBase));
|
|
if (intPtr3 != 0)
|
|
{
|
|
intPtr4 = intPtr3;
|
|
if (IL2CPP.il2cpp_class_is_valuetype(IL2CPP.il2cpp_object_get_class(intPtr3)))
|
|
{
|
|
IntPtr intPtr5 = intPtr3;
|
|
cpblk(intPtr2, IL2CPP.il2cpp_object_unbox(intPtr3), IL2CPP.il2cpp_class_value_size(IL2CPP.il2cpp_object_get_class(intPtr5), (UIntPtr)0));
|
|
return;
|
|
}
|
|
}
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr2, intPtr4);
|
|
}
|
|
else
|
|
{
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr2, IL2CPP.ManagedStringToIl2Cpp(value as string));
|
|
}
|
|
}
|
|
else
|
|
{
|
|
*intPtr2 = value;
|
|
}
|
|
}
|
|
}
|
|
|
|
// Token: 0x04006608 RID: 26120
|
|
private static readonly IntPtr NativeFieldInfoPtr__model_k__BackingField;
|
|
|
|
// Token: 0x04006609 RID: 26121
|
|
private static readonly IntPtr NativeMethodInfoPtr_get_model_Public_get_T_0;
|
|
|
|
// Token: 0x0400660A RID: 26122
|
|
private static readonly IntPtr NativeMethodInfoPtr_set_model_Internal_set_Void_T_0;
|
|
|
|
// Token: 0x0400660B RID: 26123
|
|
private static readonly IntPtr NativeMethodInfoPtr_Init_Public_Virtual_New_Void_PostProcessingContext_T_0;
|
|
|
|
// Token: 0x0400660C RID: 26124
|
|
private static readonly IntPtr NativeMethodInfoPtr_GetModel_Public_Virtual_PostProcessingModel_0;
|
|
|
|
// Token: 0x0400660D RID: 26125
|
|
private static readonly IntPtr NativeMethodInfoPtr__ctor_Protected_Void_0;
|
|
}
|
|
}
|