Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturedesc-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/texturedesc/TextureDesc.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct TextureDesc {
17        pub size_mode: crate::unity_engine::experimental::rendering::render_graph_module::texturesizemode::TextureSizeMode,
18        pub width: i32,
19        pub height: i32,
20        pub slices: i32,
21        pub scale: crate::unity_engine::vector2::Vector2,
22        pub func: crate::unity_engine::rendering::scalefunc::ScaleFunc,
23        pub depth_buffer_bits: crate::unity_engine::rendering::depthbits::DepthBits,
24        pub color_format: crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat,
25        pub filter_mode: crate::unity_engine::filtermode::FilterMode,
26        pub wrap_mode: crate::unity_engine::texturewrapmode::TextureWrapMode,
27        pub dimension: crate::unity_engine::rendering::texturedimension::TextureDimension,
28        pub enable_random_write: bool,
29        pub use_mip_map: bool,
30        pub auto_generate_mips: bool,
31        pub is_shadow_map: bool,
32        pub aniso_level: i32,
33        pub mip_map_bias: f32,
34        pub enable_msaa: bool,
35        pub msaa_samples: crate::unity_engine::rendering::msaasamples::MSAASamples,
36        pub bind_texture_ms: bool,
37        pub use_dynamic_scale: bool,
38        pub memoryless: crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless,
39        pub name: ::unity::Il2CppString,
40        pub fast_memory_desc: crate::unity_engine::experimental::rendering::render_graph_module::fastmemorydesc::FastMemoryDesc,
41        pub clear_buffer: bool,
42        pub clear_color: crate::unity_engine::color::Color,
43    }
44    impl ::unity::ClassIdentity for TextureDesc {
45        const NAME: &'static str = "TextureDesc";
46        const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.RenderGraphModule";
47
48        fn class() -> ::unity::Class {
49            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
50            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
51        }
52    }
53    impl ::unity::IlType for TextureDesc {
54        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
55            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
56        }
57    }
58}
59
60#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturedesc-types")]
61pub use __types::*;
62
63#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturedesc")]
64impl TextureDesc {
65    #[doc = "`InitDefaultValues(bool, bool)` overload"]
66    pub fn init_default_values(&mut self, dynamic_resolution: impl ::core::convert::Into<bool>, xr_ready: impl ::core::convert::Into<bool>) -> () {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x33e1b30usize)as*mut u8,();
69(*mut TextureDesc)self as*mut TextureDesc,(bool)::core::convert::Into::into(dynamic_resolution),(bool)::core::convert::Into::into(xr_ready))
70        }
71    }
72
73    #[doc = "`.ctor(i32, i32, bool, bool)` overload"]
74    pub fn ctor(
75        &mut self,
76        width: impl ::core::convert::Into<i32>,
77        height: impl ::core::convert::Into<i32>,
78        dynamic_resolution: impl ::core::convert::Into<bool>,
79        xr_ready: impl ::core::convert::Into<bool>,
80    ) -> () {
81        unsafe {
82            ::unity::il2cpp_call!((::unity::module_base()+0x33e1d50usize)as*mut u8,();
83(*mut TextureDesc)self as*mut TextureDesc,(i32)::core::convert::Into::into(width),(i32)::core::convert::Into::into(height),(bool)::core::convert::Into::into(dynamic_resolution),(bool)::core::convert::Into::into(xr_ready))
84        }
85    }
86
87    #[doc = "`.ctor(crate::unity_engine::vector2::Vector2, bool, bool)` overload"]
88    pub fn ctor_2(
89        &mut self,
90        scale: impl ::core::convert::Into<crate::unity_engine::vector2::Vector2>,
91        dynamic_resolution: impl ::core::convert::Into<bool>,
92        xr_ready: impl ::core::convert::Into<bool>,
93    ) -> () {
94        unsafe {
95            ::unity::il2cpp_call!((::unity::module_base()+0x33e1d90usize)as*mut u8,();
96(*mut TextureDesc)self as*mut TextureDesc,(crate::unity_engine::vector2::Vector2)::core::convert::Into::into(scale),(bool)::core::convert::Into::into(dynamic_resolution),(bool)::core::convert::Into::into(xr_ready))
97        }
98    }
99
100    #[doc = "`.ctor(crate::unity_engine::rendering::scalefunc::ScaleFunc, bool, bool)` overload"]
101    pub fn ctor_3(
102        &mut self,
103        func: impl ::core::convert::Into<crate::unity_engine::rendering::scalefunc::ScaleFunc>,
104        dynamic_resolution: impl ::core::convert::Into<bool>,
105        xr_ready: impl ::core::convert::Into<bool>,
106    ) -> () {
107        unsafe {
108            ::unity::il2cpp_call!((::unity::module_base()+0x33e1e00usize)as*mut u8,();
109(*mut TextureDesc)self as*mut TextureDesc,(crate::unity_engine::rendering::scalefunc::ScaleFunc)::core::convert::Into::into(func),(bool)::core::convert::Into::into(dynamic_resolution),(bool)::core::convert::Into::into(xr_ready))
110        }
111    }
112
113    #[doc = "`.ctor(crate::unity_engine::experimental::rendering::render_graph_module::texturedesc::TextureDesc)` overload"]
114    pub fn ctor_4(
115        &mut self,
116        input: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::render_graph_module::texturedesc::TextureDesc>,
117    ) -> () {
118        unsafe {
119            ::unity::il2cpp_call!((::unity::module_base()+0x33e1e90usize)as*mut u8,();
120(*mut TextureDesc)self as*mut TextureDesc,(crate::unity_engine::experimental::rendering::render_graph_module::texturedesc::TextureDesc)::core::convert::Into::into(input))
121        }
122    }
123
124    #[doc = "`GetHashCode()` overload"]
125    pub fn get_hash_code(&mut self) -> i32 {
126        unsafe {
127            ::unity::il2cpp_call!((::unity::module_base()+0x33de8f0usize)as*mut u8,i32;
128(*mut TextureDesc)self as*mut TextureDesc)
129        }
130    }
131}
132
133#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturedesc")]
134impl TextureDesc {
135    pub fn init_default_values_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
137    }
138
139    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
141    }
142
143    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
145    }
146
147    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
149    }
150
151    pub fn ctor_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
153    }
154
155    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
157    }
158}
159
160#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-texturedesc")]
161#[doc(hidden)]
162pub mod prelude {
163    pub use super::TextureDesc;
164    #[cfg(feature = "system-object")]
165    pub use crate::system::object::IObjectMethods;
166    #[cfg(feature = "system-valuetype")]
167    pub use crate::system::valuetype::IValueTypeMethods;
168    pub use crate::system::{object::IObject, valuetype::IValueType};
169}