using System; using Cpp2IlInjected; using Unity.Burst; using Unity.Collections; using Unity.Jobs; using Unity.Mathematics; using UnityEngine; namespace ClusterLOD { // Token: 0x0200127C RID: 4732 [Token(Token = "0x200127C")] [BurstCompile] public struct SubdivideMeshJob : IJob { // Token: 0x06006B62 RID: 27490 RVA: 0x0017D170 File Offset: 0x0017B370 [Token(Token = "0x6006B62")] [Address(RVA = "0x1473010", Offset = "0x1471E10", VA = "0x181473010")] public SubdivideMeshJob(SubdivideMeshData subdiveData, PCIKHFEIHGO mesh, PCIKHFEIHGO additionalMesh, float maxEdgeSize, float maxDistance, Vector3 eyePos, float rootScale) { NativeList ddpnlakckdp = mesh.DDPNLAKCKDP; this.srcVerts = ddpnlakckdp; NativeArray cdpiecocian = mesh.CDPIECOCIAN; this.srcNormals = cdpiecocian; NativeArray nmfapcbmggf = mesh.NMFAPCBMGGF; this.srcTangents = nmfapcbmggf; NativeArray maeaklfbpmo = mesh.MAEAKLFBPMO; this.srcUVs = maeaklfbpmo; NativeArray pjnfmocjcal = mesh.PJNFMOCJCAL; this.srcMaterialIndices = pjnfmocjcal; NativeList elflbeckfef = mesh.ELFLBECKFEF; this.srcIndices = elflbeckfef; NativeList nativeList = subdiveData.origIndices; this.origIndices = nativeList; NativeList ddpnlakckdp2 = additionalMesh.DDPNLAKCKDP; this.newVerts = ddpnlakckdp2; NativeArray cdpiecocian2 = additionalMesh.CDPIECOCIAN; this.maxEdgeSize = (float)0; this.newNormals = cdpiecocian2; NativeArray nmfapcbmggf2 = additionalMesh.NMFAPCBMGGF; this.newTangents = nmfapcbmggf2; NativeArray pjnfmocjcal2 = additionalMesh.PJNFMOCJCAL; this.maxEdgeSizeSq = (float)0; this.newMaterialIndices = pjnfmocjcal2; NativeArray maeaklfbpmo2 = additionalMesh.MAEAKLFBPMO; this.newUVs = maeaklfbpmo2; NativeList elflbeckfef2 = additionalMesh.ELFLBECKFEF; this.newIndices = elflbeckfef2; this.maxDistance = (float)0; this.maxDistanceSq = (float)0; float3 @float; float z = @float.z; this.rootScale = (float)0; this.eyePos.z = z; } // Token: 0x06006B63 RID: 27491 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x6006B63")] [Address(RVA = "0x1472BE0", Offset = "0x14719E0", VA = "0x181472BE0")] private float3 GetVert(int i) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06006B64 RID: 27492 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x6006B64")] [Address(RVA = "0x1472C80", Offset = "0x1471A80", VA = "0x181472C80")] private void SetupVertFromIndex(int i, out float3 newVert, out float3 newNormal, out float4 newTangent, out float4 newMatIdx, out float2 newUV) { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x06006B65 RID: 27493 RVA: 0x0017D284 File Offset: 0x0017B484 [Token(Token = "0x6006B65")] [Address(RVA = "0x1471EB0", Offset = "0x1470CB0", VA = "0x181471EB0")] private int CreateVert(int i1, int i2) { int num = 0; NativeArray nativeArray = this.newNormals; int num3; int num2 = num3 - 1; nativeArray.m_Length = num; bool flag; if (flag) { this.newTangents.m_Buffer = num; } NativeArray nativeArray2 = this.newMaterialIndices; this.newUVs.m_Buffer = num; int num4; num4 += num2; return num4; } // Token: 0x06006B66 RID: 27494 RVA: 0x0017D2D8 File Offset: 0x0017B4D8 [Token(Token = "0x6006B66")] [Address(RVA = "0x1471CB0", Offset = "0x1470AB0", VA = "0x181471CB0")] private void AddTriangle(int i1, int i2, int i3) { float3 @float; float z = @float.z; float3 float2; float z2 = float2.z; float3 float3; float z3 = float3.z; } // Token: 0x06006B67 RID: 27495 RVA: 0x0017D2FC File Offset: 0x0017B4FC [Token(Token = "0x6006B67")] [Address(RVA = "0x1472E60", Offset = "0x1471C60", VA = "0x181472E60")] private bool ShouldSplit(int i1, int i2, float splitSizeSq) { /* An exception occurred when decompiling this method (06006B67) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean ClusterLOD.SubdivideMeshJob::ShouldSplit(System.Int32,System.Int32,System.Single) ---> System.Exception: Basic block has to end with unconditional control flow. { Block_0: stloc:float32(var_1_06, ldfld:float32(float3::z, ldloc:float3[exp:valuetype [Unity.Mathematics]Unity.Mathematics.float3&](var_0))) stloc:float32(var_3_0D, ldfld:float32(float3::z, ldloc:float3[exp:valuetype [Unity.Mathematics]Unity.Mathematics.float3&](var_2))) stloc:float32(var_4_19, ldfld:float32(float3::z, ldfld:float3[exp:valuetype [Unity.Mathematics]Unity.Mathematics.float3&](SubdivideMeshJob::eyePos, ldloc:valuetype ClusterLOD.SubdivideMeshJob&(this)))) } 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 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 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 1663 */; } // Token: 0x06006B68 RID: 27496 RVA: 0x0017D328 File Offset: 0x0017B528 [Token(Token = "0x6006B68")] [Address(RVA = "0x1471BF0", Offset = "0x14709F0", VA = "0x181471BF0")] private bool Add2SideSplitTriangle(int i1, int i2, int i3, float splitSizeSq, bool add) { bool flag; if (!flag) { this.AddTriangle(i1, i2, i3); } int num = this.CreateVert(i1, i2); this.AddTriangle(i1, i2, i3); this.AddTriangle(i1, i2, i3); return true; } // Token: 0x06006B69 RID: 27497 RVA: 0x0017D360 File Offset: 0x0017B560 [Token(Token = "0x6006B69")] [Address(RVA = "0x1471990", Offset = "0x1470790", VA = "0x181471990")] private bool Add1SideSplitTriangle(int i1, int i2, int i3, float splitSizeSq, bool add) { bool flag; if (!flag) { } bool flag2; if (flag2) { float3 @float; float z = @float.z; float3 float2; float z2 = float2.z; float3 float3; float z3 = float3.z; int num = this.CreateVert(i3, i2); } int num2 = this.CreateVert(i1, i2); return true; } // Token: 0x06006B6A RID: 27498 RVA: 0x0017D3A8 File Offset: 0x0017B5A8 [Token(Token = "0x6006B6A")] [Address(RVA = "0x1472FF0", Offset = "0x1471DF0", VA = "0x181472FF0")] private void SwapOrder(int i1, int i2, int i3, out int i1o, out int i2o, out int i3o) { } // Token: 0x06006B6B RID: 27499 RVA: 0x0000220F File Offset: 0x0000040F [Token(Token = "0x6006B6B")] [Address(RVA = "0x1472280", Offset = "0x1471080", VA = "0x181472280", Slot = "4")] public void Execute() { throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method."); } // Token: 0x040047C7 RID: 18375 [FieldOffset(Offset = "0x0")] [Token(Token = "0x40047C7")] [ReadOnly] private NativeList srcVerts; // Token: 0x040047C8 RID: 18376 [FieldOffset(Offset = "0x10")] [Token(Token = "0x40047C8")] [ReadOnly] private NativeArray srcNormals; // Token: 0x040047C9 RID: 18377 [FieldOffset(Offset = "0x20")] [Token(Token = "0x40047C9")] [ReadOnly] private NativeArray srcTangents; // Token: 0x040047CA RID: 18378 [FieldOffset(Offset = "0x30")] [Token(Token = "0x40047CA")] [ReadOnly] private NativeArray srcUVs; // Token: 0x040047CB RID: 18379 [FieldOffset(Offset = "0x40")] [Token(Token = "0x40047CB")] [ReadOnly] private NativeArray srcMaterialIndices; // Token: 0x040047CC RID: 18380 [FieldOffset(Offset = "0x50")] [Token(Token = "0x40047CC")] private NativeList origIndices; // Token: 0x040047CD RID: 18381 [FieldOffset(Offset = "0x60")] [Token(Token = "0x40047CD")] private NativeList srcIndices; // Token: 0x040047CE RID: 18382 [FieldOffset(Offset = "0x70")] [Token(Token = "0x40047CE")] private NativeList newVerts; // Token: 0x040047CF RID: 18383 [FieldOffset(Offset = "0x80")] [Token(Token = "0x40047CF")] private NativeArray newNormals; // Token: 0x040047D0 RID: 18384 [FieldOffset(Offset = "0x90")] [Token(Token = "0x40047D0")] private NativeArray newTangents; // Token: 0x040047D1 RID: 18385 [FieldOffset(Offset = "0xA0")] [Token(Token = "0x40047D1")] private NativeArray newMaterialIndices; // Token: 0x040047D2 RID: 18386 [FieldOffset(Offset = "0xB0")] [Token(Token = "0x40047D2")] private NativeArray newUVs; // Token: 0x040047D3 RID: 18387 [FieldOffset(Offset = "0xC0")] [Token(Token = "0x40047D3")] private NativeList newIndices; // Token: 0x040047D4 RID: 18388 [FieldOffset(Offset = "0xD0")] [Token(Token = "0x40047D4")] [ReadOnly] private float maxEdgeSizeSq; // Token: 0x040047D5 RID: 18389 [FieldOffset(Offset = "0xD4")] [Token(Token = "0x40047D5")] [ReadOnly] public float maxDistanceSq; // Token: 0x040047D6 RID: 18390 [FieldOffset(Offset = "0xD8")] [Token(Token = "0x40047D6")] [ReadOnly] private float3 eyePos; // Token: 0x040047D7 RID: 18391 [FieldOffset(Offset = "0xE4")] [Token(Token = "0x40047D7")] [ReadOnly] private float rootScale; // Token: 0x040047D8 RID: 18392 [FieldOffset(Offset = "0xE8")] [Token(Token = "0x40047D8")] [ReadOnly] private float maxEdgeSize; // Token: 0x040047D9 RID: 18393 [FieldOffset(Offset = "0xEC")] [Token(Token = "0x40047D9")] [ReadOnly] public float maxDistance; } }