engage/generated/unity_engine/rendering/
bufferedrthandlesystem.rs1#[cfg(feature = "unity_engine-rendering-bufferedrthandlesystem-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/bufferedrthandlesystem/BufferedRTHandleSystem.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering", name = "BufferedRTHandleSystem")]
12 #[parent(crate::system::object::Object)]
13 pub struct BufferedRTHandleSystem {
14 #[offset(16)]
15 #[rename(name = "m_RTHandles")]
16 pub m_rt_handles:
17 crate::system::collections::generic::dictionary_2::Dictionary_2<i32, ::unity::Array<crate::unity_engine::rendering::rthandle::RTHandle>>,
18 #[offset(24)]
19 #[rename(name = "m_RTHandleSystem")]
20 pub m_rt_handle_system: crate::unity_engine::rendering::rthandlesystem::RTHandleSystem,
21 #[offset(32)]
22 #[rename(name = "m_DisposedValue")]
23 pub m_disposed_value: bool,
24 }
25}
26
27#[cfg(feature = "unity_engine-rendering-bufferedrthandlesystem-types")]
28pub use __types::*;
29
30#[cfg(feature = "unity_engine-rendering-bufferedrthandlesystem")]
31pub trait IBufferedRTHandleSystemMethods: IBufferedRTHandleSystem {
32 #[doc = "`get_maxWidth()` overload"]
33 fn get_max_width(self) -> i32 {
34 unsafe {
35 let __receiver =
36 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
37 ::unity::il2cpp_call!((::unity::module_base()+0x352d8e0usize)as*mut u8,i32;
38(BufferedRTHandleSystem)__receiver)
39 }
40 }
41 #[doc = "`get_maxHeight()` overload"]
42 fn get_max_height(self) -> i32 {
43 unsafe {
44 let __receiver =
45 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x352d8f0usize)as*mut u8,i32;
47(BufferedRTHandleSystem)__receiver)
48 }
49 }
50 #[doc = "`get_rtHandleProperties()` overload"]
51 fn get_rt_handle_properties(self) -> crate::unity_engine::rendering::rthandleproperties::RTHandleProperties {
52 unsafe {
53 let __receiver =
54 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
55 ::unity::il2cpp_call!((::unity::module_base()+0x352d900usize)as*mut u8,crate::unity_engine::rendering::rthandleproperties::RTHandleProperties;
56(BufferedRTHandleSystem)__receiver)
57 }
58 }
59 #[doc = "`GetFrameRT(i32, i32)` overload"]
60 fn get_frame_rt(
61 self,
62 buffer_id: impl ::core::convert::Into<i32>,
63 frame_index: impl ::core::convert::Into<i32>,
64 ) -> crate::unity_engine::rendering::rthandle::RTHandle {
65 unsafe {
66 let __receiver =
67 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 ::unity::il2cpp_call!((::unity::module_base()+0x352d920usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
69(BufferedRTHandleSystem)__receiver,(i32)::core::convert::Into::into(buffer_id),(i32)::core::convert::Into::into(frame_index))
70 }
71 }
72 #[doc = "`AllocBuffer(i32, crate::system::func_3::Func_3<crate::unity_engine::rendering::rthandlesystem::RTHandleSystem,i32,crate::unity_engine::rendering::rthandle::RTHandle>, i32)` overload"]
73 fn alloc_buffer(
74 self,
75 buffer_id: impl ::core::convert::Into<i32>,
76 allocator: impl ::core::convert::Into<
77 crate::system::func_3::Func_3<
78 crate::unity_engine::rendering::rthandlesystem::RTHandleSystem,
79 i32,
80 crate::unity_engine::rendering::rthandle::RTHandle,
81 >,
82 >,
83 buffer_count: impl ::core::convert::Into<i32>,
84 ) -> () {
85 unsafe {
86 let __receiver =
87 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88 ::unity::il2cpp_call!((::unity::module_base()+0x352d9e0usize)as*mut u8,();
89(BufferedRTHandleSystem)__receiver,(i32)::core::convert::Into::into(buffer_id),(crate::system::func_3::Func_3<crate::unity_engine::rendering::rthandlesystem::RTHandleSystem,i32,crate::unity_engine::rendering::rthandle::RTHandle>)::core::convert::Into::into(allocator),(i32)::core::convert::Into::into(buffer_count))
90 }
91 }
92 #[doc = "`ReleaseBuffer(i32)` overload"]
93 fn release_buffer(self, buffer_id: impl ::core::convert::Into<i32>) -> () {
94 unsafe {
95 let __receiver =
96 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 ::unity::il2cpp_call!((::unity::module_base()+0x352db90usize)as*mut u8,();
98(BufferedRTHandleSystem)__receiver,(i32)::core::convert::Into::into(buffer_id))
99 }
100 }
101 #[doc = "`SwapAndSetReferenceSize(i32, i32, crate::unity_engine::rendering::msaasamples::MSAASamples)` overload"]
102 fn swap_and_set_reference_size(
103 self,
104 width: impl ::core::convert::Into<i32>,
105 height: impl ::core::convert::Into<i32>,
106 msaa_samples: impl ::core::convert::Into<crate::unity_engine::rendering::msaasamples::MSAASamples>,
107 ) -> () {
108 unsafe {
109 let __receiver =
110 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x352dc80usize)as*mut u8,();
112(BufferedRTHandleSystem)__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))
113 }
114 }
115 #[doc = "`ResetReferenceSize(i32, i32)` overload"]
116 fn reset_reference_size(self, width: impl ::core::convert::Into<i32>, height: impl ::core::convert::Into<i32>) -> () {
117 unsafe {
118 let __receiver =
119 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x352dfc0usize)as*mut u8,();
121(BufferedRTHandleSystem)__receiver,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height))
122 }
123 }
124 #[doc = "`Swap()` overload"]
125 fn swap(self) -> () {
126 unsafe {
127 let __receiver =
128 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
129 ::unity::il2cpp_call!((::unity::module_base()+0x352dcd0usize)as*mut u8,();
130(BufferedRTHandleSystem)__receiver)
131 }
132 }
133 #[doc = "`Dispose(bool)` overload"]
134 fn dispose(self, disposing: impl ::core::convert::Into<bool>) -> () {
135 unsafe {
136 let __receiver =
137 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
138 ::unity::il2cpp_call!((::unity::module_base()+0x352dfd0usize)as*mut u8,();
139(BufferedRTHandleSystem)__receiver,(bool)::core::convert::Into::into(disposing))
140 }
141 }
142 #[doc = "`Dispose()` overload"]
143 fn dispose_2(self) -> () {
144 unsafe {
145 let __receiver =
146 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 {
148 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
149 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
150 panic!(
151 "unity: virtual slot {}
152 out of range (vtable len {}
153) on the runtime class behind {}
154 (method `{}
155`)",
156 4usize,
157 __vt.len(),
158 <BufferedRTHandleSystem as ::unity::ClassIdentity>::NAME,
159 "Dispose",
160 )
161 });
162 let __inner: extern "C" fn(BufferedRTHandleSystem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
163 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
164 __inner(__receiver, __mi)
165 }
166 }
167 }
168 #[doc = "`ReleaseAll()` overload"]
169 fn release_all(self) -> () {
170 unsafe {
171 let __receiver =
172 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
173 ::unity::il2cpp_call!((::unity::module_base()+0x352e040usize)as*mut u8,();
174(BufferedRTHandleSystem)__receiver)
175 }
176 }
177 #[doc = "`.ctor()` overload"]
178 fn ctor(self) -> () {
179 unsafe {
180 let __receiver =
181 <BufferedRTHandleSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182 ::unity::il2cpp_call!((::unity::module_base()+0x352e240usize)as*mut u8,();
183(BufferedRTHandleSystem)__receiver)
184 }
185 }
186}
187
188#[cfg(feature = "unity_engine-rendering-bufferedrthandlesystem")]
189impl<__T: IBufferedRTHandleSystem> IBufferedRTHandleSystemMethods for __T {}
190
191#[cfg(feature = "unity_engine-rendering-bufferedrthandlesystem")]
192impl BufferedRTHandleSystem {
193 pub fn get_max_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
195 }
196
197 pub fn get_max_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
199 }
200
201 pub fn get_rt_handle_properties_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
203 }
204
205 pub fn get_frame_rt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
207 }
208
209 pub fn alloc_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
211 }
212
213 pub fn release_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
215 }
216
217 pub fn swap_and_set_reference_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
219 }
220
221 pub fn reset_reference_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
223 }
224
225 pub fn swap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
227 }
228
229 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
231 }
232
233 pub fn dispose_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
235 }
236
237 pub fn release_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
239 }
240
241 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
243 }
244}
245
246#[cfg(feature = "unity_engine-rendering-bufferedrthandlesystem")]
247impl BufferedRTHandleSystem {
248 #[doc = "Direct (non-virtual) call to `BufferedRTHandleSystem`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
249 pub unsafe fn dispose_2(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
250 let __mi = Self::dispose_2_method_info();
251 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
252 __inner(this.into(), ::core::option::Option::None)
253 }
254}
255
256#[cfg(feature = "unity_engine-rendering-bufferedrthandlesystem")]
257impl BufferedRTHandleSystem {
258 #[doc = "`.ctor()` — no args"]
259 pub fn new() -> Self {
260 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
261 panic!(
262 "{}
263::{}
264 failed to instantiate",
265 ::core::stringify!(BufferedRTHandleSystem),
266 ::core::stringify!(new),
267 )
268 });
269 <Self as IBufferedRTHandleSystemMethods>::ctor(this);
270 this
271 }
272}
273
274#[cfg(feature = "unity_engine-rendering-bufferedrthandlesystem")]
275#[doc(hidden)]
276pub mod prelude {
277 pub use super::{BufferedRTHandleSystem, IBufferedRTHandleSystem, IBufferedRTHandleSystemMethods};
278 pub use crate::system::object::IObject;
279 #[cfg(feature = "system-object")]
280 pub use crate::system::object::IObjectMethods;
281}