163 lines
7.7 KiB
C#
163 lines
7.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace UnityEngine.PostProcessing
|
|
{
|
|
// Token: 0x02000517 RID: 1303
|
|
[Token(Token = "0x2000517")]
|
|
public sealed class DepthOfFieldComponent : PostProcessingComponentRenderTexture<DepthOfFieldModel>
|
|
{
|
|
// Token: 0x17000329 RID: 809
|
|
// (get) Token: 0x06002D1C RID: 11548 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x17000329")]
|
|
public override bool active
|
|
{
|
|
[Token(Token = "0x6002D1C")]
|
|
[Address(RVA = "0x13CA730", Offset = "0x13C9530", VA = "0x1813CA730", Slot = "5")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002D1D RID: 11549 RVA: 0x000615D0 File Offset: 0x0005F7D0
|
|
[Token(Token = "0x6002D1D")]
|
|
[Address(RVA = "0x370C60", Offset = "0x36FA60", VA = "0x180370C60", Slot = "4")]
|
|
public override DepthTextureMode GetCameraFlags()
|
|
{
|
|
return DepthTextureMode.Depth;
|
|
}
|
|
|
|
// Token: 0x06002D1E RID: 11550 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002D1E")]
|
|
[Address(RVA = "0x13C9940", Offset = "0x13C8740", VA = "0x1813C9940")]
|
|
private float CalculateFocalLength()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002D1F RID: 11551 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002D1F")]
|
|
[Address(RVA = "0x13C99E0", Offset = "0x13C87E0", VA = "0x1813C99E0")]
|
|
private float CalculateMaxCoCRadius(int screenHeight)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002D20 RID: 11552 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002D20")]
|
|
[Address(RVA = "0x13C9A60", Offset = "0x13C8860", VA = "0x1813C9A60")]
|
|
private bool CheckHistory(int width, int height)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002D21 RID: 11553 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002D21")]
|
|
[Address(RVA = "0x13CA6A0", Offset = "0x13C94A0", VA = "0x1813CA6A0")]
|
|
private RenderTextureFormat SelectFormat(RenderTextureFormat primary, RenderTextureFormat secondary)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002D22 RID: 11554 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002D22")]
|
|
[Address(RVA = "0x13C9BD0", Offset = "0x13C89D0", VA = "0x1813C9BD0")]
|
|
public void Prepare(RenderTexture source, Material uberMaterial, bool antialiasCoC, Vector2 taaJitter, float taaBlending)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002D23 RID: 11555 RVA: 0x000615E0 File Offset: 0x0005F7E0
|
|
[Token(Token = "0x6002D23")]
|
|
[Address(RVA = "0x13C9B40", Offset = "0x13C8940", VA = "0x1813C9B40", Slot = "7")]
|
|
public override void OnDisable()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002D23)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UnityEngine.PostProcessing.DepthOfFieldComponent::OnDisable()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{; IL_1E:; stfld:RenderTexture(DepthOfFieldComponent::m_CoCHistory, ldloc:DepthOfFieldComponent(this), conv.u8:uint64[exp:RenderTexture](ldc.i8:int64[exp:uint64](0))); };
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1810
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 344
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
|
|
--- End of inner exception stack trace ---
|
|
at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
|
|
at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1618
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x06002D24 RID: 11556 RVA: 0x00061614 File Offset: 0x0005F814
|
|
[Token(Token = "0x6002D24")]
|
|
[Address(RVA = "0x13CA6F0", Offset = "0x13C94F0", VA = "0x1813CA6F0")]
|
|
public DepthOfFieldComponent()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04003553 RID: 13651
|
|
[Token(Token = "0x4003553")]
|
|
private const string k_ShaderString = "Hidden/Post FX/Depth Of Field";
|
|
|
|
// Token: 0x04003554 RID: 13652
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4003554")]
|
|
private RenderTexture m_CoCHistory;
|
|
|
|
// Token: 0x04003555 RID: 13653
|
|
[Token(Token = "0x4003555")]
|
|
private const float k_FilmHeight = 0.024f;
|
|
|
|
// Token: 0x02000518 RID: 1304
|
|
[Token(Token = "0x2000518")]
|
|
private static class Uniforms
|
|
{
|
|
// Token: 0x04003556 RID: 13654
|
|
[Token(Token = "0x4003556")]
|
|
internal static readonly int _DepthOfFieldTex = Shader.PropertyToID("_DepthOfFieldTex");
|
|
|
|
// Token: 0x04003557 RID: 13655
|
|
[Token(Token = "0x4003557")]
|
|
internal static readonly int _DepthOfFieldCoCTex = Shader.PropertyToID("_DepthOfFieldCoCTex");
|
|
|
|
// Token: 0x04003558 RID: 13656
|
|
[Token(Token = "0x4003558")]
|
|
internal static readonly int _Distance = Shader.PropertyToID("_Distance");
|
|
|
|
// Token: 0x04003559 RID: 13657
|
|
[Token(Token = "0x4003559")]
|
|
internal static readonly int _LensCoeff = Shader.PropertyToID("_LensCoeff");
|
|
|
|
// Token: 0x0400355A RID: 13658
|
|
[Token(Token = "0x400355A")]
|
|
internal static readonly int _MaxCoC = Shader.PropertyToID("_MaxCoC");
|
|
|
|
// Token: 0x0400355B RID: 13659
|
|
[Token(Token = "0x400355B")]
|
|
internal static readonly int _RcpMaxCoC = Shader.PropertyToID("_RcpMaxCoC");
|
|
|
|
// Token: 0x0400355C RID: 13660
|
|
[Token(Token = "0x400355C")]
|
|
internal static readonly int _RcpAspect = Shader.PropertyToID("_RcpAspect");
|
|
|
|
// Token: 0x0400355D RID: 13661
|
|
[Token(Token = "0x400355D")]
|
|
internal static readonly int _MainTex = Shader.PropertyToID("_MainTex");
|
|
|
|
// Token: 0x0400355E RID: 13662
|
|
[Token(Token = "0x400355E")]
|
|
internal static readonly int _CoCTex = Shader.PropertyToID("_CoCTex");
|
|
|
|
// Token: 0x0400355F RID: 13663
|
|
[Token(Token = "0x400355F")]
|
|
internal static readonly int _TaaParams = Shader.PropertyToID("_TaaParams");
|
|
|
|
// Token: 0x04003560 RID: 13664
|
|
[Token(Token = "0x4003560")]
|
|
internal static readonly int _DepthOfFieldParams = Shader.PropertyToID("_DepthOfFieldParams");
|
|
}
|
|
}
|
|
}
|