engage/generated/unity_engine/experimental/rendering/render_graph_module/
rendergraphdefaultresources.rs1#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdefaultresources-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/experimental/rendering/render_graph_module/rendergraphdefaultresources/RenderGraphDefaultResources.md"))]
11 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.RenderGraphModule", name = "RenderGraphDefaultResources")]
12 #[parent(crate::system::object::Object)]
13 pub struct RenderGraphDefaultResources {
14 #[offset(16)]
15 #[rename(name = "m_IsValid")]
16 pub m_is_valid: bool,
17 #[offset(24)]
18 #[rename(name = "m_BlackTexture2D")]
19 pub m_black_texture2_d: crate::unity_engine::rendering::rthandle::RTHandle,
20 #[offset(32)]
21 #[rename(name = "m_WhiteTexture2D")]
22 pub m_white_texture2_d: crate::unity_engine::rendering::rthandle::RTHandle,
23 }
24}
25
26#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdefaultresources-types")]
27pub use __types::*;
28
29#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdefaultresources")]
30pub trait IRenderGraphDefaultResourcesMethods: IRenderGraphDefaultResources {
31 #[doc = "`get_blackTexture()` overload"]
32 fn get_black_texture(self) -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
33 unsafe {
34 let __receiver =
35 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x30b9d30usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle;
37(RenderGraphDefaultResources)__receiver)
38 }
39 }
40 #[doc = "`set_blackTexture(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)` overload"]
41 fn set_black_texture(
42 self,
43 value: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle>,
44 ) -> () {
45 unsafe {
46 let __receiver =
47 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 ::unity::il2cpp_call!((::unity::module_base()+0x30b9d40usize)as*mut u8,();
49(RenderGraphDefaultResources)__receiver,(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)::core::convert::Into::into(value))
50 }
51 }
52 #[doc = "`get_whiteTexture()` overload"]
53 fn get_white_texture(self) -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
54 unsafe {
55 let __receiver =
56 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
57 ::unity::il2cpp_call!((::unity::module_base()+0x30b9d50usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle;
58(RenderGraphDefaultResources)__receiver)
59 }
60 }
61 #[doc = "`set_whiteTexture(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)` overload"]
62 fn set_white_texture(
63 self,
64 value: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle>,
65 ) -> () {
66 unsafe {
67 let __receiver =
68 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
69 ::unity::il2cpp_call!((::unity::module_base()+0x30b9d60usize)as*mut u8,();
70(RenderGraphDefaultResources)__receiver,(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)::core::convert::Into::into(value))
71 }
72 }
73 #[doc = "`get_clearTextureXR()` overload"]
74 fn get_clear_texture_xr(self) -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
75 unsafe {
76 let __receiver =
77 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78 ::unity::il2cpp_call!((::unity::module_base()+0x30b9d70usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle;
79(RenderGraphDefaultResources)__receiver)
80 }
81 }
82 #[doc = "`set_clearTextureXR(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)` overload"]
83 fn set_clear_texture_xr(
84 self,
85 value: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle>,
86 ) -> () {
87 unsafe {
88 let __receiver =
89 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 ::unity::il2cpp_call!((::unity::module_base()+0x30b9d80usize)as*mut u8,();
91(RenderGraphDefaultResources)__receiver,(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)::core::convert::Into::into(value))
92 }
93 }
94 #[doc = "`get_magentaTextureXR()` overload"]
95 fn get_magenta_texture_xr(self) -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
96 unsafe {
97 let __receiver =
98 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99 ::unity::il2cpp_call!((::unity::module_base()+0x30b9d90usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle;
100(RenderGraphDefaultResources)__receiver)
101 }
102 }
103 #[doc = "`set_magentaTextureXR(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)` overload"]
104 fn set_magenta_texture_xr(
105 self,
106 value: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle>,
107 ) -> () {
108 unsafe {
109 let __receiver =
110 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111 ::unity::il2cpp_call!((::unity::module_base()+0x30b9da0usize)as*mut u8,();
112(RenderGraphDefaultResources)__receiver,(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)::core::convert::Into::into(value))
113 }
114 }
115 #[doc = "`get_blackTextureXR()` overload"]
116 fn get_black_texture_xr(self) -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
117 unsafe {
118 let __receiver =
119 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
120 ::unity::il2cpp_call!((::unity::module_base()+0x30b9db0usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle;
121(RenderGraphDefaultResources)__receiver)
122 }
123 }
124 #[doc = "`set_blackTextureXR(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)` overload"]
125 fn set_black_texture_xr(
126 self,
127 value: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle>,
128 ) -> () {
129 unsafe {
130 let __receiver =
131 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x30b9dc0usize)as*mut u8,();
133(RenderGraphDefaultResources)__receiver,(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)::core::convert::Into::into(value))
134 }
135 }
136 #[doc = "`get_blackTextureArrayXR()` overload"]
137 fn get_black_texture_array_xr(self) -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
138 unsafe {
139 let __receiver =
140 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
141 ::unity::il2cpp_call!((::unity::module_base()+0x30b9dd0usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle;
142(RenderGraphDefaultResources)__receiver)
143 }
144 }
145 #[doc = "`set_blackTextureArrayXR(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)` overload"]
146 fn set_black_texture_array_xr(
147 self,
148 value: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle>,
149 ) -> () {
150 unsafe {
151 let __receiver =
152 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
153 ::unity::il2cpp_call!((::unity::module_base()+0x30b9de0usize)as*mut u8,();
154(RenderGraphDefaultResources)__receiver,(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)::core::convert::Into::into(value))
155 }
156 }
157 #[doc = "`get_blackUIntTextureXR()` overload"]
158 fn get_black_u_int_texture_xr(self) -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
159 unsafe {
160 let __receiver =
161 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 ::unity::il2cpp_call!((::unity::module_base()+0x30b9df0usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle;
163(RenderGraphDefaultResources)__receiver)
164 }
165 }
166 #[doc = "`set_blackUIntTextureXR(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)` overload"]
167 fn set_black_u_int_texture_xr(
168 self,
169 value: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle>,
170 ) -> () {
171 unsafe {
172 let __receiver =
173 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174 ::unity::il2cpp_call!((::unity::module_base()+0x30b9e00usize)as*mut u8,();
175(RenderGraphDefaultResources)__receiver,(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)::core::convert::Into::into(value))
176 }
177 }
178 #[doc = "`get_blackTexture3DXR()` overload"]
179 fn get_black_texture3_dxr(self) -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
180 unsafe {
181 let __receiver =
182 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
183 ::unity::il2cpp_call!((::unity::module_base()+0x30b9e10usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle;
184(RenderGraphDefaultResources)__receiver)
185 }
186 }
187 #[doc = "`set_blackTexture3DXR(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)` overload"]
188 fn set_black_texture3_dxr(
189 self,
190 value: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle>,
191 ) -> () {
192 unsafe {
193 let __receiver =
194 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
195 ::unity::il2cpp_call!((::unity::module_base()+0x30b9e20usize)as*mut u8,();
196(RenderGraphDefaultResources)__receiver,(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)::core::convert::Into::into(value))
197 }
198 }
199 #[doc = "`get_whiteTextureXR()` overload"]
200 fn get_white_texture_xr(self) -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
201 unsafe {
202 let __receiver =
203 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 ::unity::il2cpp_call!((::unity::module_base()+0x30b9e30usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle;
205(RenderGraphDefaultResources)__receiver)
206 }
207 }
208 #[doc = "`set_whiteTextureXR(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)` overload"]
209 fn set_white_texture_xr(
210 self,
211 value: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle>,
212 ) -> () {
213 unsafe {
214 let __receiver =
215 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
216 ::unity::il2cpp_call!((::unity::module_base()+0x30b9e40usize)as*mut u8,();
217(RenderGraphDefaultResources)__receiver,(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)::core::convert::Into::into(value))
218 }
219 }
220 #[doc = "`.ctor()` overload"]
221 fn ctor(self) -> () {
222 unsafe {
223 let __receiver =
224 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225 ::unity::il2cpp_call!((::unity::module_base()+0x30b1800usize)as*mut u8,();
226(RenderGraphDefaultResources)__receiver)
227 }
228 }
229 #[doc = "`Cleanup()` overload"]
230 fn cleanup(self) -> () {
231 unsafe {
232 let __receiver =
233 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
234 ::unity::il2cpp_call!((::unity::module_base()+0x30b21a0usize)as*mut u8,();
235(RenderGraphDefaultResources)__receiver)
236 }
237 }
238 #[doc = "`InitializeForRendering(crate::unity_engine::experimental::rendering::render_graph_module::rendergraph::RenderGraph)` overload"]
239 fn initialize_for_rendering(
240 self,
241 render_graph: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::rendergraph::RenderGraph>,
242 ) -> () {
243 unsafe {
244 let __receiver =
245 <RenderGraphDefaultResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246 ::unity::il2cpp_call!((::unity::module_base()+0x30b27b0usize)as*mut u8,();
247(RenderGraphDefaultResources)__receiver,(crate::unity_engine::experimental::rendering::render_graph_module::rendergraph::RenderGraph)::core::convert::Into::into(render_graph))
248 }
249 }
250}
251
252#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdefaultresources")]
253impl<__T: IRenderGraphDefaultResources> IRenderGraphDefaultResourcesMethods for __T {}
254
255#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdefaultresources")]
256impl RenderGraphDefaultResources {
257 pub fn get_black_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
258 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
259 }
260
261 pub fn set_black_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
262 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
263 }
264
265 pub fn get_white_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
266 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
267 }
268
269 pub fn set_white_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
270 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
271 }
272
273 pub fn get_clear_texture_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
275 }
276
277 pub fn set_clear_texture_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
279 }
280
281 pub fn get_magenta_texture_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
283 }
284
285 pub fn set_magenta_texture_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
287 }
288
289 pub fn get_black_texture_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
291 }
292
293 pub fn set_black_texture_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
295 }
296
297 pub fn get_black_texture_array_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
299 }
300
301 pub fn set_black_texture_array_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
303 }
304
305 pub fn get_black_u_int_texture_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
307 }
308
309 pub fn set_black_u_int_texture_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
311 }
312
313 pub fn get_black_texture3_dxr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
315 }
316
317 pub fn set_black_texture3_dxr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
319 }
320
321 pub fn get_white_texture_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
323 }
324
325 pub fn set_white_texture_xr_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
327 }
328
329 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
331 }
332
333 pub fn cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
335 }
336
337 pub fn initialize_for_rendering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
339 }
340}
341
342#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdefaultresources")]
343impl RenderGraphDefaultResources {
344 #[doc = "`.ctor()` — no args"]
345 pub fn new() -> Self {
346 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
347 panic!(
348 "{}
349::{}
350 failed to instantiate",
351 ::core::stringify!(RenderGraphDefaultResources),
352 ::core::stringify!(new),
353 )
354 });
355 <Self as IRenderGraphDefaultResourcesMethods>::ctor(this);
356 this
357 }
358}
359
360#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdefaultresources")]
361#[doc(hidden)]
362pub mod prelude {
363 pub use super::{IRenderGraphDefaultResources, IRenderGraphDefaultResourcesMethods, RenderGraphDefaultResources};
364 pub use crate::system::object::IObject;
365 #[cfg(feature = "system-object")]
366 pub use crate::system::object::IObjectMethods;
367}