158 lines
7.4 KiB
C#
158 lines
7.4 KiB
C#
using System;
|
|
using Il2CppInterop.Common.Attributes;
|
|
using Il2CppInterop.Runtime;
|
|
using UnityEngine;
|
|
|
|
namespace UnityStandardAssets.ImageEffects
|
|
{
|
|
// Token: 0x020005DE RID: 1502
|
|
public class MotionBlur : ImageEffectBase
|
|
{
|
|
// Token: 0x06009CFA RID: 40186 RVA: 0x0028373C File Offset: 0x0028193C
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 638542, XrefRangeEnd = 638543, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe override void Start()
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MotionBlur.NativeMethodInfoPtr_Start_Protected_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06009CFB RID: 40187 RVA: 0x0028378C File Offset: 0x0028198C
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 638543, XrefRangeEnd = 638548, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe override void OnDisable()
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(IL2CPP.il2cpp_object_get_virtual_method(IL2CPP.Il2CppObjectBaseToPtr(this), MotionBlur.NativeMethodInfoPtr_OnDisable_Protected_Virtual_Void_0), IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06009CFC RID: 40188 RVA: 0x002837DC File Offset: 0x002819DC
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 638548, XrefRangeEnd = 638588, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe void OnRenderImage(RenderTexture source, RenderTexture destination)
|
|
{
|
|
IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IntPtr* ptr;
|
|
checked
|
|
{
|
|
ptr = stackalloc IntPtr[unchecked((UIntPtr)2) * (UIntPtr)sizeof(IntPtr)];
|
|
*ptr = IL2CPP.Il2CppObjectBaseToPtr(source);
|
|
}
|
|
ptr[checked(unchecked((UIntPtr)1) * (UIntPtr)sizeof(IntPtr)) / (UIntPtr)sizeof(IntPtr)] = IL2CPP.Il2CppObjectBaseToPtr(destination);
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MotionBlur.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06009CFD RID: 40189 RVA: 0x00283850 File Offset: 0x00281A50
|
|
[CallerCount(0)]
|
|
[CachedScanResults(RefRangeStart = 0, RefRangeEnd = 0, XrefRangeStart = 638588, XrefRangeEnd = 638589, MetadataInitTokenRva = 0L, MetadataInitFlagRva = 0L)]
|
|
public unsafe MotionBlur()
|
|
: this(IL2CPP.il2cpp_object_new(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr))
|
|
{
|
|
IntPtr* ptr = null;
|
|
IntPtr intPtr2;
|
|
IntPtr intPtr = IL2CPP.il2cpp_runtime_invoke(MotionBlur.NativeMethodInfoPtr__ctor_Public_Void_0, IL2CPP.Il2CppObjectBaseToPtrNotNull(this), (void**)ptr, ref intPtr2);
|
|
Il2CppException.RaiseExceptionIfNecessary(intPtr2);
|
|
}
|
|
|
|
// Token: 0x06009CFE RID: 40190 RVA: 0x0028389C File Offset: 0x00281A9C
|
|
// Note: this type is marked as 'beforefieldinit'.
|
|
static MotionBlur()
|
|
{
|
|
Il2CppClassPointerStore<MotionBlur>.NativeClassPtr = IL2CPP.GetIl2CppClass("Assembly-CSharp.dll", "UnityStandardAssets.ImageEffects", "MotionBlur");
|
|
IL2CPP.il2cpp_runtime_class_init(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr);
|
|
MotionBlur.NativeFieldInfoPtr_blurAmount = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, "blurAmount");
|
|
MotionBlur.NativeFieldInfoPtr_extraBlur = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, "extraBlur");
|
|
MotionBlur.NativeFieldInfoPtr_accumTexture = IL2CPP.GetIl2CppField(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, "accumTexture");
|
|
MotionBlur.NativeMethodInfoPtr_Start_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100675405);
|
|
MotionBlur.NativeMethodInfoPtr_OnDisable_Protected_Virtual_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100675406);
|
|
MotionBlur.NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100675407);
|
|
MotionBlur.NativeMethodInfoPtr__ctor_Public_Void_0 = IL2CPP.GetIl2CppMethodByToken(Il2CppClassPointerStore<MotionBlur>.NativeClassPtr, 100675408);
|
|
}
|
|
|
|
// Token: 0x06009CFF RID: 40191 RVA: 0x0027E690 File Offset: 0x0027C890
|
|
public MotionBlur(IntPtr pointer)
|
|
: base(pointer)
|
|
{
|
|
}
|
|
|
|
// Token: 0x17003541 RID: 13633
|
|
// (get) Token: 0x06009D00 RID: 40192 RVA: 0x00283958 File Offset: 0x00281B58
|
|
// (set) Token: 0x06009D01 RID: 40193 RVA: 0x00283980 File Offset: 0x00281B80
|
|
public unsafe float blurAmount
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_blurAmount);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_blurAmount)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003542 RID: 13634
|
|
// (get) Token: 0x06009D02 RID: 40194 RVA: 0x002839A4 File Offset: 0x00281BA4
|
|
// (set) Token: 0x06009D03 RID: 40195 RVA: 0x002839CC File Offset: 0x00281BCC
|
|
public unsafe bool extraBlur
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_extraBlur);
|
|
return *intPtr;
|
|
}
|
|
set
|
|
{
|
|
*(IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_extraBlur)) = value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17003543 RID: 13635
|
|
// (get) Token: 0x06009D04 RID: 40196 RVA: 0x002839F0 File Offset: 0x00281BF0
|
|
// (set) Token: 0x06009D05 RID: 40197 RVA: 0x00283A24 File Offset: 0x00281C24
|
|
public unsafe RenderTexture accumTexture
|
|
{
|
|
get
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this) + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_accumTexture);
|
|
IntPtr intPtr2 = *intPtr;
|
|
return (intPtr2 != 0) ? new RenderTexture(intPtr2) : null;
|
|
}
|
|
set
|
|
{
|
|
IntPtr intPtr = IL2CPP.Il2CppObjectBaseToPtrNotNull(this);
|
|
IL2CPP.il2cpp_gc_wbarrier_set_field(intPtr, intPtr + (IntPtr)IL2CPP.il2cpp_field_get_offset(MotionBlur.NativeFieldInfoPtr_accumTexture), IL2CPP.Il2CppObjectBaseToPtr(value));
|
|
}
|
|
}
|
|
|
|
// Token: 0x04006937 RID: 26935
|
|
private static readonly IntPtr NativeFieldInfoPtr_blurAmount;
|
|
|
|
// Token: 0x04006938 RID: 26936
|
|
private static readonly IntPtr NativeFieldInfoPtr_extraBlur;
|
|
|
|
// Token: 0x04006939 RID: 26937
|
|
private static readonly IntPtr NativeFieldInfoPtr_accumTexture;
|
|
|
|
// Token: 0x0400693A RID: 26938
|
|
private static readonly IntPtr NativeMethodInfoPtr_Start_Protected_Virtual_Void_0;
|
|
|
|
// Token: 0x0400693B RID: 26939
|
|
private static readonly IntPtr NativeMethodInfoPtr_OnDisable_Protected_Virtual_Void_0;
|
|
|
|
// Token: 0x0400693C RID: 26940
|
|
private static readonly IntPtr NativeMethodInfoPtr_OnRenderImage_Private_Void_RenderTexture_RenderTexture_0;
|
|
|
|
// Token: 0x0400693D RID: 26941
|
|
private static readonly IntPtr NativeMethodInfoPtr__ctor_Public_Void_0;
|
|
}
|
|
}
|