pub trait IRTHandleMethods: IRTHandle {
Show 20 methods
// Provided methods
fn get_scale_factor(self) -> Vector2 { ... }
fn set_scale_factor(self, value: impl Into<Vector2>) { ... }
fn get_use_scaling(self) -> bool { ... }
fn set_use_scaling(self, value: impl Into<bool>) { ... }
fn get_reference_size(self) -> Vector2Int { ... }
fn set_reference_size(self, value: impl Into<Vector2Int>) { ... }
fn get_rt_handle_properties(self) -> RTHandleProperties { ... }
fn get_rt(self) -> RenderTexture { ... }
fn get_name_id(self) -> RenderTargetIdentifier { ... }
fn get_name(self) -> Il2CppString { ... }
fn get_is_msaa_enabled(self) -> bool { ... }
fn ctor(self, owner: impl Into<RTHandleSystem>) { ... }
fn set_render_texture(self, rt: impl Into<RenderTexture>) { ... }
fn set_texture(self, tex: impl Into<Texture>) { ... }
fn set_texture_2(self, tex: impl Into<RenderTargetIdentifier>) { ... }
fn release(self) { ... }
fn get_scaled_size(self, ref_size: impl Into<Vector2Int>) -> Vector2Int { ... }
fn switch_to_fast_memory(
self,
cmd: impl Into<CommandBuffer>,
residency_fraction: impl Into<f32>,
flags: impl Into<FastMemoryFlags>,
copy_contents: impl Into<bool>,
) { ... }
fn copy_to_fast_memory(
self,
cmd: impl Into<CommandBuffer>,
residency_fraction: impl Into<f32>,
flags: impl Into<FastMemoryFlags>,
) { ... }
fn switch_out_fast_memory(
self,
cmd: impl Into<CommandBuffer>,
copy_contents: impl Into<bool>,
) { ... }
}Provided Methods§
Sourcefn get_scale_factor(self) -> Vector2
fn get_scale_factor(self) -> Vector2
get_scaleFactor() overload
Sourcefn set_scale_factor(self, value: impl Into<Vector2>)
fn set_scale_factor(self, value: impl Into<Vector2>)
set_scaleFactor(crate::unity_engine::vector2::Vector2) overload
Sourcefn get_use_scaling(self) -> bool
fn get_use_scaling(self) -> bool
get_useScaling() overload
Sourcefn set_use_scaling(self, value: impl Into<bool>)
fn set_use_scaling(self, value: impl Into<bool>)
set_useScaling(bool) overload
Sourcefn get_reference_size(self) -> Vector2Int
fn get_reference_size(self) -> Vector2Int
get_referenceSize() overload
Sourcefn set_reference_size(self, value: impl Into<Vector2Int>)
fn set_reference_size(self, value: impl Into<Vector2Int>)
set_referenceSize(crate::unity_engine::vector2int::Vector2Int) overload
Sourcefn get_rt_handle_properties(self) -> RTHandleProperties
fn get_rt_handle_properties(self) -> RTHandleProperties
get_rtHandleProperties() overload
Sourcefn get_rt(self) -> RenderTexture
fn get_rt(self) -> RenderTexture
get_rt() overload
Sourcefn get_name_id(self) -> RenderTargetIdentifier
fn get_name_id(self) -> RenderTargetIdentifier
get_nameID() overload
Sourcefn get_name(self) -> Il2CppString
fn get_name(self) -> Il2CppString
get_name() overload
Sourcefn get_is_msaa_enabled(self) -> bool
fn get_is_msaa_enabled(self) -> bool
get_isMSAAEnabled() overload
Sourcefn ctor(self, owner: impl Into<RTHandleSystem>)
fn ctor(self, owner: impl Into<RTHandleSystem>)
.ctor(crate::unity_engine::rendering::rthandlesystem::RTHandleSystem) overload
Sourcefn set_render_texture(self, rt: impl Into<RenderTexture>)
fn set_render_texture(self, rt: impl Into<RenderTexture>)
SetRenderTexture(crate::unity_engine::rendertexture::RenderTexture) overload
Sourcefn set_texture(self, tex: impl Into<Texture>)
fn set_texture(self, tex: impl Into<Texture>)
SetTexture(crate::unity_engine::texture::Texture) overload
Sourcefn set_texture_2(self, tex: impl Into<RenderTargetIdentifier>)
fn set_texture_2(self, tex: impl Into<RenderTargetIdentifier>)
SetTexture(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier) overload
Sourcefn get_scaled_size(self, ref_size: impl Into<Vector2Int>) -> Vector2Int
fn get_scaled_size(self, ref_size: impl Into<Vector2Int>) -> Vector2Int
GetScaledSize(crate::unity_engine::vector2int::Vector2Int) overload
Sourcefn switch_to_fast_memory(
self,
cmd: impl Into<CommandBuffer>,
residency_fraction: impl Into<f32>,
flags: impl Into<FastMemoryFlags>,
copy_contents: impl Into<bool>,
)
fn switch_to_fast_memory( self, cmd: impl Into<CommandBuffer>, residency_fraction: impl Into<f32>, flags: impl Into<FastMemoryFlags>, copy_contents: impl Into<bool>, )
SwitchToFastMemory(crate::unity_engine::rendering::commandbuffer::CommandBuffer, f32, crate::unity_engine::rendering::fastmemoryflags::FastMemoryFlags, bool) overload
Sourcefn copy_to_fast_memory(
self,
cmd: impl Into<CommandBuffer>,
residency_fraction: impl Into<f32>,
flags: impl Into<FastMemoryFlags>,
)
fn copy_to_fast_memory( self, cmd: impl Into<CommandBuffer>, residency_fraction: impl Into<f32>, flags: impl Into<FastMemoryFlags>, )
CopyToFastMemory(crate::unity_engine::rendering::commandbuffer::CommandBuffer, f32, crate::unity_engine::rendering::fastmemoryflags::FastMemoryFlags) overload
Sourcefn switch_out_fast_memory(
self,
cmd: impl Into<CommandBuffer>,
copy_contents: impl Into<bool>,
)
fn switch_out_fast_memory( self, cmd: impl Into<CommandBuffer>, copy_contents: impl Into<bool>, )
SwitchOutFastMemory(crate::unity_engine::rendering::commandbuffer::CommandBuffer, 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: IRTHandle> IRTHandleMethods for __T
unity_engine-rendering-rthandle only.