engage/generated/unity_engine/experimental/rendering/render_graph_module/
computebufferhandle.rs1#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferhandle-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/computebufferhandle/ComputeBufferHandle.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct ComputeBufferHandle {
17 pub handle: crate::unity_engine::experimental::rendering::render_graph_module::resourcehandle::ResourceHandle,
18 }
19 impl ::unity::ClassIdentity for ComputeBufferHandle {
20 const NAME: &'static str = "ComputeBufferHandle";
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 ComputeBufferHandle {
29 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31 }
32 }
33 impl ComputeBufferHandle {
34 #[inline]
35 pub fn s_null_handle() -> crate::unity_engine::experimental::rendering::render_graph_module::computebufferhandle::ComputeBufferHandle {
36 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
37 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_NullHandle");
38 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
39 }
40
41 #[inline]
42 pub fn set_s_null_handle(value: crate::unity_engine::experimental::rendering::render_graph_module::computebufferhandle::ComputeBufferHandle) {
43 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
44 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_NullHandle");
45 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
46 }
47 }
48}
49
50#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferhandle-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferhandle")]
54impl ComputeBufferHandle {
55 #[doc = "`get_nullHandle()` overload"]
56 pub fn get_null_handle() -> crate::unity_engine::experimental::rendering::render_graph_module::computebufferhandle::ComputeBufferHandle {
57 unsafe {
58 ::unity::il2cpp_call!((::unity::module_base()+0x3530a00usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::computebufferhandle::ComputeBufferHandle;
59 )
60 }
61 }
62
63 #[doc = "`op_Implicit(crate::unity_engine::experimental::rendering::render_graph_module::computebufferhandle::ComputeBufferHandle)` overload"]
64 pub fn op_implicit(
65 buffer: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::computebufferhandle::ComputeBufferHandle>,
66 ) -> crate::unity_engine::computebuffer::ComputeBuffer {
67 unsafe {
68 ::unity::il2cpp_call!((::unity::module_base()+0x3530ab0usize)as*mut u8,crate::unity_engine::computebuffer::ComputeBuffer;
69(crate::unity_engine::experimental::rendering::render_graph_module::computebufferhandle::ComputeBufferHandle)::core::convert::Into::into(buffer))
70 }
71 }
72
73 #[doc = "`.cctor()` overload"]
74 pub fn cctor() -> () {
75 unsafe {
76 ::unity::il2cpp_call!((::unity::module_base()+0x3530bb0usize)as*mut u8,();
77 )
78 }
79 }
80}
81
82#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferhandle")]
83impl ComputeBufferHandle {
84 #[doc = "`.ctor(i32)` overload"]
85 pub fn ctor(&mut self, handle: impl ::core::convert::Into<i32>) -> () {
86 unsafe {
87 ::unity::il2cpp_call!((::unity::module_base()+0x3530a70usize)as*mut u8,();
88(*mut ComputeBufferHandle)self as*mut ComputeBufferHandle,(i32)::core::convert::Into::into(handle))
89 }
90 }
91
92 #[doc = "`IsValid()` overload"]
93 pub fn is_valid(&mut self) -> bool {
94 unsafe {
95 ::unity::il2cpp_call!((::unity::module_base()+0x3530ba0usize)as*mut u8,bool;
96(*mut ComputeBufferHandle)self as*mut ComputeBufferHandle)
97 }
98 }
99}
100
101#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferhandle")]
102impl ComputeBufferHandle {
103 pub fn get_null_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
104 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
105 }
106
107 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
108 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
109 }
110
111 pub fn op_implicit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
112 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
113 }
114
115 pub fn is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
116 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
117 }
118
119 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
121 }
122}
123
124#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferhandle")]
125#[doc(hidden)]
126pub mod prelude {
127 pub use super::ComputeBufferHandle;
128 #[cfg(feature = "system-object")]
129 pub use crate::system::object::IObjectMethods;
130 #[cfg(feature = "system-valuetype")]
131 pub use crate::system::valuetype::IValueTypeMethods;
132 pub use crate::system::{object::IObject, valuetype::IValueType};
133}