163 lines
7.7 KiB
C#
163 lines
7.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace UnityEngine.PostProcessing
|
|
{
|
|
// Token: 0x0200056F RID: 1391
|
|
[Token(Token = "0x200056F")]
|
|
public sealed class DepthOfFieldComponent : PostProcessingComponentRenderTexture<DepthOfFieldModel>
|
|
{
|
|
// Token: 0x1700034E RID: 846
|
|
// (get) Token: 0x06002FE5 RID: 12261 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x1700034E")]
|
|
public override bool active
|
|
{
|
|
[Token(Token = "0x6002FE5")]
|
|
[Address(RVA = "0x12FCA60", Offset = "0x12FBA60", VA = "0x1812FCA60", Slot = "5")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x06002FE6 RID: 12262 RVA: 0x00068864 File Offset: 0x00066A64
|
|
[Token(Token = "0x6002FE6")]
|
|
[Address(RVA = "0x367A80", Offset = "0x366A80", VA = "0x180367A80", Slot = "4")]
|
|
public override DepthTextureMode GetCameraFlags()
|
|
{
|
|
return DepthTextureMode.Depth;
|
|
}
|
|
|
|
// Token: 0x06002FE7 RID: 12263 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002FE7")]
|
|
[Address(RVA = "0x12FBC70", Offset = "0x12FAC70", VA = "0x1812FBC70")]
|
|
private float CalculateFocalLength()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002FE8 RID: 12264 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002FE8")]
|
|
[Address(RVA = "0x12FBD10", Offset = "0x12FAD10", VA = "0x1812FBD10")]
|
|
private float CalculateMaxCoCRadius(int screenHeight)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002FE9 RID: 12265 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002FE9")]
|
|
[Address(RVA = "0x12FBD90", Offset = "0x12FAD90", VA = "0x1812FBD90")]
|
|
private bool CheckHistory(int width, int height)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002FEA RID: 12266 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002FEA")]
|
|
[Address(RVA = "0x12FC9D0", Offset = "0x12FB9D0", VA = "0x1812FC9D0")]
|
|
private RenderTextureFormat SelectFormat(RenderTextureFormat primary, RenderTextureFormat secondary)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06002FEB RID: 12267 RVA: 0x000020D3 File Offset: 0x000002D3
|
|
[Token(Token = "0x6002FEB")]
|
|
[Address(RVA = "0x12FBF00", Offset = "0x12FAF00", VA = "0x1812FBF00")]
|
|
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: 0x06002FEC RID: 12268 RVA: 0x00068874 File Offset: 0x00066A74
|
|
[Token(Token = "0x6002FEC")]
|
|
[Address(RVA = "0x12FBE70", Offset = "0x12FAE70", VA = "0x1812FBE70", Slot = "7")]
|
|
public override void OnDisable()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06002FEC)
|
|
|
|
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: 0x06002FED RID: 12269 RVA: 0x000688A8 File Offset: 0x00066AA8
|
|
[Token(Token = "0x6002FED")]
|
|
[Address(RVA = "0x12FCA20", Offset = "0x12FBA20", VA = "0x1812FCA20")]
|
|
public DepthOfFieldComponent()
|
|
{
|
|
}
|
|
|
|
// Token: 0x0400383D RID: 14397
|
|
[Token(Token = "0x400383D")]
|
|
private const string k_ShaderString = "Hidden/Post FX/Depth Of Field";
|
|
|
|
// Token: 0x0400383E RID: 14398
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400383E")]
|
|
private RenderTexture m_CoCHistory;
|
|
|
|
// Token: 0x0400383F RID: 14399
|
|
[Token(Token = "0x400383F")]
|
|
private const float k_FilmHeight = 0.024f;
|
|
|
|
// Token: 0x02000570 RID: 1392
|
|
[Token(Token = "0x2000570")]
|
|
private static class Uniforms
|
|
{
|
|
// Token: 0x04003840 RID: 14400
|
|
[Token(Token = "0x4003840")]
|
|
internal static readonly int _DepthOfFieldTex = Shader.PropertyToID("_DepthOfFieldTex");
|
|
|
|
// Token: 0x04003841 RID: 14401
|
|
[Token(Token = "0x4003841")]
|
|
internal static readonly int _DepthOfFieldCoCTex = Shader.PropertyToID("_DepthOfFieldCoCTex");
|
|
|
|
// Token: 0x04003842 RID: 14402
|
|
[Token(Token = "0x4003842")]
|
|
internal static readonly int _Distance = Shader.PropertyToID("_Distance");
|
|
|
|
// Token: 0x04003843 RID: 14403
|
|
[Token(Token = "0x4003843")]
|
|
internal static readonly int _LensCoeff = Shader.PropertyToID("_LensCoeff");
|
|
|
|
// Token: 0x04003844 RID: 14404
|
|
[Token(Token = "0x4003844")]
|
|
internal static readonly int _MaxCoC = Shader.PropertyToID("_MaxCoC");
|
|
|
|
// Token: 0x04003845 RID: 14405
|
|
[Token(Token = "0x4003845")]
|
|
internal static readonly int _RcpMaxCoC = Shader.PropertyToID("_RcpMaxCoC");
|
|
|
|
// Token: 0x04003846 RID: 14406
|
|
[Token(Token = "0x4003846")]
|
|
internal static readonly int _RcpAspect = Shader.PropertyToID("_RcpAspect");
|
|
|
|
// Token: 0x04003847 RID: 14407
|
|
[Token(Token = "0x4003847")]
|
|
internal static readonly int _MainTex = Shader.PropertyToID("_MainTex");
|
|
|
|
// Token: 0x04003848 RID: 14408
|
|
[Token(Token = "0x4003848")]
|
|
internal static readonly int _CoCTex = Shader.PropertyToID("_CoCTex");
|
|
|
|
// Token: 0x04003849 RID: 14409
|
|
[Token(Token = "0x4003849")]
|
|
internal static readonly int _TaaParams = Shader.PropertyToID("_TaaParams");
|
|
|
|
// Token: 0x0400384A RID: 14410
|
|
[Token(Token = "0x400384A")]
|
|
internal static readonly int _DepthOfFieldParams = Shader.PropertyToID("_DepthOfFieldParams");
|
|
}
|
|
}
|
|
}
|