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§
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 get_dimension(self) -> TextureDimension
fn get_dimension(self) -> TextureDimension
get_dimension() 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_graphics_format(self) -> GraphicsFormat
fn get_graphics_format(self) -> GraphicsFormat
get_graphicsFormat() overload
Sourcefn set_graphics_format(self, value: impl Into<GraphicsFormat>)
fn set_graphics_format(self, value: impl Into<GraphicsFormat>)
set_graphicsFormat(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat) overload
Sourcefn get_use_mip_map(self) -> bool
fn get_use_mip_map(self) -> bool
get_useMipMap() overload
Sourcefn set_use_mip_map(self, value: impl Into<bool>)
fn set_use_mip_map(self, value: impl Into<bool>)
set_useMipMap(bool) overload
Sourcefn get_vr_usage(self) -> VRTextureUsage
fn get_vr_usage(self) -> VRTextureUsage
get_vrUsage() overload
Sourcefn set_vr_usage(self, value: impl Into<VRTextureUsage>)
fn set_vr_usage(self, value: impl Into<VRTextureUsage>)
set_vrUsage(crate::unity_engine::vrtextureusage::VRTextureUsage) overload
Sourcefn get_memoryless_mode(self) -> RenderTextureMemoryless
fn get_memoryless_mode(self) -> RenderTextureMemoryless
get_memorylessMode() overload
Sourcefn set_memoryless_mode(self, value: impl Into<RenderTextureMemoryless>)
fn set_memoryless_mode(self, value: impl Into<RenderTextureMemoryless>)
set_memorylessMode(crate::unity_engine::rendertexturememoryless::RenderTextureMemoryless) overload
Sourcefn get_format(self) -> RenderTextureFormat
fn get_format(self) -> RenderTextureFormat
get_format() overload
Sourcefn set_format(self, value: impl Into<RenderTextureFormat>)
fn set_format(self, value: impl Into<RenderTextureFormat>)
set_format(crate::unity_engine::rendertextureformat::RenderTextureFormat) overload
Sourcefn get_stencil_format(self) -> GraphicsFormat
fn get_stencil_format(self) -> GraphicsFormat
get_stencilFormat() overload
Sourcefn set_stencil_format(self, value: impl Into<GraphicsFormat>)
fn set_stencil_format(self, value: impl Into<GraphicsFormat>)
set_stencilFormat(crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat) overload
Sourcefn get_auto_generate_mips(self) -> bool
fn get_auto_generate_mips(self) -> bool
get_autoGenerateMips() overload
Sourcefn set_auto_generate_mips(self, value: impl Into<bool>)
fn set_auto_generate_mips(self, value: impl Into<bool>)
set_autoGenerateMips(bool) overload
Sourcefn get_volume_depth(self) -> i32
fn get_volume_depth(self) -> i32
get_volumeDepth() overload
Sourcefn set_volume_depth(self, value: impl Into<i32>)
fn set_volume_depth(self, value: impl Into<i32>)
set_volumeDepth(i32) overload
Sourcefn get_anti_aliasing(self) -> i32
fn get_anti_aliasing(self) -> i32
get_antiAliasing() overload
Sourcefn set_anti_aliasing(self, value: impl Into<i32>)
fn set_anti_aliasing(self, value: impl Into<i32>)
set_antiAliasing(i32) overload
Sourcefn get_bind_texture_ms(self) -> bool
fn get_bind_texture_ms(self) -> bool
get_bindTextureMS() overload
Sourcefn set_bind_texture_ms(self, value: impl Into<bool>)
fn set_bind_texture_ms(self, value: impl Into<bool>)
set_bindTextureMS(bool) overload
Sourcefn get_enable_random_write(self) -> bool
fn get_enable_random_write(self) -> bool
get_enableRandomWrite() overload
Sourcefn set_enable_random_write(self, value: impl Into<bool>)
fn set_enable_random_write(self, value: impl Into<bool>)
set_enableRandomWrite(bool) overload
Sourcefn get_use_dynamic_scale(self) -> bool
fn get_use_dynamic_scale(self) -> bool
get_useDynamicScale() overload
Sourcefn set_use_dynamic_scale(self, value: impl Into<bool>)
fn set_use_dynamic_scale(self, value: impl Into<bool>)
set_useDynamicScale(bool) overload
Sourcefn get_is_power_of_two(self) -> bool
fn get_is_power_of_two(self) -> bool
GetIsPowerOfTwo() overload
Sourcefn set_is_power_of_two(self, value: impl Into<bool>)
fn set_is_power_of_two(self, value: impl Into<bool>)
set_isPowerOfTwo(bool) overload
Sourcefn get_color_buffer(self) -> RenderBuffer
fn get_color_buffer(self) -> RenderBuffer
GetColorBuffer() overload
Sourcefn get_depth_buffer(self) -> RenderBuffer
fn get_depth_buffer(self) -> RenderBuffer
GetDepthBuffer() overload
Sourcefn get_native_depth_buffer_ptr(self) -> IntPtr
fn get_native_depth_buffer_ptr(self) -> IntPtr
GetNativeDepthBufferPtr() overload
Sourcefn discard_contents(
self,
discard_color: impl Into<bool>,
discard_depth: impl Into<bool>,
)
fn discard_contents( self, discard_color: impl Into<bool>, discard_depth: impl Into<bool>, )
DiscardContents(bool, bool) overload
Sourcefn mark_restore_expected(self)
fn mark_restore_expected(self)
MarkRestoreExpected() overload
Sourcefn discard_contents_2(self)
fn discard_contents_2(self)
DiscardContents() overload
Sourcefn resolve_aa(self)
fn resolve_aa(self)
ResolveAA() overload
Sourcefn resolve_aa_to(self, rt: impl Into<RenderTexture>)
fn resolve_aa_to(self, rt: impl Into<RenderTexture>)
ResolveAATo(crate::unity_engine::rendertexture::RenderTexture) overload
Sourcefn resolve_anti_aliased_surface(self)
fn resolve_anti_aliased_surface(self)
ResolveAntiAliasedSurface() overload
Sourcefn resolve_anti_aliased_surface_2(self, target: impl Into<RenderTexture>)
fn resolve_anti_aliased_surface_2(self, target: impl Into<RenderTexture>)
ResolveAntiAliasedSurface(crate::unity_engine::rendertexture::RenderTexture) overload
Sourcefn set_global_shader_property(self, property_name: impl Into<Il2CppString>)
fn set_global_shader_property(self, property_name: impl Into<Il2CppString>)
SetGlobalShaderProperty(::unity::Il2CppString) overload
Sourcefn is_created(self) -> bool
fn is_created(self) -> bool
IsCreated() overload
Sourcefn generate_mips(self)
fn generate_mips(self)
GenerateMips() overload
Sourcefn convert_to_equirect(
self,
equirect: impl Into<RenderTexture>,
eye: impl Into<Camera_MonoOrStereoscopicEye>,
)
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
Sourcefn set_srgb_read_write(self, srgb: impl Into<bool>)
fn set_srgb_read_write(self, srgb: impl Into<bool>)
SetSRGBReadWrite(bool) overload
Sourcefn set_render_texture_descriptor(self, desc: impl Into<RenderTextureDescriptor>)
fn set_render_texture_descriptor(self, desc: impl Into<RenderTextureDescriptor>)
SetRenderTextureDescriptor(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor) overload
Sourcefn get_descriptor(self) -> RenderTextureDescriptor
fn get_descriptor(self) -> RenderTextureDescriptor
GetDescriptor() overload
Sourcefn ctor_2(self, desc: impl Into<RenderTextureDescriptor>)
fn ctor_2(self, desc: impl Into<RenderTextureDescriptor>)
.ctor(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor) overload
Sourcefn ctor_3(self, texture_to_copy: impl Into<RenderTexture>)
fn ctor_3(self, texture_to_copy: impl Into<RenderTexture>)
.ctor(crate::unity_engine::rendertexture::RenderTexture) overload
Sourcefn ctor_4(
self,
width: impl Into<i32>,
height: impl Into<i32>,
depth: impl Into<i32>,
format: impl Into<DefaultFormat>,
)
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
Sourcefn ctor_5(
self,
width: impl Into<i32>,
height: impl Into<i32>,
depth: impl Into<i32>,
format: impl Into<GraphicsFormat>,
)
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
Sourcefn 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_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
Sourcefn 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_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
Sourcefn ctor_8(
self,
width: impl Into<i32>,
height: impl Into<i32>,
depth: impl Into<i32>,
format: impl Into<RenderTextureFormat>,
)
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
Sourcefn ctor_9(
self,
width: impl Into<i32>,
height: impl Into<i32>,
depth: impl Into<i32>,
)
fn ctor_9( self, width: impl Into<i32>, height: impl Into<i32>, depth: impl Into<i32>, )
.ctor(i32, i32, i32) overload
Sourcefn 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 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
Sourcefn set_descriptor(self, value: impl Into<RenderTextureDescriptor>)
fn set_descriptor(self, value: impl Into<RenderTextureDescriptor>)
set_descriptor(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor) overload
Sourcefn get_is_cubemap(self) -> bool
fn get_is_cubemap(self) -> bool
get_isCubemap() overload
Sourcefn set_is_cubemap(self, value: impl Into<bool>)
fn set_is_cubemap(self, value: impl Into<bool>)
set_isCubemap(bool) overload
Sourcefn get_is_volume(self) -> bool
fn get_is_volume(self) -> bool
get_isVolume() overload
Sourcefn set_is_volume(self, value: impl Into<bool>)
fn set_is_volume(self, value: impl Into<bool>)
set_isVolume(bool) overload
Sourcefn get_texel_offset(self) -> Vector2
fn get_texel_offset(self) -> Vector2
GetTexelOffset() overload
Sourcefn get_color_buffer_injected(self) -> RenderBuffer
fn get_color_buffer_injected(self) -> RenderBuffer
GetColorBuffer_Injected(*mutcrate::unity_engine::renderbuffer::RenderBuffer) overload
Sourcefn get_depth_buffer_injected(self) -> RenderBuffer
fn get_depth_buffer_injected(self) -> RenderBuffer
GetDepthBuffer_Injected(*mutcrate::unity_engine::renderbuffer::RenderBuffer) overload
Sourcefn set_render_texture_descriptor_injected(self) -> RenderTextureDescriptor
fn set_render_texture_descriptor_injected(self) -> RenderTextureDescriptor
SetRenderTextureDescriptor_Injected(*mutcrate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor) overload
Sourcefn get_descriptor_injected(self) -> RenderTextureDescriptor
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§
impl<__T: IRenderTexture> IRenderTextureMethods for __T
unity_engine-rendertexture only.