Skip to main content

engage/generated/unity_engine/rendering/
rthandles.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-rthandles-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/rthandles/RTHandles.md"))]
11    #[::unity::class(namespace = "UnityEngine.Rendering", name = "RTHandles")]
12    #[parent(crate::system::object::Object)]
13    pub struct RTHandles {
14        #[static_field]
15        #[rename(name = "s_DefaultInstance")]
16        pub s_default_instance: crate::unity_engine::rendering::rthandlesystem::RTHandleSystem,
17    }
18}
19
20#[cfg(feature = "unity_engine-rendering-rthandles-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-rendering-rthandles")]
24impl RTHandles {
25    #[doc = "`get_maxWidth()` overload"]
26    pub fn get_max_width() -> i32 {
27        unsafe {
28            ::unity::il2cpp_call!((::unity::module_base()+0x30b01b0usize)as*mut u8,i32;
29            )
30        }
31    }
32
33    #[doc = "`get_maxHeight()` overload"]
34    pub fn get_max_height() -> i32 {
35        unsafe {
36            ::unity::il2cpp_call!((::unity::module_base()+0x30b0220usize)as*mut u8,i32;
37            )
38        }
39    }
40
41    #[doc = "`get_rtHandleProperties()` overload"]
42    pub fn get_rt_handle_properties() -> crate::unity_engine::rendering::rthandleproperties::RTHandleProperties {
43        unsafe {
44            ::unity::il2cpp_call!((::unity::module_base()+0x30b0290usize)as*mut u8,crate::unity_engine::rendering::rthandleproperties::RTHandleProperties;
45            )
46        }
47    }
48
49    #[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"]
50    pub fn alloc(
51        width: impl ::core::convert::Into<i32>,
52        height: impl ::core::convert::Into<i32>,
53        slices: impl ::core::convert::Into<i32>,
54        depth_buffer_bits: impl ::core::convert::Into<crate::unity_engine::rendering::depthbits::DepthBits>,
55        color_format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
56        filter_mode: impl ::core::convert::Into<crate::unity_engine::filtermode::FilterMode>,
57        wrap_mode: impl ::core::convert::Into<crate::unity_engine::texturewrapmode::TextureWrapMode>,
58        dimension: impl ::core::convert::Into<crate::unity_engine::rendering::texturedimension::TextureDimension>,
59        enable_random_write: impl ::core::convert::Into<bool>,
60        use_mip_map: impl ::core::convert::Into<bool>,
61        auto_generate_mips: impl ::core::convert::Into<bool>,
62        is_shadow_map: impl ::core::convert::Into<bool>,
63        aniso_level: impl ::core::convert::Into<i32>,
64        mip_map_bias: impl ::core::convert::Into<f32>,
65        msaa_samples: impl ::core::convert::Into<crate::unity_engine::rendering::msaasamples::MSAASamples>,
66        bind_texture_ms: impl ::core::convert::Into<bool>,
67        use_dynamic_scale: impl ::core::convert::Into<bool>,
68        memoryless: impl ::core::convert::Into<crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless>,
69        name: impl ::core::convert::Into<::unity::Il2CppString>,
70    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x30b0320usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
73(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))
74        }
75    }
76
77    #[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"]
78    pub fn alloc_2(
79        scale_factor: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
80        slices: impl ::core::convert::Into<i32>,
81        depth_buffer_bits: impl ::core::convert::Into<crate::unity_engine::rendering::depthbits::DepthBits>,
82        color_format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
83        filter_mode: impl ::core::convert::Into<crate::unity_engine::filtermode::FilterMode>,
84        wrap_mode: impl ::core::convert::Into<crate::unity_engine::texturewrapmode::TextureWrapMode>,
85        dimension: impl ::core::convert::Into<crate::unity_engine::rendering::texturedimension::TextureDimension>,
86        enable_random_write: impl ::core::convert::Into<bool>,
87        use_mip_map: impl ::core::convert::Into<bool>,
88        auto_generate_mips: impl ::core::convert::Into<bool>,
89        is_shadow_map: impl ::core::convert::Into<bool>,
90        aniso_level: impl ::core::convert::Into<i32>,
91        mip_map_bias: impl ::core::convert::Into<f32>,
92        enable_msaa: impl ::core::convert::Into<bool>,
93        bind_texture_ms: impl ::core::convert::Into<bool>,
94        use_dynamic_scale: impl ::core::convert::Into<bool>,
95        memoryless: impl ::core::convert::Into<crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless>,
96        name: impl ::core::convert::Into<::unity::Il2CppString>,
97    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x30b04c0usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
100(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))
101        }
102    }
103
104    #[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"]
105    pub fn alloc_3(
106        scale_func: impl ::core::convert::Into<crate::unity_engine::rendering::scalefunc::ScaleFunc>,
107        slices: impl ::core::convert::Into<i32>,
108        depth_buffer_bits: impl ::core::convert::Into<crate::unity_engine::rendering::depthbits::DepthBits>,
109        color_format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
110        filter_mode: impl ::core::convert::Into<crate::unity_engine::filtermode::FilterMode>,
111        wrap_mode: impl ::core::convert::Into<crate::unity_engine::texturewrapmode::TextureWrapMode>,
112        dimension: impl ::core::convert::Into<crate::unity_engine::rendering::texturedimension::TextureDimension>,
113        enable_random_write: impl ::core::convert::Into<bool>,
114        use_mip_map: impl ::core::convert::Into<bool>,
115        auto_generate_mips: impl ::core::convert::Into<bool>,
116        is_shadow_map: impl ::core::convert::Into<bool>,
117        aniso_level: impl ::core::convert::Into<i32>,
118        mip_map_bias: impl ::core::convert::Into<f32>,
119        enable_msaa: impl ::core::convert::Into<bool>,
120        bind_texture_ms: impl ::core::convert::Into<bool>,
121        use_dynamic_scale: impl ::core::convert::Into<bool>,
122        memoryless: impl ::core::convert::Into<crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless>,
123        name: impl ::core::convert::Into<::unity::Il2CppString>,
124    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
125        unsafe {
126            ::unity::il2cpp_call!((::unity::module_base()+0x30b0670usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
127(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))
128        }
129    }
130
131    #[doc = "`Alloc(crate::unity_engine::texture::Texture)` overload"]
132    pub fn alloc_4(tex: impl ::core::convert::Into<crate::unity_engine::texture::Texture>) -> crate::unity_engine::rendering::rthandle::RTHandle {
133        unsafe {
134            ::unity::il2cpp_call!((::unity::module_base()+0x30b0820usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
135(crate::unity_engine::texture::Texture)::core::convert::Into::into(tex))
136        }
137    }
138
139    #[doc = "`Alloc(crate::unity_engine::rendertexture::RenderTexture)` overload"]
140    pub fn alloc_5(
141        tex: impl ::core::convert::Into<crate::unity_engine::rendertexture::RenderTexture>,
142    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
143        unsafe {
144            ::unity::il2cpp_call!((::unity::module_base()+0x30b08a0usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
145(crate::unity_engine::rendertexture::RenderTexture)::core::convert::Into::into(tex))
146        }
147    }
148
149    #[doc = "`Alloc(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)` overload"]
150    pub fn alloc_6(
151        tex: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
152    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
153        unsafe {
154            ::unity::il2cpp_call!((::unity::module_base()+0x30b0920usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
155(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(tex))
156        }
157    }
158
159    #[doc = "`Alloc(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier, ::unity::Il2CppString)` overload"]
160    pub fn alloc_7(
161        tex: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
162        name: impl ::core::convert::Into<::unity::Il2CppString>,
163    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
164        unsafe {
165            ::unity::il2cpp_call!((::unity::module_base()+0x30b0a00usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
166(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(tex),(::unity::Il2CppString)::core::convert::Into::into(name))
167        }
168    }
169
170    #[doc = "`Alloc(crate::unity_engine::rendering::rthandle::RTHandle)` overload"]
171    pub fn alloc_8(
172        tex: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>,
173    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
174        unsafe {
175            ::unity::il2cpp_call!((::unity::module_base()+0x30b0aa0usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
176(crate::unity_engine::rendering::rthandle::RTHandle)::core::convert::Into::into(tex))
177        }
178    }
179
180    #[doc = "`Initialize(i32, i32, bool, crate::unity_engine::rendering::msaasamples::MSAASamples)` overload"]
181    pub fn initialize(
182        width: impl ::core::convert::Into<i32>,
183        height: impl ::core::convert::Into<i32>,
184        scaled_r_tsupports_msaa: impl ::core::convert::Into<bool>,
185        scaled_rtmsaa_samples: impl ::core::convert::Into<crate::unity_engine::rendering::msaasamples::MSAASamples>,
186    ) -> () {
187        unsafe {
188            ::unity::il2cpp_call!((::unity::module_base()+0x30b0b20usize)as*mut u8,();
189(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))
190        }
191    }
192
193    #[doc = "`Release(crate::unity_engine::rendering::rthandle::RTHandle)` overload"]
194    pub fn release(rth: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>) -> () {
195        unsafe {
196            ::unity::il2cpp_call!((::unity::module_base()+0x30b0bc0usize)as*mut u8,();
197(crate::unity_engine::rendering::rthandle::RTHandle)::core::convert::Into::into(rth))
198        }
199    }
200
201    #[doc = "`SetHardwareDynamicResolutionState(bool)` overload"]
202    pub fn set_hardware_dynamic_resolution_state(hw_dynamic_res_requested: impl ::core::convert::Into<bool>) -> () {
203        unsafe {
204            ::unity::il2cpp_call!((::unity::module_base()+0x30b0c40usize)as*mut u8,();
205(bool)::core::convert::Into::into(hw_dynamic_res_requested))
206        }
207    }
208
209    #[doc = "`SetReferenceSize(i32, i32, crate::unity_engine::rendering::msaasamples::MSAASamples)` overload"]
210    pub fn set_reference_size(
211        width: impl ::core::convert::Into<i32>,
212        height: impl ::core::convert::Into<i32>,
213        msaa_samples: impl ::core::convert::Into<crate::unity_engine::rendering::msaasamples::MSAASamples>,
214    ) -> () {
215        unsafe {
216            ::unity::il2cpp_call!((::unity::module_base()+0x30b0cc0usize)as*mut u8,();
217(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(crate::unity_engine::rendering::msaasamples::MSAASamples)::core::convert::Into::into(msaa_samples))
218        }
219    }
220
221    #[doc = "`ResetReferenceSize(i32, i32)` overload"]
222    pub fn reset_reference_size(width: impl ::core::convert::Into<i32>, height: impl ::core::convert::Into<i32>) -> () {
223        unsafe {
224            ::unity::il2cpp_call!((::unity::module_base()+0x30b0d50usize)as*mut u8,();
225(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height))
226        }
227    }
228
229    #[doc = "`.cctor()` overload"]
230    pub fn cctor() -> () {
231        unsafe {
232            ::unity::il2cpp_call!((::unity::module_base()+0x30b0de0usize)as*mut u8,();
233            )
234        }
235    }
236}
237
238#[cfg(feature = "unity_engine-rendering-rthandles")]
239impl RTHandles {
240    pub fn get_max_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
242    }
243
244    pub fn get_max_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
246    }
247
248    pub fn get_rt_handle_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
250    }
251
252    pub fn alloc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
254    }
255
256    pub fn alloc_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
258    }
259
260    pub fn alloc_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
262    }
263
264    pub fn alloc_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
266    }
267
268    pub fn alloc_5_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
270    }
271
272    pub fn alloc_6_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
274    }
275
276    pub fn alloc_7_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
278    }
279
280    pub fn alloc_8_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
282    }
283
284    pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
286    }
287
288    pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
290    }
291
292    pub fn set_hardware_dynamic_resolution_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
294    }
295
296    pub fn set_reference_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
298    }
299
300    pub fn reset_reference_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
302    }
303
304    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
306    }
307}
308
309#[cfg(feature = "unity_engine-rendering-rthandles")]
310#[doc(hidden)]
311pub mod prelude {
312    pub use super::{IRTHandles, RTHandles};
313    pub use crate::system::object::IObject;
314    #[cfg(feature = "system-object")]
315    pub use crate::system::object::IObjectMethods;
316}