engage/generated/unity_engine/
systeminfo.rs1#[cfg(feature = "unity_engine-systeminfo-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/systeminfo/SystemInfo.md"))]
11 #[::unity::class(namespace = "UnityEngine", name = "SystemInfo")]
12 #[parent(crate::system::object::Object)]
13 pub struct SystemInfo {}
14}
15
16#[cfg(feature = "unity_engine-systeminfo-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-systeminfo")]
20impl SystemInfo {
21 #[doc = "`get_operatingSystemFamily()` overload"]
22 pub fn get_operating_system_family() -> crate::unity_engine::operatingsystemfamily::OperatingSystemFamily {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x3787e60usize)as*mut u8,crate::unity_engine::operatingsystemfamily::OperatingSystemFamily;
25 )
26 }
27 }
28
29 #[doc = "`get_processorType()` overload"]
30 pub fn get_processor_type() -> ::unity::Il2CppString {
31 unsafe {
32 ::unity::il2cpp_call!((::unity::module_base()+0x3787ee0usize)as*mut u8, ::unity::Il2CppString;
33 )
34 }
35 }
36
37 #[doc = "`get_deviceType()` overload"]
38 pub fn get_device_type() -> crate::unity_engine::devicetype::DeviceType {
39 unsafe {
40 ::unity::il2cpp_call!((::unity::module_base()+0x3787f60usize)as*mut u8,crate::unity_engine::devicetype::DeviceType;
41 )
42 }
43 }
44
45 #[doc = "`get_graphicsDeviceVendor()` overload"]
46 pub fn get_graphics_device_vendor() -> ::unity::Il2CppString {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x3787fe0usize)as*mut u8, ::unity::Il2CppString;
49 )
50 }
51 }
52
53 #[doc = "`get_graphicsDeviceType()` overload"]
54 pub fn get_graphics_device_type() -> crate::unity_engine::rendering::graphicsdevicetype::GraphicsDeviceType {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x3788060usize)as*mut u8,crate::unity_engine::rendering::graphicsdevicetype::GraphicsDeviceType;
57 )
58 }
59 }
60
61 #[doc = "`get_graphicsUVStartsAtTop()` overload"]
62 pub fn get_graphics_uv_starts_at_top() -> bool {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x37880e0usize)as*mut u8,bool;
65 )
66 }
67 }
68
69 #[doc = "`get_graphicsShaderLevel()` overload"]
70 pub fn get_graphics_shader_level() -> i32 {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x3788160usize)as*mut u8,i32;
73 )
74 }
75 }
76
77 #[doc = "`get_hasHiddenSurfaceRemovalOnGPU()` overload"]
78 pub fn get_has_hidden_surface_removal_on_gpu() -> bool {
79 unsafe {
80 ::unity::il2cpp_call!((::unity::module_base()+0x37881e0usize)as*mut u8,bool;
81 )
82 }
83 }
84
85 #[doc = "`get_supportsShadows()` overload"]
86 pub fn get_supports_shadows() -> bool {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x3788260usize)as*mut u8,bool;
89 )
90 }
91 }
92
93 #[doc = "`get_copyTextureSupport()` overload"]
94 pub fn get_copy_texture_support() -> crate::unity_engine::rendering::copytexturesupport::CopyTextureSupport {
95 unsafe {
96 ::unity::il2cpp_call!((::unity::module_base()+0x37882e0usize)as*mut u8,crate::unity_engine::rendering::copytexturesupport::CopyTextureSupport;
97 )
98 }
99 }
100
101 #[doc = "`get_supportsRenderTargetArrayIndexFromVertexShader()` overload"]
102 pub fn get_supports_render_target_array_index_from_vertex_shader() -> bool {
103 unsafe {
104 ::unity::il2cpp_call!((::unity::module_base()+0x3788360usize)as*mut u8,bool;
105 )
106 }
107 }
108
109 #[doc = "`get_supportedRenderTargetCount()` overload"]
110 pub fn get_supported_render_target_count() -> i32 {
111 unsafe {
112 ::unity::il2cpp_call!((::unity::module_base()+0x37883e0usize)as*mut u8,i32;
113 )
114 }
115 }
116
117 #[doc = "`get_supportsMultisampledTextures()` overload"]
118 pub fn get_supports_multisampled_textures() -> i32 {
119 unsafe {
120 ::unity::il2cpp_call!((::unity::module_base()+0x3788460usize)as*mut u8,i32;
121 )
122 }
123 }
124
125 #[doc = "`get_supportsMultisampleAutoResolve()` overload"]
126 pub fn get_supports_multisample_auto_resolve() -> bool {
127 unsafe {
128 ::unity::il2cpp_call!((::unity::module_base()+0x37884e0usize)as*mut u8,bool;
129 )
130 }
131 }
132
133 #[doc = "`get_usesReversedZBuffer()` overload"]
134 pub fn get_uses_reversed_z_buffer() -> bool {
135 unsafe {
136 ::unity::il2cpp_call!((::unity::module_base()+0x3788560usize)as*mut u8,bool;
137 )
138 }
139 }
140
141 #[doc = "`IsValidEnumValue(crate::system::r#enum::Enum)` overload"]
142 pub fn is_valid_enum_value(value: impl ::core::convert::Into<crate::system::r#enum::Enum>) -> bool {
143 unsafe {
144 ::unity::il2cpp_call!((::unity::module_base()+0x37885e0usize)as*mut u8,bool;
145(crate::system::r#enum::Enum)::core::convert::Into::into(value))
146 }
147 }
148
149 #[doc = "`SupportsRenderTextureFormat(crate::unity_engine::rendertextureformat::RenderTextureFormat)` overload"]
150 pub fn supports_render_texture_format(format: impl ::core::convert::Into<crate::unity_engine::rendertextureformat::RenderTextureFormat>) -> bool {
151 unsafe {
152 ::unity::il2cpp_call!((::unity::module_base()+0x3788660usize)as*mut u8,bool;
153(crate::unity_engine::rendertextureformat::RenderTextureFormat)::core::convert::Into::into(format))
154 }
155 }
156
157 #[doc = "`SupportsTextureFormat(crate::unity_engine::textureformat::TextureFormat)` overload"]
158 pub fn supports_texture_format(format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>) -> bool {
159 unsafe {
160 ::unity::il2cpp_call!((::unity::module_base()+0x37887f0usize)as*mut u8,bool;
161(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(format))
162 }
163 }
164
165 #[doc = "`get_supportsGraphicsFence()` overload"]
166 pub fn get_supports_graphics_fence() -> bool {
167 unsafe {
168 ::unity::il2cpp_call!((::unity::module_base()+0x3788980usize)as*mut u8,bool;
169 )
170 }
171 }
172
173 #[doc = "`get_supportsMultiview()` overload"]
174 pub fn get_supports_multiview() -> bool {
175 unsafe {
176 ::unity::il2cpp_call!((::unity::module_base()+0x3788a00usize)as*mut u8,bool;
177 )
178 }
179 }
180
181 #[doc = "`HasHiddenSurfaceRemovalOnGPU()` overload"]
182 pub fn has_hidden_surface_removal_on_gpu() -> bool {
183 unsafe {
184 ::unity::il2cpp_call!((::unity::module_base()+0x3788220usize)as*mut u8,bool;
185 )
186 }
187 }
188
189 #[doc = "`SupportsShadows()` overload"]
190 pub fn supports_shadows() -> bool {
191 unsafe {
192 ::unity::il2cpp_call!((::unity::module_base()+0x37882a0usize)as*mut u8,bool;
193 )
194 }
195 }
196
197 #[doc = "`SupportsRenderTargetArrayIndexFromVertexShader()` overload"]
198 pub fn supports_render_target_array_index_from_vertex_shader() -> bool {
199 unsafe {
200 ::unity::il2cpp_call!((::unity::module_base()+0x37883a0usize)as*mut u8,bool;
201 )
202 }
203 }
204
205 #[doc = "`SupportedRenderTargetCount()` overload"]
206 pub fn supported_render_target_count() -> i32 {
207 unsafe {
208 ::unity::il2cpp_call!((::unity::module_base()+0x3788420usize)as*mut u8,i32;
209 )
210 }
211 }
212
213 #[doc = "`SupportsMultisampledTextures()` overload"]
214 pub fn supports_multisampled_textures() -> i32 {
215 unsafe {
216 ::unity::il2cpp_call!((::unity::module_base()+0x37884a0usize)as*mut u8,i32;
217 )
218 }
219 }
220
221 #[doc = "`SupportsMultisampleAutoResolve()` overload"]
222 pub fn supports_multisample_auto_resolve() -> bool {
223 unsafe {
224 ::unity::il2cpp_call!((::unity::module_base()+0x3788520usize)as*mut u8,bool;
225 )
226 }
227 }
228
229 #[doc = "`UsesReversedZBuffer()` overload"]
230 pub fn uses_reversed_z_buffer() -> bool {
231 unsafe {
232 ::unity::il2cpp_call!((::unity::module_base()+0x37885a0usize)as*mut u8,bool;
233 )
234 }
235 }
236
237 #[doc = "`HasRenderTextureNative(crate::unity_engine::rendertextureformat::RenderTextureFormat)` overload"]
238 pub fn has_render_texture_native(format: impl ::core::convert::Into<crate::unity_engine::rendertextureformat::RenderTextureFormat>) -> bool {
239 unsafe {
240 ::unity::il2cpp_call!((::unity::module_base()+0x37887a0usize)as*mut u8,bool;
241(crate::unity_engine::rendertextureformat::RenderTextureFormat)::core::convert::Into::into(format))
242 }
243 }
244
245 #[doc = "`SupportsTextureFormatNative(crate::unity_engine::textureformat::TextureFormat)` overload"]
246 pub fn supports_texture_format_native(format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>) -> bool {
247 unsafe {
248 ::unity::il2cpp_call!((::unity::module_base()+0x3788930usize)as*mut u8,bool;
249(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(format))
250 }
251 }
252
253 #[doc = "`SupportsGPUFence()` overload"]
254 pub fn supports_gpu_fence() -> bool {
255 unsafe {
256 ::unity::il2cpp_call!((::unity::module_base()+0x37889c0usize)as*mut u8,bool;
257 )
258 }
259 }
260
261 #[doc = "`IsFormatSupported(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::formatusage::FormatUsage)` overload"]
262 pub fn is_format_supported(
263 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
264 usage: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::formatusage::FormatUsage>,
265 ) -> bool {
266 unsafe {
267 ::unity::il2cpp_call!((::unity::module_base()+0x3788a80usize)as*mut u8,bool;
268(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::formatusage::FormatUsage)::core::convert::Into::into(usage))
269 }
270 }
271
272 #[doc = "`GetCompatibleFormat(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::formatusage::FormatUsage)` overload"]
273 pub fn get_compatible_format(
274 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
275 usage: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::formatusage::FormatUsage>,
276 ) -> crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat {
277 unsafe {
278 ::unity::il2cpp_call!((::unity::module_base()+0x3788ad0usize)as*mut u8,crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat;
279(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::formatusage::FormatUsage)::core::convert::Into::into(usage))
280 }
281 }
282
283 #[doc = "`GetGraphicsFormat(crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat)` overload"]
284 pub fn get_graphics_format(
285 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat>,
286 ) -> crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat {
287 unsafe {
288 ::unity::il2cpp_call!((::unity::module_base()+0x3788b20usize)as*mut u8,crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat;
289(crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat)::core::convert::Into::into(format))
290 }
291 }
292
293 #[doc = "`GetRenderTextureSupportedMSAASampleCount(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)` overload"]
294 pub fn get_render_texture_supported_msaa_sample_count(
295 desc: impl ::core::convert::Into<crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor>,
296 ) -> i32 {
297 unsafe {
298 ::unity::il2cpp_call!((::unity::module_base()+0x3788b70usize)as*mut u8,i32;
299(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)::core::convert::Into::into(desc))
300 }
301 }
302
303 #[doc = "`SupportsMultiview()` overload"]
304 pub fn supports_multiview() -> bool {
305 unsafe {
306 ::unity::il2cpp_call!((::unity::module_base()+0x3788a40usize)as*mut u8,bool;
307 )
308 }
309 }
310
311 #[doc = "`GetRenderTextureSupportedMSAASampleCount_Injected(*mutcrate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)` overload"]
312 pub fn get_render_texture_supported_msaa_sample_count_injected() -> (i32, crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor) {
313 unsafe {
314 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor>::uninit();
315 let __ret = {
316 ::unity::il2cpp_call!((::unity::module_base()+0x3788bc0usize)as*mut u8,i32;
317(*mut crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)__out_0.as_mut_ptr())
318 };
319 (__ret, __out_0.assume_init())
320 }
321 }
322}
323
324#[cfg(feature = "unity_engine-systeminfo")]
325impl SystemInfo {
326 pub fn get_operating_system_family_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
328 }
329
330 pub fn get_processor_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
331 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
332 }
333
334 pub fn get_device_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
335 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
336 }
337
338 pub fn get_graphics_device_vendor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
339 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
340 }
341
342 pub fn get_graphics_device_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
343 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
344 }
345
346 pub fn get_graphics_uv_starts_at_top_method_info() -> &'static ::unity::il2cpp::MethodInfo {
347 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
348 }
349
350 pub fn get_graphics_shader_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
351 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
352 }
353
354 pub fn get_has_hidden_surface_removal_on_gpu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
355 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
356 }
357
358 pub fn get_supports_shadows_method_info() -> &'static ::unity::il2cpp::MethodInfo {
359 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
360 }
361
362 pub fn get_copy_texture_support_method_info() -> &'static ::unity::il2cpp::MethodInfo {
363 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
364 }
365
366 pub fn get_supports_render_target_array_index_from_vertex_shader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
367 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
368 }
369
370 pub fn get_supported_render_target_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
371 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
372 }
373
374 pub fn get_supports_multisampled_textures_method_info() -> &'static ::unity::il2cpp::MethodInfo {
375 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
376 }
377
378 pub fn get_supports_multisample_auto_resolve_method_info() -> &'static ::unity::il2cpp::MethodInfo {
379 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
380 }
381
382 pub fn get_uses_reversed_z_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
383 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
384 }
385
386 pub fn is_valid_enum_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
387 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
388 }
389
390 pub fn supports_render_texture_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
391 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
392 }
393
394 pub fn supports_texture_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
395 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
396 }
397
398 pub fn get_supports_graphics_fence_method_info() -> &'static ::unity::il2cpp::MethodInfo {
399 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
400 }
401
402 pub fn get_supports_multiview_method_info() -> &'static ::unity::il2cpp::MethodInfo {
403 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
404 }
405
406 pub fn has_hidden_surface_removal_on_gpu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
408 }
409
410 pub fn supports_shadows_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
412 }
413
414 pub fn supports_render_target_array_index_from_vertex_shader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
416 }
417
418 pub fn supported_render_target_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
420 }
421
422 pub fn supports_multisampled_textures_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
424 }
425
426 pub fn supports_multisample_auto_resolve_method_info() -> &'static ::unity::il2cpp::MethodInfo {
427 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
428 }
429
430 pub fn uses_reversed_z_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
431 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
432 }
433
434 pub fn has_render_texture_native_method_info() -> &'static ::unity::il2cpp::MethodInfo {
435 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
436 }
437
438 pub fn supports_texture_format_native_method_info() -> &'static ::unity::il2cpp::MethodInfo {
439 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
440 }
441
442 pub fn supports_gpu_fence_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[37]
444 }
445
446 pub fn is_format_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[38]
448 }
449
450 pub fn get_compatible_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[39]
452 }
453
454 pub fn get_graphics_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
456 }
457
458 pub fn get_render_texture_supported_msaa_sample_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
460 }
461
462 pub fn supports_multiview_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
464 }
465
466 pub fn get_render_texture_supported_msaa_sample_count_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
468 }
469}
470
471#[cfg(feature = "unity_engine-systeminfo")]
472#[doc(hidden)]
473pub mod prelude {
474 pub use super::{ISystemInfo, SystemInfo};
475 pub use crate::system::object::IObject;
476 #[cfg(feature = "system-object")]
477 pub use crate::system::object::IObjectMethods;
478}