1#[cfg(feature = "unity_engine-texture3d-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/texture3d/Texture3D.md"))]
17 #[::unity::class(namespace = "UnityEngine", name = "Texture3D")]
18 #[parent(crate::unity_engine::texture::Texture)]
19 pub struct Texture3D {}
20}
21
22#[cfg(feature = "unity_engine-texture3d-types")]
23pub use __types::*;
24
25#[cfg(feature = "unity_engine-texture3d")]
26impl Texture3D {
27 #[doc = "`Internal_CreateImpl(crate::unity_engine::texture3d::Texture3D, i32, i32, 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::texture3d::Texture3D>,
30 w: impl ::core::convert::Into<i32>,
31 h: impl ::core::convert::Into<i32>,
32 d: impl ::core::convert::Into<i32>,
33 mip_count: impl ::core::convert::Into<i32>,
34 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
35 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
36 native_tex: impl ::core::convert::Into<::unity::IntPtr>,
37 ) -> bool {
38 unsafe {
39 ::unity::il2cpp_call!((::unity::module_base()+0x378db10usize)as*mut u8,bool;
40(crate::unity_engine::texture3d::Texture3D)::core::convert::Into::into(mono),(i32)::core::convert::Into::into(w),(i32)::core::convert::Into::into(h),(i32)::core::convert::Into::into(d),(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))
41 }
42 }
43
44 #[doc = "`Internal_Create(crate::unity_engine::texture3d::Texture3D, i32, i32, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, ::unity::IntPtr)` overload"]
45 pub fn internal_create(
46 mono: impl ::core::convert::Into<crate::unity_engine::texture3d::Texture3D>,
47 w: impl ::core::convert::Into<i32>,
48 h: impl ::core::convert::Into<i32>,
49 d: impl ::core::convert::Into<i32>,
50 mip_count: impl ::core::convert::Into<i32>,
51 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
52 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
53 native_tex: impl ::core::convert::Into<::unity::IntPtr>,
54 ) -> () {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x378dbb0usize)as*mut u8,();
57(crate::unity_engine::texture3d::Texture3D)::core::convert::Into::into(mono),(i32)::core::convert::Into::into(w),(i32)::core::convert::Into::into(h),(i32)::core::convert::Into::into(d),(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))
58 }
59 }
60
61 #[doc = "`ValidateIsNotCrunched(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
62 pub fn validate_is_not_crunched(
63 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
64 ) -> () {
65 unsafe {
66 ::unity::il2cpp_call!((::unity::module_base()+0x378e070usize)as*mut u8,();
67(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
68 }
69 }
70}
71
72#[cfg(feature = "unity_engine-texture3d")]
73pub trait ITexture3DMethods: ITexture3D {
74 #[doc = "`get_isReadable()` overload"]
75 fn get_is_readable(self) -> bool {
76 unsafe {
77 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 {
79 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
80 let __vi = *__vt.get(11usize).unwrap_or_else(|| {
81 panic!(
82 "unity: virtual slot {}
83 out of range (vtable len {}
84) on the runtime class behind {}
85 (method `{}
86`)",
87 11usize,
88 __vt.len(),
89 <Texture3D as ::unity::ClassIdentity>::NAME,
90 "get_isReadable",
91 )
92 });
93 let __inner: extern "C" fn(Texture3D, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
94 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
95 __inner(__receiver, __mi)
96 }
97 }
98 }
99 #[doc = "`SetPixelImpl(i32, i32, i32, i32, crate::unity_engine::color::Color)` overload"]
100 fn set_pixel_impl(
101 self,
102 image: impl ::core::convert::Into<i32>,
103 x: impl ::core::convert::Into<i32>,
104 y: impl ::core::convert::Into<i32>,
105 z: impl ::core::convert::Into<i32>,
106 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
107 ) -> () {
108 unsafe {
109 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110 ::unity::il2cpp_call!((::unity::module_base()+0x378da00usize)as*mut u8,();
111(Texture3D)__receiver,(i32)::core::convert::Into::into(image),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y),(i32)::core::convert::Into::into(z),(crate::unity_engine::color::Color)::core::convert::Into::into(color))
112 }
113 }
114 #[doc = "`ApplyImpl(bool, bool)` overload"]
115 fn apply_impl(self, update_mipmaps: impl ::core::convert::Into<bool>, make_no_longer_readable: impl ::core::convert::Into<bool>) -> () {
116 unsafe {
117 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118 ::unity::il2cpp_call!((::unity::module_base()+0x378dca0usize)as*mut u8,();
119(Texture3D)__receiver,(bool)::core::convert::Into::into(update_mipmaps),(bool)::core::convert::Into::into(make_no_longer_readable))
120 }
121 }
122 #[doc = "`SetPixels(::unity::Array<crate::unity_engine::color::Color>, i32)` overload"]
123 fn set_pixels(
124 self,
125 colors: impl ::core::convert::Into<::unity::Array<crate::unity_engine::color::Color>>,
126 miplevel: impl ::core::convert::Into<i32>,
127 ) -> () {
128 unsafe {
129 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x378dd00usize)as*mut u8,();
131(Texture3D)__receiver,(::unity::Array<crate::unity_engine::color::Color>)::core::convert::Into::into(colors),(i32)::core::convert::Into::into(miplevel))
132 }
133 }
134 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
135 fn ctor(
136 self,
137 width: impl ::core::convert::Into<i32>,
138 height: impl ::core::convert::Into<i32>,
139 depth: impl ::core::convert::Into<i32>,
140 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat>,
141 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
142 ) -> () {
143 unsafe {
144 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145 ::unity::il2cpp_call!((::unity::module_base()+0x378dd60usize)as*mut u8,();
146(Texture3D)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(i32)::core::convert::Into::into(depth),(crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
147 }
148 }
149 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` overload"]
150 fn ctor_2(
151 self,
152 width: impl ::core::convert::Into<i32>,
153 height: impl ::core::convert::Into<i32>,
154 depth: impl ::core::convert::Into<i32>,
155 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
156 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
157 ) -> () {
158 unsafe {
159 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160 ::unity::il2cpp_call!((::unity::module_base()+0x378de40usize)as*mut u8,();
161(Texture3D)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(i32)::core::convert::Into::into(depth),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format),(crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)::core::convert::Into::into(flags))
162 }
163 }
164 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, i32)` overload"]
165 fn ctor_3(
166 self,
167 width: impl ::core::convert::Into<i32>,
168 height: impl ::core::convert::Into<i32>,
169 depth: impl ::core::convert::Into<i32>,
170 format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
171 flags: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags>,
172 mip_count: impl ::core::convert::Into<i32>,
173 ) -> () {
174 unsafe {
175 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
176 ::unity::il2cpp_call!((::unity::module_base()+0x378def0usize)as*mut u8,();
177(Texture3D)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(i32)::core::convert::Into::into(depth),(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))
178 }
179 }
180 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::textureformat::TextureFormat, i32)` overload"]
181 fn ctor_4(
182 self,
183 width: impl ::core::convert::Into<i32>,
184 height: impl ::core::convert::Into<i32>,
185 depth: impl ::core::convert::Into<i32>,
186 texture_format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
187 mip_count: impl ::core::convert::Into<i32>,
188 ) -> () {
189 unsafe {
190 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
191 ::unity::il2cpp_call!((::unity::module_base()+0x378e0d0usize)as*mut u8,();
192(Texture3D)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(i32)::core::convert::Into::into(depth),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(texture_format),(i32)::core::convert::Into::into(mip_count))
193 }
194 }
195 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::textureformat::TextureFormat, i32, ::unity::IntPtr)` overload"]
196 fn ctor_5(
197 self,
198 width: impl ::core::convert::Into<i32>,
199 height: impl ::core::convert::Into<i32>,
200 depth: impl ::core::convert::Into<i32>,
201 texture_format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
202 mip_count: impl ::core::convert::Into<i32>,
203 native_tex: impl ::core::convert::Into<::unity::IntPtr>,
204 ) -> () {
205 unsafe {
206 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
207 ::unity::il2cpp_call!((::unity::module_base()+0x378e270usize)as*mut u8,();
208(Texture3D)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(i32)::core::convert::Into::into(depth),(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))
209 }
210 }
211 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::textureformat::TextureFormat, bool)` overload"]
212 fn ctor_6(
213 self,
214 width: impl ::core::convert::Into<i32>,
215 height: impl ::core::convert::Into<i32>,
216 depth: impl ::core::convert::Into<i32>,
217 texture_format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
218 mip_chain: impl ::core::convert::Into<bool>,
219 ) -> () {
220 unsafe {
221 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
222 ::unity::il2cpp_call!((::unity::module_base()+0x378e410usize)as*mut u8,();
223(Texture3D)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(i32)::core::convert::Into::into(depth),(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(texture_format),(bool)::core::convert::Into::into(mip_chain))
224 }
225 }
226 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::textureformat::TextureFormat, bool, ::unity::IntPtr)` overload"]
227 fn ctor_7(
228 self,
229 width: impl ::core::convert::Into<i32>,
230 height: impl ::core::convert::Into<i32>,
231 depth: impl ::core::convert::Into<i32>,
232 texture_format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
233 mip_chain: impl ::core::convert::Into<bool>,
234 native_tex: impl ::core::convert::Into<::unity::IntPtr>,
235 ) -> () {
236 unsafe {
237 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238 ::unity::il2cpp_call!((::unity::module_base()+0x378e420usize)as*mut u8,();
239(Texture3D)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(i32)::core::convert::Into::into(depth),(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))
240 }
241 }
242 #[doc = "`Apply(bool, bool)` overload"]
243 fn apply(self, update_mipmaps: impl ::core::convert::Into<bool>, make_no_longer_readable: impl ::core::convert::Into<bool>) -> () {
244 unsafe {
245 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246 ::unity::il2cpp_call!((::unity::module_base()+0x378e430usize)as*mut u8,();
247(Texture3D)__receiver,(bool)::core::convert::Into::into(update_mipmaps),(bool)::core::convert::Into::into(make_no_longer_readable))
248 }
249 }
250 #[doc = "`Apply(bool)` overload"]
251 fn apply_2(self, update_mipmaps: impl ::core::convert::Into<bool>) -> () {
252 unsafe {
253 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
254 ::unity::il2cpp_call!((::unity::module_base()+0x378e4c0usize)as*mut u8,();
255(Texture3D)__receiver,(bool)::core::convert::Into::into(update_mipmaps))
256 }
257 }
258 #[doc = "`Apply()` overload"]
259 fn apply_3(self) -> () {
260 unsafe {
261 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262 ::unity::il2cpp_call!((::unity::module_base()+0x378e550usize)as*mut u8,();
263(Texture3D)__receiver)
264 }
265 }
266 #[doc = "`SetPixel(i32, i32, i32, crate::unity_engine::color::Color, i32)` overload"]
267 fn set_pixel(
268 self,
269 x: impl ::core::convert::Into<i32>,
270 y: impl ::core::convert::Into<i32>,
271 z: impl ::core::convert::Into<i32>,
272 color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
273 mip_level: impl ::core::convert::Into<i32>,
274 ) -> () {
275 unsafe {
276 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277 ::unity::il2cpp_call!((::unity::module_base()+0x378e5d0usize)as*mut u8,();
278(Texture3D)__receiver,(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y),(i32)::core::convert::Into::into(z),(crate::unity_engine::color::Color)::core::convert::Into::into(color),(i32)::core::convert::Into::into(mip_level))
279 }
280 }
281 #[doc = "`SetPixelImpl_Injected(i32, i32, i32, i32, *mutcrate::unity_engine::color::Color)` overload"]
282 fn set_pixel_impl_injected(
283 self,
284 image: impl ::core::convert::Into<i32>,
285 x: impl ::core::convert::Into<i32>,
286 y: impl ::core::convert::Into<i32>,
287 z: impl ::core::convert::Into<i32>,
288 ) -> crate::unity_engine::color::Color {
289 unsafe {
290 let __receiver = <Texture3D as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::color::Color>::uninit();
292 ::unity::il2cpp_call!((::unity::module_base()+0x378da90usize)as*mut u8,();
293(Texture3D)__receiver,(i32)::core::convert::Into::into(image),(i32)::core::convert::Into::into(x),(i32)::core::convert::Into::into(y),(i32)::core::convert::Into::into(z),(*mut crate::unity_engine::color::Color)__out_0.as_mut_ptr());
294 __out_0.assume_init()
295 }
296 }
297}
298
299#[cfg(feature = "unity_engine-texture3d")]
300impl<__T: ITexture3D> ITexture3DMethods for __T {}
301
302#[cfg(feature = "unity_engine-texture3d")]
303impl Texture3D {
304 pub fn get_is_readable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
306 }
307
308 pub fn set_pixel_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
310 }
311
312 pub fn internal_create_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
314 }
315
316 pub fn internal_create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
318 }
319
320 pub fn apply_impl_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
322 }
323
324 pub fn set_pixels_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
326 }
327
328 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
330 }
331
332 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
334 }
335
336 pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
338 }
339
340 pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
342 }
343
344 pub fn ctor_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
346 }
347
348 pub fn ctor_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
350 }
351
352 pub fn ctor_7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
354 }
355
356 pub fn apply_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
358 }
359
360 pub fn apply_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
362 }
363
364 pub fn apply_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
366 }
367
368 pub fn set_pixel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
370 }
371
372 pub fn validate_is_not_crunched_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
374 }
375
376 pub fn set_pixel_impl_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
378 }
379}
380
381#[cfg(feature = "unity_engine-texture3d")]
382impl Texture3D {
383 #[doc = "Direct (non-virtual) call to `Texture3D`'s own `get_isReadable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
384 pub unsafe fn get_is_readable(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
385 let __mi = Self::get_is_readable_method_info();
386 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
387 __inner(this.into(), ::core::option::Option::None)
388 }
389}
390
391#[cfg(feature = "unity_engine-texture3d")]
392impl Texture3D {
393 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` — overload selector"]
394 pub fn new(
395 width: i32,
396 height: i32,
397 depth: i32,
398 format: crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat,
399 flags: crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags,
400 ) -> Self {
401 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
402 panic!(
403 "{}
404::{}
405 failed to instantiate",
406 ::core::stringify!(Texture3D),
407 ::core::stringify!(new),
408 )
409 });
410 <Self as ITexture3DMethods>::ctor(this, width, height, depth, format, flags);
411 this
412 }
413
414 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags)` — overload selector"]
415 pub fn new_2(
416 width: i32,
417 height: i32,
418 depth: i32,
419 format: crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat,
420 flags: crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags,
421 ) -> Self {
422 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
423 panic!(
424 "{}
425::{}
426 failed to instantiate",
427 ::core::stringify!(Texture3D),
428 ::core::stringify!(new_2),
429 )
430 });
431 <Self as ITexture3DMethods>::ctor_2(this, width, height, depth, format, flags);
432 this
433 }
434
435 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, i32)` — overload selector"]
436 pub fn new_3(
437 width: i32,
438 height: i32,
439 depth: i32,
440 format: crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat,
441 flags: crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags,
442 mip_count: i32,
443 ) -> Self {
444 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
445 panic!(
446 "{}
447::{}
448 failed to instantiate",
449 ::core::stringify!(Texture3D),
450 ::core::stringify!(new_3),
451 )
452 });
453 <Self as ITexture3DMethods>::ctor_3(this, width, height, depth, format, flags, mip_count);
454 this
455 }
456
457 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::textureformat::TextureFormat, i32)` — overload selector"]
458 pub fn new_4(width: i32, height: i32, depth: i32, texture_format: crate::unity_engine::textureformat::TextureFormat, mip_count: i32) -> Self {
459 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
460 panic!(
461 "{}
462::{}
463 failed to instantiate",
464 ::core::stringify!(Texture3D),
465 ::core::stringify!(new_4),
466 )
467 });
468 <Self as ITexture3DMethods>::ctor_4(this, width, height, depth, texture_format, mip_count);
469 this
470 }
471
472 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::textureformat::TextureFormat, i32, ::unity::IntPtr)` — overload selector"]
473 pub fn new_5(
474 width: i32,
475 height: i32,
476 depth: i32,
477 texture_format: crate::unity_engine::textureformat::TextureFormat,
478 mip_count: i32,
479 native_tex: ::unity::IntPtr,
480 ) -> Self {
481 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
482 panic!(
483 "{}
484::{}
485 failed to instantiate",
486 ::core::stringify!(Texture3D),
487 ::core::stringify!(new_5),
488 )
489 });
490 <Self as ITexture3DMethods>::ctor_5(this, width, height, depth, texture_format, mip_count, native_tex);
491 this
492 }
493
494 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::textureformat::TextureFormat, bool)` — overload selector"]
495 pub fn new_6(width: i32, height: i32, depth: i32, texture_format: crate::unity_engine::textureformat::TextureFormat, mip_chain: bool) -> Self {
496 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
497 panic!(
498 "{}
499::{}
500 failed to instantiate",
501 ::core::stringify!(Texture3D),
502 ::core::stringify!(new_6),
503 )
504 });
505 <Self as ITexture3DMethods>::ctor_6(this, width, height, depth, texture_format, mip_chain);
506 this
507 }
508
509 #[doc = "`.ctor(i32, i32, i32, crate::unity_engine::textureformat::TextureFormat, bool, ::unity::IntPtr)` — overload selector"]
510 pub fn new_7(
511 width: i32,
512 height: i32,
513 depth: i32,
514 texture_format: crate::unity_engine::textureformat::TextureFormat,
515 mip_chain: bool,
516 native_tex: ::unity::IntPtr,
517 ) -> Self {
518 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
519 panic!(
520 "{}
521::{}
522 failed to instantiate",
523 ::core::stringify!(Texture3D),
524 ::core::stringify!(new_7),
525 )
526 });
527 <Self as ITexture3DMethods>::ctor_7(this, width, height, depth, texture_format, mip_chain, native_tex);
528 this
529 }
530}
531
532#[cfg(feature = "unity_engine-texture3d")]
533#[doc(hidden)]
534pub mod prelude {
535 pub use super::{ITexture3D, ITexture3DMethods, Texture3D};
536 #[cfg(feature = "system-object")]
537 pub use crate::system::object::IObjectMethods;
538 #[cfg(feature = "unity_engine-object_2")]
539 pub use crate::unity_engine::object_2::IObject_2Methods;
540 #[cfg(feature = "unity_engine-texture")]
541 pub use crate::unity_engine::texture::ITextureMethods;
542 pub use crate::{
543 system::object::IObject,
544 unity_engine::{object_2::IObject_2, texture::ITexture},
545 };
546}