Skip to main content

engage/generated/unity_engine/experimental/rendering/
rendererlist.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-rendererlist-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/rendererlist/RendererList.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct RendererList {}
17    impl ::unity::ClassIdentity for RendererList {
18        const NAME: &'static str = "RendererList";
19        const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering";
20
21        fn class() -> ::unity::Class {
22            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
23            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
24        }
25    }
26    impl ::unity::IlType for RendererList {
27        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
28            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
29        }
30    }
31    impl RendererList {
32        #[inline]
33        pub fn s_empty_name() -> crate::unity_engine::rendering::shadertagid::ShaderTagId {
34            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
35            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_EmptyName");
36            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
37        }
38
39        #[inline]
40        pub fn set_s_empty_name(value: crate::unity_engine::rendering::shadertagid::ShaderTagId) {
41            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
42            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "s_EmptyName");
43            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
44        }
45
46        #[inline]
47        pub fn null_renderer_list() -> crate::unity_engine::experimental::rendering::rendererlist::RendererList {
48            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
49            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "nullRendererList");
50            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
51        }
52
53        #[inline]
54        pub fn set_null_renderer_list(value: crate::unity_engine::experimental::rendering::rendererlist::RendererList) {
55            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
56            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "nullRendererList");
57            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
58        }
59    }
60}
61
62#[cfg(feature = "unity_engine-experimental-rendering-rendererlist-types")]
63pub use __types::*;
64
65#[cfg(feature = "unity_engine-experimental-rendering-rendererlist")]
66impl RendererList {
67    #[doc = "`Create(*mutcrate::unity_engine::experimental::rendering::rendererlistdesc::RendererListDesc)` overload"]
68    pub fn create() -> (
69        crate::unity_engine::experimental::rendering::rendererlist::RendererList,
70        crate::unity_engine::experimental::rendering::rendererlistdesc::RendererListDesc,
71    ) {
72        unsafe {
73            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::experimental::rendering::rendererlistdesc::RendererListDesc>::uninit();
74            let __ret = {
75                ::unity::il2cpp_call!((::unity::module_base()+0x33dfa10usize)as*mut u8,crate::unity_engine::experimental::rendering::rendererlist::RendererList;
76(*mut crate::unity_engine::experimental::rendering::rendererlistdesc::RendererListDesc)__out_0.as_mut_ptr())
77            };
78            (__ret, __out_0.assume_init())
79        }
80    }
81
82    #[doc = "`.cctor()` overload"]
83    pub fn cctor() -> () {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x33e05d0usize)as*mut u8,();
86            )
87        }
88    }
89}
90
91#[cfg(feature = "unity_engine-experimental-rendering-rendererlist")]
92impl RendererList {
93    #[doc = "`get_isValid()` overload"]
94    pub fn get_is_valid(&mut self) -> bool {
95        unsafe {
96            ::unity::il2cpp_call!((::unity::module_base()+0x33e04c0usize)as*mut u8,bool;
97(*mut RendererList)self as*mut RendererList)
98        }
99    }
100
101    #[doc = "`set_isValid(bool)` overload"]
102    pub fn set_is_valid(&mut self, value: impl ::core::convert::Into<bool>) -> () {
103        unsafe {
104            ::unity::il2cpp_call!((::unity::module_base()+0x33e04d0usize)as*mut u8,();
105(*mut RendererList)self as*mut RendererList,(bool)::core::convert::Into::into(value))
106        }
107    }
108}
109
110#[cfg(feature = "unity_engine-experimental-rendering-rendererlist")]
111impl RendererList {
112    pub fn get_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
114    }
115
116    pub fn set_is_valid_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
118    }
119
120    pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
122    }
123
124    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
126    }
127}
128
129#[cfg(feature = "unity_engine-experimental-rendering-rendererlist")]
130#[doc(hidden)]
131pub mod prelude {
132    pub use super::RendererList;
133    #[cfg(feature = "system-object")]
134    pub use crate::system::object::IObjectMethods;
135    #[cfg(feature = "system-valuetype")]
136    pub use crate::system::valuetype::IValueTypeMethods;
137    pub use crate::system::{object::IObject, valuetype::IValueType};
138}