engage/generated/unity_engine/
textureformat.rs1#[cfg(feature = "unity_engine-textureformat-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/textureformat/TextureFormat.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct TextureFormat {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for TextureFormat {
21 const NAME: &'static str = "TextureFormat";
22 const NAMESPACE: &'static str = "UnityEngine";
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 TextureFormat {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl TextureFormat {
35 pub fn alpha8() -> Self {
36 Self { value: 1 }
37 }
38
39 pub fn argb4444() -> Self {
40 Self { value: 2 }
41 }
42
43 pub fn rgb24() -> Self {
44 Self { value: 3 }
45 }
46
47 pub fn rgba32() -> Self {
48 Self { value: 4 }
49 }
50
51 pub fn argb32() -> Self {
52 Self { value: 5 }
53 }
54
55 pub fn rgb565() -> Self {
56 Self { value: 7 }
57 }
58
59 pub fn r16() -> Self {
60 Self { value: 9 }
61 }
62
63 pub fn dxt1() -> Self {
64 Self { value: 10 }
65 }
66
67 pub fn dxt5() -> Self {
68 Self { value: 12 }
69 }
70
71 pub fn rgba4444() -> Self {
72 Self { value: 13 }
73 }
74
75 pub fn bgra32() -> Self {
76 Self { value: 14 }
77 }
78
79 pub fn r_half() -> Self {
80 Self { value: 15 }
81 }
82
83 pub fn rg_half() -> Self {
84 Self { value: 16 }
85 }
86
87 pub fn rgba_half() -> Self {
88 Self { value: 17 }
89 }
90
91 pub fn r_float() -> Self {
92 Self { value: 18 }
93 }
94
95 pub fn rg_float() -> Self {
96 Self { value: 19 }
97 }
98
99 pub fn rgba_float() -> Self {
100 Self { value: 20 }
101 }
102
103 pub fn yuy2() -> Self {
104 Self { value: 21 }
105 }
106
107 pub fn rgb9e5_float() -> Self {
108 Self { value: 22 }
109 }
110
111 pub fn bc4() -> Self {
112 Self { value: 26 }
113 }
114
115 pub fn bc5() -> Self {
116 Self { value: 27 }
117 }
118
119 pub fn bc6h() -> Self {
120 Self { value: 24 }
121 }
122
123 pub fn bc7() -> Self {
124 Self { value: 25 }
125 }
126
127 pub fn dxt1_crunched() -> Self {
128 Self { value: 28 }
129 }
130
131 pub fn dxt5_crunched() -> Self {
132 Self { value: 29 }
133 }
134
135 pub fn pvrtc_rgb2() -> Self {
136 Self { value: 30 }
137 }
138
139 pub fn pvrtc_rgba2() -> Self {
140 Self { value: 31 }
141 }
142
143 pub fn pvrtc_rgb4() -> Self {
144 Self { value: 32 }
145 }
146
147 pub fn pvrtc_rgba4() -> Self {
148 Self { value: 33 }
149 }
150
151 pub fn etc_rgb4() -> Self {
152 Self { value: 34 }
153 }
154
155 pub fn eac_r() -> Self {
156 Self { value: 41 }
157 }
158
159 pub fn eac_r_signed() -> Self {
160 Self { value: 42 }
161 }
162
163 pub fn eac_rg() -> Self {
164 Self { value: 43 }
165 }
166
167 pub fn eac_rg_signed() -> Self {
168 Self { value: 44 }
169 }
170
171 pub fn etc2_rgb() -> Self {
172 Self { value: 45 }
173 }
174
175 pub fn etc2_rgba1() -> Self {
176 Self { value: 46 }
177 }
178
179 pub fn etc2_rgba8() -> Self {
180 Self { value: 47 }
181 }
182
183 pub fn astc_4x4() -> Self {
184 Self { value: 48 }
185 }
186
187 pub fn astc_5x5() -> Self {
188 Self { value: 49 }
189 }
190
191 pub fn astc_6x6() -> Self {
192 Self { value: 50 }
193 }
194
195 pub fn astc_8x8() -> Self {
196 Self { value: 51 }
197 }
198
199 pub fn astc_10x10() -> Self {
200 Self { value: 52 }
201 }
202
203 pub fn astc_12x12() -> Self {
204 Self { value: 53 }
205 }
206
207 pub fn etc_rgb4_3ds() -> Self {
208 Self { value: 60 }
209 }
210
211 pub fn etc_rgba8_3ds() -> Self {
212 Self { value: 61 }
213 }
214
215 pub fn rg16() -> Self {
216 Self { value: 62 }
217 }
218
219 pub fn r8() -> Self {
220 Self { value: 63 }
221 }
222
223 pub fn etc_rgb4_crunched() -> Self {
224 Self { value: 64 }
225 }
226
227 pub fn etc2_rgba8_crunched() -> Self {
228 Self { value: 65 }
229 }
230
231 pub fn astc_hdr_4x4() -> Self {
232 Self { value: 66 }
233 }
234
235 pub fn astc_hdr_5x5() -> Self {
236 Self { value: 67 }
237 }
238
239 pub fn astc_hdr_6x6() -> Self {
240 Self { value: 68 }
241 }
242
243 pub fn astc_hdr_8x8() -> Self {
244 Self { value: 69 }
245 }
246
247 pub fn astc_hdr_10x10() -> Self {
248 Self { value: 70 }
249 }
250
251 pub fn astc_hdr_12x12() -> Self {
252 Self { value: 71 }
253 }
254
255 pub fn rg32() -> Self {
256 Self { value: 72 }
257 }
258
259 pub fn rgb48() -> Self {
260 Self { value: 73 }
261 }
262
263 pub fn rgba64() -> Self {
264 Self { value: 74 }
265 }
266
267 pub fn astc_rgb_4x4() -> Self {
268 Self { value: 48 }
269 }
270
271 pub fn astc_rgb_5x5() -> Self {
272 Self { value: 49 }
273 }
274
275 pub fn astc_rgb_6x6() -> Self {
276 Self { value: 50 }
277 }
278
279 pub fn astc_rgb_8x8() -> Self {
280 Self { value: 51 }
281 }
282
283 pub fn astc_rgb_10x10() -> Self {
284 Self { value: 52 }
285 }
286
287 pub fn astc_rgb_12x12() -> Self {
288 Self { value: 53 }
289 }
290
291 pub fn astc_rgba_4x4() -> Self {
292 Self { value: 54 }
293 }
294
295 pub fn astc_rgba_5x5() -> Self {
296 Self { value: 55 }
297 }
298
299 pub fn astc_rgba_6x6() -> Self {
300 Self { value: 56 }
301 }
302
303 pub fn astc_rgba_8x8() -> Self {
304 Self { value: 57 }
305 }
306
307 pub fn astc_rgba_10x10() -> Self {
308 Self { value: 58 }
309 }
310
311 pub fn astc_rgba_12x12() -> Self {
312 Self { value: 59 }
313 }
314 }
315}
316
317#[cfg(feature = "unity_engine-textureformat-types")]
318pub use __types::*;
319
320#[cfg(feature = "unity_engine-textureformat")]
321#[doc(hidden)]
322pub mod prelude {
323 pub use super::TextureFormat;
324 #[cfg(feature = "system-object")]
325 pub use crate::system::object::IObjectMethods;
326 #[cfg(feature = "system-enum")]
327 pub use crate::system::r#enum::IEnumMethods;
328 #[cfg(feature = "system-valuetype")]
329 pub use crate::system::valuetype::IValueTypeMethods;
330 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
331}