engage/generated/unity_engine/rendering/
rthandle.rs1#[cfg(feature = "unity_engine-rendering-rthandle-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/rthandle/RTHandle.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering", name = "RTHandle")]
12 #[parent(crate::system::object::Object)]
13 pub struct RTHandle {
14 #[offset(16)]
15 #[rename(name = "m_Owner")]
16 pub m_owner: crate::unity_engine::rendering::rthandlesystem::RTHandleSystem,
17 #[offset(24)]
18 #[rename(name = "m_RT")]
19 pub m_rt: crate::unity_engine::rendertexture::RenderTexture,
20 #[offset(32)]
21 #[rename(name = "m_ExternalTexture")]
22 pub m_external_texture: crate::unity_engine::texture::Texture,
23 #[offset(40)]
24 #[rename(name = "m_NameID")]
25 pub m_name_id: crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier,
26 #[offset(80)]
27 #[rename(name = "m_EnableMSAA")]
28 pub m_enable_msaa: bool,
29 #[offset(81)]
30 #[rename(name = "m_EnableRandomWrite")]
31 pub m_enable_random_write: bool,
32 #[offset(82)]
33 #[rename(name = "m_EnableHWDynamicScale")]
34 pub m_enable_hw_dynamic_scale: bool,
35 #[offset(88)]
36 #[rename(name = "m_Name")]
37 pub m_name: ::unity::Il2CppString,
38 #[offset(104)]
39 #[rename(name = "scaleFunc")]
40 pub scale_func: crate::unity_engine::rendering::scalefunc::ScaleFunc,
41 }
42}
43
44#[cfg(feature = "unity_engine-rendering-rthandle-types")]
45pub use __types::*;
46
47#[cfg(feature = "unity_engine-rendering-rthandle")]
48impl RTHandle {
49 #[doc = "`op_Implicit(crate::unity_engine::rendering::rthandle::RTHandle)` overload"]
50 pub fn op_implicit(
51 handle: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>,
52 ) -> crate::unity_engine::rendertexture::RenderTexture {
53 unsafe {
54 ::unity::il2cpp_call!((::unity::module_base()+0x30ad520usize)as*mut u8,crate::unity_engine::rendertexture::RenderTexture;
55(crate::unity_engine::rendering::rthandle::RTHandle)::core::convert::Into::into(handle))
56 }
57 }
58}
59
60#[cfg(feature = "unity_engine-rendering-rthandle")]
61pub trait IRTHandleMethods: IRTHandle {
62 #[doc = "`get_scaleFactor()` overload"]
63 fn get_scale_factor(self) -> crate::unity_engine::vector2::Vector2 {
64 unsafe {
65 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x30ad410usize)as*mut u8,crate::unity_engine::vector2::Vector2;
67(RTHandle)__receiver)
68 }
69 }
70 #[doc = "`set_scaleFactor(crate::unity_engine::vector2::Vector2)` overload"]
71 fn set_scale_factor(self, value: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>) -> () {
72 unsafe {
73 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x30ad420usize)as*mut u8,();
75(RTHandle)__receiver,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(value))
76 }
77 }
78 #[doc = "`get_useScaling()` overload"]
79 fn get_use_scaling(self) -> bool {
80 unsafe {
81 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
82 ::unity::il2cpp_call!((::unity::module_base()+0x30ad430usize)as*mut u8,bool;
83(RTHandle)__receiver)
84 }
85 }
86 #[doc = "`set_useScaling(bool)` overload"]
87 fn set_use_scaling(self, value: impl ::core::convert::Into<bool>) -> () {
88 unsafe {
89 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x30ad440usize)as*mut u8,();
91(RTHandle)__receiver,(bool)::core::convert::Into::into(value))
92 }
93 }
94 #[doc = "`get_referenceSize()` overload"]
95 fn get_reference_size(self) -> crate::unity_engine::vector2int::Vector2Int {
96 unsafe {
97 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x30ad450usize)as*mut u8,crate::unity_engine::vector2int::Vector2Int;
99(RTHandle)__receiver)
100 }
101 }
102 #[doc = "`set_referenceSize(crate::unity_engine::vector2int::Vector2Int)` overload"]
103 fn set_reference_size(self, value: impl ::core::convert::Into<crate::unity_engine::vector2int::Vector2Int>) -> () {
104 unsafe {
105 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
106 ::unity::il2cpp_call!((::unity::module_base()+0x30ad460usize)as*mut u8,();
107(RTHandle)__receiver,(crate::unity_engine::vector2int::Vector2Int)::core::convert::Into::into(value))
108 }
109 }
110 #[doc = "`get_rtHandleProperties()` overload"]
111 fn get_rt_handle_properties(self) -> crate::unity_engine::rendering::rthandleproperties::RTHandleProperties {
112 unsafe {
113 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114 ::unity::il2cpp_call!((::unity::module_base()+0x30ad470usize)as*mut u8,crate::unity_engine::rendering::rthandleproperties::RTHandleProperties;
115(RTHandle)__receiver)
116 }
117 }
118 #[doc = "`get_rt()` overload"]
119 fn get_rt(self) -> crate::unity_engine::rendertexture::RenderTexture {
120 unsafe {
121 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 ::unity::il2cpp_call!((::unity::module_base()+0x30ad490usize)as*mut u8,crate::unity_engine::rendertexture::RenderTexture;
123(RTHandle)__receiver)
124 }
125 }
126 #[doc = "`get_nameID()` overload"]
127 fn get_name_id(self) -> crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier {
128 unsafe {
129 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
130 ::unity::il2cpp_call!((::unity::module_base()+0x30ad4a0usize)as*mut u8,crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier;
131(RTHandle)__receiver)
132 }
133 }
134 #[doc = "`get_name()` overload"]
135 fn get_name(self) -> ::unity::Il2CppString {
136 unsafe {
137 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138 ::unity::il2cpp_call!((::unity::module_base()+0x30ad4c0usize)as*mut u8, ::unity::Il2CppString;
139(RTHandle)__receiver)
140 }
141 }
142 #[doc = "`get_isMSAAEnabled()` overload"]
143 fn get_is_msaa_enabled(self) -> bool {
144 unsafe {
145 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
146 ::unity::il2cpp_call!((::unity::module_base()+0x30ad4d0usize)as*mut u8,bool;
147(RTHandle)__receiver)
148 }
149 }
150 #[doc = "`.ctor(crate::unity_engine::rendering::rthandlesystem::RTHandleSystem)` overload"]
151 fn ctor(self, owner: impl ::core::convert::Into<crate::unity_engine::rendering::rthandlesystem::RTHandleSystem>) -> () {
152 unsafe {
153 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
154 ::unity::il2cpp_call!((::unity::module_base()+0x30ad4e0usize)as*mut u8,();
155(RTHandle)__receiver,(crate::unity_engine::rendering::rthandlesystem::RTHandleSystem)::core::convert::Into::into(owner))
156 }
157 }
158 #[doc = "`SetRenderTexture(crate::unity_engine::rendertexture::RenderTexture)` overload"]
159 fn set_render_texture(self, rt: impl ::core::convert::Into<crate::unity_engine::rendertexture::RenderTexture>) -> () {
160 unsafe {
161 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x30ad600usize)as*mut u8,();
163(RTHandle)__receiver,(crate::unity_engine::rendertexture::RenderTexture)::core::convert::Into::into(rt))
164 }
165 }
166 #[doc = "`SetTexture(crate::unity_engine::texture::Texture)` overload"]
167 fn set_texture(self, tex: impl ::core::convert::Into<crate::unity_engine::texture::Texture>) -> () {
168 unsafe {
169 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
170 ::unity::il2cpp_call!((::unity::module_base()+0x30ad680usize)as*mut u8,();
171(RTHandle)__receiver,(crate::unity_engine::texture::Texture)::core::convert::Into::into(tex))
172 }
173 }
174 #[doc = "`SetTexture(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)` overload"]
175 fn set_texture_2(self, tex: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>) -> () {
176 unsafe {
177 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
178 ::unity::il2cpp_call!((::unity::module_base()+0x30ad700usize)as*mut u8,();
179(RTHandle)__receiver,(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(tex))
180 }
181 }
182 #[doc = "`Release()` overload"]
183 fn release(self) -> () {
184 unsafe {
185 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 ::unity::il2cpp_call!((::unity::module_base()+0x30ad750usize)as*mut u8,();
187(RTHandle)__receiver)
188 }
189 }
190 #[doc = "`GetScaledSize(crate::unity_engine::vector2int::Vector2Int)` overload"]
191 fn get_scaled_size(
192 self,
193 ref_size: impl ::core::convert::Into<crate::unity_engine::vector2int::Vector2Int>,
194 ) -> crate::unity_engine::vector2int::Vector2Int {
195 unsafe {
196 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x30ad8d0usize)as*mut u8,crate::unity_engine::vector2int::Vector2Int;
198(RTHandle)__receiver,(crate::unity_engine::vector2int::Vector2Int)::core::convert::Into::into(ref_size))
199 }
200 }
201 #[doc = "`SwitchToFastMemory(crate::unity_engine::rendering::commandbuffer::CommandBuffer, f32, crate::unity_engine::rendering::fastmemoryflags::FastMemoryFlags, bool)` overload"]
202 fn switch_to_fast_memory(
203 self,
204 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
205 residency_fraction: impl ::core::convert::Into<f32>,
206 flags: impl ::core::convert::Into<crate::unity_engine::rendering::fastmemoryflags::FastMemoryFlags>,
207 copy_contents: impl ::core::convert::Into<bool>,
208 ) -> () {
209 unsafe {
210 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211 ::unity::il2cpp_call!((::unity::module_base()+0x30ad950usize)as*mut u8,();
212(RTHandle)__receiver,(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(f32)::core::convert::Into::into(residency_fraction),(crate::unity_engine::rendering::fastmemoryflags::FastMemoryFlags)::core::convert::Into::into(flags),(bool)::core::convert::Into::into(copy_contents))
213 }
214 }
215 #[doc = "`CopyToFastMemory(crate::unity_engine::rendering::commandbuffer::CommandBuffer, f32, crate::unity_engine::rendering::fastmemoryflags::FastMemoryFlags)` overload"]
216 fn copy_to_fast_memory(
217 self,
218 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
219 residency_fraction: impl ::core::convert::Into<f32>,
220 flags: impl ::core::convert::Into<crate::unity_engine::rendering::fastmemoryflags::FastMemoryFlags>,
221 ) -> () {
222 unsafe {
223 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
224 ::unity::il2cpp_call!((::unity::module_base()+0x30ad9e0usize)as*mut u8,();
225(RTHandle)__receiver,(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(f32)::core::convert::Into::into(residency_fraction),(crate::unity_engine::rendering::fastmemoryflags::FastMemoryFlags)::core::convert::Into::into(flags))
226 }
227 }
228 #[doc = "`SwitchOutFastMemory(crate::unity_engine::rendering::commandbuffer::CommandBuffer, bool)` overload"]
229 fn switch_out_fast_memory(
230 self,
231 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
232 copy_contents: impl ::core::convert::Into<bool>,
233 ) -> () {
234 unsafe {
235 let __receiver = <RTHandle as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
236 ::unity::il2cpp_call!((::unity::module_base()+0x30ada70usize)as*mut u8,();
237(RTHandle)__receiver,(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(bool)::core::convert::Into::into(copy_contents))
238 }
239 }
240}
241
242#[cfg(feature = "unity_engine-rendering-rthandle")]
243impl<__T: IRTHandle> IRTHandleMethods for __T {}
244
245#[cfg(feature = "unity_engine-rendering-rthandle")]
246impl RTHandle {
247 pub fn get_scale_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
249 }
250
251 pub fn set_scale_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
253 }
254
255 pub fn get_use_scaling_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
257 }
258
259 pub fn set_use_scaling_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
261 }
262
263 pub fn get_reference_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
265 }
266
267 pub fn set_reference_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
269 }
270
271 pub fn get_rt_handle_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
273 }
274
275 pub fn get_rt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
277 }
278
279 pub fn get_name_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
281 }
282
283 pub fn get_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
285 }
286
287 pub fn get_is_msaa_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
289 }
290
291 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
293 }
294
295 pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
297 }
298
299 pub fn set_render_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
300 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
301 }
302
303 pub fn set_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
304 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
305 }
306
307 pub fn set_texture_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
308 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
309 }
310
311 pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
312 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
313 }
314
315 pub fn get_scaled_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
316 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
317 }
318
319 pub fn switch_to_fast_memory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
320 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
321 }
322
323 pub fn copy_to_fast_memory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
324 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
325 }
326
327 pub fn switch_out_fast_memory_method_info() -> &'static ::unity::il2cpp::MethodInfo {
328 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
329 }
330}
331
332#[cfg(feature = "unity_engine-rendering-rthandle")]
333impl RTHandle {
334 #[doc = "`.ctor(crate::unity_engine::rendering::rthandlesystem::RTHandleSystem)` — overload selector"]
335 pub fn new(owner: crate::unity_engine::rendering::rthandlesystem::RTHandleSystem) -> Self {
336 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
337 panic!(
338 "{}
339::{}
340 failed to instantiate",
341 ::core::stringify!(RTHandle),
342 ::core::stringify!(new),
343 )
344 });
345 <Self as IRTHandleMethods>::ctor(this, owner);
346 this
347 }
348}
349
350#[cfg(feature = "unity_engine-rendering-rthandle")]
351#[doc(hidden)]
352pub mod prelude {
353 pub use super::{IRTHandle, IRTHandleMethods, RTHandle};
354 pub use crate::system::object::IObject;
355 #[cfg(feature = "system-object")]
356 pub use crate::system::object::IObjectMethods;
357}