pub trait ITextureMethods: ITexture {
Show 26 methods
// Provided methods
fn ctor(self) { ... }
fn get_mipmap_count(self) -> i32 { ... }
fn get_graphics_format(self) -> GraphicsFormat { ... }
fn get_data_width(self) -> i32 { ... }
fn get_data_height(self) -> i32 { ... }
fn get_dimension(self) -> TextureDimension { ... }
fn get_width(self) -> i32 { ... }
fn set_width(self, value: impl Into<i32>) { ... }
fn get_height(self) -> i32 { ... }
fn set_height(self, value: impl Into<i32>) { ... }
fn set_dimension(self, value: impl Into<TextureDimension>) { ... }
fn get_is_readable(self) -> bool { ... }
fn get_wrap_mode(self) -> TextureWrapMode { ... }
fn set_wrap_mode(self, value: impl Into<TextureWrapMode>) { ... }
fn set_filter_mode(self, value: impl Into<FilterMode>) { ... }
fn set_aniso_level(self, value: impl Into<i32>) { ... }
fn set_mip_map_bias(self, value: impl Into<f32>) { ... }
fn get_texel_size(self) -> Vector2 { ... }
fn internal_get_active_texture_color_space(self) -> i32 { ... }
fn get_active_texture_color_space(self) -> ColorSpace { ... }
fn get_pixel_data_size(
self,
mip_level: impl Into<i32>,
element: impl Into<i32>,
) -> i32 { ... }
fn get_pixel_data_offset(
self,
mip_level: impl Into<i32>,
element: impl Into<i32>,
) -> i32 { ... }
fn validate_format(self, format: impl Into<TextureFormat>) -> bool { ... }
fn validate_format_2(
self,
format: impl Into<GraphicsFormat>,
usage: impl Into<FormatUsage>,
) -> bool { ... }
fn create_non_readable_exception(
self,
t: impl Into<Texture>,
) -> UnityException { ... }
fn get_texel_size_injected(self) -> Vector2 { ... }
}Provided Methods§
Sourcefn get_mipmap_count(self) -> i32
fn get_mipmap_count(self) -> i32
get_mipmapCount() overload
Sourcefn get_graphics_format(self) -> GraphicsFormat
fn get_graphics_format(self) -> GraphicsFormat
get_graphicsFormat() overload
Sourcefn get_data_width(self) -> i32
fn get_data_width(self) -> i32
GetDataWidth() overload
Sourcefn get_data_height(self) -> i32
fn get_data_height(self) -> i32
GetDataHeight() overload
Sourcefn get_dimension(self) -> TextureDimension
fn get_dimension(self) -> TextureDimension
GetDimension() overload
Sourcefn get_height(self) -> i32
fn get_height(self) -> i32
get_height() overload
Sourcefn set_height(self, value: impl Into<i32>)
fn set_height(self, value: impl Into<i32>)
set_height(i32) overload
Sourcefn set_dimension(self, value: impl Into<TextureDimension>)
fn set_dimension(self, value: impl Into<TextureDimension>)
set_dimension(crate::unity_engine::rendering::texturedimension::TextureDimension) overload
Sourcefn get_is_readable(self) -> bool
fn get_is_readable(self) -> bool
get_isReadable() overload
Sourcefn get_wrap_mode(self) -> TextureWrapMode
fn get_wrap_mode(self) -> TextureWrapMode
get_wrapMode() overload
Sourcefn set_wrap_mode(self, value: impl Into<TextureWrapMode>)
fn set_wrap_mode(self, value: impl Into<TextureWrapMode>)
set_wrapMode(crate::unity_engine::texturewrapmode::TextureWrapMode) overload
Sourcefn set_filter_mode(self, value: impl Into<FilterMode>)
fn set_filter_mode(self, value: impl Into<FilterMode>)
set_filterMode(crate::unity_engine::filtermode::FilterMode) overload
Sourcefn set_aniso_level(self, value: impl Into<i32>)
fn set_aniso_level(self, value: impl Into<i32>)
set_anisoLevel(i32) overload
Sourcefn set_mip_map_bias(self, value: impl Into<f32>)
fn set_mip_map_bias(self, value: impl Into<f32>)
set_mipMapBias(f32) overload
Sourcefn get_texel_size(self) -> Vector2
fn get_texel_size(self) -> Vector2
get_texelSize() overload
Sourcefn internal_get_active_texture_color_space(self) -> i32
fn internal_get_active_texture_color_space(self) -> i32
Internal_GetActiveTextureColorSpace() overload
Sourcefn get_active_texture_color_space(self) -> ColorSpace
fn get_active_texture_color_space(self) -> ColorSpace
get_activeTextureColorSpace() overload
Sourcefn get_pixel_data_size(
self,
mip_level: impl Into<i32>,
element: impl Into<i32>,
) -> i32
fn get_pixel_data_size( self, mip_level: impl Into<i32>, element: impl Into<i32>, ) -> i32
GetPixelDataSize(i32, i32) overload
Sourcefn get_pixel_data_offset(
self,
mip_level: impl Into<i32>,
element: impl Into<i32>,
) -> i32
fn get_pixel_data_offset( self, mip_level: impl Into<i32>, element: impl Into<i32>, ) -> i32
GetPixelDataOffset(i32, i32) overload
Sourcefn validate_format(self, format: impl Into<TextureFormat>) -> bool
fn validate_format(self, format: impl Into<TextureFormat>) -> bool
ValidateFormat(crate::unity_engine::textureformat::TextureFormat) overload
Sourcefn validate_format_2(
self,
format: impl Into<GraphicsFormat>,
usage: impl Into<FormatUsage>,
) -> bool
fn validate_format_2( self, format: impl Into<GraphicsFormat>, usage: impl Into<FormatUsage>, ) -> bool
ValidateFormat(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::formatusage::FormatUsage) overload
Sourcefn create_non_readable_exception(self, t: impl Into<Texture>) -> UnityException
fn create_non_readable_exception(self, t: impl Into<Texture>) -> UnityException
CreateNonReadableException(crate::unity_engine::texture::Texture) overload
Sourcefn get_texel_size_injected(self) -> Vector2
fn get_texel_size_injected(self) -> Vector2
get_texelSize_Injected(*mutcrate::unity_engine::vector2::Vector2) overload
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl<__T: ITexture> ITextureMethods for __T
unity_engine-texture only.