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
GraphicsDevice.cs
Go to the documentation of this file.
1using System;
5using UnityEngine;
7
9{
10 // Token: 0x0200037A RID: 890
11 public class GraphicsDevice
12 {
13 // Token: 0x170002E1 RID: 737
14 // (get) Token: 0x0600176C RID: 5996 RVA: 0x0006508C File Offset: 0x0006328C
15 // (set) Token: 0x0600176D RID: 5997 RVA: 0x000650A0 File Offset: 0x000632A0
17 {
19 get
20 {
22 }
24 private set
25 {
27 }
28 }
29
30 // Token: 0x14000012 RID: 18
31 // (add) Token: 0x0600176E RID: 5998 RVA: 0x000650B4 File Offset: 0x000632B4
32 // (remove) Token: 0x0600176F RID: 5999 RVA: 0x000650DC File Offset: 0x000632DC
34 {
36 add
37 {
39 if (@delegate != null && @delegate == null)
40 {
41 return;
42 }
43 }
45 remove
46 {
48 if (@delegate != null && @delegate == null)
49 {
50 return;
51 }
52 }
53 }
54
55 // Token: 0x14000013 RID: 19
56 // (add) Token: 0x06001770 RID: 6000 RVA: 0x00065104 File Offset: 0x00063304
57 // (remove) Token: 0x06001771 RID: 6001 RVA: 0x0006512C File Offset: 0x0006332C
59 {
61 add
62 {
64 if (@delegate != null && @delegate == null)
65 {
66 return;
67 }
68 }
70 remove
71 {
73 if (@delegate != null && @delegate == null)
74 {
75 return;
76 }
77 }
78 }
79
80 // Token: 0x14000014 RID: 20
81 // (add) Token: 0x06001772 RID: 6002 RVA: 0x00065154 File Offset: 0x00063354
82 // (remove) Token: 0x06001773 RID: 6003 RVA: 0x0006517C File Offset: 0x0006337C
84 {
86 add
87 {
89 if (@delegate != null && @delegate == null)
90 {
91 return;
92 }
93 }
95 remove
96 {
98 if (@delegate != null && @delegate == null)
99 {
100 return;
101 }
102 }
103 }
104
105 // Token: 0x14000015 RID: 21
106 // (add) Token: 0x06001774 RID: 6004 RVA: 0x000651A4 File Offset: 0x000633A4
107 // (remove) Token: 0x06001775 RID: 6005 RVA: 0x000651CC File Offset: 0x000633CC
109 {
111 add
112 {
114 if (@delegate != null && @delegate == null)
115 {
116 return;
117 }
118 }
120 remove
121 {
123 if (@delegate != null && @delegate == null)
124 {
125 return;
126 }
127 }
128 }
129
130 // Token: 0x14000016 RID: 22
131 // (add) Token: 0x06001776 RID: 6006 RVA: 0x000651F4 File Offset: 0x000633F4
132 // (remove) Token: 0x06001777 RID: 6007 RVA: 0x0006521C File Offset: 0x0006341C
134 {
136 add
137 {
139 if (@delegate != null && @delegate == null)
140 {
141 return;
142 }
143 }
145 remove
146 {
148 if (@delegate != null && @delegate == null)
149 {
150 return;
151 }
152 }
153 }
154
155 // Token: 0x14000017 RID: 23
156 // (add) Token: 0x06001778 RID: 6008 RVA: 0x00065244 File Offset: 0x00063444
157 // (remove) Token: 0x06001779 RID: 6009 RVA: 0x0006526C File Offset: 0x0006346C
159 {
161 add
162 {
164 if (@delegate != null && @delegate == null)
165 {
166 return;
167 }
168 }
170 remove
171 {
173 if (@delegate != null && @delegate == null)
174 {
175 return;
176 }
177 }
178 }
179
180 // Token: 0x14000018 RID: 24
181 // (add) Token: 0x0600177A RID: 6010 RVA: 0x00065294 File Offset: 0x00063494
182 // (remove) Token: 0x0600177B RID: 6011 RVA: 0x000652BC File Offset: 0x000634BC
184 {
186 add
187 {
189 if (@delegate != null && @delegate == null)
190 {
191 return;
192 }
193 }
195 remove
196 {
198 if (@delegate != null && @delegate == null)
199 {
200 return;
201 }
202 }
203 }
204
205 // Token: 0x170002E2 RID: 738
206 // (get) Token: 0x0600177C RID: 6012 RVA: 0x000652E4 File Offset: 0x000634E4
208 {
209 get
210 {
211 /*
212An exception occurred when decompiling this method (0600177C)
213
214ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Graphics.GraphicsDevice::get_IsRenderTargetBound()
215
216 ---> System.Exception: Basic block has to end with unconditional control flow.
217{
218 Block_0:
219 stloc:int32(var_0_06, ldfld:int32(GraphicsDevice::_currentRenderTargetCount, ldloc:GraphicsDevice(this)))
220}
221
222 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
223 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
224 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
225 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
226 --- End of inner exception stack trace ---
227 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
228 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
229*/;
230 }
231 }
232
233 // Token: 0x170002E3 RID: 739
234 // (get) Token: 0x0600177D RID: 6013 RVA: 0x000652F8 File Offset: 0x000634F8
236 {
237 get
238 {
239 /*
240An exception occurred when decompiling this method (0600177D)
241
242ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.DepthFormat Microsoft.Xna.Framework.Graphics.GraphicsDevice::get_ActiveDepthFormat()
243
244 ---> System.Exception: Basic block has to end with unconditional control flow.
245{
246 Block_0:
247 stloc:int32(var_0_06, ldfld:int32(GraphicsDevice::_currentRenderTargetCount, ldloc:GraphicsDevice(this)))
248 stloc:valuetype Microsoft.Xna.Framework.Graphics.RenderTargetBinding[](var_1_0D, ldfld:valuetype Microsoft.Xna.Framework.Graphics.RenderTargetBinding[](GraphicsDevice::_currentRenderTargetBindings, ldloc:GraphicsDevice(this)))
249 stloc:PresentationParameters(var_2_14, ldfld:PresentationParameters(GraphicsDevice::<PresentationParameters>k__BackingField, ldloc:GraphicsDevice(this)))
250}
251
252 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
253 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
254 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
255 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
256 --- End of inner exception stack trace ---
257 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
258 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
259*/;
260 }
261 }
262
263 // Token: 0x170002E4 RID: 740
264 // (get) Token: 0x0600177E RID: 6014 RVA: 0x0006531C File Offset: 0x0006351C
265 // (set) Token: 0x0600177F RID: 6015 RVA: 0x00065330 File Offset: 0x00063530
267 {
269 get
270 {
271 return this.<Adapter>k__BackingField;
272 }
274 private set
275 {
277 }
278 }
279
280 // Token: 0x06001780 RID: 6016 RVA: 0x00065344 File Offset: 0x00063544
281 internal GraphicsDevice()
282 {
283 if (!true)
284 {
285 }
287 base..ctor();
288 if (!true)
289 {
290 }
291 if (!true)
292 {
293 }
296 this.Setup();
297 this.Initialize();
298 }
299
300 // Token: 0x06001781 RID: 6017 RVA: 0x00065380 File Offset: 0x00063580
302 {
303 /*
304An exception occurred when decompiling this method (06001781)
305
306ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Microsoft.Xna.Framework.Graphics.GraphicsDevice::.ctor(Microsoft.Xna.Framework.Graphics.GraphicsAdapter,Microsoft.Xna.Framework.Graphics.GraphicsProfile,Microsoft.Xna.Framework.Graphics.PresentationParameters)
307
308 ---> System.Exception: Basic block has to end with unconditional control flow.
309{
310 IL_0013:
311 stloc:string(var_0_19, ldfld:string(GraphicsAdapter::<Description>k__BackingField, ldloc:GraphicsAdapter(adapter)))
312}
313
314 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
315 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
316 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
317 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
318 --- End of inner exception stack trace ---
319 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
320 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
321*/;
322 }
323
324 // Token: 0x06001782 RID: 6018 RVA: 0x000021DB File Offset: 0x000003DB
325 private void Setup()
326 {
327 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
328 }
329
330 // Token: 0x06001783 RID: 6019 RVA: 0x000653A8 File Offset: 0x000635A8
331 protected override void Finalize()
332 {
333 base.Finalize();
334 }
335
336 // Token: 0x06001784 RID: 6020 RVA: 0x000653BC File Offset: 0x000635BC
337 internal int GetClampedMultisampleCount(int multiSampleCount)
338 {
339 /*
340An exception occurred when decompiling this method (06001784)
341
342ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Microsoft.Xna.Framework.Graphics.GraphicsDevice::GetClampedMultisampleCount(System.Int32)
343
344 ---> System.Exception: Basic block has to end with unconditional control flow.
345{
346 Block_0:
347 stloc:int32(var_0_0B, ldfld:int32(GraphicsCapabilities::_maxMultiSampleCount, ldfld:GraphicsCapabilities(GraphicsDevice::<GraphicsCapabilities>k__BackingField, ldloc:GraphicsDevice(this))))
348}
349
350 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
351 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
352 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
353 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
354 --- End of inner exception stack trace ---
355 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
356 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
357*/;
358 }
359
360 // Token: 0x06001785 RID: 6021 RVA: 0x000653D8 File Offset: 0x000635D8
361 internal void Initialize()
362 {
363 int num = 1;
366 this._blendStateDirty = num != 0;
367 if (num == 0)
368 {
369 }
370 if (num == 0)
371 {
372 }
373 if (num == 0)
374 {
375 }
376 Texture2D[] textures = this.Textures;
377 int num2 = 1;
379 this._scissorRectangleDirty = num2 != 0;
382 }
383
384 // Token: 0x170002E5 RID: 741
385 // (get) Token: 0x06001786 RID: 6022 RVA: 0x00065424 File Offset: 0x00063624
386 // (set) Token: 0x06001787 RID: 6023 RVA: 0x00065438 File Offset: 0x00063638
388 {
389 get
390 {
391 return this._rasterizerState;
392 }
393 set
394 {
395 if (value != null)
396 {
398 bool <SupportsDepthClamp>k__BackingField;
399 if (!value._depthClipEnable)
400 {
401 <SupportsDepthClamp>k__BackingField = this.<GraphicsCapabilities>k__BackingField.<SupportsDepthClamp>k__BackingField;
402 if (!<SupportsDepthClamp>k__BackingField)
403 {
404 return;
405 }
406 }
408 if (!<SupportsDepthClamp>k__BackingField)
409 {
410 }
413 return;
414 }
415 }
416 }
417
418 // Token: 0x170002E6 RID: 742
419 // (get) Token: 0x06001788 RID: 6024 RVA: 0x0006548C File Offset: 0x0006368C
420 // (set) Token: 0x06001789 RID: 6025 RVA: 0x000654A4 File Offset: 0x000636A4
422 {
423 get
424 {
426 Color color;
427 return color;
428 }
429 set
430 {
432 if (!true)
433 {
434 }
435 bool flag = blendFactor == value;
438 }
439 }
440
441 // Token: 0x170002E7 RID: 743
442 // (get) Token: 0x0600178A RID: 6026 RVA: 0x000654D4 File Offset: 0x000636D4
443 // (set) Token: 0x0600178B RID: 6027 RVA: 0x000654E8 File Offset: 0x000636E8
445 {
446 get
447 {
448 return this._blendState;
449 }
450 set
451 {
452 while (value == null)
453 {
454 }
457 if (blendState == null)
458 {
459 }
462 GraphicsDevice graphicsDevice = blendState.graphicsDevice;
464 if (graphicsDevice == null)
465 {
466 }
467 }
468 }
469
470 // Token: 0x170002E8 RID: 744
471 // (get) Token: 0x0600178C RID: 6028 RVA: 0x00065538 File Offset: 0x00063738
472 // (set) Token: 0x0600178D RID: 6029 RVA: 0x0006554C File Offset: 0x0006374C
474 {
475 get
476 {
477 return this._depthStencilState;
478 }
479 set
480 {
481 while (value == null)
482 {
483 }
486 if (depthStencilState == null)
487 {
488 }
491 }
492 }
493
494 // Token: 0x0600178E RID: 6030 RVA: 0x00065588 File Offset: 0x00063788
495 internal void ApplyState(bool applyShaders)
496 {
497 }
498
499 // Token: 0x0600178F RID: 6031 RVA: 0x00065598 File Offset: 0x00063798
500 public void Clear(Color color)
501 {
502 }
503
504 // Token: 0x06001790 RID: 6032 RVA: 0x000655A8 File Offset: 0x000637A8
505 public void Clear(ClearOptions options, Color color, float depth, int stencil)
506 {
507 }
508
509 // Token: 0x06001791 RID: 6033 RVA: 0x000655B8 File Offset: 0x000637B8
510 public void Clear(ClearOptions options, Vector4 color, float depth, int stencil)
511 {
512 }
513
514 // Token: 0x06001792 RID: 6034 RVA: 0x000655C8 File Offset: 0x000637C8
515 public void Present()
516 {
517 while (this._currentRenderTargetCount != 0)
518 {
519 }
520 }
521
522 // Token: 0x06001793 RID: 6035 RVA: 0x000655E0 File Offset: 0x000637E0
523 public void Reset()
524 {
525 }
526
527 // Token: 0x06001794 RID: 6036 RVA: 0x000655F0 File Offset: 0x000637F0
535
536 // Token: 0x170002E9 RID: 745
537 // (get) Token: 0x06001795 RID: 6037 RVA: 0x00065608 File Offset: 0x00063808
539 {
540 get
541 {
543 }
544 }
545
546 // Token: 0x170002EA RID: 746
547 // (get) Token: 0x06001796 RID: 6038 RVA: 0x00065620 File Offset: 0x00063820
549 {
550 get
551 {
552 }
553 }
554
555 // Token: 0x170002EB RID: 747
556 // (get) Token: 0x06001797 RID: 6039 RVA: 0x00065630 File Offset: 0x00063830
557 // (set) Token: 0x06001798 RID: 6040 RVA: 0x00065644 File Offset: 0x00063844
559 {
561 get
562 {
564 }
566 private set
567 {
569 }
570 }
571
572 // Token: 0x170002EC RID: 748
573 // (get) Token: 0x06001799 RID: 6041 RVA: 0x00065658 File Offset: 0x00063858
574 // (set) Token: 0x0600179A RID: 6042 RVA: 0x00065698 File Offset: 0x00063898
576 {
577 get
578 {
580 float minDepth = this._viewport.minDepth;
581 int x = this._viewport.x;
582 Viewport viewport;
583 viewport.minDepth = minDepth;
584 viewport.x = x;
585 return viewport;
586 }
587 set
588 {
589 float minDepth = value.minDepth;
590 this._viewport.minDepth = minDepth;
591 }
592 }
593
594 // Token: 0x170002ED RID: 749
595 // (get) Token: 0x0600179B RID: 6043 RVA: 0x000656B8 File Offset: 0x000638B8
597 {
598 get
599 {
600 return this._graphicsProfile;
601 }
602 }
603
604 // Token: 0x170002EE RID: 750
605 // (get) Token: 0x0600179C RID: 6044 RVA: 0x000656CC File Offset: 0x000638CC
606 // (set) Token: 0x0600179D RID: 6045 RVA: 0x000656F0 File Offset: 0x000638F0
608 {
609 get
610 {
612 int width = this._scissorRectangle.Width;
613 return scissorRectangle;
614 }
615 set
616 {
618 int width = this._scissorRectangle.Width;
619 if (!true)
620 {
621 }
624 }
625 }
626
627 // Token: 0x170002EF RID: 751
628 // (get) Token: 0x0600179E RID: 6046 RVA: 0x00065724 File Offset: 0x00063924
630 {
631 get
632 {
633 return this._currentRenderTargetCount;
634 }
635 }
636
637 // Token: 0x0600179F RID: 6047 RVA: 0x00065738 File Offset: 0x00063938
641
642 // Token: 0x060017A0 RID: 6048 RVA: 0x00065748 File Offset: 0x00063948
644 {
645 /*
646An exception occurred when decompiling this method (060017A0)
647
648ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.RenderTargetBinding[] Microsoft.Xna.Framework.Graphics.GraphicsDevice::GetRenderTargets()
649
650 ---> System.Exception: Basic block has to end with unconditional control flow.
651{
652 Block_0:
653 stloc:int32(var_0_06, ldfld:int32(GraphicsDevice::_currentRenderTargetCount, ldloc:GraphicsDevice(this)))
654 stloc:valuetype Microsoft.Xna.Framework.Graphics.RenderTargetBinding[](var_1_0D, ldfld:valuetype Microsoft.Xna.Framework.Graphics.RenderTargetBinding[](GraphicsDevice::_currentRenderTargetBindings, ldloc:GraphicsDevice(this)))
655 stloc:int32(var_2_14, ldfld:int32(GraphicsDevice::_currentRenderTargetCount, ldloc:GraphicsDevice(this)))
656}
657
658 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
659 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
660 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
661 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
662 --- End of inner exception stack trace ---
663 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
664 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
665*/;
666 }
667
668 // Token: 0x060017A1 RID: 6049 RVA: 0x0006576C File Offset: 0x0006396C
675
676 // Token: 0x170002F0 RID: 752
677 // (get) Token: 0x060017A2 RID: 6050 RVA: 0x00065790 File Offset: 0x00063990
678 // (set) Token: 0x060017A3 RID: 6051 RVA: 0x000657A4 File Offset: 0x000639A4
679 public bool ResourcesLost
680 {
682 get
683 {
684 return this.<ResourcesLost>k__BackingField;
685 }
687 set
688 {
689 }
690 }
691
692 // Token: 0x060017A4 RID: 6052 RVA: 0x000021DB File Offset: 0x000003DB
693 private T[] Clone<T>(T[] srcArray, int Count)
694 {
695 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
696 }
697
698 // Token: 0x060017A5 RID: 6053 RVA: 0x000657B4 File Offset: 0x000639B4
700 {
701 Texture2D[] textures = this.Textures;
703 object <Tag>k__BackingField = textures.<Tag>k__BackingField;
705 int sortingKey = textures._sortingKey;
706 if (textures == null)
707 {
708 }
709 if (textures != null)
710 {
712 object <Tag>k__BackingField2 = textures2.<Tag>k__BackingField;
713 if (textures2 == null)
714 {
715 }
716 GraphicsDevice graphicsDevice = textures2.graphicsDevice;
717 if (<Tag>k__BackingField2 != null)
718 {
719 }
720 }
721 Material material;
722 return material;
723 }
724
725 // Token: 0x060017A6 RID: 6054 RVA: 0x00065810 File Offset: 0x00063A10
726 public void DrawGeometry(SpriteBatcher.VertexData[] vertices, short[] indices, int vertexCount, int indexCount, Vector3 position, Vector3 scale)
727 {
728 if (!true)
729 {
730 }
731 GeometryBufferInstance instance = GeometryBufferInstance.GetInstance(vertices, indices, vertexCount, indexCount);
732 int offset = instance._offset;
734 Material material = this.GetMaterial(offset);
735 meshRenderer.material = material;
736 }
737
738 // Token: 0x060017A7 RID: 6055 RVA: 0x00065848 File Offset: 0x00063A48
740 {
741 int size = subMeshMaterials._size;
743 int size2 = subMeshMaterials._size;
744 if (subMeshMaterials == null || subMeshMaterials != null)
745 {
746 }
747 throw new ArrayTypeMismatchException();
748 }
749
750 // Token: 0x060017A8 RID: 6056 RVA: 0x00065878 File Offset: 0x00063A78
751 public void DrawGeometryWithSubMeshes(SpriteBatcher.VertexData[] vertices, short[] indices, int vertexCount, int indexCount, Vector3 position, Vector3 scale, List<Material> subMeshMaterials, List<SubMeshDescriptor> subMeshPartitions)
752 {
753 int num = 1;
754 if (num == 0)
755 {
756 }
759 if (false)
760 {
761 if (num == 0)
762 {
763 }
765 }
766 Material[] array;
768 Mesh mesh = batchInstance.Mesh;
769 int num2 = 1;
770 mesh.Clear(num2 != 0);
772 if (num == 0)
773 {
774 }
775 long num3 = 0L;
776 mesh.UploadMeshData(num3 != 0L);
777 }
778
779 // Token: 0x060017A9 RID: 6057 RVA: 0x000658E0 File Offset: 0x00063AE0
781 {
782 if (!true)
783 {
784 }
786 int offset = instance._offset;
788 Material material = this.GetMaterial(offset);
789 meshRenderer.material = material;
790 }
791
792 // Token: 0x060017AA RID: 6058 RVA: 0x0006591C File Offset: 0x00063B1C
793 internal static Rectangle GetDefaultTitleSafeArea(int x, int y, int width, int height)
794 {
795 }
796
797 // Token: 0x060017AB RID: 6059 RVA: 0x00065930 File Offset: 0x00063B30
798 internal static Rectangle GetTitleSafeArea(int x, int y, int width, int height)
799 {
800 if (!true)
801 {
802 }
803 return GraphicsDevice.GetDefaultTitleSafeArea(42175128, x, y, width);
804 }
805
806 // Token: 0x060017AC RID: 6060 RVA: 0x00065950 File Offset: 0x00063B50
807 // Note: this type is marked as 'beforefieldinit'.
809 {
810 }
811
812 // Token: 0x040025E3 RID: 9699
814
815 // Token: 0x040025E4 RID: 9700
817
818 // Token: 0x040025E5 RID: 9701
820
821 // Token: 0x040025E6 RID: 9702
822 private bool _blendFactorDirty;
823
824 // Token: 0x040025E7 RID: 9703
826
827 // Token: 0x040025E8 RID: 9704
829
830 // Token: 0x040025E9 RID: 9705
831 private bool _blendStateDirty;
832
833 // Token: 0x040025EA RID: 9706
835
836 // Token: 0x040025EB RID: 9707
838
839 // Token: 0x040025EC RID: 9708
841
842 // Token: 0x040025ED RID: 9709
844
845 // Token: 0x040025EE RID: 9710
847
848 // Token: 0x040025EF RID: 9711
850
851 // Token: 0x040025F0 RID: 9712
853
854 // Token: 0x040025F1 RID: 9713
856
857 // Token: 0x040025F2 RID: 9714
859
860 // Token: 0x040025F3 RID: 9715
862
863 // Token: 0x040025F4 RID: 9716
865
866 // Token: 0x040025F5 RID: 9717
868
869 // Token: 0x040025F6 RID: 9718
871
872 // Token: 0x040025F7 RID: 9719
874
875 // Token: 0x040025F8 RID: 9720
877
878 // Token: 0x040025F9 RID: 9721
880
881 // Token: 0x040025FA RID: 9722
883
884 // Token: 0x040025FB RID: 9723
886
887 // Token: 0x040025FC RID: 9724
889
890 // Token: 0x040025FD RID: 9725
892
893 // Token: 0x040025FE RID: 9726
895
896 // Token: 0x040025FF RID: 9727
899
900 // Token: 0x04002600 RID: 9728
902
903 // Token: 0x04002601 RID: 9729
905
906 // Token: 0x04002602 RID: 9730
909
910 // Token: 0x04002603 RID: 9731
913
914 // Token: 0x04002604 RID: 9732
917
918 // Token: 0x04002605 RID: 9733
921
922 // Token: 0x04002606 RID: 9734
925
926 // Token: 0x04002607 RID: 9735
929
930 // Token: 0x04002608 RID: 9736
933
934 // Token: 0x04002609 RID: 9737
936
937 // Token: 0x0400260A RID: 9738
938 internal int MaxTextureSlots;
939
940 // Token: 0x0400260B RID: 9739
942
943 // Token: 0x0400260C RID: 9740
945
946 // Token: 0x0400260D RID: 9741
948 private GraphicsAdapter <Adapter>k__BackingField;
949
950 // Token: 0x0400260E RID: 9742
953
954 // Token: 0x0400260F RID: 9743
956
957 // Token: 0x04002610 RID: 9744
959 private bool <ResourcesLost>k__BackingField;
960
961 // Token: 0x04002611 RID: 9745
963
964 // Token: 0x04002612 RID: 9746
966
967 // Token: 0x04002613 RID: 9747
969
970 // Token: 0x04002614 RID: 9748
972
973 // Token: 0x04002615 RID: 9749
975
976 // Token: 0x04002616 RID: 9750
978
979 // Token: 0x04002617 RID: 9751
981 }
982}
class f__AnonymousType0<< Count > j__TPar
static GeometryBufferInstance GetInstance(SpriteBatcher.VertexData[] vertices, short[] indices, int vertexCount, int indexCount)
static Rectangle GetTitleSafeArea(int x, int y, int width, int height)
void GetRenderTargets(RenderTargetBinding[] outTargets)
void SetRenderTarget(RenderTarget2D renderTarget)
void Clear(ClearOptions options, Vector4 color, float depth, int stencil)
GraphicsCapabilities< GraphicsCapabilities > k__BackingField
EventHandler< PresentationEventArgs > PresentationChanged
void DrawGeometryWithSubMeshes(SpriteBatcher.VertexData[] vertices, short[] indices, int vertexCount, int indexCount, Vector3 position, Vector3 scale, List< Material > subMeshMaterials, List< SubMeshDescriptor > subMeshPartitions)
EventHandler< ResourceDestroyedEventArgs > ResourceDestroyed
readonly RenderTargetBinding[] _tempRenderTargetBinding
void DrawGeometry(List< Vector3 > positions, List< Vector2 > uvs, List< Vector4 > uv2s, List< Color32 > colours, List< int > indices, Vector3 position, Vector3 scale)
readonly RenderTargetBinding[] _currentRenderTargetBindings
GraphicsDevice(GraphicsAdapter adapter, GraphicsProfile graphicsProfile, PresentationParameters presentationParameters)
void DrawGeometry(SpriteBatcher.VertexData[] vertices, short[] indices, int vertexCount, int indexCount, Vector3 position, Vector3 scale)
EventHandler< ResourceCreatedEventArgs > ResourceCreated
PresentationParameters< PresentationParameters > k__BackingField
Material[] GetMaterialArray(List< Material > subMeshMaterials)
void Reset(PresentationParameters presentationParameters)
static Rectangle GetDefaultTitleSafeArea(int x, int y, int width, int height)
void Clear(ClearOptions options, Color color, float depth, int stencil)
static void Copy(Array sourceArray, Array destinationArray, long length)
Definition Array.cs:205
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
void UploadMeshData(bool markNoLongerReadable)
Definition Mesh.cs:583
void Clear([DefaultValue("true")] bool keepVertexLayout)
Definition Mesh.cs:552