engage/generated/unity_engine/rendering/
texturexr.rs1#[cfg(feature = "unity_engine-rendering-texturexr-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/texturexr/TextureXR.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering", name = "TextureXR")]
12 #[parent(crate::system::object::Object)]
13 pub struct TextureXR {
14 #[static_field]
15 #[rename(name = "m_MaxViews")]
16 pub m_max_views: i32,
17 #[static_field]
18 #[rename(name = "m_BlackUIntTexture2DArray")]
19 pub m_black_u_int_texture2_d_array: crate::unity_engine::texture::Texture,
20 #[static_field]
21 #[rename(name = "m_BlackUIntTexture")]
22 pub m_black_u_int_texture: crate::unity_engine::texture::Texture,
23 #[static_field]
24 #[rename(name = "m_BlackUIntTexture2DArrayRTH")]
25 pub m_black_u_int_texture2_d_array_rth: crate::unity_engine::rendering::rthandle::RTHandle,
26 #[static_field]
27 #[rename(name = "m_BlackUIntTextureRTH")]
28 pub m_black_u_int_texture_rth: crate::unity_engine::rendering::rthandle::RTHandle,
29 #[static_field]
30 #[rename(name = "m_ClearTexture2DArray")]
31 pub m_clear_texture2_d_array: crate::unity_engine::texture2darray::Texture2DArray,
32 #[static_field]
33 #[rename(name = "m_ClearTexture")]
34 pub m_clear_texture: crate::unity_engine::texture2d::Texture2D,
35 #[static_field]
36 #[rename(name = "m_ClearTexture2DArrayRTH")]
37 pub m_clear_texture2_d_array_rth: crate::unity_engine::rendering::rthandle::RTHandle,
38 #[static_field]
39 #[rename(name = "m_ClearTextureRTH")]
40 pub m_clear_texture_rth: crate::unity_engine::rendering::rthandle::RTHandle,
41 #[static_field]
42 #[rename(name = "m_MagentaTexture2DArray")]
43 pub m_magenta_texture2_d_array: crate::unity_engine::texture2darray::Texture2DArray,
44 #[static_field]
45 #[rename(name = "m_MagentaTexture")]
46 pub m_magenta_texture: crate::unity_engine::texture2d::Texture2D,
47 #[static_field]
48 #[rename(name = "m_MagentaTexture2DArrayRTH")]
49 pub m_magenta_texture2_d_array_rth: crate::unity_engine::rendering::rthandle::RTHandle,
50 #[static_field]
51 #[rename(name = "m_MagentaTextureRTH")]
52 pub m_magenta_texture_rth: crate::unity_engine::rendering::rthandle::RTHandle,
53 #[static_field]
54 #[rename(name = "m_BlackTexture3D")]
55 pub m_black_texture3_d: crate::unity_engine::texture3d::Texture3D,
56 #[static_field]
57 #[rename(name = "m_BlackTexture2DArray")]
58 pub m_black_texture2_d_array: crate::unity_engine::texture2darray::Texture2DArray,
59 #[static_field]
60 #[rename(name = "m_BlackTexture2DArrayRTH")]
61 pub m_black_texture2_d_array_rth: crate::unity_engine::rendering::rthandle::RTHandle,
62 #[static_field]
63 #[rename(name = "m_BlackTextureRTH")]
64 pub m_black_texture_rth: crate::unity_engine::rendering::rthandle::RTHandle,
65 #[static_field]
66 #[rename(name = "m_BlackTexture3DRTH")]
67 pub m_black_texture3_drth: crate::unity_engine::rendering::rthandle::RTHandle,
68 #[static_field]
69 #[rename(name = "m_WhiteTexture2DArray")]
70 pub m_white_texture2_d_array: crate::unity_engine::texture2darray::Texture2DArray,
71 #[static_field]
72 #[rename(name = "m_WhiteTexture2DArrayRTH")]
73 pub m_white_texture2_d_array_rth: crate::unity_engine::rendering::rthandle::RTHandle,
74 #[static_field]
75 #[rename(name = "m_WhiteTextureRTH")]
76 pub m_white_texture_rth: crate::unity_engine::rendering::rthandle::RTHandle,
77 }
78}
79
80#[cfg(feature = "unity_engine-rendering-texturexr-types")]
81pub use __types::*;
82
83#[cfg(feature = "unity_engine-rendering-texturexr")]
84impl TextureXR {
85 #[doc = "`set_maxViews(i32)` overload"]
86 pub fn set_max_views(value: impl ::core::convert::Into<i32>) -> () {
87 unsafe {
88 ::unity::il2cpp_call!((::unity::module_base()+0x33e2880usize)as*mut u8,();
89(i32)::core::convert::Into::into(value))
90 }
91 }
92
93 #[doc = "`get_slices()` overload"]
94 pub fn get_slices() -> i32 {
95 unsafe {
96 ::unity::il2cpp_call!((::unity::module_base()+0x33e28f0usize)as*mut u8,i32;
97 )
98 }
99 }
100
101 #[doc = "`get_useTexArray()` overload"]
102 pub fn get_use_tex_array() -> bool {
103 unsafe {
104 ::unity::il2cpp_call!((::unity::module_base()+0x33e2960usize)as*mut u8,bool;
105 )
106 }
107 }
108
109 #[doc = "`get_dimension()` overload"]
110 pub fn get_dimension() -> crate::unity_engine::rendering::texturedimension::TextureDimension {
111 unsafe {
112 ::unity::il2cpp_call!((::unity::module_base()+0x33e1ca0usize)as*mut u8,crate::unity_engine::rendering::texturedimension::TextureDimension;
113 )
114 }
115 }
116
117 #[doc = "`GetBlackUIntTexture()` overload"]
118 pub fn get_black_u_int_texture() -> crate::unity_engine::rendering::rthandle::RTHandle {
119 unsafe {
120 ::unity::il2cpp_call!((::unity::module_base()+0x33e29c0usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
121 )
122 }
123 }
124
125 #[doc = "`GetClearTexture()` overload"]
126 pub fn get_clear_texture() -> crate::unity_engine::rendering::rthandle::RTHandle {
127 unsafe {
128 ::unity::il2cpp_call!((::unity::module_base()+0x33e2ab0usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
129 )
130 }
131 }
132
133 #[doc = "`GetMagentaTexture()` overload"]
134 pub fn get_magenta_texture() -> crate::unity_engine::rendering::rthandle::RTHandle {
135 unsafe {
136 ::unity::il2cpp_call!((::unity::module_base()+0x33e2ba0usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
137 )
138 }
139 }
140
141 #[doc = "`GetBlackTexture()` overload"]
142 pub fn get_black_texture() -> crate::unity_engine::rendering::rthandle::RTHandle {
143 unsafe {
144 ::unity::il2cpp_call!((::unity::module_base()+0x33e2c90usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
145 )
146 }
147 }
148
149 #[doc = "`GetBlackTextureArray()` overload"]
150 pub fn get_black_texture_array() -> crate::unity_engine::rendering::rthandle::RTHandle {
151 unsafe {
152 ::unity::il2cpp_call!((::unity::module_base()+0x33e2d80usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
153 )
154 }
155 }
156
157 #[doc = "`GetBlackTexture3D()` overload"]
158 pub fn get_black_texture3_d() -> crate::unity_engine::rendering::rthandle::RTHandle {
159 unsafe {
160 ::unity::il2cpp_call!((::unity::module_base()+0x33e2df0usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
161 )
162 }
163 }
164
165 #[doc = "`GetWhiteTexture()` overload"]
166 pub fn get_white_texture() -> crate::unity_engine::rendering::rthandle::RTHandle {
167 unsafe {
168 ::unity::il2cpp_call!((::unity::module_base()+0x33e2e60usize)as*mut u8,crate::unity_engine::rendering::rthandle::RTHandle;
169 )
170 }
171 }
172
173 #[doc = "`Initialize(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::computeshader::ComputeShader)` overload"]
174 pub fn initialize(
175 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
176 clear_r32_u_int_shader: impl ::core::convert::Into<crate::unity_engine::computeshader::ComputeShader>,
177 ) -> () {
178 unsafe {
179 ::unity::il2cpp_call!((::unity::module_base()+0x33e2f50usize)as*mut u8,();
180(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(crate::unity_engine::computeshader::ComputeShader)::core::convert::Into::into(clear_r32_u_int_shader))
181 }
182 }
183
184 #[doc = "`CreateTexture2DArrayFromTexture2D(crate::unity_engine::texture2d::Texture2D, ::unity::Il2CppString)` overload"]
185 pub fn create_texture2_d_array_from_texture2_d(
186 source: impl ::core::convert::Into<crate::unity_engine::texture2d::Texture2D>,
187 name: impl ::core::convert::Into<::unity::Il2CppString>,
188 ) -> crate::unity_engine::texture2darray::Texture2DArray {
189 unsafe {
190 ::unity::il2cpp_call!((::unity::module_base()+0x33e3ab0usize)as*mut u8,crate::unity_engine::texture2darray::Texture2DArray;
191(crate::unity_engine::texture2d::Texture2D)::core::convert::Into::into(source),(::unity::Il2CppString)::core::convert::Into::into(name))
192 }
193 }
194
195 #[doc = "`CreateBlackUIntTextureArray(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::computeshader::ComputeShader)` overload"]
196 pub fn create_black_u_int_texture_array(
197 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
198 clear_r32_u_int_shader: impl ::core::convert::Into<crate::unity_engine::computeshader::ComputeShader>,
199 ) -> crate::unity_engine::texture::Texture {
200 unsafe {
201 ::unity::il2cpp_call!((::unity::module_base()+0x33e3590usize)as*mut u8,crate::unity_engine::texture::Texture;
202(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(crate::unity_engine::computeshader::ComputeShader)::core::convert::Into::into(clear_r32_u_int_shader))
203 }
204 }
205
206 #[doc = "`CreateBlackUintTexture(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::computeshader::ComputeShader)` overload"]
207 pub fn create_black_uint_texture(
208 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
209 clear_r32_u_int_shader: impl ::core::convert::Into<crate::unity_engine::computeshader::ComputeShader>,
210 ) -> crate::unity_engine::texture::Texture {
211 unsafe {
212 ::unity::il2cpp_call!((::unity::module_base()+0x33e3820usize)as*mut u8,crate::unity_engine::texture::Texture;
213(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(crate::unity_engine::computeshader::ComputeShader)::core::convert::Into::into(clear_r32_u_int_shader))
214 }
215 }
216
217 #[doc = "`CreateBlackTexture3D(::unity::Il2CppString)` overload"]
218 pub fn create_black_texture3_d(name: impl ::core::convert::Into<::unity::Il2CppString>) -> crate::unity_engine::texture3d::Texture3D {
219 unsafe {
220 ::unity::il2cpp_call!((::unity::module_base()+0x33e3cf0usize)as*mut u8,crate::unity_engine::texture3d::Texture3D;
221(::unity::Il2CppString)::core::convert::Into::into(name))
222 }
223 }
224
225 #[doc = "`.cctor()` overload"]
226 pub fn cctor() -> () {
227 unsafe {
228 ::unity::il2cpp_call!((::unity::module_base()+0x33e3db0usize)as*mut u8,();
229 )
230 }
231 }
232}
233
234#[cfg(feature = "unity_engine-rendering-texturexr")]
235impl TextureXR {
236 pub fn set_max_views_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
238 }
239
240 pub fn get_slices_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
242 }
243
244 pub fn get_use_tex_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
246 }
247
248 pub fn get_dimension_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
250 }
251
252 pub fn get_black_u_int_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
254 }
255
256 pub fn get_clear_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
258 }
259
260 pub fn get_magenta_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
262 }
263
264 pub fn get_black_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
266 }
267
268 pub fn get_black_texture_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
270 }
271
272 pub fn get_black_texture3_d_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
274 }
275
276 pub fn get_white_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
278 }
279
280 pub fn initialize_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
282 }
283
284 pub fn create_texture2_d_array_from_texture2_d_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
286 }
287
288 pub fn create_black_u_int_texture_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
290 }
291
292 pub fn create_black_uint_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
294 }
295
296 pub fn create_black_texture3_d_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
298 }
299
300 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
302 }
303}
304
305#[cfg(feature = "unity_engine-rendering-texturexr")]
306#[doc(hidden)]
307pub mod prelude {
308 pub use super::{ITextureXR, TextureXR};
309 pub use crate::system::object::IObject;
310 #[cfg(feature = "system-object")]
311 pub use crate::system::object::IObjectMethods;
312}