Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-graphicsformatutility-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/experimental/rendering/graphicsformatutility/GraphicsFormatUtility.md"))]
11    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering", name = "GraphicsFormatUtility")]
12    #[parent(crate::system::object::Object)]
13    pub struct GraphicsFormatUtility {}
14}
15
16#[cfg(feature = "unity_engine-experimental-rendering-graphicsformatutility-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-experimental-rendering-graphicsformatutility")]
20impl GraphicsFormatUtility {
21    #[doc = "`GetFormat(crate::unity_engine::texture::Texture)` overload"]
22    pub fn get_format(
23        texture: impl ::core::convert::Into<crate::unity_engine::texture::Texture>,
24    ) -> crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat {
25        unsafe {
26            ::unity::il2cpp_call!((::unity::module_base()+0x2c50550usize)as*mut u8,crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat;
27(crate::unity_engine::texture::Texture)::core::convert::Into::into(texture))
28        }
29    }
30
31    #[doc = "`GetGraphicsFormat(crate::unity_engine::textureformat::TextureFormat, bool)` overload"]
32    pub fn get_graphics_format(
33        format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
34        is_srgb: impl ::core::convert::Into<bool>,
35    ) -> crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x2c48680usize)as*mut u8,crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat;
38(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(format),(bool)::core::convert::Into::into(is_srgb))
39        }
40    }
41
42    #[doc = "`GetGraphicsFormat_Native_TextureFormat(crate::unity_engine::textureformat::TextureFormat, bool)` overload"]
43    pub fn get_graphics_format_native_texture_format(
44        format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>,
45        is_srgb: impl ::core::convert::Into<bool>,
46    ) -> crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x2c505a0usize)as*mut u8,crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat;
49(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(format),(bool)::core::convert::Into::into(is_srgb))
50        }
51    }
52
53    #[doc = "`GetGraphicsFormat(crate::unity_engine::rendertextureformat::RenderTextureFormat, bool)` overload"]
54    pub fn get_graphics_format_2(
55        format: impl ::core::convert::Into<crate::unity_engine::rendertextureformat::RenderTextureFormat>,
56        is_srgb: impl ::core::convert::Into<bool>,
57    ) -> crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x2c505f0usize)as*mut u8,crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat;
60(crate::unity_engine::rendertextureformat::RenderTextureFormat)::core::convert::Into::into(format),(bool)::core::convert::Into::into(is_srgb))
61        }
62    }
63
64    #[doc = "`GetGraphicsFormat_Native_RenderTextureFormat(crate::unity_engine::rendertextureformat::RenderTextureFormat, bool)` overload"]
65    pub fn get_graphics_format_native_render_texture_format(
66        format: impl ::core::convert::Into<crate::unity_engine::rendertextureformat::RenderTextureFormat>,
67        is_srgb: impl ::core::convert::Into<bool>,
68    ) -> crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat {
69        unsafe {
70            ::unity::il2cpp_call!((::unity::module_base()+0x2c50640usize)as*mut u8,crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat;
71(crate::unity_engine::rendertextureformat::RenderTextureFormat)::core::convert::Into::into(format),(bool)::core::convert::Into::into(is_srgb))
72        }
73    }
74
75    #[doc = "`GetGraphicsFormat(crate::unity_engine::rendertextureformat::RenderTextureFormat, crate::unity_engine::rendertexturereadwrite::RenderTextureReadWrite)` overload"]
76    pub fn get_graphics_format_3(
77        format: impl ::core::convert::Into<crate::unity_engine::rendertextureformat::RenderTextureFormat>,
78        read_write: impl ::core::convert::Into<crate::unity_engine::rendertexturereadwrite::RenderTextureReadWrite>,
79    ) -> crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat {
80        unsafe {
81            ::unity::il2cpp_call!((::unity::module_base()+0x2c429b0usize)as*mut u8,crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat;
82(crate::unity_engine::rendertextureformat::RenderTextureFormat)::core::convert::Into::into(format),(crate::unity_engine::rendertexturereadwrite::RenderTextureReadWrite)::core::convert::Into::into(read_write))
83        }
84    }
85
86    #[doc = "`IsSRGBFormat(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)` overload"]
87    pub fn is_srgb_format(format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>) -> bool {
88        unsafe {
89            ::unity::il2cpp_call!((::unity::module_base()+0x2c50690usize)as*mut u8,bool;
90(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format))
91        }
92    }
93
94    #[doc = "`GetRenderTextureFormat(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)` overload"]
95    pub fn get_render_texture_format(
96        format: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat>,
97    ) -> crate::unity_engine::rendertextureformat::RenderTextureFormat {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x2c506e0usize)as*mut u8,crate::unity_engine::rendertextureformat::RenderTextureFormat;
100(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat)::core::convert::Into::into(format))
101        }
102    }
103
104    #[doc = "`IsCompressedTextureFormat(crate::unity_engine::textureformat::TextureFormat)` overload"]
105    pub fn is_compressed_texture_format(format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>) -> bool {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x2c50730usize)as*mut u8,bool;
108(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(format))
109        }
110    }
111
112    #[doc = "`IsCrunchFormat(crate::unity_engine::textureformat::TextureFormat)` overload"]
113    pub fn is_crunch_format(format: impl ::core::convert::Into<crate::unity_engine::textureformat::TextureFormat>) -> bool {
114        unsafe {
115            ::unity::il2cpp_call!((::unity::module_base()+0x2c486d0usize)as*mut u8,bool;
116(crate::unity_engine::textureformat::TextureFormat)::core::convert::Into::into(format))
117        }
118    }
119}
120
121#[cfg(feature = "unity_engine-experimental-rendering-graphicsformatutility")]
122impl GraphicsFormatUtility {
123    pub fn get_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
124        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
125    }
126
127    pub fn get_graphics_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
128        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
129    }
130
131    pub fn get_graphics_format_native_texture_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
133    }
134
135    pub fn get_graphics_format_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
137    }
138
139    pub fn get_graphics_format_native_render_texture_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
141    }
142
143    pub fn get_graphics_format_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
145    }
146
147    pub fn is_srgb_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
149    }
150
151    pub fn get_render_texture_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
153    }
154
155    pub fn is_compressed_texture_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
157    }
158
159    pub fn is_crunch_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
161    }
162}
163
164#[cfg(feature = "unity_engine-experimental-rendering-graphicsformatutility")]
165#[doc(hidden)]
166pub mod prelude {
167    pub use super::{GraphicsFormatUtility, IGraphicsFormatUtility};
168    pub use crate::system::object::IObject;
169    #[cfg(feature = "system-object")]
170    pub use crate::system::object::IObjectMethods;
171}