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
Texture.cs
Go to the documentation of this file.
1using System;
7
8namespace UnityEngine
9{
10 // Token: 0x0200004A RID: 74
11 [NativeHeader("Runtime/Streaming/TextureStreamingManager.h")]
13 [NativeHeader("Runtime/Graphics/Texture.h")]
14 public class Texture : Object
15 {
16 // Token: 0x060000FD RID: 253 RVA: 0x0000352C File Offset: 0x0000172C
17 protected Texture()
18 {
19 if (!true)
20 {
21 }
22 base..ctor();
23 }
24
25 // Token: 0x060000FE RID: 254 RVA: 0x00003544 File Offset: 0x00001744
26 private int GetDataWidth()
27 {
28 throw new MissingMethodException();
29 }
30
31 // Token: 0x060000FF RID: 255 RVA: 0x00003558 File Offset: 0x00001758
32 private int GetDataHeight()
33 {
34 throw new MissingMethodException();
35 }
36
37 // Token: 0x1700002E RID: 46
38 // (get) Token: 0x06000100 RID: 256 RVA: 0x0000356C File Offset: 0x0000176C
39 // (set) Token: 0x06000101 RID: 257 RVA: 0x000021B3 File Offset: 0x000003B3
40 public virtual int width
41 {
42 get
43 {
44 throw new MissingMethodException();
45 }
46 set
47 {
48 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
49 }
50 }
51
52 // Token: 0x1700002F RID: 47
53 // (get) Token: 0x06000102 RID: 258 RVA: 0x00003580 File Offset: 0x00001780
54 // (set) Token: 0x06000103 RID: 259 RVA: 0x000021B3 File Offset: 0x000003B3
55 public virtual int height
56 {
57 get
58 {
59 throw new MissingMethodException();
60 }
61 set
62 {
63 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
64 }
65 }
66
67 // Token: 0x17000030 RID: 48
68 // (get) Token: 0x06000104 RID: 260 RVA: 0x00003594 File Offset: 0x00001794
69 public virtual bool isReadable
70 {
71 get
72 {
73 throw new MissingMethodException();
74 }
75 }
76
77 // Token: 0x17000031 RID: 49
78 // (get) Token: 0x06000105 RID: 261 RVA: 0x000035A8 File Offset: 0x000017A8
79 // (set) Token: 0x06000106 RID: 262 RVA: 0x000035BC File Offset: 0x000017BC
81 {
82 [NativeName("GetWrapModeU")]
83 get
84 {
85 throw new MissingMethodException();
86 }
87 set
88 {
89 throw new MissingMethodException();
90 }
91 }
92
93 // Token: 0x17000032 RID: 50
94 // (set) Token: 0x06000107 RID: 263 RVA: 0x000035D0 File Offset: 0x000017D0
96 {
97 set
98 {
99 throw new MissingMethodException();
100 }
101 }
102
103 // Token: 0x17000033 RID: 51
104 // (get) Token: 0x06000108 RID: 264 RVA: 0x000035E4 File Offset: 0x000017E4
106 {
107 [NativeName("GetTexelSize")]
108 get
109 {
110 throw new MissingMethodException();
111 }
112 }
113
114 // Token: 0x06000109 RID: 265 RVA: 0x000035F8 File Offset: 0x000017F8
116 {
118 return true;
119 }
120
121 // Token: 0x0600010A RID: 266 RVA: 0x00003650 File Offset: 0x00001850
123 {
124 string text;
125 Debug.LogWarning(string.Format("'{0}' is not allowed because it is an auto format and not an exact format. Use GraphicsFormatUtility.GetDepthStencilFormat to get an exact depth/stencil format.", text), this);
126 throw new MissingMethodException();
127 }
128
129 // Token: 0x0600010B RID: 267 RVA: 0x00003690 File Offset: 0x00001890
131 {
132 /*
133An exception occurred when decompiling this method (0600010B)
134
135ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.UnityException UnityEngine.Texture::CreateNonReadableException(UnityEngine.Texture)
136
137 ---> System.Exception: Basic block has to end with unconditional control flow.
138{
139 Block_0:
140 stloc:string(var_1_0B, call:string(string::Format, ldstr:string("Texture '{0}' is not readable, the texture memory can not be accessed from scripts. You can make the texture readable in the Texture Import Settings."), ldloc:string[exp:object](var_0)))
141}
142
143 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
144 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
145 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
146 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
147 --- End of inner exception stack trace ---
148 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
149 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
150*/;
151 }
152
153 // Token: 0x0600010C RID: 268 RVA: 0x000021B3 File Offset: 0x000003B3
155 {
156 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
157 }
158
159 // Token: 0x0600010D RID: 269 RVA: 0x000036A8 File Offset: 0x000018A8
160 // Note: this type is marked as 'beforefieldinit'.
161 static Texture()
162 {
163 }
164
165 // Token: 0x0600010E RID: 270 RVA: 0x000036B8 File Offset: 0x000018B8
166 private void get_texelSize_Injected([Out] Vector2 ret)
167 {
168 throw new MissingMethodException();
169 }
170
171 // Token: 0x04000211 RID: 529
172 public static readonly int GenerateAllMips;
173 }
174}
class f__AnonymousType0<< Count > j__TPar
static void LogWarning(object message)
Definition Debug.cs:117
static bool SupportsTextureFormat(TextureFormat format)
Definition SystemInfo.cs:65
FilterMode filterMode
Definition Texture.cs:96
virtual int width
Definition Texture.cs:41
virtual bool isReadable
Definition Texture.cs:70
UnityException CreateNonReadableException(Texture t)
Definition Texture.cs:130
virtual int height
Definition Texture.cs:56
bool ValidateFormat(GraphicsFormat format, FormatUsage usage)
Definition Texture.cs:122
void get_texelSize_Injected([Out] Vector2 ret)
Definition Texture.cs:166
UnityException CreateNativeArrayLengthOverflowException()
Definition Texture.cs:154
TextureWrapMode wrapMode
Definition Texture.cs:81
static readonly int GenerateAllMips
Definition Texture.cs:172
bool ValidateFormat(TextureFormat format)
Definition Texture.cs:115