126 lines
5.8 KiB
C#
126 lines
5.8 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
using Unity.Burst;
|
|
using Unity.Collections;
|
|
using Unity.Jobs;
|
|
using Unity.Mathematics;
|
|
using UnityEngine;
|
|
|
|
namespace ClusterLOD
|
|
{
|
|
// Token: 0x02000C7D RID: 3197
|
|
[Token(Token = "0x2000C7D")]
|
|
[BurstCompile]
|
|
[StructLayout(0, Size = 160)]
|
|
public struct ClusterLODMergeVertsJob : IJob
|
|
{
|
|
// Token: 0x06004D04 RID: 19716 RVA: 0x0011EE84 File Offset: 0x0011D084
|
|
[Token(Token = "0x6004D04")]
|
|
[Address(RVA = "0x23E850", Offset = "0x23DC50", VA = "0x18023E850")]
|
|
public ClusterLODMergeVertsJob(NativeClusterMesh mesh, NativeList<float3> origVerts, NativeMultiHashMap<int, int> vertexMap, NativeArray<int> indexRemap, Vector3 centerPos, float resolution)
|
|
{
|
|
}
|
|
|
|
// Token: 0x06004D05 RID: 19717 RVA: 0x0011EE94 File Offset: 0x0011D094
|
|
[Token(Token = "0x6004D05")]
|
|
[Address(RVA = "0x23E810", Offset = "0x23DC10", VA = "0x18023E810")]
|
|
private int GetKey(float3 pos)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06004D05)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 ClusterLOD.ClusterLODMergeVertsJob::GetKey(Unity.Mathematics.float3)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:float32(var_0_06, ldfld:float32(float3::z, ldloc:float3[exp:valuetype [Unity.Mathematics]Unity.Mathematics.float3&](pos)))
|
|
}
|
|
|
|
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: 0x06004D06 RID: 19718 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6004D06")]
|
|
[Address(RVA = "0x23E840", Offset = "0x23DC40", VA = "0x18023E840")]
|
|
private int GetMatch(int i, int key)
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x06004D07 RID: 19719 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x6004D07")]
|
|
[Address(RVA = "0x23E800", Offset = "0x23DC00", VA = "0x18023E800", Slot = "4")]
|
|
public void Execute()
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
|
|
// Token: 0x040038E4 RID: 14564
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x0")]
|
|
[Token(Token = "0x40038E4")]
|
|
private NativeList<float3> verts;
|
|
|
|
// Token: 0x040038E5 RID: 14565
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40038E5")]
|
|
private NativeArray<float3> normals;
|
|
|
|
// Token: 0x040038E6 RID: 14566
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40038E6")]
|
|
private NativeArray<float4> tangents;
|
|
|
|
// Token: 0x040038E7 RID: 14567
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x40038E7")]
|
|
private NativeArray<float2> UVs;
|
|
|
|
// Token: 0x040038E8 RID: 14568
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x40038E8")]
|
|
private NativeArray<float4> materialIndices;
|
|
|
|
// Token: 0x040038E9 RID: 14569
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x40038E9")]
|
|
private NativeList<int> indices;
|
|
|
|
// Token: 0x040038EA RID: 14570
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
|
[Token(Token = "0x40038EA")]
|
|
[ReadOnly]
|
|
private NativeList<float3> origVerts;
|
|
|
|
// Token: 0x040038EB RID: 14571
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
|
[Token(Token = "0x40038EB")]
|
|
[ReadOnly]
|
|
private float3 centerPos;
|
|
|
|
// Token: 0x040038EC RID: 14572
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x7C")]
|
|
[Token(Token = "0x40038EC")]
|
|
[ReadOnly]
|
|
private float resolution;
|
|
|
|
// Token: 0x040038ED RID: 14573
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
|
[Token(Token = "0x40038ED")]
|
|
private NativeMultiHashMap<int, int> vertexMap;
|
|
|
|
// Token: 0x040038EE RID: 14574
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x90")]
|
|
[Token(Token = "0x40038EE")]
|
|
private NativeArray<int> indexRemap;
|
|
}
|
|
}
|