engage/generated/unity_engine/experimental/rendering/render_graph_module/
computebufferdesc.rs1#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferdesc-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/computebufferdesc/ComputeBufferDesc.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct ComputeBufferDesc {
17 pub count: i32,
18 pub stride: i32,
19 pub r#type: crate::unity_engine::computebuffertype::ComputeBufferType,
20 pub name: ::unity::Il2CppString,
21 }
22 impl ::unity::ClassIdentity for ComputeBufferDesc {
23 const NAME: &'static str = "ComputeBufferDesc";
24 const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.RenderGraphModule";
25
26 fn class() -> ::unity::Class {
27 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
28 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
29 }
30 }
31 impl ::unity::IlType for ComputeBufferDesc {
32 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34 }
35 }
36}
37
38#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferdesc-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferdesc")]
42impl ComputeBufferDesc {
43 #[doc = "`.ctor(i32, i32)` overload"]
44 pub fn ctor(&mut self, count: impl ::core::convert::Into<i32>, stride: impl ::core::convert::Into<i32>) -> () {
45 unsafe {
46 ::unity::il2cpp_call!((::unity::module_base()+0x3530990usize)as*mut u8,();
47(*mut ComputeBufferDesc)self as*mut ComputeBufferDesc,(i32)::core::convert::Into::into(count),(i32)::core::convert::Into::into(stride))
48 }
49 }
50
51 #[doc = "`.ctor(i32, i32, crate::unity_engine::computebuffertype::ComputeBufferType)` overload"]
52 pub fn ctor_2(
53 &mut self,
54 count: impl ::core::convert::Into<i32>,
55 stride: impl ::core::convert::Into<i32>,
56 r#type: impl ::core::convert::Into<crate::unity_engine::computebuffertype::ComputeBufferType>,
57 ) -> () {
58 unsafe {
59 ::unity::il2cpp_call!((::unity::module_base()+0x35309b0usize)as*mut u8,();
60(*mut ComputeBufferDesc)self as*mut ComputeBufferDesc,(i32)::core::convert::Into::into(count),(i32)::core::convert::Into::into(stride),(crate::unity_engine::computebuffertype::ComputeBufferType)::core::convert::Into::into(r#type))
61 }
62 }
63
64 #[doc = "`GetHashCode()` overload"]
65 pub fn get_hash_code(&mut self) -> i32 {
66 unsafe {
67 ::unity::il2cpp_call!((::unity::module_base()+0x35309d0usize)as*mut u8,i32;
68(*mut ComputeBufferDesc)self as*mut ComputeBufferDesc)
69 }
70 }
71}
72
73#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferdesc")]
74impl ComputeBufferDesc {
75 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
76 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
77 }
78
79 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
81 }
82
83 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
84 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
85 }
86}
87
88#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-computebufferdesc")]
89#[doc(hidden)]
90pub mod prelude {
91 pub use super::ComputeBufferDesc;
92 #[cfg(feature = "system-object")]
93 pub use crate::system::object::IObjectMethods;
94 #[cfg(feature = "system-valuetype")]
95 pub use crate::system::valuetype::IValueTypeMethods;
96 pub use crate::system::{object::IObject, valuetype::IValueType};
97}