163 lines
7.7 KiB
C#
163 lines
7.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace UnityEngine.PostProcessing
|
|
{
|
|
// Token: 0x02000520 RID: 1312
|
|
[Token(Token = "0x2000520")]
|
|
public sealed class DepthOfFieldComponent : PostProcessingComponentRenderTexture<DepthOfFieldModel>
|
|
{
|
|
// Token: 0x17000323 RID: 803
|
|
// (get) Token: 0x06002D4E RID: 11598 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x17000323")]
|
|
public override bool active
|
|
{
|
|
[Token(Token = "0x6002D4E")]
|
|
[Address(RVA = "0x1492810", Offset = "0x1491010", VA = "0x181492810", Slot = "5")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002D4F RID: 11599 RVA: 0x000617C0 File Offset: 0x0005F9C0
|
|
[Token(Token = "0x6002D4F")]
|
|
[Address(RVA = "0x47E540", Offset = "0x47CD40", VA = "0x18047E540", Slot = "4")]
|
|
public override DepthTextureMode GetCameraFlags()
|
|
{
|
|
return DepthTextureMode.Depth;
|
|
}
|
|
|
|
// Token: 0x06002D50 RID: 11600 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002D50")]
|
|
[Address(RVA = "0x1491A20", Offset = "0x1490220", VA = "0x181491A20")]
|
|
private float CalculateFocalLength()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002D51 RID: 11601 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002D51")]
|
|
[Address(RVA = "0x1491AC0", Offset = "0x14902C0", VA = "0x181491AC0")]
|
|
private float CalculateMaxCoCRadius(int screenHeight)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002D52 RID: 11602 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002D52")]
|
|
[Address(RVA = "0x1491B40", Offset = "0x1490340", VA = "0x181491B40")]
|
|
private bool CheckHistory(int width, int height)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002D53 RID: 11603 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002D53")]
|
|
[Address(RVA = "0x1492780", Offset = "0x1490F80", VA = "0x181492780")]
|
|
private RenderTextureFormat SelectFormat(RenderTextureFormat primary, RenderTextureFormat secondary)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002D54 RID: 11604 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002D54")]
|
|
[Address(RVA = "0x1491CB0", Offset = "0x14904B0", VA = "0x181491CB0")]
|
|
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: 0x06002D55 RID: 11605 RVA: 0x000617D0 File Offset: 0x0005F9D0
|
|
[Token(Token = "0x6002D55")]
|
|
[Address(RVA = "0x1491C20", Offset = "0x1490420", VA = "0x181491C20", Slot = "7")]
|
|
public override void OnDisable()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002D55)
|
|
|
|
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: 0x06002D56 RID: 11606 RVA: 0x00061804 File Offset: 0x0005FA04
|
|
[Token(Token = "0x6002D56")]
|
|
[Address(RVA = "0x14927D0", Offset = "0x1490FD0", VA = "0x1814927D0")]
|
|
public DepthOfFieldComponent()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04003595 RID: 13717
|
|
[Token(Token = "0x4003595")]
|
|
private const string k_ShaderString = "Hidden/Post FX/Depth Of Field";
|
|
|
|
// Token: 0x04003596 RID: 13718
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4003596")]
|
|
private RenderTexture m_CoCHistory;
|
|
|
|
// Token: 0x04003597 RID: 13719
|
|
[Token(Token = "0x4003597")]
|
|
private const float k_FilmHeight = 0.024f;
|
|
|
|
// Token: 0x02000521 RID: 1313
|
|
[Token(Token = "0x2000521")]
|
|
private static class Uniforms
|
|
{
|
|
// Token: 0x04003598 RID: 13720
|
|
[Token(Token = "0x4003598")]
|
|
internal static readonly int _DepthOfFieldTex = Shader.PropertyToID("_DepthOfFieldTex");
|
|
|
|
// Token: 0x04003599 RID: 13721
|
|
[Token(Token = "0x4003599")]
|
|
internal static readonly int _DepthOfFieldCoCTex = Shader.PropertyToID("_DepthOfFieldCoCTex");
|
|
|
|
// Token: 0x0400359A RID: 13722
|
|
[Token(Token = "0x400359A")]
|
|
internal static readonly int _Distance = Shader.PropertyToID("_Distance");
|
|
|
|
// Token: 0x0400359B RID: 13723
|
|
[Token(Token = "0x400359B")]
|
|
internal static readonly int _LensCoeff = Shader.PropertyToID("_LensCoeff");
|
|
|
|
// Token: 0x0400359C RID: 13724
|
|
[Token(Token = "0x400359C")]
|
|
internal static readonly int _MaxCoC = Shader.PropertyToID("_MaxCoC");
|
|
|
|
// Token: 0x0400359D RID: 13725
|
|
[Token(Token = "0x400359D")]
|
|
internal static readonly int _RcpMaxCoC = Shader.PropertyToID("_RcpMaxCoC");
|
|
|
|
// Token: 0x0400359E RID: 13726
|
|
[Token(Token = "0x400359E")]
|
|
internal static readonly int _RcpAspect = Shader.PropertyToID("_RcpAspect");
|
|
|
|
// Token: 0x0400359F RID: 13727
|
|
[Token(Token = "0x400359F")]
|
|
internal static readonly int _MainTex = Shader.PropertyToID("_MainTex");
|
|
|
|
// Token: 0x040035A0 RID: 13728
|
|
[Token(Token = "0x40035A0")]
|
|
internal static readonly int _CoCTex = Shader.PropertyToID("_CoCTex");
|
|
|
|
// Token: 0x040035A1 RID: 13729
|
|
[Token(Token = "0x40035A1")]
|
|
internal static readonly int _TaaParams = Shader.PropertyToID("_TaaParams");
|
|
|
|
// Token: 0x040035A2 RID: 13730
|
|
[Token(Token = "0x40035A2")]
|
|
internal static readonly int _DepthOfFieldParams = Shader.PropertyToID("_DepthOfFieldParams");
|
|
}
|
|
}
|
|
}
|