Files
NobetaSource/Cpp2IL/Assembly-CSharp/UnityEngine/PostProcessing/MaterialFactory.cs
2023-09-06 22:09:22 +02:00

55 lines
4.2 KiB
C#

using System;
using System.Collections.Generic;
using Cpp2IlInjected;
namespace UnityEngine.PostProcessing
{
// Token: 0x02000580 RID: 1408
[Token(Token = "0x2000580")]
public sealed class MaterialFactory : IDisposable
{
// Token: 0x06002E51 RID: 11857 RVA: 0x00062A88 File Offset: 0x00060C88
[Token(Token = "0x6002E51")]
[Address(RVA = "0x4241B0", Offset = "0x4229B0", VA = "0x1804241B0")]
public MaterialFactory()
{
/*
An exception occurred when decompiling this method (06002E51)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void UnityEngine.PostProcessing.MaterialFactory::.ctor()
---> System.Exception: Basic block has to end with unconditional control flow.
{; Block_0:; call:void(object::.ctor, ldloc:MaterialFactory[exp:object](this)); stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [UnityEngine.CoreModule]UnityEngine.Material>(var_0_0B, newobj:Dictionary`2[exp:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [UnityEngine.CoreModule]UnityEngine.Material>](Dictionary`2::.ctor)); stfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [UnityEngine.CoreModule]UnityEngine.Material>(MaterialFactory::m_Materials, ldloc:MaterialFactory(this), ldloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class [UnityEngine.CoreModule]UnityEngine.Material>(var_0_0B)); };
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: 0x06002E52 RID: 11858 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002E52")]
[Address(RVA = "0x423FB0", Offset = "0x4227B0", VA = "0x180423FB0")]
public Material Get(string shaderName)
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x06002E53 RID: 11859 RVA: 0x000020D3 File Offset: 0x000002D3
[Token(Token = "0x6002E53")]
[Address(RVA = "0x423EB0", Offset = "0x4226B0", VA = "0x180423EB0", Slot = "4")]
public void Dispose()
{
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
}
// Token: 0x04003745 RID: 14149
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4003745")]
private Dictionary<string, Material> m_Materials;
}
}