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
ShaderData.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x0200074C RID: 1868
9 public class ShaderData
10 {
11 // Token: 0x17000782 RID: 1922
12 // (get) Token: 0x06003DA4 RID: 15780 RVA: 0x00239CFC File Offset: 0x00237EFC
14 {
15 get
16 {
17 /*
18An exception occurred when decompiling this method (06003DA4)
19
20ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.Effect Terraria.Graphics.Shaders.ShaderData::get_Shader()
21
22 ---> System.Exception: Basic block has to end with unconditional control flow.
23{
24 Block_0:
25 stloc:!0(var_1_10, ldfld:!T[exp:!0](Ref`1::Value, ldloc:class Terraria.Ref`1<class Microsoft.Xna.Framework.Graphics.Effect>[exp:Ref`1](var_0_06)))
26}
27
28 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
29 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
30 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
31 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
32 --- End of inner exception stack trace ---
33 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
34 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
35*/;
36 }
37 }
38
39 // Token: 0x06003DA5 RID: 15781 RVA: 0x00239D1C File Offset: 0x00237F1C
40 public ShaderData(Ref<Effect> shader, string passName)
41 {
42 this._shader = shader;
44 }
45
46 // Token: 0x06003DA6 RID: 15782 RVA: 0x00239D40 File Offset: 0x00237F40
47 public virtual void Apply(Entity entity, [Optional] DrawData? drawData)
48 {
49 }
50
51 // Token: 0x06003DA7 RID: 15783 RVA: 0x00239D50 File Offset: 0x00237F50
52 public virtual void Apply()
53 {
54 if (this._effectPass == null)
55 {
56 Ref<Effect> shader = this._shader;
57 string passName = this._passName;
58 !0 value = shader.Value;
61 }
62 }
63
64 // Token: 0x04007C67 RID: 31847
66
67 // Token: 0x04007C68 RID: 31848
68 protected string _passName;
69
70 // Token: 0x04007C69 RID: 31849
72 }
73}
class f__AnonymousType0<< Count > j__TPar
ShaderData(Ref< Effect > shader, string passName)
Definition ShaderData.cs:40
readonly Ref< Effect > _shader
Definition ShaderData.cs:65
virtual void Apply(Entity entity, [Optional] DrawData? drawData)
Definition ShaderData.cs:47
T Value
Definition Ref.cs:20