Skip to main content

ITextureMethods

Trait ITextureMethods 

Source
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§

Source

fn ctor(self)

.ctor() overload

Source

fn get_mipmap_count(self) -> i32

get_mipmapCount() overload

Source

fn get_graphics_format(self) -> GraphicsFormat

get_graphicsFormat() overload

Source

fn get_data_width(self) -> i32

GetDataWidth() overload

Source

fn get_data_height(self) -> i32

GetDataHeight() overload

Source

fn get_dimension(self) -> TextureDimension

GetDimension() overload

Source

fn get_width(self) -> i32

get_width() overload

Source

fn set_width(self, value: impl Into<i32>)

set_width(i32) overload

Source

fn get_height(self) -> i32

get_height() overload

Source

fn set_height(self, value: impl Into<i32>)

set_height(i32) overload

Source

fn set_dimension(self, value: impl Into<TextureDimension>)

set_dimension(crate::unity_engine::rendering::texturedimension::TextureDimension) overload

Source

fn get_is_readable(self) -> bool

get_isReadable() overload

Source

fn get_wrap_mode(self) -> TextureWrapMode

get_wrapMode() overload

Source

fn set_wrap_mode(self, value: impl Into<TextureWrapMode>)

set_wrapMode(crate::unity_engine::texturewrapmode::TextureWrapMode) overload

Source

fn set_filter_mode(self, value: impl Into<FilterMode>)

set_filterMode(crate::unity_engine::filtermode::FilterMode) overload

Source

fn set_aniso_level(self, value: impl Into<i32>)

set_anisoLevel(i32) overload

Source

fn set_mip_map_bias(self, value: impl Into<f32>)

set_mipMapBias(f32) overload

Source

fn get_texel_size(self) -> Vector2

get_texelSize() overload

Source

fn internal_get_active_texture_color_space(self) -> i32

Internal_GetActiveTextureColorSpace() overload

Source

fn get_active_texture_color_space(self) -> ColorSpace

get_activeTextureColorSpace() overload

Source

fn get_pixel_data_size( self, mip_level: impl Into<i32>, element: impl Into<i32>, ) -> i32

GetPixelDataSize(i32, i32) overload

Source

fn get_pixel_data_offset( self, mip_level: impl Into<i32>, element: impl Into<i32>, ) -> i32

GetPixelDataOffset(i32, i32) overload

Source

fn validate_format(self, format: impl Into<TextureFormat>) -> bool

ValidateFormat(crate::unity_engine::textureformat::TextureFormat) overload

Source

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

Source

fn create_non_readable_exception(self, t: impl Into<Texture>) -> UnityException

CreateNonReadableException(crate::unity_engine::texture::Texture) overload

Source

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§

Source§

impl<__T: ITexture> ITextureMethods for __T

Available on crate feature unity_engine-texture only.