Skip to main content

engage/generated/unity_engine/experimental/rendering/render_graph_module/
texturehandle.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturehandle-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/texturehandle/TextureHandle.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct TextureHandle {
17        pub handle: crate::unity_engine::experimental::rendering::render_graph_module::resourcehandle::ResourceHandle,
18    }
19    impl ::unity::ClassIdentity for TextureHandle {
20        const NAME: &'static str = "TextureHandle";
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 TextureHandle {
29        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31        }
32    }
33    impl TextureHandle {
34        #[inline]
35        pub fn s_null_handle() -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
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::texturehandle::TextureHandle) {
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-texturehandle-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturehandle")]
54impl TextureHandle {
55    #[doc = "`get_nullHandle()` overload"]
56    pub fn get_null_handle() -> crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle {
57        unsafe {
58            ::unity::il2cpp_call!((::unity::module_base()+0x33e1ec0usize)as*mut u8,crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle;
59            )
60        }
61    }
62
63    #[doc = "`op_Implicit(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)` overload"]
64    pub fn op_implicit(
65        texture: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle>,
66    ) -> crate::unity_engine::rendering::rthandle::RTHandle {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x33e1f30usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
69(crate::unity_engine::experimental::rendering::render_graph_module::texturehandle::TextureHandle)::core::convert::Into::into(texture))
70        }
71    }
72
73    #[doc = "`.cctor()` overload"]
74    pub fn cctor() -> () {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x33e2520usize)as*mut u8,();
77            )
78        }
79    }
80}
81
82#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturehandle")]
83impl TextureHandle {
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()+0x33dd840usize)as*mut u8,();
88(*mut TextureHandle)self as*mut TextureHandle,(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()+0x33dc600usize)as*mut u8,bool;
96(*mut TextureHandle)self as*mut TextureHandle)
97        }
98    }
99}
100
101#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturehandle")]
102impl TextureHandle {
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()[5]
117    }
118
119    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
120        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
121    }
122}
123
124#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturehandle")]
125#[doc(hidden)]
126pub mod prelude {
127    pub use super::TextureHandle;
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}