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
SamplerState.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020003A2 RID: 930
8 {
9 // Token: 0x060018DD RID: 6365 RVA: 0x00069ECC File Offset: 0x000680CC
10 static SamplerState()
11 {
12 }
13
14 // Token: 0x1700033A RID: 826
15 // (get) Token: 0x060018DE RID: 6366 RVA: 0x00069EDC File Offset: 0x000680DC
16 // (set) Token: 0x060018DF RID: 6367 RVA: 0x00069EF0 File Offset: 0x000680F0
18 {
19 get
20 {
21 return this._addressU;
22 }
23 set
24 {
25 this.ThrowIfBound();
27 }
28 }
29
30 // Token: 0x1700033B RID: 827
31 // (get) Token: 0x060018E0 RID: 6368 RVA: 0x00069F0C File Offset: 0x0006810C
32 // (set) Token: 0x060018E1 RID: 6369 RVA: 0x00069F20 File Offset: 0x00068120
34 {
35 get
36 {
37 return this._addressV;
38 }
39 set
40 {
41 this.ThrowIfBound();
43 }
44 }
45
46 // Token: 0x1700033C RID: 828
47 // (get) Token: 0x060018E2 RID: 6370 RVA: 0x00069F3C File Offset: 0x0006813C
48 // (set) Token: 0x060018E3 RID: 6371 RVA: 0x00069F50 File Offset: 0x00068150
50 {
51 get
52 {
53 return this._addressW;
54 }
55 set
56 {
57 this.ThrowIfBound();
59 }
60 }
61
62 // Token: 0x1700033D RID: 829
63 // (get) Token: 0x060018E4 RID: 6372 RVA: 0x00069F6C File Offset: 0x0006816C
64 // (set) Token: 0x060018E5 RID: 6373 RVA: 0x00069F84 File Offset: 0x00068184
66 {
67 get
68 {
70 Color color;
71 return color;
72 }
73 set
74 {
75 this.ThrowIfBound();
77 }
78 }
79
80 // Token: 0x1700033E RID: 830
81 // (get) Token: 0x060018E6 RID: 6374 RVA: 0x00069FA0 File Offset: 0x000681A0
82 // (set) Token: 0x060018E7 RID: 6375 RVA: 0x00069FB4 File Offset: 0x000681B4
84 {
85 get
86 {
87 return this._filter;
88 }
89 set
90 {
91 this.ThrowIfBound();
93 }
94 }
95
96 // Token: 0x1700033F RID: 831
97 // (get) Token: 0x060018E8 RID: 6376 RVA: 0x00069FD0 File Offset: 0x000681D0
98 // (set) Token: 0x060018E9 RID: 6377 RVA: 0x00069FE4 File Offset: 0x000681E4
99 public int MaxAnisotropy
100 {
101 get
102 {
103 return this._maxAnisotropy;
104 }
105 set
106 {
107 this.ThrowIfBound();
109 }
110 }
111
112 // Token: 0x17000340 RID: 832
113 // (get) Token: 0x060018EA RID: 6378 RVA: 0x0006A000 File Offset: 0x00068200
114 // (set) Token: 0x060018EB RID: 6379 RVA: 0x0006A014 File Offset: 0x00068214
115 public int MaxMipLevel
116 {
117 get
118 {
119 return this._maxMipLevel;
120 }
121 set
122 {
123 this.ThrowIfBound();
125 }
126 }
127
128 // Token: 0x17000341 RID: 833
129 // (get) Token: 0x060018EC RID: 6380 RVA: 0x0006A030 File Offset: 0x00068230
130 // (set) Token: 0x060018ED RID: 6381 RVA: 0x0006A044 File Offset: 0x00068244
132 {
133 get
134 {
135 /*
136An exception occurred when decompiling this method (060018EC)
137
138ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Microsoft.Xna.Framework.Graphics.SamplerState::get_MipMapLevelOfDetailBias()
139
140 ---> System.Exception: Basic block has to end with unconditional control flow.
141{
142 Block_0:
143 stloc:float32(var_0_06, ldfld:float32(SamplerState::_mipMapLevelOfDetailBias, ldloc:SamplerState(this)))
144}
145
146 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
147 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
148 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
149 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
150 --- End of inner exception stack trace ---
151 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
152 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
153*/;
154 }
155 set
156 {
157 this.ThrowIfBound();
158 }
159 }
160
161 // Token: 0x17000342 RID: 834
162 // (get) Token: 0x060018EE RID: 6382 RVA: 0x0006A058 File Offset: 0x00068258
163 // (set) Token: 0x060018EF RID: 6383 RVA: 0x0006A06C File Offset: 0x0006826C
165 {
166 get
167 {
168 return this._comparisonFunction;
169 }
170 set
171 {
172 this.ThrowIfBound();
174 }
175 }
176
177 // Token: 0x17000343 RID: 835
178 // (get) Token: 0x060018F0 RID: 6384 RVA: 0x0006A088 File Offset: 0x00068288
179 // (set) Token: 0x060018F1 RID: 6385 RVA: 0x0006A09C File Offset: 0x0006829C
181 {
182 get
183 {
184 return this._filterMode;
185 }
186 set
187 {
188 this.ThrowIfBound();
190 }
191 }
192
193 // Token: 0x060018F2 RID: 6386 RVA: 0x0006A0B8 File Offset: 0x000682B8
195 {
196 if (!this._defaultStateObject)
197 {
198 if (this.graphicsDevice != null)
199 {
200 }
201 base.GraphicsDevice = device;
202 return;
203 }
204 }
205
206 // Token: 0x060018F3 RID: 6387 RVA: 0x0006A0E0 File Offset: 0x000682E0
207 internal void ThrowIfBound()
208 {
209 while (!this._defaultStateObject)
210 {
211 if (this.graphicsDevice == null)
212 {
213 return;
214 }
215 }
216 }
217
218 // Token: 0x060018F4 RID: 6388 RVA: 0x0006A100 File Offset: 0x00068300
220 {
221 this.ThrowIfBound();
222 this.ThrowIfBound();
223 this.ThrowIfBound();
224 this.ThrowIfBound();
225 if (!true)
226 {
227 }
228 this.ThrowIfBound();
229 this.ThrowIfBound();
231 this.ThrowIfBound();
232 this.ThrowIfBound();
233 this.ThrowIfBound();
235 this.ThrowIfBound();
236 }
237
238 // Token: 0x060018F5 RID: 6389 RVA: 0x0006A160 File Offset: 0x00068360
248
249 // Token: 0x060018F6 RID: 6390 RVA: 0x0006A198 File Offset: 0x00068398
267
268 // Token: 0x060018F7 RID: 6391 RVA: 0x000021DB File Offset: 0x000003DB
270 {
271 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
272 }
273
274 // Token: 0x0400271B RID: 10011
276
277 // Token: 0x0400271C RID: 10012
279
280 // Token: 0x0400271D RID: 10013
282
283 // Token: 0x0400271E RID: 10014
285
286 // Token: 0x0400271F RID: 10015
288
289 // Token: 0x04002720 RID: 10016
291
292 // Token: 0x04002721 RID: 10017
294
295 // Token: 0x04002722 RID: 10018
297
298 // Token: 0x04002723 RID: 10019
300
301 // Token: 0x04002724 RID: 10020
303
304 // Token: 0x04002725 RID: 10021
306
307 // Token: 0x04002726 RID: 10022
309
310 // Token: 0x04002727 RID: 10023
311 private int _maxAnisotropy;
312
313 // Token: 0x04002728 RID: 10024
314 private int _maxMipLevel;
315
316 // Token: 0x04002729 RID: 10025
318
319 // Token: 0x0400272A RID: 10026
321
322 // Token: 0x0400272B RID: 10027
324 }
325}
class f__AnonymousType0<< Count > j__TPar
static readonly SamplerState LinearWrap
static readonly SamplerState AnisotropicWrap
void BindToGraphicsDevice(GraphicsDevice device)
static readonly SamplerState AnisotropicClamp
static readonly SamplerState PointClamp
SamplerState(string name, TextureFilter filter, TextureAddressMode addressMode)
static readonly SamplerState LinearClamp