Skip to main content

engage/generated/unity_engine/rendering/
commandbufferpool.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-commandbufferpool-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/commandbufferpool/CommandBufferPool.md"))]
11    #[::unity::class(namespace = "UnityEngine.Rendering", name = "CommandBufferPool")]
12    #[parent(crate::system::object::Object)]
13    pub struct CommandBufferPool {
14        #[static_field]
15        #[rename(name = "s_BufferPool")]
16        pub s_buffer_pool:
17            crate::unity_engine::rendering::objectpool_1_2::ObjectPool_1_2<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
18    }
19}
20
21#[cfg(feature = "unity_engine-rendering-commandbufferpool-types")]
22pub use __types::*;
23
24#[cfg(feature = "unity_engine-rendering-commandbufferpool")]
25impl CommandBufferPool {
26    #[doc = "`Get()` overload"]
27    pub fn get() -> crate::unity_engine::rendering::commandbuffer::CommandBuffer {
28        unsafe {
29            ::unity::il2cpp_call!((::unity::module_base()+0x3530670usize)as*mut u8,crate::unity_engine::rendering::commandbuffer::CommandBuffer;
30            )
31        }
32    }
33
34    #[doc = "`Get(::unity::Il2CppString)` overload"]
35    pub fn get_2(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::rendering::commandbuffer::CommandBuffer {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x3530720usize)as*mut u8,crate::unity_engine::rendering::commandbuffer::CommandBuffer;
38(::unity::Il2CppString)::core::convert::Into::into(name))
39        }
40    }
41
42    #[doc = "`Release(crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
43    pub fn release(buffer: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>) -> () {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x35307c0usize)as*mut u8,();
46(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(buffer))
47        }
48    }
49
50    #[doc = "`.cctor()` overload"]
51    pub fn cctor() -> () {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x3530850usize)as*mut u8,();
54            )
55        }
56    }
57}
58
59#[cfg(feature = "unity_engine-rendering-commandbufferpool")]
60impl CommandBufferPool {
61    pub fn get_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
63    }
64
65    pub fn get_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
67    }
68
69    pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
70        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
71    }
72
73    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
75    }
76}
77
78#[cfg(feature = "unity_engine-rendering-commandbufferpool")]
79#[doc(hidden)]
80pub mod prelude {
81    pub use super::{CommandBufferPool, ICommandBufferPool};
82    pub use crate::system::object::IObject;
83    #[cfg(feature = "system-object")]
84    pub use crate::system::object::IObjectMethods;
85}