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
GraphicsAdapter.cs
Go to the documentation of this file.
1using System;
5
7{
8 // Token: 0x02000377 RID: 887
9 public sealed class GraphicsAdapter
10 {
11 // Token: 0x170002BB RID: 699
12 // (get) Token: 0x0600171E RID: 5918 RVA: 0x00064AA4 File Offset: 0x00062CA4
13 // (set) Token: 0x0600171F RID: 5919 RVA: 0x00064AB8 File Offset: 0x00062CB8
14 public static int VirtualScreenSize
15 {
16 get
17 {
18 if (!true)
19 {
20 }
21 return 1;
22 }
23 set
24 {
25 if (!true)
26 {
27 }
28 int screenWidth = XNAUnityRunner.ScreenWidth;
29 int screenHeight = XNAUnityRunner.ScreenHeight;
30 }
31 }
32
33 // Token: 0x06001720 RID: 5920 RVA: 0x00064AD8 File Offset: 0x00062CD8
35 {
36 }
37
38 // Token: 0x170002BC RID: 700
39 // (get) Token: 0x06001721 RID: 5921 RVA: 0x00064AE8 File Offset: 0x00062CE8
41 {
42 get
43 {
44 /*
45An exception occurred when decompiling this method (06001721)
46
47ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.GraphicsAdapter Microsoft.Xna.Framework.Graphics.GraphicsAdapter::get_DefaultAdapter()
48
49 ---> System.Exception: Basic block has to end with unconditional control flow.
50{
51 IL_0000:
52 brtrue(IL_0000, ldc.i4:bool(1))
53}
54
55 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
56 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
57 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
58 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
59 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
60 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
61 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
62 --- End of inner exception stack trace ---
63 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
64 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
65*/;
66 }
67 }
68
69 // Token: 0x170002BD RID: 701
70 // (get) Token: 0x06001722 RID: 5922 RVA: 0x00064AF8 File Offset: 0x00062CF8
72 {
73 get
74 {
75 /*
76An exception occurred when decompiling this method (06001722)
77
78ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ObjectModel.ReadOnlyCollection`1<Microsoft.Xna.Framework.Graphics.GraphicsAdapter> Microsoft.Xna.Framework.Graphics.GraphicsAdapter::get_Adapters()
79
80 ---> System.Exception: Basic block has to end with unconditional control flow.
81{
82 IL_0000:
83 brtrue(IL_0000, ldc.i4:bool(1))
84}
85
86 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
87 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
88 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
89 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
90 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
91 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
92 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
93 --- End of inner exception stack trace ---
94 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
95 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
96*/;
97 }
98 }
99
100 // Token: 0x170002BE RID: 702
101 // (get) Token: 0x06001723 RID: 5923 RVA: 0x00064B08 File Offset: 0x00062D08
102 // (set) Token: 0x06001724 RID: 5924 RVA: 0x00064B1C File Offset: 0x00062D1C
103 public static bool UseReferenceDevice
104 {
105 get
106 {
107 /*
108An exception occurred when decompiling this method (06001723)
109
110ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Graphics.GraphicsAdapter::get_UseReferenceDevice()
111
112 ---> System.Exception: Basic block has to end with unconditional control flow.
113{
114 IL_0003:
115 brtrue(IL_0000, ldc.i4:bool(1))
116}
117
118 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
119 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
120 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
121 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
122 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
123 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
124 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
125 --- End of inner exception stack trace ---
126 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
127 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
128*/;
129 }
130 set
131 {
132 if (!true)
133 {
134 }
135 if (!true)
136 {
137 }
138 }
139 }
140
141 // Token: 0x170002BF RID: 703
142 // (get) Token: 0x06001725 RID: 5925 RVA: 0x00064B30 File Offset: 0x00062D30
143 // (set) Token: 0x06001726 RID: 5926 RVA: 0x00064B40 File Offset: 0x00062D40
145 {
147 get
148 {
149 /*
150An exception occurred when decompiling this method (06001725)
151
152ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.GraphicsAdapter/DriverType Microsoft.Xna.Framework.Graphics.GraphicsAdapter::get_UseDriverType()
153
154 ---> System.Exception: Basic block has to end with unconditional control flow.
155{
156 IL_0000:
157 brtrue(IL_0000, ldc.i4:bool(1))
158}
159
160 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
161 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
162 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
163 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
164 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
165 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
166 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
167 --- End of inner exception stack trace ---
168 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
169 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
170*/;
171 }
173 set
174 {
175 if (!true)
176 {
177 }
178 }
179 }
180
181 // Token: 0x170002C0 RID: 704
182 // (get) Token: 0x06001727 RID: 5927 RVA: 0x00064B50 File Offset: 0x00062D50
183 // (set) Token: 0x06001728 RID: 5928 RVA: 0x00064B60 File Offset: 0x00062D60
184 public static bool UseDebugLayers
185 {
187 get
188 {
189 /*
190An exception occurred when decompiling this method (06001727)
191
192ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Graphics.GraphicsAdapter::get_UseDebugLayers()
193
194 ---> System.Exception: Basic block has to end with unconditional control flow.
195{
196 IL_0000:
197 brtrue(IL_0000, ldc.i4:bool(1))
198}
199
200 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
201 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
202 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
203 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
204 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
205 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
206 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
207 --- End of inner exception stack trace ---
208 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
209 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
210*/;
211 }
213 set
214 {
215 if ("BartenderSpecialText.AfterDD2Tier3" == null)
216 {
217 }
218 }
219 }
220
221 // Token: 0x170002C1 RID: 705
222 // (get) Token: 0x06001729 RID: 5929 RVA: 0x00064B74 File Offset: 0x00062D74
223 // (set) Token: 0x0600172A RID: 5930 RVA: 0x00064B88 File Offset: 0x00062D88
224 public string Description
225 {
227 get
228 {
229 return this.<Description>k__BackingField;
230 }
232 private set
233 {
235 }
236 }
237
238 // Token: 0x170002C2 RID: 706
239 // (get) Token: 0x0600172B RID: 5931 RVA: 0x00064B9C File Offset: 0x00062D9C
240 // (set) Token: 0x0600172C RID: 5932 RVA: 0x00064BB0 File Offset: 0x00062DB0
241 public int DeviceId
242 {
244 get
245 {
246 return this.<DeviceId>k__BackingField;
247 }
249 private set
250 {
252 }
253 }
254
255 // Token: 0x170002C3 RID: 707
256 // (get) Token: 0x0600172D RID: 5933 RVA: 0x00064BC4 File Offset: 0x00062DC4
257 // (set) Token: 0x0600172E RID: 5934 RVA: 0x00064BD8 File Offset: 0x00062DD8
258 public string DeviceName
259 {
261 get
262 {
263 return this.<DeviceName>k__BackingField;
264 }
266 private set
267 {
269 }
270 }
271
272 // Token: 0x170002C4 RID: 708
273 // (get) Token: 0x0600172F RID: 5935 RVA: 0x00064BEC File Offset: 0x00062DEC
274 // (set) Token: 0x06001730 RID: 5936 RVA: 0x00064C00 File Offset: 0x00062E00
275 public int VendorId
276 {
278 get
279 {
280 return this.<VendorId>k__BackingField;
281 }
283 private set
284 {
286 }
287 }
288
289 // Token: 0x170002C5 RID: 709
290 // (get) Token: 0x06001731 RID: 5937 RVA: 0x00064C14 File Offset: 0x00062E14
291 // (set) Token: 0x06001732 RID: 5938 RVA: 0x00064C28 File Offset: 0x00062E28
293 {
295 get
296 {
298 }
300 private set
301 {
302 }
303 }
304
305 // Token: 0x170002C6 RID: 710
306 // (get) Token: 0x06001733 RID: 5939 RVA: 0x00064C38 File Offset: 0x00062E38
307 // (set) Token: 0x06001734 RID: 5940 RVA: 0x00064C4C File Offset: 0x00062E4C
309 {
311 get
312 {
313 return this.<MonitorHandle>k__BackingField;
314 }
316 private set
317 {
319 }
320 }
321
322 // Token: 0x170002C7 RID: 711
323 // (get) Token: 0x06001735 RID: 5941 RVA: 0x00064C60 File Offset: 0x00062E60
324 // (set) Token: 0x06001736 RID: 5942 RVA: 0x00064C74 File Offset: 0x00062E74
325 public int Revision
326 {
328 get
329 {
330 return this.<Revision>k__BackingField;
331 }
333 private set
334 {
336 }
337 }
338
339 // Token: 0x170002C8 RID: 712
340 // (get) Token: 0x06001737 RID: 5943 RVA: 0x00064C88 File Offset: 0x00062E88
341 // (set) Token: 0x06001738 RID: 5944 RVA: 0x00064C9C File Offset: 0x00062E9C
342 public int SubSystemId
343 {
345 get
346 {
347 return this.<SubSystemId>k__BackingField;
348 }
350 private set
351 {
352 }
353 }
354
355 // Token: 0x170002C9 RID: 713
356 // (get) Token: 0x06001739 RID: 5945 RVA: 0x00064CAC File Offset: 0x00062EAC
358 {
359 get
360 {
361 return this._supportedDisplayModes;
362 }
363 }
364
365 // Token: 0x170002CA RID: 714
366 // (get) Token: 0x0600173A RID: 5946 RVA: 0x00064CC0 File Offset: 0x00062EC0
368 {
369 get
370 {
371 return this._currentDisplayMode;
372 }
373 }
374
375 // Token: 0x170002CB RID: 715
376 // (get) Token: 0x0600173B RID: 5947 RVA: 0x00064CD4 File Offset: 0x00062ED4
377 public bool IsWideScreen
378 {
379 get
380 {
381 /*
382An exception occurred when decompiling this method (0600173B)
383
384ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Graphics.GraphicsAdapter::get_IsWideScreen()
385
386 ---> System.Exception: Basic block has to end with unconditional control flow.
387{
388 Block_0:
389 stloc:float32(var_0_0B, callgetter:float32(DisplayMode::get_AspectRatio, ldfld:DisplayMode(GraphicsAdapter::_currentDisplayMode, ldloc:GraphicsAdapter(this))))
390}
391
392 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
393 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
394 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
395 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
396 --- End of inner exception stack trace ---
397 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
398 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
399*/;
400 }
401 }
402
403 // Token: 0x0600173C RID: 5948 RVA: 0x00064CEC File Offset: 0x00062EEC
405 {
406 /*
407An exception occurred when decompiling this method (0600173C)
408
409ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Graphics.GraphicsAdapter::QueryRenderTargetFormat(Microsoft.Xna.Framework.Graphics.GraphicsProfile,Microsoft.Xna.Framework.Graphics.SurfaceFormat,Microsoft.Xna.Framework.Graphics.DepthFormat,System.Int32,Microsoft.Xna.Framework.Graphics.SurfaceFormat,Microsoft.Xna.Framework.Graphics.DepthFormat,System.Int32)
410
411 ---> System.Exception: Basic block has to end with unconditional control flow.
412{
413 Block_0:
414 stfld:int32(SurfaceFormat::value__, ldloc:SurfaceFormat[exp:valuetype Microsoft.Xna.Framework.Graphics.SurfaceFormat&](selectedFormat), ldloc:SurfaceFormat[exp:int32](format))
415 stfld:int32(DepthFormat::value__, ldloc:DepthFormat[exp:valuetype Microsoft.Xna.Framework.Graphics.DepthFormat&](selectedDepthFormat), ldloc:DepthFormat[exp:int32](depthFormat))
416 stfld:int32(int32::m_value, ldloc:int32[exp:int32&](selectedMultiSampleCount), ldloc:int32(multiSampleCount))
417}
418
419 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
420 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
421 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
422 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
423 --- End of inner exception stack trace ---
424 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
425 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
426*/;
427 }
428
429 // Token: 0x0600173D RID: 5949 RVA: 0x00064D18 File Offset: 0x00062F18
433
434 // Token: 0x0600173E RID: 5950 RVA: 0x00064D28 File Offset: 0x00062F28
435 public void Dispose()
436 {
437 }
438
439 // Token: 0x0600173F RID: 5951 RVA: 0x00064D38 File Offset: 0x00062F38
443
444 // Token: 0x06001740 RID: 5952 RVA: 0x00064D6C File Offset: 0x00062F6C
446 {
447 }
448
449 // Token: 0x040025BB RID: 9659
450 private static int _virtualScreenSize;
451
452 // Token: 0x040025BC RID: 9660
454
455 // Token: 0x040025BD RID: 9661
457
458 // Token: 0x040025BE RID: 9662
460
461 // Token: 0x040025BF RID: 9663
464
465 // Token: 0x040025C0 RID: 9664
467 private static bool <UseDebugLayers>k__BackingField;
468
469 // Token: 0x040025C1 RID: 9665
471 private string <Description>k__BackingField;
472
473 // Token: 0x040025C2 RID: 9666
475 private int <DeviceId>k__BackingField;
476
477 // Token: 0x040025C3 RID: 9667
479 private string <DeviceName>k__BackingField;
480
481 // Token: 0x040025C4 RID: 9668
483 private int <VendorId>k__BackingField;
484
485 // Token: 0x040025C5 RID: 9669
487 private bool <IsDefaultAdapter>k__BackingField;
488
489 // Token: 0x040025C6 RID: 9670
491 private IntPtr <MonitorHandle>k__BackingField;
492
493 // Token: 0x040025C7 RID: 9671
495 private int <Revision>k__BackingField;
496
497 // Token: 0x040025C8 RID: 9672
499 private int <SubSystemId>k__BackingField;
500
501 // Token: 0x02000378 RID: 888
502 public enum DriverType
503 {
504 // Token: 0x040025CA RID: 9674
505 Hardware,
506 // Token: 0x040025CB RID: 9675
507 Reference,
508 // Token: 0x040025CC RID: 9676
510 }
511 }
512}
class f__AnonymousType0<< Count > j__TPar
static readonly ReadOnlyCollection< GraphicsAdapter > _adapters
bool IsProfileSupported(GraphicsProfile graphicsProfile)
static GraphicsAdapter.DriverType UseDriverType
bool QueryRenderTargetFormat(GraphicsProfile graphicsProfile, SurfaceFormat format, DepthFormat depthFormat, int multiSampleCount, [Out] SurfaceFormat selectedFormat, [Out] DepthFormat selectedDepthFormat, [Out] int selectedMultiSampleCount)
static ReadOnlyCollection< GraphicsAdapter > Adapters
static GraphicsAdapter.DriverType< UseDriverType > k__BackingField
static void PlatformInitializeAdapters([Out] ReadOnlyCollection< GraphicsAdapter > adaptersResults)
static int ScreenWidth
static int ScreenHeight