engage/generated/unity_engine/experimental/rendering/render_graph_module/
texturepool.rs1#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturepool-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::experimental::rendering::render_graph_module::rendergraphresourcepool_1::{
11 IRenderGraphResourcePool_1, RenderGraphResourcePool_1,
12 },
13 };
14
15 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/render_graph_module/texturepool/TexturePool.md"))]
16 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.RenderGraphModule", name = "TexturePool")]
17 #[parent(crate::unity_engine::experimental::rendering::render_graph_module::rendergraphresourcepool_1::RenderGraphResourcePool_1<crate::unity_engine::rendering::rthandle::RTHandle>)]
18 pub struct TexturePool {}
19}
20
21#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturepool-types")]
22pub use __types::*;
23
24#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturepool")]
25pub trait ITexturePoolMethods: ITexturePool {
26 #[doc = "`ReleaseInternalResource(crate::unity_engine::rendering::rthandle::RTHandle)` overload"]
27 fn release_internal_resource(self, res: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>) -> () {
28 unsafe {
29 let __receiver = <TexturePool as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
30 {
31 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
32 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
33 panic!(
34 "unity: virtual slot {}
35 out of range (vtable len {}
36) on the runtime class behind {}
37 (method `{}
38`)",
39 4usize,
40 __vt.len(),
41 <TexturePool as ::unity::ClassIdentity>::NAME,
42 "ReleaseInternalResource",
43 )
44 });
45 let __inner: extern "C" fn(TexturePool, crate::unity_engine::rendering::rthandle::RTHandle, ::unity::OptionalMethod) -> () =
46 ::core::mem::transmute(__vi.method_ptr);
47 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
48 __inner(__receiver, ::core::convert::Into::into(res), __mi)
49 }
50 }
51 }
52 #[doc = "`GetResourceName(crate::unity_engine::rendering::rthandle::RTHandle)` overload"]
53 fn get_resource_name(self, res: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>) -> ::unity::Il2CppString {
54 unsafe {
55 let __receiver = <TexturePool as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
56 {
57 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
58 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
59 panic!(
60 "unity: virtual slot {}
61 out of range (vtable len {}
62) on the runtime class behind {}
63 (method `{}
64`)",
65 5usize,
66 __vt.len(),
67 <TexturePool as ::unity::ClassIdentity>::NAME,
68 "GetResourceName",
69 )
70 });
71 let __inner: extern "C" fn(
72 TexturePool,
73 crate::unity_engine::rendering::rthandle::RTHandle,
74 ::unity::OptionalMethod,
75 ) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
76 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
77 __inner(__receiver, ::core::convert::Into::into(res), __mi)
78 }
79 }
80 }
81 #[doc = "`GetResourceSize(crate::unity_engine::rendering::rthandle::RTHandle)` overload"]
82 fn get_resource_size(self, res: impl ::core::convert::Into<crate::unity_engine::rendering::rthandle::RTHandle>) -> i64 {
83 unsafe {
84 let __receiver = <TexturePool as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
85 {
86 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
87 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
88 panic!(
89 "unity: virtual slot {}
90 out of range (vtable len {}
91) on the runtime class behind {}
92 (method `{}
93`)",
94 6usize,
95 __vt.len(),
96 <TexturePool as ::unity::ClassIdentity>::NAME,
97 "GetResourceSize",
98 )
99 });
100 let __inner: extern "C" fn(TexturePool, crate::unity_engine::rendering::rthandle::RTHandle, ::unity::OptionalMethod) -> i64 =
101 ::core::mem::transmute(__vi.method_ptr);
102 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
103 __inner(__receiver, ::core::convert::Into::into(res), __mi)
104 }
105 }
106 }
107 #[doc = "`GetResourceTypeName()` overload"]
108 fn get_resource_type_name(self) -> ::unity::Il2CppString {
109 unsafe {
110 let __receiver = <TexturePool as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 {
112 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
114 panic!(
115 "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120 7usize,
121 __vt.len(),
122 <TexturePool as ::unity::ClassIdentity>::NAME,
123 "GetResourceTypeName",
124 )
125 });
126 let __inner: extern "C" fn(TexturePool, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__vi.method_ptr);
127 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
128 __inner(__receiver, __mi)
129 }
130 }
131 }
132 #[doc = "`PurgeUnusedResources(i32)` overload"]
133 fn purge_unused_resources(self, current_frame_index: impl ::core::convert::Into<i32>) -> () {
134 unsafe {
135 let __receiver = <TexturePool as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136 {
137 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
138 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
139 panic!(
140 "unity: virtual slot {}
141 out of range (vtable len {}
142) on the runtime class behind {}
143 (method `{}
144`)",
145 8usize,
146 __vt.len(),
147 <TexturePool as ::unity::ClassIdentity>::NAME,
148 "PurgeUnusedResources",
149 )
150 });
151 let __inner: extern "C" fn(TexturePool, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
152 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
153 __inner(__receiver, ::core::convert::Into::into(current_frame_index), __mi)
154 }
155 }
156 }
157 #[doc = "`.ctor()` overload"]
158 fn ctor(self) -> () {
159 unsafe {
160 let __receiver = <TexturePool as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161 ::unity::il2cpp_call!((::unity::module_base()+0x33dcb60usize)as*mut u8,();
162(TexturePool)__receiver)
163 }
164 }
165}
166
167#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturepool")]
168impl<__T: ITexturePool> ITexturePoolMethods for __T {}
169
170#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturepool")]
171impl TexturePool {
172 pub fn release_internal_resource_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
174 }
175
176 pub fn get_resource_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
178 }
179
180 pub fn get_resource_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
182 }
183
184 pub fn get_resource_type_name_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
186 }
187
188 pub fn purge_unused_resources_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
190 }
191
192 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
194 }
195}
196
197#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturepool")]
198impl TexturePool {
199 #[doc = "Direct (non-virtual) call to `TexturePool`'s own `ReleaseInternalResource`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
200 pub unsafe fn release_internal_resource(
201 this: impl ::core::convert::Into<::unity::IlInstance>,
202 res: crate::unity_engine::rendering::rthandle::RTHandle,
203 ) -> () {
204 let __mi = Self::release_internal_resource_method_info();
205 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::rthandle::RTHandle, ::unity::OptionalMethod) -> () =
206 ::core::mem::transmute(__mi.method_ptr);
207 __inner(this.into(), res, ::core::option::Option::None)
208 }
209
210 #[doc = "Direct (non-virtual) call to `TexturePool`'s own `GetResourceName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
211 pub unsafe fn get_resource_name(
212 this: impl ::core::convert::Into<::unity::IlInstance>,
213 res: crate::unity_engine::rendering::rthandle::RTHandle,
214 ) -> ::unity::Il2CppString {
215 let __mi = Self::get_resource_name_method_info();
216 let __inner: extern "C" fn(
217 ::unity::IlInstance,
218 crate::unity_engine::rendering::rthandle::RTHandle,
219 ::unity::OptionalMethod,
220 ) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
221 __inner(this.into(), res, ::core::option::Option::None)
222 }
223
224 #[doc = "Direct (non-virtual) call to `TexturePool`'s own `GetResourceSize`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
225 pub unsafe fn get_resource_size(
226 this: impl ::core::convert::Into<::unity::IlInstance>,
227 res: crate::unity_engine::rendering::rthandle::RTHandle,
228 ) -> i64 {
229 let __mi = Self::get_resource_size_method_info();
230 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::rthandle::RTHandle, ::unity::OptionalMethod) -> i64 =
231 ::core::mem::transmute(__mi.method_ptr);
232 __inner(this.into(), res, ::core::option::Option::None)
233 }
234
235 #[doc = "Direct (non-virtual) call to `TexturePool`'s own `GetResourceTypeName`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
236 pub unsafe fn get_resource_type_name(this: impl ::core::convert::Into<::unity::IlInstance>) -> ::unity::Il2CppString {
237 let __mi = Self::get_resource_type_name_method_info();
238 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> ::unity::Il2CppString = ::core::mem::transmute(__mi.method_ptr);
239 __inner(this.into(), ::core::option::Option::None)
240 }
241
242 #[doc = "Direct (non-virtual) call to `TexturePool`'s own `PurgeUnusedResources`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
243 pub unsafe fn purge_unused_resources(this: impl ::core::convert::Into<::unity::IlInstance>, current_frame_index: i32) -> () {
244 let __mi = Self::purge_unused_resources_method_info();
245 let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
246 __inner(this.into(), current_frame_index, ::core::option::Option::None)
247 }
248}
249
250#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturepool")]
251impl TexturePool {
252 #[doc = "`.ctor()` — no args"]
253 pub fn new() -> Self {
254 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
255 panic!(
256 "{}
257::{}
258 failed to instantiate",
259 ::core::stringify!(TexturePool),
260 ::core::stringify!(new),
261 )
262 });
263 <Self as ITexturePoolMethods>::ctor(this);
264 this
265 }
266}
267
268#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturepool")]
269#[doc(hidden)]
270pub mod prelude {
271 pub use super::{ITexturePool, ITexturePoolMethods, TexturePool};
272 #[cfg(feature = "system-object")]
273 pub use crate::system::object::IObjectMethods;
274 #[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphresourcepool_1")]
275 pub use crate::unity_engine::experimental::rendering::render_graph_module::rendergraphresourcepool_1::IRenderGraphResourcePool_1Methods;
276 pub use crate::{
277 system::object::IObject, unity_engine::experimental::rendering::render_graph_module::rendergraphresourcepool_1::IRenderGraphResourcePool_1,
278 };
279}