terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
GraphicsFormatUtility.cs
Go to the documentation of this file.
1using System;
6
8{
9 [NativeHeader("Runtime/Graphics/Format.h")]
10 [NativeHeader("Runtime/Graphics/TextureFormat.h")]
11 [NativeHeader("Runtime/Graphics/GraphicsFormatUtility.bindings.h")]
12 [global::Cpp2ILInjected.Token(Token = "0x200013A")]
14 {
15 [global::Cpp2ILInjected.Token(Token = "0x600060A")]
16 [global::Cpp2ILInjected.Address(RVA = "0x1F8ED2C", Offset = "0x1F8ED2C", Length = "0x84")]
17 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture), Member = "ValidateFormat", MemberParameters = new object[] { typeof(TextureFormat) }, ReturnType = typeof(bool))]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture2D), Member = ".ctor", MemberParameters = new object[]
19 {
20 typeof(int),
21 typeof(int),
23 typeof(int),
24 typeof(bool),
26 }, ReturnType = typeof(void))]
27 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Cubemap), Member = ".ctor", MemberParameters = new object[]
28 {
29 typeof(int),
31 typeof(int),
33 }, ReturnType = typeof(void))]
34 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture3D), Member = ".ctor", MemberParameters = new object[]
35 {
36 typeof(int),
37 typeof(int),
38 typeof(int),
40 typeof(int)
41 }, ReturnType = typeof(void))]
42 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture3D), Member = ".ctor", MemberParameters = new object[]
43 {
44 typeof(int),
45 typeof(int),
46 typeof(int),
48 typeof(int),
50 }, ReturnType = typeof(void))]
51 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture2DArray), Member = ".ctor", MemberParameters = new object[]
52 {
53 typeof(int),
54 typeof(int),
55 typeof(int),
57 typeof(int),
58 typeof(bool)
59 }, ReturnType = typeof(void))]
60 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CubemapArray), Member = ".ctor", MemberParameters = new object[]
61 {
62 typeof(int),
63 typeof(int),
65 typeof(int),
66 typeof(bool)
67 }, ReturnType = typeof(void))]
68 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 7)]
69 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
71 {
72 throw null;
73 }
74
75 [FreeFunction(IsThreadSafe = true)]
76 [global::Cpp2ILInjected.Token(Token = "0x600060B")]
77 [global::Cpp2ILInjected.Address(RVA = "0x1F8EDB0", Offset = "0x1F8EDB0", Length = "0x44")]
78 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
79 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
80 [MethodImpl(4096)]
82
83 [global::Cpp2ILInjected.Token(Token = "0x600060C")]
84 [global::Cpp2ILInjected.Address(RVA = "0x1F8EDF4", Offset = "0x1F8EDF4", Length = "0x84")]
85 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GraphicsFormatUtility), Member = "GetGraphicsFormat", MemberParameters = new object[]
86 {
89 }, ReturnType = typeof(GraphicsFormat))]
90 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
91 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
93 {
94 throw null;
95 }
96
98 [global::Cpp2ILInjected.Token(Token = "0x600060D")]
99 [global::Cpp2ILInjected.Address(RVA = "0x1F8EE78", Offset = "0x1F8EE78", Length = "0x44")]
100 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
101 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
102 [MethodImpl(4096)]
104
105 [global::Cpp2ILInjected.Token(Token = "0x600060E")]
106 [global::Cpp2ILInjected.Address(RVA = "0x1F8EEBC", Offset = "0x1F8EEBC", Length = "0x88")]
107 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
108 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RenderTexture), Member = "GetCompatibleFormat", MemberParameters = new object[]
109 {
112 }, ReturnType = typeof(GraphicsFormat))]
113 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(QualitySettings), Member = "get_activeColorSpace", ReturnType = typeof(ColorSpace))]
115 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GraphicsFormatUtility), Member = "GetGraphicsFormat", MemberParameters = new object[]
116 {
118 typeof(bool)
119 }, ReturnType = typeof(GraphicsFormat))]
120 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
125
126 [FreeFunction(IsThreadSafe = true)]
127 [global::Cpp2ILInjected.Token(Token = "0x600060F")]
128 [global::Cpp2ILInjected.Address(RVA = "0x1F8EF44", Offset = "0x1F8EF44", Length = "0x3C")]
129 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
130 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
131 [MethodImpl(4096)]
133
134 [global::Cpp2ILInjected.Token(Token = "0x6000610")]
135 [global::Cpp2ILInjected.Address(RVA = "0x1F8EF80", Offset = "0x1F8EF80", Length = "0x74")]
136 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RenderTexture), Member = "GetDepthStencilFormatLegacy", MemberParameters = new object[]
137 {
138 typeof(int),
140 }, ReturnType = typeof(GraphicsFormat))]
141 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
142 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
144 {
145 throw null;
146 }
147
148 [global::Cpp2ILInjected.Token(Token = "0x6000611")]
149 [global::Cpp2ILInjected.Address(RVA = "0x1F8EFF4", Offset = "0x1F8EFF4", Length = "0x1D0")]
150 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
151 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RenderTexture), Member = "GetDepthStencilFormatLegacy", MemberParameters = new object[]
152 {
153 typeof(int),
155 }, ReturnType = typeof(GraphicsFormat))]
156 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
157 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Debug), Member = "Assert", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
158 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SystemInfo), Member = "IsFormatSupported", MemberParameters = new object[]
159 {
160 typeof(GraphicsFormat),
162 }, ReturnType = typeof(bool))]
163 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ArgumentException), Member = ".ctor", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(void))]
164 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 14)]
166 {
167 throw null;
168 }
169
170 [FreeFunction(IsThreadSafe = true)]
171 [global::Cpp2ILInjected.Token(Token = "0x6000612")]
172 [global::Cpp2ILInjected.Address(RVA = "0x1F8F1C4", Offset = "0x1F8F1C4", Length = "0x3C")]
173 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RenderTexture), Member = ".ctor", MemberParameters = new object[]
174 {
175 typeof(int),
176 typeof(int),
177 typeof(int),
179 typeof(int)
180 }, ReturnType = typeof(void))]
181 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RenderTexture), Member = ".ctor", MemberParameters = new object[]
182 {
183 typeof(int),
184 typeof(int),
185 typeof(GraphicsFormat),
186 typeof(GraphicsFormat),
187 typeof(int)
188 }, ReturnType = typeof(void))]
189 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RenderTexture), Member = "Initialize", MemberParameters = new object[]
190 {
191 typeof(int),
192 typeof(int),
193 typeof(int),
196 typeof(int)
197 }, ReturnType = typeof(void))]
198 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
199 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
200 [MethodImpl(4096)]
201 public static extern bool IsSRGBFormat(GraphicsFormat format);
202
203 [FreeFunction("IsAnyCompressedTextureFormat", true)]
204 [global::Cpp2ILInjected.Token(Token = "0x6000613")]
205 [global::Cpp2ILInjected.Address(RVA = "0x1F8F200", Offset = "0x1F8F200", Length = "0x3C")]
206 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture), Member = "ValidateFormat", MemberParameters = new object[] { typeof(TextureFormat) }, ReturnType = typeof(bool))]
207 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
208 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
209 [MethodImpl(4096)]
210 internal static extern bool IsCompressedTextureFormat(TextureFormat format);
211
212 [FreeFunction(IsThreadSafe = true)]
213 [global::Cpp2ILInjected.Token(Token = "0x6000614")]
214 [global::Cpp2ILInjected.Address(RVA = "0x1F8F23C", Offset = "0x1F8F23C", Length = "0x44")]
215 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
216 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
217 [MethodImpl(4096)]
218 private static extern bool CanDecompressFormat(GraphicsFormat format, bool wholeImage);
219
220 [global::Cpp2ILInjected.Token(Token = "0x6000615")]
221 [global::Cpp2ILInjected.Address(RVA = "0x1F8F280", Offset = "0x1F8F280", Length = "0x78")]
222 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture), Member = "ValidateFormat", MemberParameters = new object[] { typeof(TextureFormat) }, ReturnType = typeof(bool))]
223 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
224 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
226 {
227 throw null;
228 }
229
230 [FreeFunction(IsThreadSafe = true)]
231 [global::Cpp2ILInjected.Token(Token = "0x6000616")]
232 [global::Cpp2ILInjected.Address(RVA = "0x1F8F2F8", Offset = "0x1F8F2F8", Length = "0x3C")]
233 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RenderTexture), Member = "ValidateRenderTextureDesc", MemberParameters = new object[] { typeof(RenderTextureDescriptor) }, ReturnType = typeof(void))]
234 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
235 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
236 [MethodImpl(4096)]
237 public static extern bool IsDepthFormat(GraphicsFormat format);
238
239 [FreeFunction(IsThreadSafe = true)]
240 [global::Cpp2ILInjected.Token(Token = "0x6000617")]
241 [global::Cpp2ILInjected.Address(RVA = "0x1F8F334", Offset = "0x1F8F334", Length = "0x3C")]
242 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(RenderTexture), Member = "ValidateRenderTextureDesc", MemberParameters = new object[] { typeof(RenderTextureDescriptor) }, ReturnType = typeof(void))]
243 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
244 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
245 [MethodImpl(4096)]
246 public static extern bool IsStencilFormat(GraphicsFormat format);
247
248 [FreeFunction(IsThreadSafe = true)]
249 [global::Cpp2ILInjected.Token(Token = "0x6000618")]
250 [global::Cpp2ILInjected.Address(RVA = "0x1F8F370", Offset = "0x1F8F370", Length = "0x3C")]
251 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Cubemap), Member = "ValidateFormat", MemberParameters = new object[]
252 {
254 typeof(int)
255 }, ReturnType = typeof(bool))]
256 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture2DArray), Member = "ValidateFormat", MemberParameters = new object[]
257 {
259 typeof(int),
260 typeof(int)
261 }, ReturnType = typeof(bool))]
262 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
263 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
264 [MethodImpl(4096)]
265 public static extern bool IsPVRTCFormat(GraphicsFormat format);
266
267 [global::Cpp2ILInjected.Token(Token = "0x6000619")]
268 [global::Cpp2ILInjected.Address(RVA = "0x1F8F3AC", Offset = "0x1F8F3AC", Length = "0x24")]
269 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
270 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture2D), Member = ".ctor", MemberParameters = new object[]
271 {
272 typeof(int),
273 typeof(int),
275 typeof(int),
276 typeof(bool),
278 }, ReturnType = typeof(void))]
279 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Cubemap), Member = ".ctor", MemberParameters = new object[]
280 {
281 typeof(int),
283 typeof(int),
285 }, ReturnType = typeof(void))]
286 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture3D), Member = ".ctor", MemberParameters = new object[]
287 {
288 typeof(int),
289 typeof(int),
290 typeof(int),
292 typeof(int)
293 }, ReturnType = typeof(void))]
294 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture3D), Member = ".ctor", MemberParameters = new object[]
295 {
296 typeof(int),
297 typeof(int),
298 typeof(int),
300 typeof(int),
302 }, ReturnType = typeof(void))]
303 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Texture2DArray), Member = ".ctor", MemberParameters = new object[]
304 {
305 typeof(int),
306 typeof(int),
307 typeof(int),
309 typeof(int),
310 typeof(bool)
311 }, ReturnType = typeof(void))]
312 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(CubemapArray), Member = ".ctor", MemberParameters = new object[]
313 {
314 typeof(int),
315 typeof(int),
317 typeof(int),
318 typeof(bool)
319 }, ReturnType = typeof(void))]
320 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 6)]
322 {
323 throw null;
324 }
325
326 // Note: this type is marked as 'beforefieldinit'.
327 [global::Cpp2ILInjected.Token(Token = "0x600061A")]
328 [global::Cpp2ILInjected.Address(RVA = "0x1F8F3D0", Offset = "0x1F8F3D0", Length = "0x98")]
329 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
330 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
332 {
333 throw null;
334 }
335
336 [global::Cpp2ILInjected.Token(Token = "0x400055E")]
338
339 [global::Cpp2ILInjected.Token(Token = "0x400055F")]
341 }
342}
class f__AnonymousType0<< Count > j__TPar
static GraphicsFormat GetDepthStencilFormat(int minimumDepthBits, int minimumStencilBits)
static bool IsCompressedTextureFormat(TextureFormat format)
static GraphicsFormat GetDepthStencilFormat(int minimumDepthBits)
static GraphicsFormat GetGraphicsFormat_Native_RenderTextureFormat(RenderTextureFormat format, bool isSRGB)
static bool IsPVRTCFormat(GraphicsFormat format)
static bool IsSRGBFormat(GraphicsFormat format)
static GraphicsFormat GetGraphicsFormat(RenderTextureFormat format, bool isSRGB)
static bool IsDepthFormat(GraphicsFormat format)
static bool IsStencilFormat(GraphicsFormat format)
static bool CanDecompressFormat(GraphicsFormat format, bool wholeImage)
static GraphicsFormat GetGraphicsFormat_Native_TextureFormat(TextureFormat format, bool isSRGB)
static GraphicsFormat GetGraphicsFormat(TextureFormat format, bool isSRGB)
static GraphicsFormat GetDepthStencilFormatFromBitsLegacy_Native(int minimumDepthBits)
static GraphicsFormat GetGraphicsFormat(RenderTextureFormat format, RenderTextureReadWrite readWrite)