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
TileShader.cs
Go to the documentation of this file.
1using System;
4using UnityEngine;
5
7{
8 // Token: 0x0200036E RID: 878
9 public class TileShader : Effect
10 {
11 // Token: 0x060016DF RID: 5855 RVA: 0x00063F68 File Offset: 0x00062168
13 : base(device)
14 {
15 this._invertSpecialGroupResult = "invertSpecialGroupResult";
16 if ("invertSpecialGroupResult" == null || "invertSpecialGroupResult" != null)
17 {
18 return;
19 }
21 }
22
23 // Token: 0x060016E0 RID: 5856 RVA: 0x00063F9C File Offset: 0x0006219C
24 public override void ApplyValuesToMaterial(EffectPass pass, Material material)
25 {
26 string name = pass.Name;
27 uint num = <PrivateImplementationDetails>.ComputeStringHash(name);
28 }
29
30 // Token: 0x060016E1 RID: 5857 RVA: 0x00064018 File Offset: 0x00062218
31 public static TileShader CreateNew()
32 {
33 /*
34An exception occurred when decompiling this method (060016E1)
35
36ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.TileShader Microsoft.Xna.Framework.Graphics.TileShader::CreateNew()
37
38 ---> System.Exception: Basic block has to end with unconditional control flow.
39{
40 IL_000B:
41 call:void(Debug::LogError, ldstr:string[exp:object]("Attempting to create shader not on main thread!"))
42}
43
44 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
45 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
46 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
47 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
48 --- End of inner exception stack trace ---
49 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
50 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
51*/;
52 }
53
54 // Token: 0x170002AF RID: 687
55 // (get) Token: 0x060016E2 RID: 5858 RVA: 0x0006403C File Offset: 0x0006223C
56 public static TileShader Effect
57 {
58 get
59 {
60 /*
61An exception occurred when decompiling this method (060016E2)
62
63ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.TileShader Microsoft.Xna.Framework.Graphics.TileShader::get_Effect()
64
65 ---> System.Exception: Basic block has to end with unconditional control flow.
66{
67 Block_0:
68 stloc:TileShader(var_0_05, call:TileShader(TileShader::CreateNew))
69}
70
71 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
72 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
73 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
74 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
75 --- End of inner exception stack trace ---
76 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
77 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
78*/;
79 }
80 }
81
82 // Token: 0x060016E3 RID: 5859 RVA: 0x000021DB File Offset: 0x000003DB
83 private static void LoadPass(List<EffectPass> passes, string pass)
84 {
85 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
86 }
87
88 // Token: 0x060016E4 RID: 5860 RVA: 0x00064050 File Offset: 0x00062250
89 // Note: this type is marked as 'beforefieldinit'.
90 static TileShader()
91 {
92 int num = Shader.PropertyToID("_leafHueTestOffset");
93 int num2 = Shader.PropertyToID("_leafMinHue");
94 int num3 = Shader.PropertyToID("_leafMaxHue");
95 int num4 = Shader.PropertyToID("_leafMinSat");
96 int num5 = Shader.PropertyToID("_leafMaxSat");
97 int num6 = Shader.PropertyToID("_invertSpecialGroupResult");
98 }
99
100 // Token: 0x0400256C RID: 9580
102
103 // Token: 0x0400256D RID: 9581
105
106 // Token: 0x0400256E RID: 9582
108
109 // Token: 0x0400256F RID: 9583
111
112 // Token: 0x04002570 RID: 9584
114
115 // Token: 0x04002571 RID: 9585
117
118 // Token: 0x04002572 RID: 9586
119 private static int _leafHueTestOffsetId;
120
121 // Token: 0x04002573 RID: 9587
122 private static int _leafMinHueId;
123
124 // Token: 0x04002574 RID: 9588
125 private static int _leafMaxHueId;
126
127 // Token: 0x04002575 RID: 9589
128 private static int _leafMinSatId;
129
130 // Token: 0x04002576 RID: 9590
131 private static int _leafMaxSatId;
132
133 // Token: 0x04002577 RID: 9591
134 private static int _invertSpecialGroupResultId;
135
136 // Token: 0x04002578 RID: 9592
137 private static TileShader _effect;
138 }
139}
class f__AnonymousType0<< Count > j__TPar
override void ApplyValuesToMaterial(EffectPass pass, Material material)
Definition TileShader.cs:24
static void LoadPass(List< EffectPass > passes, string pass)
Definition TileShader.cs:83
static int PropertyToID(string name)
Definition Shader.cs:50