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
SamplerStateCollection.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x0200038B RID: 907
6 public sealed class SamplerStateCollection
7 {
8 // Token: 0x06001806 RID: 6150 RVA: 0x00066058 File Offset: 0x00064258
29
30 // Token: 0x1700030D RID: 781
31 public SamplerState this[int index]
32 {
33 get
34 {
35 /*
36An exception occurred when decompiling this method (06001807)
37
38ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Graphics.SamplerState Microsoft.Xna.Framework.Graphics.SamplerStateCollection::get_Item(System.Int32)
39
40 ---> System.Exception: Basic block has to end with unconditional control flow.
41{
42 Block_0:
43 stloc:string(var_0_0B, ldfld:string(GraphicsResource::<Name>k__BackingField, ldfld:class Microsoft.Xna.Framework.Graphics.SamplerState[][exp:GraphicsResource](SamplerStateCollection::_samplers, ldloc:SamplerStateCollection(this))))
44}
45
46 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
47 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
48 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
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 88
50 --- End of inner exception stack trace ---
51 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
52 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
53*/;
54 }
55 set
56 {
57 if (value != null)
58 {
60 if (value != null)
61 {
62 return;
63 }
64 }
66 }
67 }
68
69 // Token: 0x06001809 RID: 6153 RVA: 0x0006611C File Offset: 0x0006431C
70 internal void Clear()
71 {
72 if (!true)
73 {
74 }
76 GraphicsDevice graphicsDevice = this._graphicsDevice;
77 samplerStateLinearWrap.BindToGraphicsDevice(graphicsDevice);
80 if (samplerStateLinearWrap2 == null || samplerStateLinearWrap2 != null)
81 {
83 return;
84 }
86 }
87
88 // Token: 0x0600180A RID: 6154 RVA: 0x00066164 File Offset: 0x00064364
89 internal void Dirty()
90 {
91 }
92
93 // Token: 0x04002643 RID: 9795
95
96 // Token: 0x04002644 RID: 9796
98
99 // Token: 0x04002645 RID: 9797
101
102 // Token: 0x04002646 RID: 9798
104
105 // Token: 0x04002647 RID: 9799
107
108 // Token: 0x04002648 RID: 9800
110
111 // Token: 0x04002649 RID: 9801
113
114 // Token: 0x0400264A RID: 9802
116
117 // Token: 0x0400264B RID: 9803
119
120 // Token: 0x0400264C RID: 9804
122 }
123}
class f__AnonymousType0<< Count > j__TPar
SamplerStateCollection(GraphicsDevice device, int maxSamplers, bool applyToVertexStage)
void BindToGraphicsDevice(GraphicsDevice device)