engage/generated/unity_engine/experimental/rendering/render_graph_module/
resourcehandle.rs1#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-resourcehandle-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/render_graph_module/resourcehandle/ResourceHandle.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct ResourceHandle {
17 pub m_value: u32,
18 }
19 impl ::unity::ClassIdentity for ResourceHandle {
20 const NAME: &'static str = "ResourceHandle";
21 const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.RenderGraphModule";
22
23 fn class() -> ::unity::Class {
24 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
26 }
27 }
28 impl ::unity::IlType for ResourceHandle {
29 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31 }
32 }
33 impl ResourceHandle {
34 #[inline]
35 pub fn k_validity_mask() -> u32 {
36 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
37 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "kValidityMask");
38 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
39 }
40
41 #[inline]
42 pub fn set_k_validity_mask(value: u32) {
43 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
44 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "kValidityMask");
45 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
46 }
47
48 #[inline]
49 pub fn k_index_mask() -> u32 {
50 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
51 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "kIndexMask");
52 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
53 }
54
55 #[inline]
56 pub fn set_k_index_mask(value: u32) {
57 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
58 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "kIndexMask");
59 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
60 }
61
62 #[inline]
63 pub fn s_current_valid_bit() -> u32 {
64 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
65 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_CurrentValidBit");
66 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
67 }
68
69 #[inline]
70 pub fn set_s_current_valid_bit(value: u32) {
71 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
72 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_CurrentValidBit");
73 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
74 }
75 }
76}
77
78#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-resourcehandle-types")]
79pub use __types::*;
80
81#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-resourcehandle")]
82impl ResourceHandle {
83 #[doc = "`op_Implicit(crate::unity_engine::experimental::rendering::render_graph_module::resourcehandle::ResourceHandle)` overload"]
84 pub fn op_implicit(
85 handle: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::resourcehandle::ResourceHandle>,
86 ) -> i32 {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x33ddc10usize)as*mut u8,i32;
89(crate::unity_engine::experimental::rendering::render_graph_module::resourcehandle::ResourceHandle)::core::convert::Into::into(handle))
90 }
91 }
92
93 #[doc = "`NewFrame(i32)` overload"]
94 pub fn new_frame(execution_index: impl ::core::convert::Into<i32>) -> () {
95 unsafe {
96 ::unity::il2cpp_call!((::unity::module_base()+0x33dcff0usize)as*mut u8,();
97(i32)::core::convert::Into::into(execution_index))
98 }
99 }
100
101 #[doc = "`.cctor()` overload"]
102 pub fn cctor() -> () {
103 unsafe {
104 ::unity::il2cpp_call!((::unity::module_base()+0x33e0b60usize)as*mut u8,();
105 )
106 }
107 }
108}
109
110#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-resourcehandle")]
111impl ResourceHandle {
112 #[doc = "`get_index()` overload"]
113 pub fn get_index(&mut self) -> i32 {
114 unsafe {
115 ::unity::il2cpp_call!((::unity::module_base()+0x33dd1a0usize)as*mut u8,i32;
116(*mut ResourceHandle)self as*mut ResourceHandle)
117 }
118 }
119
120 #[doc = "`get_type()` overload"]
121 pub fn get_type(
122 &mut self,
123 ) -> crate::unity_engine::experimental::rendering::render_graph_module::rendergraphresourcetype::RenderGraphResourceType {
124 unsafe {
125 ::unity::il2cpp_call!((::unity::module_base()+0x33e0a20usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::rendergraphresourcetype::RenderGraphResourceType;
126(*mut ResourceHandle)self as*mut ResourceHandle)
127 }
128 }
129
130 #[doc = "`set_type(crate::unity_engine::experimental::rendering::render_graph_module::rendergraphresourcetype::RenderGraphResourceType)` overload"]
131 pub fn set_type(
132 &mut self,
133 value: impl ::core::convert::Into<
134 crate::unity_engine::experimental::rendering::render_graph_module::rendergraphresourcetype::RenderGraphResourceType,
135 >,
136 ) -> () {
137 unsafe {
138 ::unity::il2cpp_call!((::unity::module_base()+0x33e0a30usize)as*mut u8,();
139(*mut ResourceHandle)self as*mut ResourceHandle,(crate::unity_engine::experimental::rendering::render_graph_module::rendergraphresourcetype::RenderGraphResourceType)::core::convert::Into::into(value))
140 }
141 }
142
143 #[doc = "`get_iType()` overload"]
144 pub fn get_i_type(&mut self) -> i32 {
145 unsafe {
146 ::unity::il2cpp_call!((::unity::module_base()+0x33dbf90usize)as*mut u8,i32;
147(*mut ResourceHandle)self as*mut ResourceHandle)
148 }
149 }
150
151 #[doc = "`.ctor(i32, crate::unity_engine::experimental::rendering::render_graph_module::rendergraphresourcetype::RenderGraphResourceType)` overload"]
152 pub fn ctor(
153 &mut self,
154 value: impl ::core::convert::Into<i32>,
155 r#type: impl ::core::convert::Into<
156 crate::unity_engine::experimental::rendering::render_graph_module::rendergraphresourcetype::RenderGraphResourceType,
157 >,
158 ) -> () {
159 unsafe {
160 ::unity::il2cpp_call!((::unity::module_base()+0x33e0a40usize)as*mut u8,();
161(*mut ResourceHandle)self as*mut ResourceHandle,(i32)::core::convert::Into::into(value),(crate::unity_engine::experimental::rendering::render_graph_module::rendergraphresourcetype::RenderGraphResourceType)::core::convert::Into::into(r#type))
162 }
163 }
164
165 #[doc = "`IsValid()` overload"]
166 pub fn is_valid(&mut self) -> bool {
167 unsafe {
168 ::unity::il2cpp_call!((::unity::module_base()+0x33e0ad0usize)as*mut u8,bool;
169(*mut ResourceHandle)self as*mut ResourceHandle)
170 }
171 }
172}
173
174#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-resourcehandle")]
175impl ResourceHandle {
176 pub fn get_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
178 }
179
180 pub fn get_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
182 }
183
184 pub fn set_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
186 }
187
188 pub fn get_i_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
190 }
191
192 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
194 }
195
196 pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
198 }
199
200 pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
202 }
203
204 pub fn new_frame_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
206 }
207
208 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
210 }
211}
212
213#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-resourcehandle")]
214#[doc(hidden)]
215pub mod prelude {
216 pub use super::ResourceHandle;
217 #[cfg(feature = "system-object")]
218 pub use crate::system::object::IObjectMethods;
219 #[cfg(feature = "system-valuetype")]
220 pub use crate::system::valuetype::IValueTypeMethods;
221 pub use crate::system::{object::IObject, valuetype::IValueType};
222}