Skip to main content

IRenderTextureMethods

Trait IRenderTextureMethods 

Source
pub trait IRenderTextureMethods: IRenderTexture {
Show 74 methods // Provided methods 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 get_dimension(self) -> TextureDimension { ... } fn set_dimension(self, value: impl Into<TextureDimension>) { ... } fn get_graphics_format(self) -> GraphicsFormat { ... } fn set_graphics_format(self, value: impl Into<GraphicsFormat>) { ... } fn get_use_mip_map(self) -> bool { ... } fn set_use_mip_map(self, value: impl Into<bool>) { ... } fn get_s_rgb(self) -> bool { ... } fn get_vr_usage(self) -> VRTextureUsage { ... } fn set_vr_usage(self, value: impl Into<VRTextureUsage>) { ... } fn get_memoryless_mode(self) -> RenderTextureMemoryless { ... } fn set_memoryless_mode(self, value: impl Into<RenderTextureMemoryless>) { ... } fn get_format(self) -> RenderTextureFormat { ... } fn set_format(self, value: impl Into<RenderTextureFormat>) { ... } fn get_stencil_format(self) -> GraphicsFormat { ... } fn set_stencil_format(self, value: impl Into<GraphicsFormat>) { ... } fn get_auto_generate_mips(self) -> bool { ... } fn set_auto_generate_mips(self, value: impl Into<bool>) { ... } fn get_volume_depth(self) -> i32 { ... } fn set_volume_depth(self, value: impl Into<i32>) { ... } fn get_anti_aliasing(self) -> i32 { ... } fn set_anti_aliasing(self, value: impl Into<i32>) { ... } fn get_bind_texture_ms(self) -> bool { ... } fn set_bind_texture_ms(self, value: impl Into<bool>) { ... } fn get_enable_random_write(self) -> bool { ... } fn set_enable_random_write(self, value: impl Into<bool>) { ... } fn get_use_dynamic_scale(self) -> bool { ... } fn set_use_dynamic_scale(self, value: impl Into<bool>) { ... } fn get_is_power_of_two(self) -> bool { ... } fn set_is_power_of_two(self, value: impl Into<bool>) { ... } fn get_color_buffer(self) -> RenderBuffer { ... } fn get_depth_buffer(self) -> RenderBuffer { ... } fn get_native_depth_buffer_ptr(self) -> IntPtr { ... } fn discard_contents( self, discard_color: impl Into<bool>, discard_depth: impl Into<bool>, ) { ... } fn mark_restore_expected(self) { ... } fn discard_contents_2(self) { ... } fn resolve_aa(self) { ... } fn resolve_aa_to(self, rt: impl Into<RenderTexture>) { ... } fn resolve_anti_aliased_surface(self) { ... } fn resolve_anti_aliased_surface_2(self, target: impl Into<RenderTexture>) { ... } fn set_global_shader_property(self, property_name: impl Into<Il2CppString>) { ... } fn create(self) -> bool { ... } fn release(self) { ... } fn is_created(self) -> bool { ... } fn generate_mips(self) { ... } fn convert_to_equirect( self, equirect: impl Into<RenderTexture>, eye: impl Into<Camera_MonoOrStereoscopicEye>, ) { ... } fn set_srgb_read_write(self, srgb: impl Into<bool>) { ... } fn set_render_texture_descriptor( self, desc: impl Into<RenderTextureDescriptor>, ) { ... } fn get_descriptor(self) -> RenderTextureDescriptor { ... } fn get_depth(self) -> i32 { ... } fn set_depth(self, value: impl Into<i32>) { ... } fn ctor(self) { ... } fn ctor_2(self, desc: impl Into<RenderTextureDescriptor>) { ... } fn ctor_3(self, texture_to_copy: impl Into<RenderTexture>) { ... } fn ctor_4( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<DefaultFormat>, ) { ... } fn ctor_5( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<GraphicsFormat>, ) { ... } fn ctor_6( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<GraphicsFormat>, mip_count: impl Into<i32>, ) { ... } fn ctor_7( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<RenderTextureFormat>, read_write: impl Into<RenderTextureReadWrite>, ) { ... } fn ctor_8( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<RenderTextureFormat>, ) { ... } fn ctor_9( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, ) { ... } fn ctor_10( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<RenderTextureFormat>, mip_count: impl Into<i32>, ) { ... } fn set_descriptor(self, value: impl Into<RenderTextureDescriptor>) { ... } fn get_is_cubemap(self) -> bool { ... } fn set_is_cubemap(self, value: impl Into<bool>) { ... } fn get_is_volume(self) -> bool { ... } fn set_is_volume(self, value: impl Into<bool>) { ... } fn get_texel_offset(self) -> Vector2 { ... } fn get_color_buffer_injected(self) -> RenderBuffer { ... } fn get_depth_buffer_injected(self) -> RenderBuffer { ... } fn set_render_texture_descriptor_injected(self) -> RenderTextureDescriptor { ... } fn get_descriptor_injected(self) -> RenderTextureDescriptor { ... }
}

Provided Methods§

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 get_dimension(self) -> TextureDimension

get_dimension() overload

Source

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

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

Source

fn get_graphics_format(self) -> GraphicsFormat

get_graphicsFormat() overload

Source

fn set_graphics_format(self, value: impl Into<GraphicsFormat>)

set_graphicsFormat(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat) overload

Source

fn get_use_mip_map(self) -> bool

get_useMipMap() overload

Source

fn set_use_mip_map(self, value: impl Into<bool>)

set_useMipMap(bool) overload

Source

fn get_s_rgb(self) -> bool

get_sRGB() overload

Source

fn get_vr_usage(self) -> VRTextureUsage

get_vrUsage() overload

Source

fn set_vr_usage(self, value: impl Into<VRTextureUsage>)

set_vrUsage(crate::unity_engine::vrtextureusage::VRTextureUsage) overload

Source

fn get_memoryless_mode(self) -> RenderTextureMemoryless

get_memorylessMode() overload

Source

fn set_memoryless_mode(self, value: impl Into<RenderTextureMemoryless>)

set_memorylessMode(crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless) overload

Source

fn get_format(self) -> RenderTextureFormat

get_format() overload

Source

fn set_format(self, value: impl Into<RenderTextureFormat>)

set_format(crate::unity_engine::rendertextureformat::RenderTextureFormat) overload

Source

fn get_stencil_format(self) -> GraphicsFormat

get_stencilFormat() overload

Source

fn set_stencil_format(self, value: impl Into<GraphicsFormat>)

set_stencilFormat(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat) overload

Source

fn get_auto_generate_mips(self) -> bool

get_autoGenerateMips() overload

Source

fn set_auto_generate_mips(self, value: impl Into<bool>)

set_autoGenerateMips(bool) overload

Source

fn get_volume_depth(self) -> i32

get_volumeDepth() overload

Source

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

set_volumeDepth(i32) overload

Source

fn get_anti_aliasing(self) -> i32

get_antiAliasing() overload

Source

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

set_antiAliasing(i32) overload

Source

fn get_bind_texture_ms(self) -> bool

get_bindTextureMS() overload

Source

fn set_bind_texture_ms(self, value: impl Into<bool>)

set_bindTextureMS(bool) overload

Source

fn get_enable_random_write(self) -> bool

get_enableRandomWrite() overload

Source

fn set_enable_random_write(self, value: impl Into<bool>)

set_enableRandomWrite(bool) overload

Source

fn get_use_dynamic_scale(self) -> bool

get_useDynamicScale() overload

Source

fn set_use_dynamic_scale(self, value: impl Into<bool>)

set_useDynamicScale(bool) overload

Source

fn get_is_power_of_two(self) -> bool

GetIsPowerOfTwo() overload

Source

fn set_is_power_of_two(self, value: impl Into<bool>)

set_isPowerOfTwo(bool) overload

Source

fn get_color_buffer(self) -> RenderBuffer

GetColorBuffer() overload

Source

fn get_depth_buffer(self) -> RenderBuffer

GetDepthBuffer() overload

Source

fn get_native_depth_buffer_ptr(self) -> IntPtr

GetNativeDepthBufferPtr() overload

Source

fn discard_contents( self, discard_color: impl Into<bool>, discard_depth: impl Into<bool>, )

DiscardContents(bool, bool) overload

Source

fn mark_restore_expected(self)

MarkRestoreExpected() overload

Source

fn discard_contents_2(self)

DiscardContents() overload

Source

fn resolve_aa(self)

ResolveAA() overload

Source

fn resolve_aa_to(self, rt: impl Into<RenderTexture>)

ResolveAATo(crate::unity_engine::rendertexture::RenderTexture) overload

Source

fn resolve_anti_aliased_surface(self)

ResolveAntiAliasedSurface() overload

Source

fn resolve_anti_aliased_surface_2(self, target: impl Into<RenderTexture>)

ResolveAntiAliasedSurface(crate::unity_engine::rendertexture::RenderTexture) overload

Source

fn set_global_shader_property(self, property_name: impl Into<Il2CppString>)

SetGlobalShaderProperty(::unity::Il2CppString) overload

Source

fn create(self) -> bool

Create() overload

Source

fn release(self)

Release() overload

Source

fn is_created(self) -> bool

IsCreated() overload

Source

fn generate_mips(self)

GenerateMips() overload

Source

fn convert_to_equirect( self, equirect: impl Into<RenderTexture>, eye: impl Into<Camera_MonoOrStereoscopicEye>, )

ConvertToEquirect(crate::unity_engine::rendertexture::RenderTexture, crate::unity_engine::camera::Camera_MonoOrStereoscopicEye) overload

Source

fn set_srgb_read_write(self, srgb: impl Into<bool>)

SetSRGBReadWrite(bool) overload

Source

fn set_render_texture_descriptor(self, desc: impl Into<RenderTextureDescriptor>)

SetRenderTextureDescriptor(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor) overload

Source

fn get_descriptor(self) -> RenderTextureDescriptor

GetDescriptor() overload

Source

fn get_depth(self) -> i32

get_depth() overload

Source

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

set_depth(i32) overload

Source

fn ctor(self)

.ctor() overload

Source

fn ctor_2(self, desc: impl Into<RenderTextureDescriptor>)

.ctor(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor) overload

Source

fn ctor_3(self, texture_to_copy: impl Into<RenderTexture>)

.ctor(crate::unity_engine::rendertexture::RenderTexture) overload

Source

fn ctor_4( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<DefaultFormat>, )

.ctor(i32, i32, i32, crate::unity_engine::experimental::rendering::defaultformat::DefaultFormat) overload

Source

fn ctor_5( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<GraphicsFormat>, )

.ctor(i32, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat) overload

Source

fn ctor_6( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<GraphicsFormat>, mip_count: impl Into<i32>, )

.ctor(i32, i32, i32, crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat, i32) overload

Source

fn ctor_7( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<RenderTextureFormat>, read_write: impl Into<RenderTextureReadWrite>, )

.ctor(i32, i32, i32, crate::unity_engine::rendertextureformat::RenderTextureFormat, crate::unity_engine::rendertexturereadwrite::RenderTextureReadWrite) overload

Source

fn ctor_8( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<RenderTextureFormat>, )

.ctor(i32, i32, i32, crate::unity_engine::rendertextureformat::RenderTextureFormat) overload

Source

fn ctor_9( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, )

.ctor(i32, i32, i32) overload

Source

fn ctor_10( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, format: impl Into<RenderTextureFormat>, mip_count: impl Into<i32>, )

.ctor(i32, i32, i32, crate::unity_engine::rendertextureformat::RenderTextureFormat, i32) overload

Source

fn set_descriptor(self, value: impl Into<RenderTextureDescriptor>)

set_descriptor(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor) overload

Source

fn get_is_cubemap(self) -> bool

get_isCubemap() overload

Source

fn set_is_cubemap(self, value: impl Into<bool>)

set_isCubemap(bool) overload

Source

fn get_is_volume(self) -> bool

get_isVolume() overload

Source

fn set_is_volume(self, value: impl Into<bool>)

set_isVolume(bool) overload

Source

fn get_texel_offset(self) -> Vector2

GetTexelOffset() overload

Source

fn get_color_buffer_injected(self) -> RenderBuffer

GetColorBuffer_Injected(*mutcrate::unity_engine::renderbuffer::RenderBuffer) overload

Source

fn get_depth_buffer_injected(self) -> RenderBuffer

GetDepthBuffer_Injected(*mutcrate::unity_engine::renderbuffer::RenderBuffer) overload

Source

fn set_render_texture_descriptor_injected(self) -> RenderTextureDescriptor

SetRenderTextureDescriptor_Injected(*mutcrate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor) overload

Source

fn get_descriptor_injected(self) -> RenderTextureDescriptor

GetDescriptor_Injected(*mutcrate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor) 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: IRenderTexture> IRenderTextureMethods for __T

Available on crate feature unity_engine-rendertexture only.