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
RasterizerState.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003A1 RID: 929
8 {
9 // Token: 0x17000333 RID: 819
10 // (get) Token: 0x060018C8 RID: 6344 RVA: 0x00069CC0 File Offset: 0x00067EC0
11 // (set) Token: 0x060018C9 RID: 6345 RVA: 0x00069CD4 File Offset: 0x00067ED4
13 {
14 get
15 {
16 return this._cullMode;
17 }
18 set
19 {
20 this.ThrowIfBound();
22 }
23 }
24
25 // Token: 0x17000334 RID: 820
26 // (get) Token: 0x060018CA RID: 6346 RVA: 0x00069CF0 File Offset: 0x00067EF0
27 // (set) Token: 0x060018CB RID: 6347 RVA: 0x00069D04 File Offset: 0x00067F04
28 public float DepthBias
29 {
30 get
31 {
32 /*
33An exception occurred when decompiling this method (060018CA)
34
35ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Graphics.RasterizerState::get_DepthBias()
36
37 ---> System.Exception: Basic block has to end with unconditional control flow.
38{
39 Block_0:
40 stloc:float32(var_0_06, ldfld:float32(RasterizerState::_depthBias, ldloc:RasterizerState(this)))
41}
42
43 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
44 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
45 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
46 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
47 --- End of inner exception stack trace ---
48 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
49 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
50*/;
51 }
52 set
53 {
54 this.ThrowIfBound();
55 }
56 }
57
58 // Token: 0x17000335 RID: 821
59 // (get) Token: 0x060018CC RID: 6348 RVA: 0x00069D18 File Offset: 0x00067F18
60 // (set) Token: 0x060018CD RID: 6349 RVA: 0x00069D2C File Offset: 0x00067F2C
62 {
63 get
64 {
65 return this._fillMode;
66 }
67 set
68 {
69 this.ThrowIfBound();
71 }
72 }
73
74 // Token: 0x17000336 RID: 822
75 // (get) Token: 0x060018CE RID: 6350 RVA: 0x00069D48 File Offset: 0x00067F48
76 // (set) Token: 0x060018CF RID: 6351 RVA: 0x00069D5C File Offset: 0x00067F5C
78 {
79 get
80 {
81 return this._multiSampleAntiAlias;
82 }
83 set
84 {
85 this.ThrowIfBound();
86 }
87 }
88
89 // Token: 0x17000337 RID: 823
90 // (get) Token: 0x060018D0 RID: 6352 RVA: 0x00069D70 File Offset: 0x00067F70
91 // (set) Token: 0x060018D1 RID: 6353 RVA: 0x00069D84 File Offset: 0x00067F84
93 {
94 get
95 {
96 return this._scissorTestEnable;
97 }
98 set
99 {
100 this.ThrowIfBound();
101 }
102 }
103
104 // Token: 0x17000338 RID: 824
105 // (get) Token: 0x060018D2 RID: 6354 RVA: 0x00069D98 File Offset: 0x00067F98
106 // (set) Token: 0x060018D3 RID: 6355 RVA: 0x00069DAC File Offset: 0x00067FAC
108 {
109 get
110 {
111 /*
112An exception occurred when decompiling this method (060018D2)
113
114ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Graphics.RasterizerState::get_SlopeScaleDepthBias()
115
116 ---> System.Exception: Basic block has to end with unconditional control flow.
117{
118 Block_0:
119 stloc:float32(var_0_06, ldfld:float32(RasterizerState::_slopeScaleDepthBias, ldloc:RasterizerState(this)))
120}
121
122 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
123 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
124 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
125 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
126 --- End of inner exception stack trace ---
127 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
128 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
129*/;
130 }
131 set
132 {
133 this.ThrowIfBound();
134 }
135 }
136
137 // Token: 0x17000339 RID: 825
138 // (get) Token: 0x060018D4 RID: 6356 RVA: 0x00069DC0 File Offset: 0x00067FC0
139 // (set) Token: 0x060018D5 RID: 6357 RVA: 0x00069DD4 File Offset: 0x00067FD4
140 public bool DepthClipEnable
141 {
142 get
143 {
144 return this._depthClipEnable;
145 }
146 set
147 {
148 this.ThrowIfBound();
149 }
150 }
151
152 // Token: 0x060018D6 RID: 6358 RVA: 0x00069DE8 File Offset: 0x00067FE8
154 {
155 if (!this._defaultStateObject)
156 {
157 if (this.graphicsDevice != null)
158 {
159 }
160 base.GraphicsDevice = device;
161 return;
162 }
163 }
164
165 // Token: 0x060018D7 RID: 6359 RVA: 0x00069E10 File Offset: 0x00068010
166 internal void ThrowIfBound()
167 {
168 while (!this._defaultStateObject)
169 {
170 if (this.graphicsDevice == null)
171 {
172 return;
173 }
174 }
175 }
176
177 // Token: 0x060018D8 RID: 6360 RVA: 0x00069E30 File Offset: 0x00068030
179 {
180 this.ThrowIfBound();
181 this._cullMode = CullMode.CullCounterClockwiseFace;
182 this.ThrowIfBound();
183 this.ThrowIfBound();
184 this.ThrowIfBound();
186 this.ThrowIfBound();
187 this.ThrowIfBound();
188 this.ThrowIfBound();
190 }
191
192 // Token: 0x060018D9 RID: 6361 RVA: 0x00069E84 File Offset: 0x00068084
194 {
195 this.<Name>k__BackingField = name;
198 }
199
200 // Token: 0x060018DA RID: 6362 RVA: 0x00069EA8 File Offset: 0x000680A8
204
205 // Token: 0x060018DB RID: 6363 RVA: 0x00069EBC File Offset: 0x000680BC
207 {
208 }
209
210 // Token: 0x060018DC RID: 6364 RVA: 0x000021DB File Offset: 0x000003DB
212 {
213 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
214 }
215
216 // Token: 0x04002710 RID: 10000
218
219 // Token: 0x04002711 RID: 10001
221
222 // Token: 0x04002712 RID: 10002
223 private float _depthBias;
224
225 // Token: 0x04002713 RID: 10003
227
228 // Token: 0x04002714 RID: 10004
230
231 // Token: 0x04002715 RID: 10005
232 private bool _scissorTestEnable;
233
234 // Token: 0x04002716 RID: 10006
235 private float _slopeScaleDepthBias;
236
237 // Token: 0x04002717 RID: 10007
238 private bool _depthClipEnable;
239
240 // Token: 0x04002718 RID: 10008
242
243 // Token: 0x04002719 RID: 10009
245
246 // Token: 0x0400271A RID: 10010
248 }
249}
class f__AnonymousType0<< Count > j__TPar
static readonly RasterizerState CullCounterClockwise
static readonly RasterizerState CullClockwise
RasterizerState(string name, CullMode cullMode)