engage/generated/unity_engine/rendering/
graphicsdevicetype.rs1#[cfg(feature = "unity_engine-rendering-graphicsdevicetype-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/graphicsdevicetype/GraphicsDeviceType.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct GraphicsDeviceType {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for GraphicsDeviceType {
21 const NAME: &'static str = "GraphicsDeviceType";
22 const NAMESPACE: &'static str = "UnityEngine.Rendering";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for GraphicsDeviceType {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl GraphicsDeviceType {
35 pub fn open_gl2() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn direct3_d9() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn direct3_d11() -> Self {
44 Self { value: 2 }
45 }
46
47 pub fn play_station3() -> Self {
48 Self { value: 3 }
49 }
50
51 pub fn null() -> Self {
52 Self { value: 4 }
53 }
54
55 pub fn xbox360() -> Self {
56 Self { value: 6 }
57 }
58
59 pub fn open_gles2() -> Self {
60 Self { value: 8 }
61 }
62
63 pub fn open_gles3() -> Self {
64 Self { value: 11 }
65 }
66
67 pub fn play_station_vita() -> Self {
68 Self { value: 12 }
69 }
70
71 pub fn play_station4() -> Self {
72 Self { value: 13 }
73 }
74
75 pub fn xbox_one() -> Self {
76 Self { value: 14 }
77 }
78
79 pub fn play_station_mobile() -> Self {
80 Self { value: 15 }
81 }
82
83 pub fn metal() -> Self {
84 Self { value: 16 }
85 }
86
87 pub fn open_gl_core() -> Self {
88 Self { value: 17 }
89 }
90
91 pub fn direct3_d12() -> Self {
92 Self { value: 18 }
93 }
94
95 pub fn n3ds() -> Self {
96 Self { value: 19 }
97 }
98
99 pub fn vulkan() -> Self {
100 Self { value: 21 }
101 }
102
103 pub fn switch() -> Self {
104 Self { value: 22 }
105 }
106
107 pub fn xbox_one_d3d12() -> Self {
108 Self { value: 23 }
109 }
110
111 pub fn game_core_xbox_one() -> Self {
112 Self { value: 24 }
113 }
114
115 pub fn game_core_scarlett() -> Self {
116 Self { value: 25 }
117 }
118
119 pub fn game_core_xbox_series() -> Self {
120 Self { value: 25 }
121 }
122
123 pub fn play_station5() -> Self {
124 Self { value: 26 }
125 }
126
127 pub fn play_station5_nggc() -> Self {
128 Self { value: 27 }
129 }
130 }
131}
132
133#[cfg(feature = "unity_engine-rendering-graphicsdevicetype-types")]
134pub use __types::*;
135
136#[cfg(feature = "unity_engine-rendering-graphicsdevicetype")]
137#[doc(hidden)]
138pub mod prelude {
139 pub use super::GraphicsDeviceType;
140 #[cfg(feature = "system-object")]
141 pub use crate::system::object::IObjectMethods;
142 #[cfg(feature = "system-enum")]
143 pub use crate::system::r#enum::IEnumMethods;
144 #[cfg(feature = "system-valuetype")]
145 pub use crate::system::valuetype::IValueTypeMethods;
146 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
147}