Skip to main content

engage/generated/unity_engine/rendering/
rthandlesystem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-rthandlesystem-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/rthandlesystem/RTHandleSystem.md"))]
15    #[::unity::class(namespace = "UnityEngine.Rendering", name = "RTHandleSystem")]
16    #[parent(crate::system::object::Object)]
17    pub struct RTHandleSystem {
18        #[offset(16)]
19        #[rename(name = "m_HardwareDynamicResRequested")]
20        pub m_hardware_dynamic_res_requested: bool,
21        #[offset(17)]
22        #[rename(name = "m_ScaledRTSupportsMSAA")]
23        pub m_scaled_rt_supports_msaa: bool,
24        #[offset(20)]
25        #[rename(name = "m_ScaledRTCurrentMSAASamples")]
26        pub m_scaled_rt_current_msaa_samples: crate::unity_engine::rendering::msaasamples::MSAASamples,
27        #[offset(24)]
28        #[rename(name = "m_AutoSizedRTs")]
29        pub m_auto_sized_r_ts: crate::system::collections::generic::hashset_1::HashSet_1<crate::unity_engine::rendering::rthandle::RTHandle>,
30        #[offset(32)]
31        #[rename(name = "m_AutoSizedRTsArray")]
32        pub m_auto_sized_r_ts_array: ::unity::Array<crate::unity_engine::rendering::rthandle::RTHandle>,
33        #[offset(40)]
34        #[rename(name = "m_ResizeOnDemandRTs")]
35        pub m_resize_on_demand_r_ts: crate::system::collections::generic::hashset_1::HashSet_1<crate::unity_engine::rendering::rthandle::RTHandle>,
36        #[offset(48)]
37        #[rename(name = "m_RTHandleProperties")]
38        pub m_rt_handle_properties: crate::unity_engine::rendering::rthandleproperties::RTHandleProperties,
39        #[offset(96)]
40        #[rename(name = "m_MaxWidths")]
41        pub m_max_widths: i32,
42        #[offset(100)]
43        #[rename(name = "m_MaxHeights")]
44        pub m_max_heights: i32,
45    }
46
47    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/rthandlesystem/RTHandleSystem_ResizeMode.md"))]
48    #[repr(C)]
49    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
50    pub struct RTHandleSystem_ResizeMode {
51        pub value: i32,
52    }
53    impl ::unity::ClassIdentity for RTHandleSystem_ResizeMode {
54        const NAME: &'static str = "RTHandleSystem.ResizeMode";
55        const NAMESPACE: &'static str = "UnityEngine.Rendering";
56
57        fn class() -> ::unity::Class {
58            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
59            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
60        }
61    }
62    impl ::unity::IlType for RTHandleSystem_ResizeMode {
63        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
64            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
65        }
66    }
67    impl RTHandleSystem_ResizeMode {
68        pub fn auto() -> Self {
69            Self { value: 0 }
70        }
71
72        pub fn on_demand() -> Self {
73            Self { value: 1 }
74        }
75    }
76}
77
78#[cfg(feature = "unity_engine-rendering-rthandlesystem-types")]
79pub use __types::*;
80
81#[cfg(feature = "unity_engine-rendering-rthandlesystem")]
82impl RTHandleSystem {
83    #[doc = "`Alloc(crate::unity_engine::rendering::rthandle::RTHandle)` overload"]
84    pub fn alloc_8(
85        tex: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>,
86    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x30afe10usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
89(crate::unity_engine::rendering::rthandle::RTHandle)::core::convert::Into::into(tex))
90        }
91    }
92}
93
94#[cfg(feature = "unity_engine-rendering-rthandlesystem")]
95pub trait IRTHandleSystemMethods: IRTHandleSystem {
96    #[doc = "`get_rtHandleProperties()` overload"]
97    fn get_rt_handle_properties(self) -> crate::unity_engine::rendering::rthandleproperties::RTHandleProperties {
98        unsafe {
99            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            ::unity::il2cpp_call!((::unity::module_base()+0x30adae0usize)as*mut u8,crate::unity_engine::rendering::rthandleproperties::RTHandleProperties;
101(RTHandleSystem)__receiver)
102        }
103    }
104    #[doc = "`.ctor()` overload"]
105    fn ctor(self) -> () {
106        unsafe {
107            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108            ::unity::il2cpp_call!((::unity::module_base()+0x30adb00usize)as*mut u8,();
109(RTHandleSystem)__receiver)
110        }
111    }
112    #[doc = "`Dispose()` overload"]
113    fn dispose(self) -> () {
114        unsafe {
115            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116            {
117                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
118                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
119                    panic!(
120                        "unity: virtual slot {}
121 out of range (vtable len {}
122) on the runtime class behind {}
123 (method `{}
124`)",
125                        4usize,
126                        __vt.len(),
127                        <RTHandleSystem as ::unity::ClassIdentity>::NAME,
128                        "Dispose",
129                    )
130                });
131                let __inner: extern "C" fn(RTHandleSystem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
132                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
133                __inner(__receiver, __mi)
134            }
135        }
136    }
137    #[doc = "`Initialize(i32, i32, bool, crate::unity_engine::rendering::msaasamples::MSAASamples)` overload"]
138    fn initialize(
139        self,
140        width: impl ::core::convert::Into<i32>,
141        height: impl ::core::convert::Into<i32>,
142        scaled_r_tsupports_msaa: impl ::core::convert::Into<bool>,
143        scaled_rtmsaa_samples: impl ::core::convert::Into<crate::unity_engine::rendering::msaasamples::MSAASamples>,
144    ) -> () {
145        unsafe {
146            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147            ::unity::il2cpp_call!((::unity::module_base()+0x30adda0usize)as*mut u8,();
148(RTHandleSystem)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(bool)::core::convert::Into::into(scaled_r_tsupports_msaa),(crate::unity_engine::rendering::msaasamples::MSAASamples)::core::convert::Into::into(scaled_rtmsaa_samples))
149        }
150    }
151    #[doc = "`Release(crate::unity_engine::rendering::rthandle::RTHandle)` overload"]
152    fn release(self, rth: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>) -> () {
153        unsafe {
154            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155            ::unity::il2cpp_call!((::unity::module_base()+0x30ae060usize)as*mut u8,();
156(RTHandleSystem)__receiver,(crate::unity_engine::rendering::rthandle::RTHandle)::core::convert::Into::into(rth))
157        }
158    }
159    #[doc = "`Remove(crate::unity_engine::rendering::rthandle::RTHandle)` overload"]
160    fn remove(self, rth: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>) -> () {
161        unsafe {
162            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!((::unity::module_base()+0x30ad870usize)as*mut u8,();
164(RTHandleSystem)__receiver,(crate::unity_engine::rendering::rthandle::RTHandle)::core::convert::Into::into(rth))
165        }
166    }
167    #[doc = "`ResetReferenceSize(i32, i32)` overload"]
168    fn reset_reference_size(self, width: impl ::core::convert::Into<i32>, height: impl ::core::convert::Into<i32>) -> () {
169        unsafe {
170            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171            ::unity::il2cpp_call!((::unity::module_base()+0x30ae070usize)as*mut u8,();
172(RTHandleSystem)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height))
173        }
174    }
175    #[doc = "`SetReferenceSize(i32, i32, crate::unity_engine::rendering::msaasamples::MSAASamples)` overload"]
176    fn set_reference_size(
177        self,
178        width: impl ::core::convert::Into<i32>,
179        height: impl ::core::convert::Into<i32>,
180        msaa_samples: impl ::core::convert::Into<crate::unity_engine::rendering::msaasamples::MSAASamples>,
181    ) -> () {
182        unsafe {
183            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184            ::unity::il2cpp_call!((::unity::module_base()+0x30ae3d0usize)as*mut u8,();
185(RTHandleSystem)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(crate::unity_engine::rendering::msaasamples::MSAASamples)::core::convert::Into::into(msaa_samples))
186        }
187    }
188    #[doc = "`SetReferenceSize(i32, i32, crate::unity_engine::rendering::msaasamples::MSAASamples, bool)` overload"]
189    fn set_reference_size_2(
190        self,
191        width: impl ::core::convert::Into<i32>,
192        height: impl ::core::convert::Into<i32>,
193        msaa_samples: impl ::core::convert::Into<crate::unity_engine::rendering::msaasamples::MSAASamples>,
194        reset: impl ::core::convert::Into<bool>,
195    ) -> () {
196        unsafe {
197            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            ::unity::il2cpp_call!((::unity::module_base()+0x30ae080usize)as*mut u8,();
199(RTHandleSystem)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(crate::unity_engine::rendering::msaasamples::MSAASamples)::core::convert::Into::into(msaa_samples),(bool)::core::convert::Into::into(reset))
200        }
201    }
202    #[doc = "`SetHardwareDynamicResolutionState(bool)` overload"]
203    fn set_hardware_dynamic_resolution_state(self, enable_hw_dynamic_res: impl ::core::convert::Into<bool>) -> () {
204        unsafe {
205            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            ::unity::il2cpp_call!((::unity::module_base()+0x30ae740usize)as*mut u8,();
207(RTHandleSystem)__receiver,(bool)::core::convert::Into::into(enable_hw_dynamic_res))
208        }
209    }
210    #[doc = "`SwitchResizeMode(crate::unity_engine::rendering::rthandle::RTHandle, crate::unity_engine::rendering::rthandlesystem::RTHandleSystem_ResizeMode)` overload"]
211    fn switch_resize_mode(
212        self,
213        rth: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>,
214        mode: impl ::core::convert::Into<crate::unity_engine::rendering::rthandlesystem::RTHandleSystem_ResizeMode>,
215    ) -> () {
216        unsafe {
217            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
218            ::unity::il2cpp_call!((::unity::module_base()+0x30ae8e0usize)as*mut u8,();
219(RTHandleSystem)__receiver,(crate::unity_engine::rendering::rthandle::RTHandle)::core::convert::Into::into(rth),(crate::unity_engine::rendering::rthandlesystem::RTHandleSystem_ResizeMode)::core::convert::Into::into(mode))
220        }
221    }
222    #[doc = "`DemandResize(crate::unity_engine::rendering::rthandle::RTHandle)` overload"]
223    fn demand_resize(self, rth: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>) -> () {
224        unsafe {
225            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226            ::unity::il2cpp_call!((::unity::module_base()+0x30ae9e0usize)as*mut u8,();
227(RTHandleSystem)__receiver,(crate::unity_engine::rendering::rthandle::RTHandle)::core::convert::Into::into(rth))
228        }
229    }
230    #[doc = "`GetMaxWidth()` overload"]
231    fn get_max_width(self) -> i32 {
232        unsafe {
233            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234            ::unity::il2cpp_call!((::unity::module_base()+0x30aec70usize)as*mut u8,i32;
235(RTHandleSystem)__receiver)
236        }
237    }
238    #[doc = "`GetMaxHeight()` overload"]
239    fn get_max_height(self) -> i32 {
240        unsafe {
241            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242            ::unity::il2cpp_call!((::unity::module_base()+0x30aec80usize)as*mut u8,i32;
243(RTHandleSystem)__receiver)
244        }
245    }
246    #[doc = "`Dispose(bool)` overload"]
247    fn dispose_2(self, disposing: impl ::core::convert::Into<bool>) -> () {
248        unsafe {
249            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250            ::unity::il2cpp_call!((::unity::module_base()+0x30adbe0usize)as*mut u8,();
251(RTHandleSystem)__receiver,(bool)::core::convert::Into::into(disposing))
252        }
253    }
254    #[doc = "`Resize(i32, i32, crate::unity_engine::rendering::msaasamples::MSAASamples, bool, bool)` overload"]
255    fn resize(
256        self,
257        width: impl ::core::convert::Into<i32>,
258        height: impl ::core::convert::Into<i32>,
259        msaa_samples: impl ::core::convert::Into<crate::unity_engine::rendering::msaasamples::MSAASamples>,
260        size_changed: impl ::core::convert::Into<bool>,
261        msaa_sample_changed: impl ::core::convert::Into<bool>,
262    ) -> () {
263        unsafe {
264            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265            ::unity::il2cpp_call!((::unity::module_base()+0x30ae3e0usize)as*mut u8,();
266(RTHandleSystem)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(crate::unity_engine::rendering::msaasamples::MSAASamples)::core::convert::Into::into(msaa_samples),(bool)::core::convert::Into::into(size_changed),(bool)::core::convert::Into::into(msaa_sample_changed))
267        }
268    }
269    #[doc = "`Alloc(i32, i32, i32, crate::unity_engine::rendering::depthbits::DepthBits, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::filtermode::FilterMode, crate::unity_engine::texturewrapmode::TextureWrapMode, crate::unity_engine::rendering::texturedimension::TextureDimension, bool, bool, bool, bool, i32, f32, crate::unity_engine::rendering::msaasamples::MSAASamples, bool, bool, crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless, ::unity::Il2CppString)` overload"]
270    fn alloc(
271        self,
272        width: impl ::core::convert::Into<i32>,
273        height: impl ::core::convert::Into<i32>,
274        slices: impl ::core::convert::Into<i32>,
275        depth_buffer_bits: impl ::core::convert::Into<crate::unity_engine::rendering::depthbits::DepthBits>,
276        color_format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
277        filter_mode: impl ::core::convert::Into<crate::unity_engine::filtermode::FilterMode>,
278        wrap_mode: impl ::core::convert::Into<crate::unity_engine::texturewrapmode::TextureWrapMode>,
279        dimension: impl ::core::convert::Into<crate::unity_engine::rendering::texturedimension::TextureDimension>,
280        enable_random_write: impl ::core::convert::Into<bool>,
281        use_mip_map: impl ::core::convert::Into<bool>,
282        auto_generate_mips: impl ::core::convert::Into<bool>,
283        is_shadow_map: impl ::core::convert::Into<bool>,
284        aniso_level: impl ::core::convert::Into<i32>,
285        mip_map_bias: impl ::core::convert::Into<f32>,
286        msaa_samples: impl ::core::convert::Into<crate::unity_engine::rendering::msaasamples::MSAASamples>,
287        bind_texture_ms: impl ::core::convert::Into<bool>,
288        use_dynamic_scale: impl ::core::convert::Into<bool>,
289        memoryless: impl ::core::convert::Into<crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless>,
290        name: impl ::core::convert::Into<::unity::Il2CppString>,
291    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
292        unsafe {
293            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
294            ::unity::il2cpp_call!((::unity::module_base()+0x30aec90usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
295(RTHandleSystem)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(i32)::core::convert::Into::into(slices),(crate::unity_engine::rendering::depthbits::DepthBits)::core::convert::Into::into(depth_buffer_bits),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(color_format),(crate::unity_engine::filtermode::FilterMode)::core::convert::Into::into(filter_mode),(crate::unity_engine::texturewrapmode::TextureWrapMode)::core::convert::Into::into(wrap_mode),(crate::unity_engine::rendering::texturedimension::TextureDimension)::core::convert::Into::into(dimension),(bool)::core::convert::Into::into(enable_random_write),(bool)::core::convert::Into::into(use_mip_map),(bool)::core::convert::Into::into(auto_generate_mips),(bool)::core::convert::Into::into(is_shadow_map),(i32)::core::convert::Into::into(aniso_level),(f32)::core::convert::Into::into(mip_map_bias),(crate::unity_engine::rendering::msaasamples::MSAASamples)::core::convert::Into::into(msaa_samples),(bool)::core::convert::Into::into(bind_texture_ms),(bool)::core::convert::Into::into(use_dynamic_scale),(crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless)::core::convert::Into::into(memoryless),(::unity::Il2CppString)::core::convert::Into::into(name))
296        }
297    }
298    #[doc = "`Alloc(crate::unity_engine::vector2::Vector2, i32, crate::unity_engine::rendering::depthbits::DepthBits, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::filtermode::FilterMode, crate::unity_engine::texturewrapmode::TextureWrapMode, crate::unity_engine::rendering::texturedimension::TextureDimension, bool, bool, bool, bool, i32, f32, bool, bool, bool, crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless, ::unity::Il2CppString)` overload"]
299    fn alloc_2(
300        self,
301        scale_factor: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
302        slices: impl ::core::convert::Into<i32>,
303        depth_buffer_bits: impl ::core::convert::Into<crate::unity_engine::rendering::depthbits::DepthBits>,
304        color_format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
305        filter_mode: impl ::core::convert::Into<crate::unity_engine::filtermode::FilterMode>,
306        wrap_mode: impl ::core::convert::Into<crate::unity_engine::texturewrapmode::TextureWrapMode>,
307        dimension: impl ::core::convert::Into<crate::unity_engine::rendering::texturedimension::TextureDimension>,
308        enable_random_write: impl ::core::convert::Into<bool>,
309        use_mip_map: impl ::core::convert::Into<bool>,
310        auto_generate_mips: impl ::core::convert::Into<bool>,
311        is_shadow_map: impl ::core::convert::Into<bool>,
312        aniso_level: impl ::core::convert::Into<i32>,
313        mip_map_bias: impl ::core::convert::Into<f32>,
314        enable_msaa: impl ::core::convert::Into<bool>,
315        bind_texture_ms: impl ::core::convert::Into<bool>,
316        use_dynamic_scale: impl ::core::convert::Into<bool>,
317        memoryless: impl ::core::convert::Into<crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless>,
318        name: impl ::core::convert::Into<::unity::Il2CppString>,
319    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
320        unsafe {
321            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
322            ::unity::il2cpp_call!((::unity::module_base()+0x30af1e0usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
323(RTHandleSystem)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(scale_factor),(i32)::core::convert::Into::into(slices),(crate::unity_engine::rendering::depthbits::DepthBits)::core::convert::Into::into(depth_buffer_bits),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(color_format),(crate::unity_engine::filtermode::FilterMode)::core::convert::Into::into(filter_mode),(crate::unity_engine::texturewrapmode::TextureWrapMode)::core::convert::Into::into(wrap_mode),(crate::unity_engine::rendering::texturedimension::TextureDimension)::core::convert::Into::into(dimension),(bool)::core::convert::Into::into(enable_random_write),(bool)::core::convert::Into::into(use_mip_map),(bool)::core::convert::Into::into(auto_generate_mips),(bool)::core::convert::Into::into(is_shadow_map),(i32)::core::convert::Into::into(aniso_level),(f32)::core::convert::Into::into(mip_map_bias),(bool)::core::convert::Into::into(enable_msaa),(bool)::core::convert::Into::into(bind_texture_ms),(bool)::core::convert::Into::into(use_dynamic_scale),(crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless)::core::convert::Into::into(memoryless),(::unity::Il2CppString)::core::convert::Into::into(name))
324        }
325    }
326    #[doc = "`Alloc(crate::unity_engine::rendering::scalefunc::ScaleFunc, i32, crate::unity_engine::rendering::depthbits::DepthBits, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::filtermode::FilterMode, crate::unity_engine::texturewrapmode::TextureWrapMode, crate::unity_engine::rendering::texturedimension::TextureDimension, bool, bool, bool, bool, i32, f32, bool, bool, bool, crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless, ::unity::Il2CppString)` overload"]
327    fn alloc_3(
328        self,
329        scale_func: impl ::core::convert::Into<crate::unity_engine::rendering::scalefunc::ScaleFunc>,
330        slices: impl ::core::convert::Into<i32>,
331        depth_buffer_bits: impl ::core::convert::Into<crate::unity_engine::rendering::depthbits::DepthBits>,
332        color_format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
333        filter_mode: impl ::core::convert::Into<crate::unity_engine::filtermode::FilterMode>,
334        wrap_mode: impl ::core::convert::Into<crate::unity_engine::texturewrapmode::TextureWrapMode>,
335        dimension: impl ::core::convert::Into<crate::unity_engine::rendering::texturedimension::TextureDimension>,
336        enable_random_write: impl ::core::convert::Into<bool>,
337        use_mip_map: impl ::core::convert::Into<bool>,
338        auto_generate_mips: impl ::core::convert::Into<bool>,
339        is_shadow_map: impl ::core::convert::Into<bool>,
340        aniso_level: impl ::core::convert::Into<i32>,
341        mip_map_bias: impl ::core::convert::Into<f32>,
342        enable_msaa: impl ::core::convert::Into<bool>,
343        bind_texture_ms: impl ::core::convert::Into<bool>,
344        use_dynamic_scale: impl ::core::convert::Into<bool>,
345        memoryless: impl ::core::convert::Into<crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless>,
346        name: impl ::core::convert::Into<::unity::Il2CppString>,
347    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
348        unsafe {
349            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
350            ::unity::il2cpp_call!((::unity::module_base()+0x30af920usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
351(RTHandleSystem)__receiver,(crate::unity_engine::rendering::scalefunc::ScaleFunc)::core::convert::Into::into(scale_func),(i32)::core::convert::Into::into(slices),(crate::unity_engine::rendering::depthbits::DepthBits)::core::convert::Into::into(depth_buffer_bits),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(color_format),(crate::unity_engine::filtermode::FilterMode)::core::convert::Into::into(filter_mode),(crate::unity_engine::texturewrapmode::TextureWrapMode)::core::convert::Into::into(wrap_mode),(crate::unity_engine::rendering::texturedimension::TextureDimension)::core::convert::Into::into(dimension),(bool)::core::convert::Into::into(enable_random_write),(bool)::core::convert::Into::into(use_mip_map),(bool)::core::convert::Into::into(auto_generate_mips),(bool)::core::convert::Into::into(is_shadow_map),(i32)::core::convert::Into::into(aniso_level),(f32)::core::convert::Into::into(mip_map_bias),(bool)::core::convert::Into::into(enable_msaa),(bool)::core::convert::Into::into(bind_texture_ms),(bool)::core::convert::Into::into(use_dynamic_scale),(crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless)::core::convert::Into::into(memoryless),(::unity::Il2CppString)::core::convert::Into::into(name))
352        }
353    }
354    #[doc = "`AllocAutoSizedRenderTexture(i32, i32, i32, crate::unity_engine::rendering::depthbits::DepthBits, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::filtermode::FilterMode, crate::unity_engine::texturewrapmode::TextureWrapMode, crate::unity_engine::rendering::texturedimension::TextureDimension, bool, bool, bool, bool, i32, f32, bool, bool, bool, crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless, ::unity::Il2CppString)` overload"]
355    fn alloc_auto_sized_render_texture(
356        self,
357        width: impl ::core::convert::Into<i32>,
358        height: impl ::core::convert::Into<i32>,
359        slices: impl ::core::convert::Into<i32>,
360        depth_buffer_bits: impl ::core::convert::Into<crate::unity_engine::rendering::depthbits::DepthBits>,
361        color_format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
362        filter_mode: impl ::core::convert::Into<crate::unity_engine::filtermode::FilterMode>,
363        wrap_mode: impl ::core::convert::Into<crate::unity_engine::texturewrapmode::TextureWrapMode>,
364        dimension: impl ::core::convert::Into<crate::unity_engine::rendering::texturedimension::TextureDimension>,
365        enable_random_write: impl ::core::convert::Into<bool>,
366        use_mip_map: impl ::core::convert::Into<bool>,
367        auto_generate_mips: impl ::core::convert::Into<bool>,
368        is_shadow_map: impl ::core::convert::Into<bool>,
369        aniso_level: impl ::core::convert::Into<i32>,
370        mip_map_bias: impl ::core::convert::Into<f32>,
371        enable_msaa: impl ::core::convert::Into<bool>,
372        bind_texture_ms: impl ::core::convert::Into<bool>,
373        use_dynamic_scale: impl ::core::convert::Into<bool>,
374        memoryless: impl ::core::convert::Into<crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless>,
375        name: impl ::core::convert::Into<::unity::Il2CppString>,
376    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
377        unsafe {
378            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
379            ::unity::il2cpp_call!((::unity::module_base()+0x30af350usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
380(RTHandleSystem)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(i32)::core::convert::Into::into(slices),(crate::unity_engine::rendering::depthbits::DepthBits)::core::convert::Into::into(depth_buffer_bits),(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(color_format),(crate::unity_engine::filtermode::FilterMode)::core::convert::Into::into(filter_mode),(crate::unity_engine::texturewrapmode::TextureWrapMode)::core::convert::Into::into(wrap_mode),(crate::unity_engine::rendering::texturedimension::TextureDimension)::core::convert::Into::into(dimension),(bool)::core::convert::Into::into(enable_random_write),(bool)::core::convert::Into::into(use_mip_map),(bool)::core::convert::Into::into(auto_generate_mips),(bool)::core::convert::Into::into(is_shadow_map),(i32)::core::convert::Into::into(aniso_level),(f32)::core::convert::Into::into(mip_map_bias),(bool)::core::convert::Into::into(enable_msaa),(bool)::core::convert::Into::into(bind_texture_ms),(bool)::core::convert::Into::into(use_dynamic_scale),(crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless)::core::convert::Into::into(memoryless),(::unity::Il2CppString)::core::convert::Into::into(name))
381        }
382    }
383    #[doc = "`Alloc(crate::unity_engine::rendertexture::RenderTexture)` overload"]
384    fn alloc_4(
385        self,
386        texture: impl ::core::convert::Into<crate::unity_engine::rendertexture::RenderTexture>,
387    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
388        unsafe {
389            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
390            ::unity::il2cpp_call!((::unity::module_base()+0x30afa90usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
391(RTHandleSystem)__receiver,(crate::unity_engine::rendertexture::RenderTexture)::core::convert::Into::into(texture))
392        }
393    }
394    #[doc = "`Alloc(crate::unity_engine::texture::Texture)` overload"]
395    fn alloc_5(
396        self,
397        texture: impl ::core::convert::Into<crate::unity_engine::texture::Texture>,
398    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
399        unsafe {
400            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
401            ::unity::il2cpp_call!((::unity::module_base()+0x30afb90usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
402(RTHandleSystem)__receiver,(crate::unity_engine::texture::Texture)::core::convert::Into::into(texture))
403        }
404    }
405    #[doc = "`Alloc(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)` overload"]
406    fn alloc_6(
407        self,
408        texture: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
409    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
410        unsafe {
411            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
412            ::unity::il2cpp_call!((::unity::module_base()+0x30afc90usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
413(RTHandleSystem)__receiver,(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(texture))
414        }
415    }
416    #[doc = "`Alloc(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier, ::unity::Il2CppString)` overload"]
417    fn alloc_7(
418        self,
419        texture: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
420        name: impl ::core::convert::Into<::unity::Il2CppString>,
421    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
422        unsafe {
423            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
424            ::unity::il2cpp_call!((::unity::module_base()+0x30afd10usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
425(RTHandleSystem)__receiver,(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(texture),(::unity::Il2CppString)::core::convert::Into::into(name))
426        }
427    }
428    #[doc = "`DumpRTInfo()` overload"]
429    fn dump_rt_info(self) -> ::unity::Il2CppString {
430        unsafe {
431            let __receiver = <RTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
432            ::unity::il2cpp_call!((::unity::module_base()+0x30afe90usize)as*mut u8, ::unity::Il2CppString;
433(RTHandleSystem)__receiver)
434        }
435    }
436}
437
438#[cfg(feature = "unity_engine-rendering-rthandlesystem")]
439impl<__T: IRTHandleSystem> IRTHandleSystemMethods for __T {}
440
441#[cfg(feature = "unity_engine-rendering-rthandlesystem")]
442impl RTHandleSystem {
443    pub fn get_rt_handle_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
444        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
445    }
446
447    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
448        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
449    }
450
451    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
452        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
453    }
454
455    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
456        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
457    }
458
459    pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
460        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
461    }
462
463    pub fn remove_method_info() -> &'static ::unity::il2cpp::MethodInfo {
464        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
465    }
466
467    pub fn reset_reference_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
468        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
469    }
470
471    pub fn set_reference_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
472        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
473    }
474
475    pub fn set_reference_size_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
476        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
477    }
478
479    pub fn set_hardware_dynamic_resolution_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
480        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
481    }
482
483    pub fn switch_resize_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
484        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
485    }
486
487    pub fn demand_resize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
488        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
489    }
490
491    pub fn get_max_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
492        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
493    }
494
495    pub fn get_max_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
496        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
497    }
498
499    pub fn dispose_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
500        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
501    }
502
503    pub fn resize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
504        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
505    }
506
507    pub fn alloc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
508        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
509    }
510
511    pub fn alloc_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
512        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
513    }
514
515    pub fn alloc_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
516        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
517    }
518
519    pub fn alloc_auto_sized_render_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
520        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
521    }
522
523    pub fn alloc_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
524        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
525    }
526
527    pub fn alloc_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
528        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
529    }
530
531    pub fn alloc_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
532        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
533    }
534
535    pub fn alloc_7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
536        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
537    }
538
539    pub fn alloc_8_method_info() -> &'static ::unity::il2cpp::MethodInfo {
540        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
541    }
542
543    pub fn dump_rt_info_method_info() -> &'static ::unity::il2cpp::MethodInfo {
544        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
545    }
546}
547
548#[cfg(feature = "unity_engine-rendering-rthandlesystem")]
549impl RTHandleSystem {
550    #[doc = "Direct (non-virtual) call to `RTHandleSystem`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
551    pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
552        let __mi = Self::dispose_method_info();
553        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
554        __inner(this.into(), ::core::option::Option::None)
555    }
556}
557
558#[cfg(feature = "unity_engine-rendering-rthandlesystem")]
559impl RTHandleSystem {
560    #[doc = "`.ctor()` — no args"]
561    pub fn new() -> Self {
562        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
563            panic!(
564                "{}
565::{}
566 failed to instantiate",
567                ::core::stringify!(RTHandleSystem),
568                ::core::stringify!(new),
569            )
570        });
571        <Self as IRTHandleSystemMethods>::ctor(this);
572        this
573    }
574}
575
576#[cfg(feature = "unity_engine-rendering-rthandlesystem")]
577#[doc(hidden)]
578pub mod prelude {
579    pub use super::{IRTHandleSystem, IRTHandleSystemMethods, RTHandleSystem, RTHandleSystem_ResizeMode};
580    #[cfg(feature = "system-object")]
581    pub use crate::system::object::IObjectMethods;
582    #[cfg(feature = "system-enum")]
583    pub use crate::system::r#enum::IEnumMethods;
584    #[cfg(feature = "system-valuetype")]
585    pub use crate::system::valuetype::IValueTypeMethods;
586    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
587}