Skip to main content

engage/generated/unity_engine/rendering/
constantbuffer.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-constantbuffer-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/constantbuffer/ConstantBuffer.md"))]
11    #[::unity::class(namespace = "UnityEngine.Rendering", name = "ConstantBuffer")]
12    #[parent(crate::system::object::Object)]
13    pub struct ConstantBuffer {
14        #[static_field]
15        #[rename(name = "m_RegisteredConstantBuffers")]
16        pub m_registered_constant_buffers:
17            crate::system::collections::generic::list_1::List_1<crate::unity_engine::rendering::constantbuffer::ConstantBuffer_ConstantBufferBase>,
18    }
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/constantbuffer/ConstantBuffer_TypedConstantBuffer_1.md"))]
21    #[::unity::class(namespace = "UnityEngine.Rendering", name = "ConstantBuffer.TypedConstantBuffer`1")]
22    #[parent(crate::unity_engine::rendering::constantbuffer::ConstantBuffer_ConstantBufferBase)]
23    #[parent(crate::system::object::Object)]
24    pub struct ConstantBuffer_TypedConstantBuffer_1<T0: ::unity::ClassIdentity> {
25        #[rename(name = "m_GlobalBindings")]
26        pub m_global_bindings: crate::system::collections::generic::hashset_1::HashSet_1<i32>,
27        #[rename(name = "m_Data")]
28        pub m_data: ::unity::Array<T0>,
29        #[static_field]
30        #[rename(name = "s_Instance")]
31        pub s_instance: crate::unity_engine::rendering::constantbuffer::ConstantBuffer_TypedConstantBuffer_1<T0>,
32        #[rename(name = "m_GPUConstantBuffer")]
33        pub m_gpu_constant_buffer: crate::unity_engine::computebuffer::ComputeBuffer,
34    }
35
36    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/constantbuffer/ConstantBuffer_ConstantBufferBase.md"))]
37    #[::unity::class(namespace = "UnityEngine.Rendering", name = "ConstantBuffer.ConstantBufferBase")]
38    #[parent(crate::system::object::Object)]
39    pub struct ConstantBuffer_ConstantBufferBase {}
40}
41
42#[cfg(feature = "unity_engine-rendering-constantbuffer-types")]
43pub use __types::*;
44
45#[cfg(feature = "unity_engine-rendering-constantbuffer")]
46impl ConstantBuffer {
47    pub fn push_global<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
48        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
49        data: impl ::core::convert::Into<*mut M0>,
50        shader_id: impl ::core::convert::Into<i32>,
51    ) -> () {
52        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
53            ::unity::lookup::method_info_on_class(<ConstantBuffer as ::unity::ClassIdentity>::class(), "PushGlobal", 3)
54        });
55        #[allow(clippy::type_complexity)]
56        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
57            ::std::sync::OnceLock::new();
58        let _ = true;
59        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
60            ::core::result::Result::Ok(mi) => *mi,
61            ::core::result::Result::Err(e) => {
62                panic!(
63                    "method lookup failed: {}
64::{}
65: {}
66",
67                    <ConstantBuffer as ::unity::ClassIdentity>::NAME,
68                    "PushGlobal",
69                    e
70                )
71            },
72        };
73        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
74        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
75        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
76            let mut __guard = __cache.lock().unwrap();
77            *__guard
78                .entry(__key)
79                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
80        };
81        unsafe {
82            let __f: extern "C" fn(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mut M0, i32, ::unity::OptionalMethod) -> () =
83                ::core::mem::transmute(__inflated.method_ptr);
84            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
85            __f(
86                ::core::convert::Into::into(cmd),
87                ::core::convert::Into::into(data),
88                ::core::convert::Into::into(shader_id),
89                ::core::option::Option::Some(__mi_opaque),
90            )
91        }
92    }
93
94    pub fn push<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
95        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
96        data: impl ::core::convert::Into<*mut M0>,
97        cs: impl ::core::convert::Into<crate::unity_engine::computeshader::ComputeShader>,
98        shader_id: impl ::core::convert::Into<i32>,
99    ) -> () {
100        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
101            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<ConstantBuffer as ::unity::ClassIdentity>::class(), "Push", 4));
102        #[allow(clippy::type_complexity)]
103        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
104            ::std::sync::OnceLock::new();
105        let _ = true;
106        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
107            ::core::result::Result::Ok(mi) => *mi,
108            ::core::result::Result::Err(e) => {
109                panic!(
110                    "method lookup failed: {}
111::{}
112: {}
113",
114                    <ConstantBuffer as ::unity::ClassIdentity>::NAME,
115                    "Push",
116                    e
117                )
118            },
119        };
120        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
121        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
122        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
123            let mut __guard = __cache.lock().unwrap();
124            *__guard
125                .entry(__key)
126                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
127        };
128        unsafe {
129            let __f: extern "C" fn(
130                crate::unity_engine::rendering::commandbuffer::CommandBuffer,
131                *mut M0,
132                crate::unity_engine::computeshader::ComputeShader,
133                i32,
134                ::unity::OptionalMethod,
135            ) -> () = ::core::mem::transmute(__inflated.method_ptr);
136            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
137            __f(
138                ::core::convert::Into::into(cmd),
139                ::core::convert::Into::into(data),
140                ::core::convert::Into::into(cs),
141                ::core::convert::Into::into(shader_id),
142                ::core::option::Option::Some(__mi_opaque),
143            )
144        }
145    }
146
147    pub fn push_2<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
148        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
149        data: impl ::core::convert::Into<*mut M0>,
150        mat: impl ::core::convert::Into<crate::unity_engine::material::Material>,
151        shader_id: impl ::core::convert::Into<i32>,
152    ) -> () {
153        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
154            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<ConstantBuffer as ::unity::ClassIdentity>::class(), "Push", 4));
155        #[allow(clippy::type_complexity)]
156        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
157            ::std::sync::OnceLock::new();
158        let _ = true;
159        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
160            ::core::result::Result::Ok(mi) => *mi,
161            ::core::result::Result::Err(e) => {
162                panic!(
163                    "method lookup failed: {}
164::{}
165: {}
166",
167                    <ConstantBuffer as ::unity::ClassIdentity>::NAME,
168                    "Push",
169                    e
170                )
171            },
172        };
173        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
174        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
175        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
176            let mut __guard = __cache.lock().unwrap();
177            *__guard
178                .entry(__key)
179                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
180        };
181        unsafe {
182            let __f: extern "C" fn(
183                crate::unity_engine::rendering::commandbuffer::CommandBuffer,
184                *mut M0,
185                crate::unity_engine::material::Material,
186                i32,
187                ::unity::OptionalMethod,
188            ) -> () = ::core::mem::transmute(__inflated.method_ptr);
189            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
190            __f(
191                ::core::convert::Into::into(cmd),
192                ::core::convert::Into::into(data),
193                ::core::convert::Into::into(mat),
194                ::core::convert::Into::into(shader_id),
195                ::core::option::Option::Some(__mi_opaque),
196            )
197        }
198    }
199
200    pub fn update_data<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
201        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
202        data: impl ::core::convert::Into<*mut M0>,
203    ) -> () {
204        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
205            ::unity::lookup::method_info_on_class(<ConstantBuffer as ::unity::ClassIdentity>::class(), "UpdateData", 2)
206        });
207        #[allow(clippy::type_complexity)]
208        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
209            ::std::sync::OnceLock::new();
210        let _ = true;
211        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
212            ::core::result::Result::Ok(mi) => *mi,
213            ::core::result::Result::Err(e) => {
214                panic!(
215                    "method lookup failed: {}
216::{}
217: {}
218",
219                    <ConstantBuffer as ::unity::ClassIdentity>::NAME,
220                    "UpdateData",
221                    e
222                )
223            },
224        };
225        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
226        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
227        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
228            let mut __guard = __cache.lock().unwrap();
229            *__guard
230                .entry(__key)
231                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
232        };
233        unsafe {
234            let __f: extern "C" fn(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mut M0, ::unity::OptionalMethod) -> () =
235                ::core::mem::transmute(__inflated.method_ptr);
236            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
237            __f(
238                ::core::convert::Into::into(cmd),
239                ::core::convert::Into::into(data),
240                ::core::option::Option::Some(__mi_opaque),
241            )
242        }
243    }
244
245    pub fn set_global<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
246        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
247        shader_id: impl ::core::convert::Into<i32>,
248    ) -> () {
249        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
250            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<ConstantBuffer as ::unity::ClassIdentity>::class(), "SetGlobal", 2));
251        #[allow(clippy::type_complexity)]
252        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
253            ::std::sync::OnceLock::new();
254        let _ = true;
255        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
256            ::core::result::Result::Ok(mi) => *mi,
257            ::core::result::Result::Err(e) => {
258                panic!(
259                    "method lookup failed: {}
260::{}
261: {}
262",
263                    <ConstantBuffer as ::unity::ClassIdentity>::NAME,
264                    "SetGlobal",
265                    e
266                )
267            },
268        };
269        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
270        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
271        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
272            let mut __guard = __cache.lock().unwrap();
273            *__guard
274                .entry(__key)
275                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
276        };
277        unsafe {
278            let __f: extern "C" fn(crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, ::unity::OptionalMethod) -> () =
279                ::core::mem::transmute(__inflated.method_ptr);
280            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
281            __f(
282                ::core::convert::Into::into(cmd),
283                ::core::convert::Into::into(shader_id),
284                ::core::option::Option::Some(__mi_opaque),
285            )
286        }
287    }
288
289    pub fn set<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
290        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
291        cs: impl ::core::convert::Into<crate::unity_engine::computeshader::ComputeShader>,
292        shader_id: impl ::core::convert::Into<i32>,
293    ) -> () {
294        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
295            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<ConstantBuffer as ::unity::ClassIdentity>::class(), "Set", 3));
296        #[allow(clippy::type_complexity)]
297        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
298            ::std::sync::OnceLock::new();
299        let _ = true;
300        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
301            ::core::result::Result::Ok(mi) => *mi,
302            ::core::result::Result::Err(e) => {
303                panic!(
304                    "method lookup failed: {}
305::{}
306: {}
307",
308                    <ConstantBuffer as ::unity::ClassIdentity>::NAME,
309                    "Set",
310                    e
311                )
312            },
313        };
314        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
315        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
316        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
317            let mut __guard = __cache.lock().unwrap();
318            *__guard
319                .entry(__key)
320                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
321        };
322        unsafe {
323            let __f: extern "C" fn(
324                crate::unity_engine::rendering::commandbuffer::CommandBuffer,
325                crate::unity_engine::computeshader::ComputeShader,
326                i32,
327                ::unity::OptionalMethod,
328            ) -> () = ::core::mem::transmute(__inflated.method_ptr);
329            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
330            __f(
331                ::core::convert::Into::into(cmd),
332                ::core::convert::Into::into(cs),
333                ::core::convert::Into::into(shader_id),
334                ::core::option::Option::Some(__mi_opaque),
335            )
336        }
337    }
338
339    pub fn set_2<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
340        mat: impl ::core::convert::Into<crate::unity_engine::material::Material>,
341        shader_id: impl ::core::convert::Into<i32>,
342    ) -> () {
343        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
344            ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<ConstantBuffer as ::unity::ClassIdentity>::class(), "Set", 2));
345        #[allow(clippy::type_complexity)]
346        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
347            ::std::sync::OnceLock::new();
348        let _ = true;
349        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
350            ::core::result::Result::Ok(mi) => *mi,
351            ::core::result::Result::Err(e) => {
352                panic!(
353                    "method lookup failed: {}
354::{}
355: {}
356",
357                    <ConstantBuffer as ::unity::ClassIdentity>::NAME,
358                    "Set",
359                    e
360                )
361            },
362        };
363        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
364        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
365        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
366            let mut __guard = __cache.lock().unwrap();
367            *__guard
368                .entry(__key)
369                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
370        };
371        unsafe {
372            let __f: extern "C" fn(crate::unity_engine::material::Material, i32, ::unity::OptionalMethod) -> () =
373                ::core::mem::transmute(__inflated.method_ptr);
374            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
375            __f(
376                ::core::convert::Into::into(mat),
377                ::core::convert::Into::into(shader_id),
378                ::core::option::Option::Some(__mi_opaque),
379            )
380        }
381    }
382
383    #[doc = "`ReleaseAll()` overload"]
384    pub fn release_all() -> () {
385        unsafe {
386            ::unity::il2cpp_call!((::unity::module_base()+0x3530f70usize)as*mut u8,();
387            )
388        }
389    }
390
391    #[doc = "`Register(crate::unity_engine::rendering::constantbuffer::ConstantBuffer_ConstantBufferBase)` overload"]
392    pub fn register(cb: impl ::core::convert::Into<crate::unity_engine::rendering::constantbuffer::ConstantBuffer_ConstantBufferBase>) -> () {
393        unsafe {
394            ::unity::il2cpp_call!((::unity::module_base()+0x3531100usize)as*mut u8,();
395(crate::unity_engine::rendering::constantbuffer::ConstantBuffer_ConstantBufferBase)::core::convert::Into::into(cb))
396        }
397    }
398
399    #[doc = "`.cctor()` overload"]
400    pub fn cctor() -> () {
401        unsafe {
402            ::unity::il2cpp_call!((::unity::module_base()+0x35311a0usize)as*mut u8,();
403            )
404        }
405    }
406}
407
408#[cfg(feature = "unity_engine-rendering-constantbuffer")]
409pub trait IConstantBufferMethods: IConstantBuffer {
410    #[doc = "`.ctor()` overload"]
411    fn ctor(self) -> () {
412        unsafe {
413            let __receiver = <ConstantBuffer as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
414            ::unity::il2cpp_call!((::unity::module_base()+0x3531190usize)as*mut u8,();
415(ConstantBuffer)__receiver)
416        }
417    }
418}
419
420#[cfg(feature = "unity_engine-rendering-constantbuffer")]
421impl<__T: IConstantBuffer> IConstantBufferMethods for __T {}
422
423#[cfg(feature = "unity_engine-rendering-constantbuffer")]
424impl ConstantBuffer {
425    pub fn release_all_method_info() -> &'static ::unity::il2cpp::MethodInfo {
426        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
427    }
428
429    pub fn register_method_info() -> &'static ::unity::il2cpp::MethodInfo {
430        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
431    }
432
433    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
434        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
435    }
436
437    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
438        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
439    }
440}
441
442#[cfg(feature = "unity_engine-rendering-constantbuffer")]
443impl ConstantBuffer {
444    #[doc = "`.ctor()` — no args"]
445    pub fn new() -> Self {
446        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
447            panic!(
448                "{}
449::{}
450 failed to instantiate",
451                ::core::stringify!(ConstantBuffer),
452                ::core::stringify!(new),
453            )
454        });
455        <Self as IConstantBufferMethods>::ctor(this);
456        this
457    }
458}
459
460#[cfg(feature = "unity_engine-rendering-constantbuffer")]
461#[::unity::methods]
462impl<T0: ::unity::ClassIdentity> ConstantBuffer_TypedConstantBuffer_1<T0> {
463    #[doc = "`get_instance()` overload"]
464    #[method(name = "get_instance", args = 0)]
465    pub fn get_instance() -> crate::unity_engine::rendering::constantbuffer::ConstantBuffer_TypedConstantBuffer_1<T0>;
466
467    #[doc = "`set_instance(crate::unity_engine::rendering::constantbuffer::ConstantBuffer_TypedConstantBuffer_1<T0>)` overload"]
468    #[method(name = "set_instance", args = 1)]
469    pub fn set_instance(value: crate::unity_engine::rendering::constantbuffer::ConstantBuffer_TypedConstantBuffer_1<T0>) -> ();
470
471    #[doc = "`.ctor()` overload"]
472    #[method(name = ".ctor", args = 0)]
473    pub fn ctor(self) -> ();
474
475    #[doc = "`UpdateData(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mutT0)` overload"]
476    #[method(name = "UpdateData", args = 2)]
477    pub fn update_data(self, cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer, data: *mut T0) -> ();
478
479    #[doc = "`SetGlobal(crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32)` overload"]
480    #[method(name = "SetGlobal", args = 2)]
481    pub fn set_global(self, cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer, shader_id: i32) -> ();
482
483    #[doc = "`Set(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::computeshader::ComputeShader, i32)` overload"]
484    #[method(name = "Set", args = 3)]
485    pub fn set(
486        self,
487        cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
488        cs: crate::unity_engine::computeshader::ComputeShader,
489        shader_id: i32,
490    ) -> ();
491
492    #[doc = "`Set(crate::unity_engine::material::Material, i32)` overload"]
493    #[method(name = "Set", args = 2)]
494    pub fn set_2(self, mat: crate::unity_engine::material::Material, shader_id: i32) -> ();
495
496    #[doc = "`Release()` overload"]
497    #[method(name = "Release", args = 0)]
498    pub fn release(self) -> ();
499
500    #[doc = "`.cctor()` overload"]
501    #[method(name = ".cctor", args = 0)]
502    pub fn cctor() -> ();
503}
504
505#[cfg(feature = "unity_engine-rendering-constantbuffer")]
506impl<T0: ::unity::ClassIdentity> ConstantBuffer_TypedConstantBuffer_1<T0> {
507    #[doc = "`.ctor()` — no args"]
508    pub fn new() -> Self {
509        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
510            panic!(
511                "{}
512::{}
513 failed to instantiate",
514                ::core::stringify!(ConstantBuffer_TypedConstantBuffer_1),
515                ::core::stringify!(new),
516            )
517        });
518        <Self as IConstantBuffer_TypedConstantBuffer_1Methods<T0>>::ctor(this);
519        this
520    }
521}
522
523#[cfg(feature = "unity_engine-rendering-constantbuffer")]
524pub trait IConstantBuffer_ConstantBufferBaseMethods: IConstantBuffer_ConstantBufferBase {
525    #[doc = "`Release()` overload"]
526    fn release(self) -> () {
527        unsafe {
528            let __receiver =
529                <ConstantBuffer_ConstantBufferBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
530            {
531                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
532                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
533                    panic!(
534                        "unity: virtual slot {}
535 out of range (vtable len {}
536) on the runtime class behind {}
537 (method `{}
538`)",
539                        4usize,
540                        __vt.len(),
541                        <ConstantBuffer_ConstantBufferBase as ::unity::ClassIdentity>::NAME,
542                        "Release",
543                    )
544                });
545                let __inner: extern "C" fn(ConstantBuffer_ConstantBufferBase, ::unity::OptionalMethod) -> () =
546                    ::core::mem::transmute(__vi.method_ptr);
547                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
548                __inner(__receiver, __mi)
549            }
550        }
551    }
552    #[doc = "`.ctor()` overload"]
553    fn ctor(self) -> () {
554        unsafe {
555            let __receiver =
556                <ConstantBuffer_ConstantBufferBase as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
557            ::unity::il2cpp_call!((::unity::module_base()+0x33e9980usize)as*mut u8,();
558(ConstantBuffer_ConstantBufferBase)__receiver)
559        }
560    }
561}
562
563#[cfg(feature = "unity_engine-rendering-constantbuffer")]
564impl<__T: IConstantBuffer_ConstantBufferBase> IConstantBuffer_ConstantBufferBaseMethods for __T {}
565
566#[cfg(feature = "unity_engine-rendering-constantbuffer")]
567impl ConstantBuffer_ConstantBufferBase {
568    pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
569        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
570    }
571
572    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
573        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
574    }
575}
576
577#[cfg(feature = "unity_engine-rendering-constantbuffer")]
578impl ConstantBuffer_ConstantBufferBase {
579    #[doc = "Direct (non-virtual) call to `ConstantBuffer_ConstantBufferBase`'s own `Release`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
580    pub unsafe fn release(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
581        let __mi = Self::release_method_info();
582        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
583        __inner(this.into(), ::core::option::Option::None)
584    }
585}
586
587#[cfg(feature = "unity_engine-rendering-constantbuffer")]
588impl ConstantBuffer_ConstantBufferBase {
589    #[doc = "`.ctor()` — no args"]
590    pub fn new() -> Self {
591        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
592            panic!(
593                "{}
594::{}
595 failed to instantiate",
596                ::core::stringify!(ConstantBuffer_ConstantBufferBase),
597                ::core::stringify!(new),
598            )
599        });
600        <Self as IConstantBuffer_ConstantBufferBaseMethods>::ctor(this);
601        this
602    }
603}
604
605#[cfg(feature = "unity_engine-rendering-constantbuffer")]
606#[doc(hidden)]
607pub mod prelude {
608    pub use super::{
609        ConstantBuffer, ConstantBuffer_ConstantBufferBase, ConstantBuffer_TypedConstantBuffer_1, IConstantBuffer, IConstantBufferMethods,
610        IConstantBuffer_ConstantBufferBase, IConstantBuffer_ConstantBufferBaseMethods, IConstantBuffer_TypedConstantBuffer_1,
611        IConstantBuffer_TypedConstantBuffer_1Methods,
612    };
613    pub use crate::system::object::IObject;
614    #[cfg(feature = "system-object")]
615    pub use crate::system::object::IObjectMethods;
616}