Skip to main content

engage/generated/unity_engine/rendering/
graphicsfence.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-graphicsfence-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/rendering/graphicsfence/GraphicsFence.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct GraphicsFence {
17        pub m_ptr: ::unity::IntPtr,
18        pub m_version: i32,
19        pub m_fence_type: crate::unity_engine::rendering::graphicsfencetype::GraphicsFenceType,
20    }
21    impl ::unity::ClassIdentity for GraphicsFence {
22        const NAME: &'static str = "GraphicsFence";
23        const NAMESPACE: &'static str = "UnityEngine.Rendering";
24
25        fn class() -> ::unity::Class {
26            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
27            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
28        }
29    }
30    impl ::unity::IlType for GraphicsFence {
31        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
32            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
33        }
34    }
35}
36
37#[cfg(feature = "unity_engine-rendering-graphicsfence-types")]
38pub use __types::*;
39
40#[cfg(feature = "unity_engine-rendering-graphicsfence")]
41impl GraphicsFence {
42    #[doc = "`TranslateSynchronizationStageToFlags(crate::unity_engine::rendering::synchronisationstage::SynchronisationStage)` overload"]
43    pub fn translate_synchronization_stage_to_flags(
44        s: impl ::core::convert::Into<crate::unity_engine::rendering::synchronisationstage::SynchronisationStage>,
45    ) -> crate::unity_engine::rendering::synchronisationstageflags::SynchronisationStageFlags {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x2c450e0usize)as*mut u8,crate::unity_engine::rendering::synchronisationstageflags::SynchronisationStageFlags;
48(crate::unity_engine::rendering::synchronisationstage::SynchronisationStage)::core::convert::Into::into(s))
49        }
50    }
51
52    #[doc = "`GetVersionNumber(::unity::IntPtr)` overload"]
53    pub fn get_version_number(fence_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> i32 {
54        unsafe {
55            ::unity::il2cpp_call!((::unity::module_base()+0x2c50500usize)as*mut u8,i32;
56(::unity::IntPtr)::core::convert::Into::into(fence_ptr))
57        }
58    }
59}
60
61#[cfg(feature = "unity_engine-rendering-graphicsfence")]
62impl GraphicsFence {
63    #[doc = "`InitPostAllocation()` overload"]
64    pub fn init_post_allocation(&mut self) -> () {
65        unsafe {
66            ::unity::il2cpp_call!((::unity::module_base()+0x2c44f40usize)as*mut u8,();
67(*mut GraphicsFence)self as*mut GraphicsFence)
68        }
69    }
70
71    #[doc = "`IsFencePending()` overload"]
72    pub fn is_fence_pending(&mut self) -> bool {
73        unsafe {
74            ::unity::il2cpp_call!((::unity::module_base()+0x2c45280usize)as*mut u8,bool;
75(*mut GraphicsFence)self as*mut GraphicsFence)
76        }
77    }
78
79    #[doc = "`Validate()` overload"]
80    pub fn validate(&mut self) -> () {
81        unsafe {
82            ::unity::il2cpp_call!((::unity::module_base()+0x2c45030usize)as*mut u8,();
83(*mut GraphicsFence)self as*mut GraphicsFence)
84        }
85    }
86
87    #[doc = "`GetPlatformNotSupportedVersion()` overload"]
88    pub fn get_platform_not_supported_version(&mut self) -> i32 {
89        unsafe {
90            ::unity::il2cpp_call!((::unity::module_base()+0x2c504f0usize)as*mut u8,i32;
91(*mut GraphicsFence)self as*mut GraphicsFence)
92        }
93    }
94}
95
96#[cfg(feature = "unity_engine-rendering-graphicsfence")]
97impl GraphicsFence {
98    pub fn translate_synchronization_stage_to_flags_method_info() -> &'static ::unity::il2cpp::MethodInfo {
99        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
100    }
101
102    pub fn init_post_allocation_method_info() -> &'static ::unity::il2cpp::MethodInfo {
103        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
104    }
105
106    pub fn is_fence_pending_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
108    }
109
110    pub fn validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
112    }
113
114    pub fn get_platform_not_supported_version_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
116    }
117
118    pub fn get_version_number_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
120    }
121}
122
123#[cfg(feature = "unity_engine-rendering-graphicsfence")]
124#[doc(hidden)]
125pub mod prelude {
126    pub use super::GraphicsFence;
127    #[cfg(feature = "system-object")]
128    pub use crate::system::object::IObjectMethods;
129    #[cfg(feature = "system-valuetype")]
130    pub use crate::system::valuetype::IValueTypeMethods;
131    pub use crate::system::{object::IObject, valuetype::IValueType};
132}