Skip to main content

engage/generated/unity_engine/experimental/rendering/universal/lib_tess_dot_net/
pqhandle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-universal-lib_tess_dot_net-pqhandle-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/universal/lib_tess_dot_net/pqhandle/PQHandle.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct PQHandle {
17        pub handle: i32,
18    }
19    impl ::unity::ClassIdentity for PQHandle {
20        const NAME: &'static str = "PQHandle";
21        const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal.LibTessDotNet";
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 PQHandle {
29        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31        }
32    }
33    impl PQHandle {
34        #[inline]
35        pub fn invalid() -> i32 {
36            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
37            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "Invalid");
38            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
39        }
40
41        #[inline]
42        pub fn set_invalid(value: i32) {
43            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
44            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "Invalid");
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-universal-lib_tess_dot_net-pqhandle-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-experimental-rendering-universal-lib_tess_dot_net-pqhandle")]
54impl PQHandle {
55    #[doc = "`.cctor()` overload"]
56    pub fn cctor() -> () {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x31957a0usize)as*mut u8,();
59            )
60        }
61    }
62}
63
64#[cfg(feature = "unity_engine-experimental-rendering-universal-lib_tess_dot_net-pqhandle")]
65impl PQHandle {
66    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
67        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
68    }
69}
70
71#[cfg(feature = "unity_engine-experimental-rendering-universal-lib_tess_dot_net-pqhandle")]
72#[doc(hidden)]
73pub mod prelude {
74    pub use super::PQHandle;
75    #[cfg(feature = "system-object")]
76    pub use crate::system::object::IObjectMethods;
77    #[cfg(feature = "system-valuetype")]
78    pub use crate::system::valuetype::IValueTypeMethods;
79    pub use crate::system::{object::IObject, valuetype::IValueType};
80}