terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
BatchRendererGroup.cs
Go to the documentation of this file.
1using System;
3using Unity.Jobs;
6
8{
9 // Token: 0x0200011D RID: 285
11 [NativeHeader("Runtime/Math/Matrix4x4.h")]
12 [NativeHeader("Runtime/Camera/BatchRendererGroup.h")]
13 [StructLayout(0)]
14 public class BatchRendererGroup
15 {
16 // Token: 0x060005CA RID: 1482 RVA: 0x0000A494 File Offset: 0x00008694
19 {
20 Plane* cullingPlanes = context.cullingPlanes;
21 int cullingPlanesCount = context.cullingPlanesCount;
22 int batchVisibilityCount = context.batchVisibilityCount;
23 BatchVisibility* batchVisibility = context.batchVisibility;
24 int visibleIndicesCount = context.visibleIndicesCount;
25 int* visibleIndices = context.visibleIndices;
27 int* visibleIndicesY = context.visibleIndicesY;
29 float m = context.cullingMatrix.m00;
30 float m2 = context.cullingMatrix.m10;
31 float m3 = context.cullingMatrix.m02;
32 float m4 = context.cullingMatrix.m12;
33 float nearPlane = context.nearPlane;
34 IntPtr invoke_impl = performCulling.invoke_impl;
35 IntPtr method_code = performCulling.method_code;
36 IntPtr method = performCulling.method;
37 context.cullingJobsFence = method_code;
39 }
40
41 // Token: 0x040004CC RID: 1228
43
44 // Token: 0x040004CD RID: 1229
46
47 // Token: 0x0200011E RID: 286
48 public sealed class OnPerformCulling : MulticastDelegate
49 {
50 // Token: 0x060005CB RID: 1483 RVA: 0x0000A570 File Offset: 0x00008770
51 public OnPerformCulling(object @object, IntPtr method)
52 {
54 this.m_target = @object;
56 this.method_code = this;
57 }
58
59 // Token: 0x060005CC RID: 1484 RVA: 0x0000A5D0 File Offset: 0x000087D0
61 {
62 /*
63An exception occurred when decompiling this method (060005CC)
64
65ICSharpCode.Decompiler.DecompilerException: Error decompiling Unity.Jobs.JobHandle UnityEngine.Rendering.BatchRendererGroup/OnPerformCulling::Invoke(UnityEngine.Rendering.BatchRendererGroup,UnityEngine.Rendering.BatchCullingContext)
66
67 ---> System.Exception: Basic block has to end with unconditional control flow.
68{
69 Block_0:
70 stloc:native int(var_0_06, ldfld:native int(Delegate::invoke_impl, ldloc:OnPerformCulling[exp:Delegate](this)))
71 stloc:native int(var_1_0D, ldfld:native int(Delegate::method_code, ldloc:OnPerformCulling[exp:Delegate](this)))
72}
73
74 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
75 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 355
76 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
77 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
78 --- End of inner exception stack trace ---
79 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
80 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 1683
81*/;
82 }
83 }
84 }
85}
class f__AnonymousType0<< Count > j__TPar
JobHandle Invoke(BatchRendererGroup rendererGroup, BatchCullingContext cullingContext)
static unsafe void InvokeOnPerformCulling(BatchRendererGroup group, BatchRendererCullingOutput context, LODParameters lodParameters)
BatchRendererGroup.OnPerformCulling m_PerformCulling
static void ScheduleBatchedJobs()
Definition JobHandle.cs:13