1#[cfg(feature = "unity_engine-cubemap-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::{
11 object_2::{IObject_2, Object_2},
12 texture::{ITexture, Texture},
13 },
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/cubemap/Cubemap.md"))]
17 #[::unity::class(namespace = "UnityEngine", name = "Cubemap")]
18 #[parent(crate::unity_engine::texture::Texture)]
19 pub struct Cubemap {}
20}
21
22#[cfg(feature = "unity_engine-cubemap-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-cubemap")]
26impl Cubemap {
27 #[doc = "`Internal_CreateImpl(crate::unity_engine::cubemap::Cubemap, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, ::unity::IntPtr)` overload"]
28 pub fn internal_create_impl(
29 mono: impl ::core::convert::Into<crate::unity_engine::cubemap::Cubemap>,
30 ext: impl ::core::convert::Into<i32>,
31 mip_count: impl ::core::convert::Into<i32>,
32 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
33 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
34 native_tex: impl ::core::convert::Into<::unity::IntPtr>,
35 ) -> bool {
36 unsafe {
37 ::unity::il2cpp_call!((::unity::module_base()+0x2c47620usize)as*mut u8,bool;
38(crate::unity_engine::cubemap::Cubemap)::core::convert::Into::into(mono),(i32)::core::convert::Into::into(ext),(i32)::core::convert::Into::into(mip_count),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags),(::unity::IntPtr)::core::convert::Into::into(native_tex))
39 }
40 }
41
42 #[doc = "`Internal_Create(crate::unity_engine::cubemap::Cubemap, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, ::unity::IntPtr)` overload"]
43 pub fn internal_create(
44 mono: impl ::core::convert::Into<crate::unity_engine::cubemap::Cubemap>,
45 ext: impl ::core::convert::Into<i32>,
46 mip_count: impl ::core::convert::Into<i32>,
47 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
48 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
49 native_tex: impl ::core::convert::Into<::unity::IntPtr>,
50 ) -> () {
51 unsafe {
52 ::unity::il2cpp_call!((::unity::module_base()+0x2c476a0usize)as*mut u8,();
53(crate::unity_engine::cubemap::Cubemap)::core::convert::Into::into(mono),(i32)::core::convert::Into::into(ext),(i32)::core::convert::Into::into(mip_count),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags),(::unity::IntPtr)::core::convert::Into::into(native_tex))
54 }
55 }
56
57 #[doc = "`CreateExternalTexture(i32, crate::unity_engine::textureformat::TextureFormat, bool, ::unity::IntPtr)` overload"]
58 pub fn create_external_texture(
59 width: impl ::core::convert::Into<i32>,
60 format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
61 mipmap: impl ::core::convert::Into<bool>,
62 native_tex: impl ::core::convert::Into<::unity::IntPtr>,
63 ) -> crate::unity_engine::cubemap::Cubemap {
64 unsafe {
65 ::unity::il2cpp_call!((::unity::module_base()+0x2c48790usize)as*mut u8,crate::unity_engine::cubemap::Cubemap;
66(i32)::core::convert::Into::into(width),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(format),(bool)::core::convert::Into::into(mipmap),(::unity::IntPtr)::core::convert::Into::into(native_tex))
67 }
68 }
69
70 #[doc = "`ValidateIsNotCrunched(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
71 pub fn validate_is_not_crunched(
72 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
73 ) -> () {
74 unsafe {
75 ::unity::il2cpp_call!((::unity::module_base()+0x2c48620usize)as*mut u8,();
76(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
77 }
78 }
79}
80
81#[cfg(feature = "unity_engine-cubemap")]
82pub trait ICubemapMethods: ICubemap {
83 #[doc = "`get_format()` overload"]
84 fn get_format(self) -> crate::unity_engine::textureformat::TextureFormat {
85 unsafe {
86 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87 ::unity::il2cpp_call!((::unity::module_base()+0x2c475d0usize)as*mut u8,crate::unity_engine::textureformat::TextureFormat;
88(Cubemap)__receiver)
89 }
90 }
91 #[doc = "`ApplyImpl(bool, bool)` overload"]
92 fn apply_impl(self, update_mipmaps: impl ::core::convert::Into<bool>, make_no_longer_readable: impl ::core::convert::Into<bool>) -> () {
93 unsafe {
94 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
95 ::unity::il2cpp_call!((::unity::module_base()+0x2c47770usize)as*mut u8,();
96(Cubemap)__receiver,(bool)::core::convert::Into::into(update_mipmaps),(bool)::core::convert::Into::into(make_no_longer_readable))
97 }
98 }
99 #[doc = "`UpdateExternalTexture(::unity::IntPtr)` overload"]
100 fn update_external_texture(self, native_texture: impl ::core::convert::Into<::unity::IntPtr>) -> () {
101 unsafe {
102 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
103 ::unity::il2cpp_call!((::unity::module_base()+0x2c477d0usize)as*mut u8,();
104(Cubemap)__receiver,(::unity::IntPtr)::core::convert::Into::into(native_texture))
105 }
106 }
107 #[doc = "`get_isReadable()` overload"]
108 fn get_is_readable(self) -> bool {
109 unsafe {
110 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 {
112 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
114 panic!(
115 "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120 11usize,
121 __vt.len(),
122 <Cubemap as ::unity::ClassIdentity>::NAME,
123 "get_isReadable",
124 )
125 });
126 let __inner: extern "C" fn(Cubemap, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
127 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
128 __inner(__receiver, __mi)
129 }
130 }
131 }
132 #[doc = "`SetPixelImpl(i32, i32, i32, crate::unity_engine::color::Color)` overload"]
133 fn set_pixel_impl(
134 self,
135 image: impl ::core::convert::Into<i32>,
136 x: impl ::core::convert::Into<i32>,
137 y: impl ::core::convert::Into<i32>,
138 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
139 ) -> () {
140 unsafe {
141 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142 ::unity::il2cpp_call!((::unity::module_base()+0x2c47870usize)as*mut u8,();
143(Cubemap)__receiver,(i32)::core::convert::Into::into(image),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
144 }
145 }
146 #[doc = "`GetPixelImpl(i32, i32, i32)` overload"]
147 fn get_pixel_impl(
148 self,
149 image: impl ::core::convert::Into<i32>,
150 x: impl ::core::convert::Into<i32>,
151 y: impl ::core::convert::Into<i32>,
152 ) -> crate::unity_engine::color::Color {
153 unsafe {
154 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!((::unity::module_base()+0x2c47960usize)as*mut u8,crate::unity_engine::color::Color;
156(Cubemap)__receiver,(i32)::core::convert::Into::into(image),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y))
157 }
158 }
159 #[doc = "`SmoothEdges(i32)` overload"]
160 fn smooth_edges(self, smooth_region_width_in_pixels: impl ::core::convert::Into<i32>) -> () {
161 unsafe {
162 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163 ::unity::il2cpp_call!((::unity::module_base()+0x2c47a60usize)as*mut u8,();
164(Cubemap)__receiver,(i32)::core::convert::Into::into(smooth_region_width_in_pixels))
165 }
166 }
167 #[doc = "`SmoothEdges()` overload"]
168 fn smooth_edges_2(self) -> () {
169 unsafe {
170 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 ::unity::il2cpp_call!((::unity::module_base()+0x2c47ab0usize)as*mut u8,();
172(Cubemap)__receiver)
173 }
174 }
175 #[doc = "`GetPixels(crate::unity_engine::cubemapface::CubemapFace, i32)` overload"]
176 fn get_pixels(
177 self,
178 face: impl ::core::convert::Into<crate::unity_engine::cubemapface::CubemapFace>,
179 miplevel: impl ::core::convert::Into<i32>,
180 ) -> ::unity::Array<crate::unity_engine::color::Color> {
181 unsafe {
182 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x2c47b00usize)as*mut u8, ::unity::Array<crate::unity_engine::color::Color> ;
184(Cubemap)__receiver,(crate::unity_engine::cubemapface::CubemapFace)::core::convert::Into::into(face),(i32)::core::convert::Into::into(miplevel))
185 }
186 }
187 #[doc = "`GetPixels(crate::unity_engine::cubemapface::CubemapFace)` overload"]
188 fn get_pixels_2(
189 self,
190 face: impl ::core::convert::Into<crate::unity_engine::cubemapface::CubemapFace>,
191 ) -> ::unity::Array<crate::unity_engine::color::Color> {
192 unsafe {
193 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
194 ::unity::il2cpp_call!((::unity::module_base()+0x2c47b60usize)as*mut u8, ::unity::Array<crate::unity_engine::color::Color> ;
195(Cubemap)__receiver,(crate::unity_engine::cubemapface::CubemapFace)::core::convert::Into::into(face))
196 }
197 }
198 #[doc = "`SetPixels(::unity::Array<crate::unity_engine::color::Color>, crate::unity_engine::cubemapface::CubemapFace, i32)` overload"]
199 fn set_pixels(
200 self,
201 colors: impl ::core::convert::Into<::unity::Array<crate::unity_engine::color::Color>>,
202 face: impl ::core::convert::Into<crate::unity_engine::cubemapface::CubemapFace>,
203 miplevel: impl ::core::convert::Into<i32>,
204 ) -> () {
205 unsafe {
206 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x2c47bc0usize)as*mut u8,();
208(Cubemap)__receiver,(::unity::Array<crate::unity_engine::color::Color>)::core::convert::Into::into(colors),(crate::unity_engine::cubemapface::CubemapFace)::core::convert::Into::into(face),(i32)::core::convert::Into::into(miplevel))
209 }
210 }
211 #[doc = "`SetPixelDataImplArray(::unity::IlInstance, i32, i32, i32, i32, i32)` overload"]
212 fn set_pixel_data_impl_array(
213 self,
214 data: impl ::core::convert::Into<::unity::IlInstance>,
215 mip_level: impl ::core::convert::Into<i32>,
216 face: impl ::core::convert::Into<i32>,
217 element_size: impl ::core::convert::Into<i32>,
218 data_array_size: impl ::core::convert::Into<i32>,
219 source_data_start_index: impl ::core::convert::Into<i32>,
220 ) -> bool {
221 unsafe {
222 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
223 ::unity::il2cpp_call!((::unity::module_base()+0x2c47c30usize)as*mut u8,bool;
224(Cubemap)__receiver,(::unity::IlInstance)::core::convert::Into::into(data),(i32)::core::convert::Into::into(mip_level),(i32)::core::convert::Into::into(face),(i32)::core::convert::Into::into(element_size),(i32)::core::convert::Into::into(data_array_size),(i32)::core::convert::Into::into(source_data_start_index))
225 }
226 }
227 #[doc = "`SetPixelDataImpl(::unity::IntPtr, i32, i32, i32, i32, i32)` overload"]
228 fn set_pixel_data_impl(
229 self,
230 data: impl ::core::convert::Into<::unity::IntPtr>,
231 mip_level: impl ::core::convert::Into<i32>,
232 face: impl ::core::convert::Into<i32>,
233 element_size: impl ::core::convert::Into<i32>,
234 data_array_size: impl ::core::convert::Into<i32>,
235 source_data_start_index: impl ::core::convert::Into<i32>,
236 ) -> bool {
237 unsafe {
238 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
239 ::unity::il2cpp_call!((::unity::module_base()+0x2c47cc0usize)as*mut u8,bool;
240(Cubemap)__receiver,(::unity::IntPtr)::core::convert::Into::into(data),(i32)::core::convert::Into::into(mip_level),(i32)::core::convert::Into::into(face),(i32)::core::convert::Into::into(element_size),(i32)::core::convert::Into::into(data_array_size),(i32)::core::convert::Into::into(source_data_start_index))
241 }
242 }
243 #[doc = "`SetPixels(::unity::Array<crate::unity_engine::color::Color>, crate::unity_engine::cubemapface::CubemapFace)` overload"]
244 fn set_pixels_2(
245 self,
246 colors: impl ::core::convert::Into<::unity::Array<crate::unity_engine::color::Color>>,
247 face: impl ::core::convert::Into<crate::unity_engine::cubemapface::CubemapFace>,
248 ) -> () {
249 unsafe {
250 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251 ::unity::il2cpp_call!((::unity::module_base()+0x2c47d50usize)as*mut u8,();
252(Cubemap)__receiver,(::unity::Array<crate::unity_engine::color::Color>)::core::convert::Into::into(colors),(crate::unity_engine::cubemapface::CubemapFace)::core::convert::Into::into(face))
253 }
254 }
255 #[doc = "`GetWritableImageData(i32)` overload"]
256 fn get_writable_image_data(self, frame: impl ::core::convert::Into<i32>) -> ::unity::IntPtr {
257 unsafe {
258 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
259 ::unity::il2cpp_call!((::unity::module_base()+0x2c47db0usize)as*mut u8, ::unity::IntPtr;
260(Cubemap)__receiver,(i32)::core::convert::Into::into(frame))
261 }
262 }
263 #[doc = "`get_isPreProcessed()` overload"]
264 fn get_is_pre_processed(self) -> bool {
265 unsafe {
266 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267 ::unity::il2cpp_call!((::unity::module_base()+0x2c47e00usize)as*mut u8,bool;
268(Cubemap)__receiver)
269 }
270 }
271 #[doc = "`get_streamingMipmaps()` overload"]
272 fn get_streaming_mipmaps(self) -> bool {
273 unsafe {
274 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
275 ::unity::il2cpp_call!((::unity::module_base()+0x2c47e50usize)as*mut u8,bool;
276(Cubemap)__receiver)
277 }
278 }
279 #[doc = "`get_streamingMipmapsPriority()` overload"]
280 fn get_streaming_mipmaps_priority(self) -> i32 {
281 unsafe {
282 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
283 ::unity::il2cpp_call!((::unity::module_base()+0x2c47ea0usize)as*mut u8,i32;
284(Cubemap)__receiver)
285 }
286 }
287 #[doc = "`get_requestedMipmapLevel()` overload"]
288 fn get_requested_mipmap_level(self) -> i32 {
289 unsafe {
290 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291 ::unity::il2cpp_call!((::unity::module_base()+0x2c47ef0usize)as*mut u8,i32;
292(Cubemap)__receiver)
293 }
294 }
295 #[doc = "`set_requestedMipmapLevel(i32)` overload"]
296 fn set_requested_mipmap_level(self, value: impl ::core::convert::Into<i32>) -> () {
297 unsafe {
298 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
299 ::unity::il2cpp_call!((::unity::module_base()+0x2c47f40usize)as*mut u8,();
300(Cubemap)__receiver,(i32)::core::convert::Into::into(value))
301 }
302 }
303 #[doc = "`get_loadAllMips()` overload"]
304 fn get_load_all_mips(self) -> bool {
305 unsafe {
306 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
307 ::unity::il2cpp_call!((::unity::module_base()+0x2c47f90usize)as*mut u8,bool;
308(Cubemap)__receiver)
309 }
310 }
311 #[doc = "`set_loadAllMips(bool)` overload"]
312 fn set_load_all_mips(self, value: impl ::core::convert::Into<bool>) -> () {
313 unsafe {
314 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315 ::unity::il2cpp_call!((::unity::module_base()+0x2c47fe0usize)as*mut u8,();
316(Cubemap)__receiver,(bool)::core::convert::Into::into(value))
317 }
318 }
319 #[doc = "`get_desiredMipmapLevel()` overload"]
320 fn get_desired_mipmap_level(self) -> i32 {
321 unsafe {
322 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
323 ::unity::il2cpp_call!((::unity::module_base()+0x2c48030usize)as*mut u8,i32;
324(Cubemap)__receiver)
325 }
326 }
327 #[doc = "`get_loadingMipmapLevel()` overload"]
328 fn get_loading_mipmap_level(self) -> i32 {
329 unsafe {
330 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
331 ::unity::il2cpp_call!((::unity::module_base()+0x2c48080usize)as*mut u8,i32;
332(Cubemap)__receiver)
333 }
334 }
335 #[doc = "`get_loadedMipmapLevel()` overload"]
336 fn get_loaded_mipmap_level(self) -> i32 {
337 unsafe {
338 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
339 ::unity::il2cpp_call!((::unity::module_base()+0x2c480d0usize)as*mut u8,i32;
340(Cubemap)__receiver)
341 }
342 }
343 #[doc = "`ClearRequestedMipmapLevel()` overload"]
344 fn clear_requested_mipmap_level(self) -> () {
345 unsafe {
346 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
347 ::unity::il2cpp_call!((::unity::module_base()+0x2c48120usize)as*mut u8,();
348(Cubemap)__receiver)
349 }
350 }
351 #[doc = "`IsRequestedMipmapLevelLoaded()` overload"]
352 fn is_requested_mipmap_level_loaded(self) -> bool {
353 unsafe {
354 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
355 ::unity::il2cpp_call!((::unity::module_base()+0x2c48170usize)as*mut u8,bool;
356(Cubemap)__receiver)
357 }
358 }
359 #[doc = "`.ctor(i32, crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
360 fn ctor(
361 self,
362 width: impl ::core::convert::Into<i32>,
363 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat>,
364 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
365 ) -> () {
366 unsafe {
367 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
368 ::unity::il2cpp_call!((::unity::module_base()+0x2c481c0usize)as*mut u8,();
369(Cubemap)__receiver,(i32)::core::convert::Into::into(width),(crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
370 }
371 }
372 #[doc = "`.ctor(i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
373 fn ctor_2(
374 self,
375 width: impl ::core::convert::Into<i32>,
376 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
377 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
378 ) -> () {
379 unsafe {
380 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
381 ::unity::il2cpp_call!((::unity::module_base()+0x2c48210usize)as*mut u8,();
382(Cubemap)__receiver,(i32)::core::convert::Into::into(width),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
383 }
384 }
385 #[doc = "`.ctor(i32, crate::unity_engine::textureformat::TextureFormat, i32)` overload"]
386 fn ctor_3(
387 self,
388 width: impl ::core::convert::Into<i32>,
389 format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
390 mip_count: impl ::core::convert::Into<i32>,
391 ) -> () {
392 unsafe {
393 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
394 ::unity::il2cpp_call!((::unity::module_base()+0x2c48310usize)as*mut u8,();
395(Cubemap)__receiver,(i32)::core::convert::Into::into(width),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(format),(i32)::core::convert::Into::into(mip_count))
396 }
397 }
398 #[doc = "`.ctor(i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, i32)` overload"]
399 fn ctor_4(
400 self,
401 width: impl ::core::convert::Into<i32>,
402 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
403 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
404 mip_count: impl ::core::convert::Into<i32>,
405 ) -> () {
406 unsafe {
407 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
408 ::unity::il2cpp_call!((::unity::module_base()+0x2c484f0usize)as*mut u8,();
409(Cubemap)__receiver,(i32)::core::convert::Into::into(width),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags),(i32)::core::convert::Into::into(mip_count))
410 }
411 }
412 #[doc = "`.ctor(i32, crate::unity_engine::textureformat::TextureFormat, i32, ::unity::IntPtr)` overload"]
413 fn ctor_5(
414 self,
415 width: impl ::core::convert::Into<i32>,
416 texture_format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
417 mip_count: impl ::core::convert::Into<i32>,
418 native_tex: impl ::core::convert::Into<::unity::IntPtr>,
419 ) -> () {
420 unsafe {
421 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
422 ::unity::il2cpp_call!((::unity::module_base()+0x2c48380usize)as*mut u8,();
423(Cubemap)__receiver,(i32)::core::convert::Into::into(width),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(texture_format),(i32)::core::convert::Into::into(mip_count),(::unity::IntPtr)::core::convert::Into::into(native_tex))
424 }
425 }
426 #[doc = "`.ctor(i32, crate::unity_engine::textureformat::TextureFormat, bool, ::unity::IntPtr)` overload"]
427 fn ctor_6(
428 self,
429 width: impl ::core::convert::Into<i32>,
430 texture_format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
431 mip_chain: impl ::core::convert::Into<bool>,
432 native_tex: impl ::core::convert::Into<::unity::IntPtr>,
433 ) -> () {
434 unsafe {
435 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
436 ::unity::il2cpp_call!((::unity::module_base()+0x2c48700usize)as*mut u8,();
437(Cubemap)__receiver,(i32)::core::convert::Into::into(width),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(texture_format),(bool)::core::convert::Into::into(mip_chain),(::unity::IntPtr)::core::convert::Into::into(native_tex))
438 }
439 }
440 #[doc = "`.ctor(i32, crate::unity_engine::textureformat::TextureFormat, bool)` overload"]
441 fn ctor_7(
442 self,
443 width: impl ::core::convert::Into<i32>,
444 texture_format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
445 mip_chain: impl ::core::convert::Into<bool>,
446 ) -> () {
447 unsafe {
448 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
449 ::unity::il2cpp_call!((::unity::module_base()+0x2c48710usize)as*mut u8,();
450(Cubemap)__receiver,(i32)::core::convert::Into::into(width),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(texture_format),(bool)::core::convert::Into::into(mip_chain))
451 }
452 }
453 fn set_pixel_data<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
454 self,
455 data: impl ::core::convert::Into<::unity::Array<M0>>,
456 mip_level: impl ::core::convert::Into<i32>,
457 face: impl ::core::convert::Into<crate::unity_engine::cubemapface::CubemapFace>,
458 source_data_start_index: impl ::core::convert::Into<i32>,
459 ) -> () {
460 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
461 ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<Cubemap as ::unity::ClassIdentity>::class(), "SetPixelData", 4));
462 #[allow(clippy::type_complexity)]
463 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
464 ::std::sync::OnceLock::new();
465 let _ = false;
466 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
467 ::core::result::Result::Ok(mi) => *mi,
468 ::core::result::Result::Err(e) => {
469 panic!(
470 "method lookup failed: {}
471::{}
472: {}
473",
474 <Cubemap as ::unity::ClassIdentity>::NAME,
475 "SetPixelData",
476 e
477 )
478 },
479 };
480 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
481 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
482 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
483 let mut __guard = __cache.lock().unwrap();
484 *__guard
485 .entry(__key)
486 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
487 };
488 unsafe {
489 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
490 let __f: extern "C" fn(
491 Cubemap,
492 ::unity::Array<M0>,
493 i32,
494 crate::unity_engine::cubemapface::CubemapFace,
495 i32,
496 ::unity::OptionalMethod,
497 ) -> () = ::core::mem::transmute(__inflated.method_ptr);
498 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
499 __f(
500 __receiver,
501 ::core::convert::Into::into(data),
502 ::core::convert::Into::into(mip_level),
503 ::core::convert::Into::into(face),
504 ::core::convert::Into::into(source_data_start_index),
505 ::core::option::Option::Some(__mi_opaque),
506 )
507 }
508 }
509 #[doc = "`SetPixel(crate::unity_engine::cubemapface::CubemapFace, i32, i32, crate::unity_engine::color::Color)` overload"]
510 fn set_pixel(
511 self,
512 face: impl ::core::convert::Into<crate::unity_engine::cubemapface::CubemapFace>,
513 x: impl ::core::convert::Into<i32>,
514 y: impl ::core::convert::Into<i32>,
515 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
516 ) -> () {
517 unsafe {
518 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
519 ::unity::il2cpp_call!((::unity::module_base()+0x2c48890usize)as*mut u8,();
520(Cubemap)__receiver,(crate::unity_engine::cubemapface::CubemapFace)::core::convert::Into::into(face),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
521 }
522 }
523 #[doc = "`GetPixel(crate::unity_engine::cubemapface::CubemapFace, i32, i32)` overload"]
524 fn get_pixel(
525 self,
526 face: impl ::core::convert::Into<crate::unity_engine::cubemapface::CubemapFace>,
527 x: impl ::core::convert::Into<i32>,
528 y: impl ::core::convert::Into<i32>,
529 ) -> crate::unity_engine::color::Color {
530 unsafe {
531 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
532 ::unity::il2cpp_call!((::unity::module_base()+0x2c48970usize)as*mut u8,crate::unity_engine::color::Color;
533(Cubemap)__receiver,(crate::unity_engine::cubemapface::CubemapFace)::core::convert::Into::into(face),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y))
534 }
535 }
536 #[doc = "`Apply(bool, bool)` overload"]
537 fn apply(self, update_mipmaps: impl ::core::convert::Into<bool>, make_no_longer_readable: impl ::core::convert::Into<bool>) -> () {
538 unsafe {
539 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
540 ::unity::il2cpp_call!((::unity::module_base()+0x2c48a30usize)as*mut u8,();
541(Cubemap)__receiver,(bool)::core::convert::Into::into(update_mipmaps),(bool)::core::convert::Into::into(make_no_longer_readable))
542 }
543 }
544 #[doc = "`Apply(bool)` overload"]
545 fn apply_2(self, update_mipmaps: impl ::core::convert::Into<bool>) -> () {
546 unsafe {
547 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
548 ::unity::il2cpp_call!((::unity::module_base()+0x2c48ad0usize)as*mut u8,();
549(Cubemap)__receiver,(bool)::core::convert::Into::into(update_mipmaps))
550 }
551 }
552 #[doc = "`Apply()` overload"]
553 fn apply_3(self) -> () {
554 unsafe {
555 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
556 ::unity::il2cpp_call!((::unity::module_base()+0x2c48b60usize)as*mut u8,();
557(Cubemap)__receiver)
558 }
559 }
560 #[doc = "`SetPixelImpl_Injected(i32, i32, i32, *mutcrate::unity_engine::color::Color)` overload"]
561 fn set_pixel_impl_injected(
562 self,
563 image: impl ::core::convert::Into<i32>,
564 x: impl ::core::convert::Into<i32>,
565 y: impl ::core::convert::Into<i32>,
566 ) -> crate::unity_engine::color::Color {
567 unsafe {
568 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
569 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
570 ::unity::il2cpp_call!((::unity::module_base()+0x2c478f0usize)as*mut u8,();
571(Cubemap)__receiver,(i32)::core::convert::Into::into(image),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y),(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr());
572 __out_0.assume_init()
573 }
574 }
575 #[doc = "`GetPixelImpl_Injected(i32, i32, i32, *mutcrate::unity_engine::color::Color)` overload"]
576 fn get_pixel_impl_injected(
577 self,
578 image: impl ::core::convert::Into<i32>,
579 x: impl ::core::convert::Into<i32>,
580 y: impl ::core::convert::Into<i32>,
581 ) -> crate::unity_engine::color::Color {
582 unsafe {
583 let __receiver = <Cubemap as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
584 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
585 ::unity::il2cpp_call!((::unity::module_base()+0x2c479f0usize)as*mut u8,();
586(Cubemap)__receiver,(i32)::core::convert::Into::into(image),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y),(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr());
587 __out_0.assume_init()
588 }
589 }
590}
591
592#[cfg(feature = "unity_engine-cubemap")]
593impl<__T: ICubemap> ICubemapMethods for __T {}
594
595#[cfg(feature = "unity_engine-cubemap")]
596impl Cubemap {
597 pub fn get_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
598 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
599 }
600
601 pub fn internal_create_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
602 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
603 }
604
605 pub fn internal_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
606 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
607 }
608
609 pub fn apply_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
610 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
611 }
612
613 pub fn update_external_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
614 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
615 }
616
617 pub fn get_is_readable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
618 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
619 }
620
621 pub fn set_pixel_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
622 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
623 }
624
625 pub fn get_pixel_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
626 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
627 }
628
629 pub fn smooth_edges_method_info() -> &'static ::unity::il2cpp::MethodInfo {
630 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
631 }
632
633 pub fn smooth_edges_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
634 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
635 }
636
637 pub fn get_pixels_method_info() -> &'static ::unity::il2cpp::MethodInfo {
638 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
639 }
640
641 pub fn get_pixels_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
642 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
643 }
644
645 pub fn set_pixels_method_info() -> &'static ::unity::il2cpp::MethodInfo {
646 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
647 }
648
649 pub fn set_pixel_data_impl_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
650 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
651 }
652
653 pub fn set_pixel_data_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
654 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
655 }
656
657 pub fn set_pixels_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
658 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
659 }
660
661 pub fn get_writable_image_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
662 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
663 }
664
665 pub fn get_is_pre_processed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
666 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
667 }
668
669 pub fn get_streaming_mipmaps_method_info() -> &'static ::unity::il2cpp::MethodInfo {
670 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
671 }
672
673 pub fn get_streaming_mipmaps_priority_method_info() -> &'static ::unity::il2cpp::MethodInfo {
674 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
675 }
676
677 pub fn get_requested_mipmap_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
678 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
679 }
680
681 pub fn set_requested_mipmap_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
682 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
683 }
684
685 pub fn get_load_all_mips_method_info() -> &'static ::unity::il2cpp::MethodInfo {
686 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
687 }
688
689 pub fn set_load_all_mips_method_info() -> &'static ::unity::il2cpp::MethodInfo {
690 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
691 }
692
693 pub fn get_desired_mipmap_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
694 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
695 }
696
697 pub fn get_loading_mipmap_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
698 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
699 }
700
701 pub fn get_loaded_mipmap_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
702 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
703 }
704
705 pub fn clear_requested_mipmap_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
706 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
707 }
708
709 pub fn is_requested_mipmap_level_loaded_method_info() -> &'static ::unity::il2cpp::MethodInfo {
710 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
711 }
712
713 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
714 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
715 }
716
717 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
718 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
719 }
720
721 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
722 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[31]
723 }
724
725 pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
726 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[32]
727 }
728
729 pub fn ctor_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
730 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[33]
731 }
732
733 pub fn ctor_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
734 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[34]
735 }
736
737 pub fn ctor_7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
738 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[35]
739 }
740
741 pub fn create_external_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
742 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[36]
743 }
744
745 pub fn set_pixel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
746 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[40]
747 }
748
749 pub fn get_pixel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
750 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[41]
751 }
752
753 pub fn apply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
754 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[42]
755 }
756
757 pub fn apply_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
758 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[43]
759 }
760
761 pub fn apply_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
762 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[44]
763 }
764
765 pub fn validate_is_not_crunched_method_info() -> &'static ::unity::il2cpp::MethodInfo {
766 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[45]
767 }
768
769 pub fn set_pixel_impl_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
770 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[46]
771 }
772
773 pub fn get_pixel_impl_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
774 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[47]
775 }
776}
777
778#[cfg(feature = "unity_engine-cubemap")]
779impl Cubemap {
780 #[doc = "Direct (non-virtual) call to `Cubemap`'s own `get_isReadable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
781 pub unsafe fn get_is_readable(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
782 let __mi = Self::get_is_readable_method_info();
783 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
784 __inner(this.into(), ::core::option::Option::None)
785 }
786}
787
788#[cfg(feature = "unity_engine-cubemap")]
789impl Cubemap {
790 #[doc = "`.ctor(i32, crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` — overload selector"]
791 pub fn new(
792 width: i32,
793 format: crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat,
794 flags: crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags,
795 ) -> Self {
796 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
797 panic!(
798 "{}
799::{}
800 failed to instantiate",
801 ::core::stringify!(Cubemap),
802 ::core::stringify!(new),
803 )
804 });
805 <Self as ICubemapMethods>::ctor(this, width, format, flags);
806 this
807 }
808
809 #[doc = "`.ctor(i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` — overload selector"]
810 pub fn new_2(
811 width: i32,
812 format: crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat,
813 flags: crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags,
814 ) -> Self {
815 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
816 panic!(
817 "{}
818::{}
819 failed to instantiate",
820 ::core::stringify!(Cubemap),
821 ::core::stringify!(new_2),
822 )
823 });
824 <Self as ICubemapMethods>::ctor_2(this, width, format, flags);
825 this
826 }
827
828 #[doc = "`.ctor(i32, crate::unity_engine::textureformat::TextureFormat, i32)` — overload selector"]
829 pub fn new_3(width: i32, format: crate::unity_engine::textureformat::TextureFormat, mip_count: i32) -> Self {
830 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
831 panic!(
832 "{}
833::{}
834 failed to instantiate",
835 ::core::stringify!(Cubemap),
836 ::core::stringify!(new_3),
837 )
838 });
839 <Self as ICubemapMethods>::ctor_3(this, width, format, mip_count);
840 this
841 }
842
843 #[doc = "`.ctor(i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, i32)` — overload selector"]
844 pub fn new_4(
845 width: i32,
846 format: crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat,
847 flags: crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags,
848 mip_count: i32,
849 ) -> Self {
850 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
851 panic!(
852 "{}
853::{}
854 failed to instantiate",
855 ::core::stringify!(Cubemap),
856 ::core::stringify!(new_4),
857 )
858 });
859 <Self as ICubemapMethods>::ctor_4(this, width, format, flags, mip_count);
860 this
861 }
862
863 #[doc = "`.ctor(i32, crate::unity_engine::textureformat::TextureFormat, i32, ::unity::IntPtr)` — overload selector"]
864 pub fn new_5(width: i32, texture_format: crate::unity_engine::textureformat::TextureFormat, mip_count: i32, native_tex: ::unity::IntPtr) -> Self {
865 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
866 panic!(
867 "{}
868::{}
869 failed to instantiate",
870 ::core::stringify!(Cubemap),
871 ::core::stringify!(new_5),
872 )
873 });
874 <Self as ICubemapMethods>::ctor_5(this, width, texture_format, mip_count, native_tex);
875 this
876 }
877
878 #[doc = "`.ctor(i32, crate::unity_engine::textureformat::TextureFormat, bool, ::unity::IntPtr)` — overload selector"]
879 pub fn new_6(
880 width: i32,
881 texture_format: crate::unity_engine::textureformat::TextureFormat,
882 mip_chain: bool,
883 native_tex: ::unity::IntPtr,
884 ) -> Self {
885 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
886 panic!(
887 "{}
888::{}
889 failed to instantiate",
890 ::core::stringify!(Cubemap),
891 ::core::stringify!(new_6),
892 )
893 });
894 <Self as ICubemapMethods>::ctor_6(this, width, texture_format, mip_chain, native_tex);
895 this
896 }
897
898 #[doc = "`.ctor(i32, crate::unity_engine::textureformat::TextureFormat, bool)` — overload selector"]
899 pub fn new_7(width: i32, texture_format: crate::unity_engine::textureformat::TextureFormat, mip_chain: bool) -> Self {
900 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
901 panic!(
902 "{}
903::{}
904 failed to instantiate",
905 ::core::stringify!(Cubemap),
906 ::core::stringify!(new_7),
907 )
908 });
909 <Self as ICubemapMethods>::ctor_7(this, width, texture_format, mip_chain);
910 this
911 }
912}
913
914#[cfg(feature = "unity_engine-cubemap")]
915#[doc(hidden)]
916pub mod prelude {
917 pub use super::{Cubemap, ICubemap, ICubemapMethods};
918 #[cfg(feature = "system-object")]
919 pub use crate::system::object::IObjectMethods;
920 #[cfg(feature = "unity_engine-object_2")]
921 pub use crate::unity_engine::object_2::IObject_2Methods;
922 #[cfg(feature = "unity_engine-texture")]
923 pub use crate::unity_engine::texture::ITextureMethods;
924 pub use crate::{
925 system::object::IObject,
926 unity_engine::{object_2::IObject_2, texture::ITexture},
927 };
928}