pub trait ITexture2DMethods: ITexture2D {
Show 85 methods
// Provided methods
fn get_format(self) -> TextureFormat { ... }
fn compress(self, high_quality: impl Into<bool>) { ... }
fn get_is_readable(self) -> bool { ... }
fn get_vt_only(self) -> bool { ... }
fn apply_impl(
self,
update_mipmaps: impl Into<bool>,
make_no_longer_readable: impl Into<bool>,
) { ... }
fn resize_impl(self, width: impl Into<i32>, height: impl Into<i32>) -> bool { ... }
fn set_pixel_impl(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
color: impl Into<Color>,
) { ... }
fn get_pixel_impl(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
) -> Color { ... }
fn get_pixel_bilinear_impl(
self,
image: impl Into<i32>,
u: impl Into<f32>,
v: impl Into<f32>,
) -> Color { ... }
fn resize_with_format_impl(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<GraphicsFormat>,
has_mip_map: impl Into<bool>,
) -> bool { ... }
fn read_pixels_impl(
self,
source: impl Into<Rect>,
dest_x: impl Into<i32>,
dest_y: impl Into<i32>,
recalculate_mip_maps: impl Into<bool>,
) { ... }
fn set_pixels_impl(
self,
x: impl Into<i32>,
y: impl Into<i32>,
w: impl Into<i32>,
h: impl Into<i32>,
pixel: impl Into<Array<Color>>,
miplevel: impl Into<i32>,
frame: impl Into<i32>,
) { ... }
fn load_raw_texture_data_impl(
self,
data: impl Into<IntPtr>,
size: impl Into<i32>,
) -> bool { ... }
fn load_raw_texture_data_impl_array(
self,
data: impl Into<Array<u8>>,
) -> bool { ... }
fn set_pixel_data_impl_array(
self,
data: impl Into<IlInstance>,
mip_level: impl Into<i32>,
element_size: impl Into<i32>,
data_array_size: impl Into<i32>,
source_data_start_index: impl Into<i32>,
) -> bool { ... }
fn set_pixel_data_impl(
self,
data: impl Into<IntPtr>,
mip_level: impl Into<i32>,
element_size: impl Into<i32>,
data_array_size: impl Into<i32>,
source_data_start_index: impl Into<i32>,
) -> bool { ... }
fn get_writable_image_data(self, frame: impl Into<i32>) -> IntPtr { ... }
fn get_raw_image_data_size(self) -> i64 { ... }
fn get_is_pre_processed(self) -> bool { ... }
fn get_streaming_mipmaps(self) -> bool { ... }
fn get_streaming_mipmaps_priority(self) -> i32 { ... }
fn get_requested_mipmap_level(self) -> i32 { ... }
fn set_requested_mipmap_level(self, value: impl Into<i32>) { ... }
fn get_minimum_mipmap_level(self) -> i32 { ... }
fn set_minimum_mipmap_level(self, value: impl Into<i32>) { ... }
fn get_load_all_mips(self) -> bool { ... }
fn set_load_all_mips(self, value: impl Into<bool>) { ... }
fn get_calculated_mipmap_level(self) -> i32 { ... }
fn get_desired_mipmap_level(self) -> i32 { ... }
fn get_loading_mipmap_level(self) -> i32 { ... }
fn get_loaded_mipmap_level(self) -> i32 { ... }
fn clear_requested_mipmap_level(self) { ... }
fn is_requested_mipmap_level_loaded(self) -> bool { ... }
fn clear_minimum_mipmap_level(self) { ... }
fn update_external_texture(self, native_tex: impl Into<IntPtr>) { ... }
fn set_all_pixels32(
self,
colors: impl Into<Array<Color32>>,
miplevel: impl Into<i32>,
) { ... }
fn set_block_of_pixels32(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
colors: impl Into<Array<Color32>>,
miplevel: impl Into<i32>,
) { ... }
fn get_raw_texture_data(self) -> Array<u8> { ... }
fn get_pixels(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
miplevel: impl Into<i32>,
) -> Array<Color> { ... }
fn get_pixels_2(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
) -> Array<Color> { ... }
fn get_pixels32(self, miplevel: impl Into<i32>) -> Array<Color32> { ... }
fn get_pixels32_2(self) -> Array<Color32> { ... }
fn pack_textures(
self,
textures: impl Into<Array<Texture2D>>,
padding: impl Into<i32>,
maximum_atlas_size: impl Into<i32>,
make_no_longer_readable: impl Into<bool>,
) -> Array<Rect> { ... }
fn pack_textures_2(
self,
textures: impl Into<Array<Texture2D>>,
padding: impl Into<i32>,
maximum_atlas_size: impl Into<i32>,
) -> Array<Rect> { ... }
fn pack_textures_3(
self,
textures: impl Into<Array<Texture2D>>,
padding: impl Into<i32>,
) -> Array<Rect> { ... }
fn ctor(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<GraphicsFormat>,
flags: impl Into<TextureCreationFlags>,
mip_count: impl Into<i32>,
native_tex: impl Into<IntPtr>,
) { ... }
fn ctor_2(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<DefaultFormat>,
flags: impl Into<TextureCreationFlags>,
) { ... }
fn ctor_3(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<GraphicsFormat>,
flags: impl Into<TextureCreationFlags>,
) { ... }
fn ctor_4(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<GraphicsFormat>,
mip_count: impl Into<i32>,
flags: impl Into<TextureCreationFlags>,
) { ... }
fn ctor_5(
self,
width: impl Into<i32>,
height: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_count: impl Into<i32>,
linear: impl Into<bool>,
native_tex: impl Into<IntPtr>,
) { ... }
fn ctor_6(
self,
width: impl Into<i32>,
height: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_count: impl Into<i32>,
linear: impl Into<bool>,
) { ... }
fn ctor_7(
self,
width: impl Into<i32>,
height: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_chain: impl Into<bool>,
linear: impl Into<bool>,
) { ... }
fn ctor_8(
self,
width: impl Into<i32>,
height: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_chain: impl Into<bool>,
) { ... }
fn ctor_9(self, width: impl Into<i32>, height: impl Into<i32>) { ... }
fn set_pixel(
self,
x: impl Into<i32>,
y: impl Into<i32>,
color: impl Into<Color>,
) { ... }
fn set_pixel_2(
self,
x: impl Into<i32>,
y: impl Into<i32>,
color: impl Into<Color>,
mip_level: impl Into<i32>,
) { ... }
fn set_pixels(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
colors: impl Into<Array<Color>>,
miplevel: impl Into<i32>,
) { ... }
fn set_pixels_2(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
colors: impl Into<Array<Color>>,
) { ... }
fn set_pixels_3(
self,
colors: impl Into<Array<Color>>,
miplevel: impl Into<i32>,
) { ... }
fn set_pixels_4(self, colors: impl Into<Array<Color>>) { ... }
fn get_pixel(self, x: impl Into<i32>, y: impl Into<i32>) -> Color { ... }
fn get_pixel_2(
self,
x: impl Into<i32>,
y: impl Into<i32>,
mip_level: impl Into<i32>,
) -> Color { ... }
fn get_pixel_bilinear(self, u: impl Into<f32>, v: impl Into<f32>) -> Color { ... }
fn get_pixel_bilinear_2(
self,
u: impl Into<f32>,
v: impl Into<f32>,
mip_level: impl Into<i32>,
) -> Color { ... }
fn load_raw_texture_data(
self,
data: impl Into<IntPtr>,
size: impl Into<i32>,
) { ... }
fn load_raw_texture_data_2(self, data: impl Into<Array<u8>>) { ... }
fn set_pixel_data<M0: IlType + Copy + ClassIdentity>(
self,
data: impl Into<Array<M0>>,
mip_level: impl Into<i32>,
source_data_start_index: impl Into<i32>,
) { ... }
fn apply(
self,
update_mipmaps: impl Into<bool>,
make_no_longer_readable: impl Into<bool>,
) { ... }
fn apply_2(self, update_mipmaps: impl Into<bool>) { ... }
fn apply_3(self) { ... }
fn resize(self, width: impl Into<i32>, height: impl Into<i32>) -> bool { ... }
fn resize_2(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<TextureFormat>,
has_mip_map: impl Into<bool>,
) -> bool { ... }
fn resize_3(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<GraphicsFormat>,
has_mip_map: impl Into<bool>,
) -> bool { ... }
fn read_pixels(
self,
source: impl Into<Rect>,
dest_x: impl Into<i32>,
dest_y: impl Into<i32>,
recalculate_mip_maps: impl Into<bool>,
) { ... }
fn read_pixels_2(
self,
source: impl Into<Rect>,
dest_x: impl Into<i32>,
dest_y: impl Into<i32>,
) { ... }
fn set_pixels32(
self,
colors: impl Into<Array<Color32>>,
miplevel: impl Into<i32>,
) { ... }
fn set_pixels32_2(self, colors: impl Into<Array<Color32>>) { ... }
fn set_pixels32_3(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
colors: impl Into<Array<Color32>>,
miplevel: impl Into<i32>,
) { ... }
fn set_pixels32_4(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
colors: impl Into<Array<Color32>>,
) { ... }
fn get_pixels_3(self, miplevel: impl Into<i32>) -> Array<Color> { ... }
fn get_pixels_4(self) -> Array<Color> { ... }
fn set_pixel_impl_injected(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
) -> Color { ... }
fn get_pixel_impl_injected(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
) -> Color { ... }
fn get_pixel_bilinear_impl_injected(
self,
image: impl Into<i32>,
u: impl Into<f32>,
v: impl Into<f32>,
) -> Color { ... }
fn read_pixels_impl_injected(
self,
dest_x: impl Into<i32>,
dest_y: impl Into<i32>,
recalculate_mip_maps: impl Into<bool>,
) -> Rect { ... }
}Provided Methods§
Sourcefn get_format(self) -> TextureFormat
fn get_format(self) -> TextureFormat
get_format() overload
Sourcefn get_is_readable(self) -> bool
fn get_is_readable(self) -> bool
get_isReadable() overload
Sourcefn get_vt_only(self) -> bool
fn get_vt_only(self) -> bool
get_vtOnly() overload
Sourcefn apply_impl(
self,
update_mipmaps: impl Into<bool>,
make_no_longer_readable: impl Into<bool>,
)
fn apply_impl( self, update_mipmaps: impl Into<bool>, make_no_longer_readable: impl Into<bool>, )
ApplyImpl(bool, bool) overload
Sourcefn resize_impl(self, width: impl Into<i32>, height: impl Into<i32>) -> bool
fn resize_impl(self, width: impl Into<i32>, height: impl Into<i32>) -> bool
ResizeImpl(i32, i32) overload
Sourcefn set_pixel_impl(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
color: impl Into<Color>,
)
fn set_pixel_impl( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, color: impl Into<Color>, )
SetPixelImpl(i32, i32, i32, crate::unity_engine::color::Color) overload
Sourcefn get_pixel_impl(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
) -> Color
fn get_pixel_impl( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color
GetPixelImpl(i32, i32, i32) overload
Sourcefn get_pixel_bilinear_impl(
self,
image: impl Into<i32>,
u: impl Into<f32>,
v: impl Into<f32>,
) -> Color
fn get_pixel_bilinear_impl( self, image: impl Into<i32>, u: impl Into<f32>, v: impl Into<f32>, ) -> Color
GetPixelBilinearImpl(i32, f32, f32) overload
Sourcefn resize_with_format_impl(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<GraphicsFormat>,
has_mip_map: impl Into<bool>,
) -> bool
fn resize_with_format_impl( self, width: impl Into<i32>, height: impl Into<i32>, format: impl Into<GraphicsFormat>, has_mip_map: impl Into<bool>, ) -> bool
ResizeWithFormatImpl(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, bool) overload
Sourcefn read_pixels_impl(
self,
source: impl Into<Rect>,
dest_x: impl Into<i32>,
dest_y: impl Into<i32>,
recalculate_mip_maps: impl Into<bool>,
)
fn read_pixels_impl( self, source: impl Into<Rect>, dest_x: impl Into<i32>, dest_y: impl Into<i32>, recalculate_mip_maps: impl Into<bool>, )
ReadPixelsImpl(crate::unity_engine::rect::Rect, i32, i32, bool) overload
Sourcefn set_pixels_impl(
self,
x: impl Into<i32>,
y: impl Into<i32>,
w: impl Into<i32>,
h: impl Into<i32>,
pixel: impl Into<Array<Color>>,
miplevel: impl Into<i32>,
frame: impl Into<i32>,
)
fn set_pixels_impl( self, x: impl Into<i32>, y: impl Into<i32>, w: impl Into<i32>, h: impl Into<i32>, pixel: impl Into<Array<Color>>, miplevel: impl Into<i32>, frame: impl Into<i32>, )
SetPixelsImpl(i32, i32, i32, i32, ::unity::Array<crate::unity_engine::color::Color>, i32, i32) overload
Sourcefn load_raw_texture_data_impl(
self,
data: impl Into<IntPtr>,
size: impl Into<i32>,
) -> bool
fn load_raw_texture_data_impl( self, data: impl Into<IntPtr>, size: impl Into<i32>, ) -> bool
LoadRawTextureDataImpl(::unity::IntPtr, i32) overload
Sourcefn load_raw_texture_data_impl_array(self, data: impl Into<Array<u8>>) -> bool
fn load_raw_texture_data_impl_array(self, data: impl Into<Array<u8>>) -> bool
LoadRawTextureDataImplArray(::unity::Array<u8>) overload
Sourcefn set_pixel_data_impl_array(
self,
data: impl Into<IlInstance>,
mip_level: impl Into<i32>,
element_size: impl Into<i32>,
data_array_size: impl Into<i32>,
source_data_start_index: impl Into<i32>,
) -> bool
fn set_pixel_data_impl_array( self, data: impl Into<IlInstance>, mip_level: impl Into<i32>, element_size: impl Into<i32>, data_array_size: impl Into<i32>, source_data_start_index: impl Into<i32>, ) -> bool
SetPixelDataImplArray(::unity::IlInstance, i32, i32, i32, i32) overload
Sourcefn set_pixel_data_impl(
self,
data: impl Into<IntPtr>,
mip_level: impl Into<i32>,
element_size: impl Into<i32>,
data_array_size: impl Into<i32>,
source_data_start_index: impl Into<i32>,
) -> bool
fn set_pixel_data_impl( self, data: impl Into<IntPtr>, mip_level: impl Into<i32>, element_size: impl Into<i32>, data_array_size: impl Into<i32>, source_data_start_index: impl Into<i32>, ) -> bool
SetPixelDataImpl(::unity::IntPtr, i32, i32, i32, i32) overload
Sourcefn get_writable_image_data(self, frame: impl Into<i32>) -> IntPtr
fn get_writable_image_data(self, frame: impl Into<i32>) -> IntPtr
GetWritableImageData(i32) overload
Sourcefn get_raw_image_data_size(self) -> i64
fn get_raw_image_data_size(self) -> i64
GetRawImageDataSize() overload
Sourcefn get_is_pre_processed(self) -> bool
fn get_is_pre_processed(self) -> bool
get_isPreProcessed() overload
Sourcefn get_streaming_mipmaps(self) -> bool
fn get_streaming_mipmaps(self) -> bool
get_streamingMipmaps() overload
Sourcefn get_streaming_mipmaps_priority(self) -> i32
fn get_streaming_mipmaps_priority(self) -> i32
get_streamingMipmapsPriority() overload
Sourcefn get_requested_mipmap_level(self) -> i32
fn get_requested_mipmap_level(self) -> i32
get_requestedMipmapLevel() overload
Sourcefn set_requested_mipmap_level(self, value: impl Into<i32>)
fn set_requested_mipmap_level(self, value: impl Into<i32>)
set_requestedMipmapLevel(i32) overload
Sourcefn get_minimum_mipmap_level(self) -> i32
fn get_minimum_mipmap_level(self) -> i32
get_minimumMipmapLevel() overload
Sourcefn set_minimum_mipmap_level(self, value: impl Into<i32>)
fn set_minimum_mipmap_level(self, value: impl Into<i32>)
set_minimumMipmapLevel(i32) overload
Sourcefn get_load_all_mips(self) -> bool
fn get_load_all_mips(self) -> bool
get_loadAllMips() overload
Sourcefn set_load_all_mips(self, value: impl Into<bool>)
fn set_load_all_mips(self, value: impl Into<bool>)
set_loadAllMips(bool) overload
Sourcefn get_calculated_mipmap_level(self) -> i32
fn get_calculated_mipmap_level(self) -> i32
get_calculatedMipmapLevel() overload
Sourcefn get_desired_mipmap_level(self) -> i32
fn get_desired_mipmap_level(self) -> i32
get_desiredMipmapLevel() overload
Sourcefn get_loading_mipmap_level(self) -> i32
fn get_loading_mipmap_level(self) -> i32
get_loadingMipmapLevel() overload
Sourcefn get_loaded_mipmap_level(self) -> i32
fn get_loaded_mipmap_level(self) -> i32
get_loadedMipmapLevel() overload
Sourcefn clear_requested_mipmap_level(self)
fn clear_requested_mipmap_level(self)
ClearRequestedMipmapLevel() overload
Sourcefn is_requested_mipmap_level_loaded(self) -> bool
fn is_requested_mipmap_level_loaded(self) -> bool
IsRequestedMipmapLevelLoaded() overload
Sourcefn clear_minimum_mipmap_level(self)
fn clear_minimum_mipmap_level(self)
ClearMinimumMipmapLevel() overload
Sourcefn update_external_texture(self, native_tex: impl Into<IntPtr>)
fn update_external_texture(self, native_tex: impl Into<IntPtr>)
UpdateExternalTexture(::unity::IntPtr) overload
Sourcefn set_all_pixels32(
self,
colors: impl Into<Array<Color32>>,
miplevel: impl Into<i32>,
)
fn set_all_pixels32( self, colors: impl Into<Array<Color32>>, miplevel: impl Into<i32>, )
SetAllPixels32(::unity::Array<crate::unity_engine::color32::Color32>, i32) overload
Sourcefn set_block_of_pixels32(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
colors: impl Into<Array<Color32>>,
miplevel: impl Into<i32>,
)
fn set_block_of_pixels32( self, x: impl Into<i32>, y: impl Into<i32>, block_width: impl Into<i32>, block_height: impl Into<i32>, colors: impl Into<Array<Color32>>, miplevel: impl Into<i32>, )
SetBlockOfPixels32(i32, i32, i32, i32, ::unity::Array<crate::unity_engine::color32::Color32>, i32) overload
Sourcefn get_raw_texture_data(self) -> Array<u8>
fn get_raw_texture_data(self) -> Array<u8>
GetRawTextureData() overload
Sourcefn get_pixels(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
miplevel: impl Into<i32>,
) -> Array<Color>
fn get_pixels( self, x: impl Into<i32>, y: impl Into<i32>, block_width: impl Into<i32>, block_height: impl Into<i32>, miplevel: impl Into<i32>, ) -> Array<Color>
GetPixels(i32, i32, i32, i32, i32) overload
Sourcefn get_pixels_2(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
) -> Array<Color>
fn get_pixels_2( self, x: impl Into<i32>, y: impl Into<i32>, block_width: impl Into<i32>, block_height: impl Into<i32>, ) -> Array<Color>
GetPixels(i32, i32, i32, i32) overload
Sourcefn get_pixels32(self, miplevel: impl Into<i32>) -> Array<Color32>
fn get_pixels32(self, miplevel: impl Into<i32>) -> Array<Color32>
GetPixels32(i32) overload
Sourcefn get_pixels32_2(self) -> Array<Color32>
fn get_pixels32_2(self) -> Array<Color32>
GetPixels32() overload
Sourcefn pack_textures(
self,
textures: impl Into<Array<Texture2D>>,
padding: impl Into<i32>,
maximum_atlas_size: impl Into<i32>,
make_no_longer_readable: impl Into<bool>,
) -> Array<Rect>
fn pack_textures( self, textures: impl Into<Array<Texture2D>>, padding: impl Into<i32>, maximum_atlas_size: impl Into<i32>, make_no_longer_readable: impl Into<bool>, ) -> Array<Rect>
PackTextures(::unity::Array<crate::unity_engine::texture2d::Texture2D>, i32, i32, bool) overload
Sourcefn pack_textures_2(
self,
textures: impl Into<Array<Texture2D>>,
padding: impl Into<i32>,
maximum_atlas_size: impl Into<i32>,
) -> Array<Rect>
fn pack_textures_2( self, textures: impl Into<Array<Texture2D>>, padding: impl Into<i32>, maximum_atlas_size: impl Into<i32>, ) -> Array<Rect>
PackTextures(::unity::Array<crate::unity_engine::texture2d::Texture2D>, i32, i32) overload
Sourcefn pack_textures_3(
self,
textures: impl Into<Array<Texture2D>>,
padding: impl Into<i32>,
) -> Array<Rect>
fn pack_textures_3( self, textures: impl Into<Array<Texture2D>>, padding: impl Into<i32>, ) -> Array<Rect>
PackTextures(::unity::Array<crate::unity_engine::texture2d::Texture2D>, i32) overload
Sourcefn ctor(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<GraphicsFormat>,
flags: impl Into<TextureCreationFlags>,
mip_count: impl Into<i32>,
native_tex: impl Into<IntPtr>,
)
fn ctor( self, width: impl Into<i32>, height: impl Into<i32>, format: impl Into<GraphicsFormat>, flags: impl Into<TextureCreationFlags>, mip_count: impl Into<i32>, native_tex: impl Into<IntPtr>, )
.ctor(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags, i32, ::unity::IntPtr) overload
Sourcefn ctor_2(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<DefaultFormat>,
flags: impl Into<TextureCreationFlags>,
)
fn ctor_2( self, width: impl Into<i32>, height: impl Into<i32>, format: impl Into<DefaultFormat>, flags: impl Into<TextureCreationFlags>, )
.ctor(i32, i32, crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags) overload
Sourcefn ctor_3(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<GraphicsFormat>,
flags: impl Into<TextureCreationFlags>,
)
fn ctor_3( self, width: impl Into<i32>, height: impl Into<i32>, format: impl Into<GraphicsFormat>, flags: impl Into<TextureCreationFlags>, )
.ctor(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags) overload
Sourcefn ctor_4(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<GraphicsFormat>,
mip_count: impl Into<i32>,
flags: impl Into<TextureCreationFlags>,
)
fn ctor_4( self, width: impl Into<i32>, height: impl Into<i32>, format: impl Into<GraphicsFormat>, mip_count: impl Into<i32>, flags: impl Into<TextureCreationFlags>, )
.ctor(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, i32, crate::unity_engine::experimental::rendering::texturecreationflags::TextureCreationFlags) overload
Sourcefn ctor_5(
self,
width: impl Into<i32>,
height: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_count: impl Into<i32>,
linear: impl Into<bool>,
native_tex: impl Into<IntPtr>,
)
fn ctor_5( self, width: impl Into<i32>, height: impl Into<i32>, texture_format: impl Into<TextureFormat>, mip_count: impl Into<i32>, linear: impl Into<bool>, native_tex: impl Into<IntPtr>, )
.ctor(i32, i32, crate::unity_engine::textureformat::TextureFormat, i32, bool, ::unity::IntPtr) overload
Sourcefn ctor_6(
self,
width: impl Into<i32>,
height: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_count: impl Into<i32>,
linear: impl Into<bool>,
)
fn ctor_6( self, width: impl Into<i32>, height: impl Into<i32>, texture_format: impl Into<TextureFormat>, mip_count: impl Into<i32>, linear: impl Into<bool>, )
.ctor(i32, i32, crate::unity_engine::textureformat::TextureFormat, i32, bool) overload
Sourcefn ctor_7(
self,
width: impl Into<i32>,
height: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_chain: impl Into<bool>,
linear: impl Into<bool>,
)
fn ctor_7( self, width: impl Into<i32>, height: impl Into<i32>, texture_format: impl Into<TextureFormat>, mip_chain: impl Into<bool>, linear: impl Into<bool>, )
.ctor(i32, i32, crate::unity_engine::textureformat::TextureFormat, bool, bool) overload
Sourcefn ctor_8(
self,
width: impl Into<i32>,
height: impl Into<i32>,
texture_format: impl Into<TextureFormat>,
mip_chain: impl Into<bool>,
)
fn ctor_8( self, width: impl Into<i32>, height: impl Into<i32>, texture_format: impl Into<TextureFormat>, mip_chain: impl Into<bool>, )
.ctor(i32, i32, crate::unity_engine::textureformat::TextureFormat, bool) overload
Sourcefn set_pixel(
self,
x: impl Into<i32>,
y: impl Into<i32>,
color: impl Into<Color>,
)
fn set_pixel( self, x: impl Into<i32>, y: impl Into<i32>, color: impl Into<Color>, )
SetPixel(i32, i32, crate::unity_engine::color::Color) overload
Sourcefn set_pixel_2(
self,
x: impl Into<i32>,
y: impl Into<i32>,
color: impl Into<Color>,
mip_level: impl Into<i32>,
)
fn set_pixel_2( self, x: impl Into<i32>, y: impl Into<i32>, color: impl Into<Color>, mip_level: impl Into<i32>, )
SetPixel(i32, i32, crate::unity_engine::color::Color, i32) overload
Sourcefn set_pixels(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
colors: impl Into<Array<Color>>,
miplevel: impl Into<i32>,
)
fn set_pixels( self, x: impl Into<i32>, y: impl Into<i32>, block_width: impl Into<i32>, block_height: impl Into<i32>, colors: impl Into<Array<Color>>, miplevel: impl Into<i32>, )
SetPixels(i32, i32, i32, i32, ::unity::Array<crate::unity_engine::color::Color>, i32) overload
Sourcefn set_pixels_2(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
colors: impl Into<Array<Color>>,
)
fn set_pixels_2( self, x: impl Into<i32>, y: impl Into<i32>, block_width: impl Into<i32>, block_height: impl Into<i32>, colors: impl Into<Array<Color>>, )
SetPixels(i32, i32, i32, i32, ::unity::Array<crate::unity_engine::color::Color>) overload
Sourcefn set_pixels_3(self, colors: impl Into<Array<Color>>, miplevel: impl Into<i32>)
fn set_pixels_3(self, colors: impl Into<Array<Color>>, miplevel: impl Into<i32>)
SetPixels(::unity::Array<crate::unity_engine::color::Color>, i32) overload
Sourcefn set_pixels_4(self, colors: impl Into<Array<Color>>)
fn set_pixels_4(self, colors: impl Into<Array<Color>>)
SetPixels(::unity::Array<crate::unity_engine::color::Color>) overload
Sourcefn get_pixel_2(
self,
x: impl Into<i32>,
y: impl Into<i32>,
mip_level: impl Into<i32>,
) -> Color
fn get_pixel_2( self, x: impl Into<i32>, y: impl Into<i32>, mip_level: impl Into<i32>, ) -> Color
GetPixel(i32, i32, i32) overload
Sourcefn get_pixel_bilinear(self, u: impl Into<f32>, v: impl Into<f32>) -> Color
fn get_pixel_bilinear(self, u: impl Into<f32>, v: impl Into<f32>) -> Color
GetPixelBilinear(f32, f32) overload
Sourcefn get_pixel_bilinear_2(
self,
u: impl Into<f32>,
v: impl Into<f32>,
mip_level: impl Into<i32>,
) -> Color
fn get_pixel_bilinear_2( self, u: impl Into<f32>, v: impl Into<f32>, mip_level: impl Into<i32>, ) -> Color
GetPixelBilinear(f32, f32, i32) overload
Sourcefn load_raw_texture_data(self, data: impl Into<IntPtr>, size: impl Into<i32>)
fn load_raw_texture_data(self, data: impl Into<IntPtr>, size: impl Into<i32>)
LoadRawTextureData(::unity::IntPtr, i32) overload
Sourcefn load_raw_texture_data_2(self, data: impl Into<Array<u8>>)
fn load_raw_texture_data_2(self, data: impl Into<Array<u8>>)
LoadRawTextureData(::unity::Array<u8>) overload
fn set_pixel_data<M0: IlType + Copy + ClassIdentity>( self, data: impl Into<Array<M0>>, mip_level: impl Into<i32>, source_data_start_index: impl Into<i32>, )
Sourcefn apply(
self,
update_mipmaps: impl Into<bool>,
make_no_longer_readable: impl Into<bool>,
)
fn apply( self, update_mipmaps: impl Into<bool>, make_no_longer_readable: impl Into<bool>, )
Apply(bool, bool) overload
Sourcefn resize(self, width: impl Into<i32>, height: impl Into<i32>) -> bool
fn resize(self, width: impl Into<i32>, height: impl Into<i32>) -> bool
Resize(i32, i32) overload
Sourcefn resize_2(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<TextureFormat>,
has_mip_map: impl Into<bool>,
) -> bool
fn resize_2( self, width: impl Into<i32>, height: impl Into<i32>, format: impl Into<TextureFormat>, has_mip_map: impl Into<bool>, ) -> bool
Resize(i32, i32, crate::unity_engine::textureformat::TextureFormat, bool) overload
Sourcefn resize_3(
self,
width: impl Into<i32>,
height: impl Into<i32>,
format: impl Into<GraphicsFormat>,
has_mip_map: impl Into<bool>,
) -> bool
fn resize_3( self, width: impl Into<i32>, height: impl Into<i32>, format: impl Into<GraphicsFormat>, has_mip_map: impl Into<bool>, ) -> bool
Resize(i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, bool) overload
Sourcefn read_pixels(
self,
source: impl Into<Rect>,
dest_x: impl Into<i32>,
dest_y: impl Into<i32>,
recalculate_mip_maps: impl Into<bool>,
)
fn read_pixels( self, source: impl Into<Rect>, dest_x: impl Into<i32>, dest_y: impl Into<i32>, recalculate_mip_maps: impl Into<bool>, )
ReadPixels(crate::unity_engine::rect::Rect, i32, i32, bool) overload
Sourcefn read_pixels_2(
self,
source: impl Into<Rect>,
dest_x: impl Into<i32>,
dest_y: impl Into<i32>,
)
fn read_pixels_2( self, source: impl Into<Rect>, dest_x: impl Into<i32>, dest_y: impl Into<i32>, )
ReadPixels(crate::unity_engine::rect::Rect, i32, i32) overload
Sourcefn set_pixels32(
self,
colors: impl Into<Array<Color32>>,
miplevel: impl Into<i32>,
)
fn set_pixels32( self, colors: impl Into<Array<Color32>>, miplevel: impl Into<i32>, )
SetPixels32(::unity::Array<crate::unity_engine::color32::Color32>, i32) overload
Sourcefn set_pixels32_2(self, colors: impl Into<Array<Color32>>)
fn set_pixels32_2(self, colors: impl Into<Array<Color32>>)
SetPixels32(::unity::Array<crate::unity_engine::color32::Color32>) overload
Sourcefn set_pixels32_3(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
colors: impl Into<Array<Color32>>,
miplevel: impl Into<i32>,
)
fn set_pixels32_3( self, x: impl Into<i32>, y: impl Into<i32>, block_width: impl Into<i32>, block_height: impl Into<i32>, colors: impl Into<Array<Color32>>, miplevel: impl Into<i32>, )
SetPixels32(i32, i32, i32, i32, ::unity::Array<crate::unity_engine::color32::Color32>, i32) overload
Sourcefn set_pixels32_4(
self,
x: impl Into<i32>,
y: impl Into<i32>,
block_width: impl Into<i32>,
block_height: impl Into<i32>,
colors: impl Into<Array<Color32>>,
)
fn set_pixels32_4( self, x: impl Into<i32>, y: impl Into<i32>, block_width: impl Into<i32>, block_height: impl Into<i32>, colors: impl Into<Array<Color32>>, )
SetPixels32(i32, i32, i32, i32, ::unity::Array<crate::unity_engine::color32::Color32>) overload
Sourcefn get_pixels_3(self, miplevel: impl Into<i32>) -> Array<Color>
fn get_pixels_3(self, miplevel: impl Into<i32>) -> Array<Color>
GetPixels(i32) overload
Sourcefn get_pixels_4(self) -> Array<Color>
fn get_pixels_4(self) -> Array<Color>
GetPixels() overload
Sourcefn set_pixel_impl_injected(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
) -> Color
fn set_pixel_impl_injected( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color
SetPixelImpl_Injected(i32, i32, i32, *mutcrate::unity_engine::color::Color) overload
Sourcefn get_pixel_impl_injected(
self,
image: impl Into<i32>,
x: impl Into<i32>,
y: impl Into<i32>,
) -> Color
fn get_pixel_impl_injected( self, image: impl Into<i32>, x: impl Into<i32>, y: impl Into<i32>, ) -> Color
GetPixelImpl_Injected(i32, i32, i32, *mutcrate::unity_engine::color::Color) overload
Sourcefn get_pixel_bilinear_impl_injected(
self,
image: impl Into<i32>,
u: impl Into<f32>,
v: impl Into<f32>,
) -> Color
fn get_pixel_bilinear_impl_injected( self, image: impl Into<i32>, u: impl Into<f32>, v: impl Into<f32>, ) -> Color
GetPixelBilinearImpl_Injected(i32, f32, f32, *mutcrate::unity_engine::color::Color) overload
Sourcefn read_pixels_impl_injected(
self,
dest_x: impl Into<i32>,
dest_y: impl Into<i32>,
recalculate_mip_maps: impl Into<bool>,
) -> Rect
fn read_pixels_impl_injected( self, dest_x: impl Into<i32>, dest_y: impl Into<i32>, recalculate_mip_maps: impl Into<bool>, ) -> Rect
ReadPixelsImpl_Injected(*mutcrate::unity_engine::rect::Rect, i32, i32, bool) 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: ITexture2D> ITexture2DMethods for __T
unity_engine-texture2d only.