Files
NobetaSource/Cpp2IL/Assembly-CSharp/MTAssets/UltimateLODSystem/MeshSimplifier/BlendShapeFrame.cs
2023-09-06 22:09:22 +02:00

57 lines
4.5 KiB
C#

using System;
using System.Runtime.InteropServices;
using Cpp2IlInjected;
using UnityEngine;
namespace MTAssets.UltimateLODSystem.MeshSimplifier
{
// Token: 0x0200060E RID: 1550
[Token(Token = "0x200060E")]
[Serializable]
[StructLayout(3)]
public struct BlendShapeFrame
{
// Token: 0x0600306C RID: 12396 RVA: 0x00066634 File Offset: 0x00064834
[Token(Token = "0x600306C")]
[Address(RVA = "0xE4A3B0", Offset = "0xE48BB0", VA = "0x180E4A3B0")]
public BlendShapeFrame(float frameWeight, Vector3[] deltaVertices, Vector3[] deltaNormals, Vector3[] deltaTangents)
{
/*
An exception occurred when decompiling this method (0600306C)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void MTAssets.UltimateLODSystem.MeshSimplifier.BlendShapeFrame::.ctor(System.Single,UnityEngine.Vector3[],UnityEngine.Vector3[],UnityEngine.Vector3[])
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; stfld:float32(BlendShapeFrame::FrameWeight, ldloc:valuetype MTAssets.UltimateLODSystem.MeshSimplifier.BlendShapeFrame&(this), ldloc:float32(frameWeight)); stfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](BlendShapeFrame::DeltaVertices, ldloc:valuetype MTAssets.UltimateLODSystem.MeshSimplifier.BlendShapeFrame&(this), ldloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](deltaVertices)); stfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](BlendShapeFrame::DeltaNormals, ldloc:valuetype MTAssets.UltimateLODSystem.MeshSimplifier.BlendShapeFrame&(this), ldloc:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](deltaNormals)); stfld:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[](BlendShapeFrame::DeltaTangents, ldloc:valuetype MTAssets.UltimateLODSystem.MeshSimplifier.BlendShapeFrame&(this), ldc.i4:int32[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Vector3[]](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: 0x04003AC7 RID: 15047
[Cpp2IlInjected.FieldOffset(Offset = "0x0")]
[Token(Token = "0x4003AC7")]
public float FrameWeight;
// Token: 0x04003AC8 RID: 15048
[Cpp2IlInjected.FieldOffset(Offset = "0x8")]
[Token(Token = "0x4003AC8")]
public Vector3[] DeltaVertices;
// Token: 0x04003AC9 RID: 15049
[Cpp2IlInjected.FieldOffset(Offset = "0x10")]
[Token(Token = "0x4003AC9")]
public Vector3[] DeltaNormals;
// Token: 0x04003ACA RID: 15050
[Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4003ACA")]
public Vector3[] DeltaTangents;
}
}