Skip to main content

IProfilingSamplerMethods

Trait IProfilingSamplerMethods 

Source
pub trait IProfilingSamplerMethods: IProfilingSampler {
Show 18 methods // Provided methods fn ctor(self, name: impl Into<Il2CppString>) { ... } fn begin(self, cmd: impl Into<CommandBuffer>) { ... } fn end(self, cmd: impl Into<CommandBuffer>) { ... } fn is_valid(self) -> bool { ... } fn get_sampler(self) -> CustomSampler { ... } fn set_sampler(self, value: impl Into<CustomSampler>) { ... } fn get_inline_sampler(self) -> CustomSampler { ... } fn set_inline_sampler(self, value: impl Into<CustomSampler>) { ... } fn get_name(self) -> Il2CppString { ... } fn set_name(self, value: impl Into<Il2CppString>) { ... } fn set_enable_recording(self, value: impl Into<bool>) { ... } fn get_gpu_elapsed_time(self) -> f32 { ... } fn get_gpu_sample_count(self) -> i32 { ... } fn get_cpu_elapsed_time(self) -> f32 { ... } fn get_cpu_sample_count(self) -> i32 { ... } fn get_inline_cpu_elapsed_time(self) -> f32 { ... } fn get_inline_cpu_sample_count(self) -> i32 { ... } fn ctor_2(self) { ... }
}

Provided Methods§

Source

fn ctor(self, name: impl Into<Il2CppString>)

.ctor(::unity::Il2CppString) overload

Source

fn begin(self, cmd: impl Into<CommandBuffer>)

Begin(crate::unity_engine::rendering::commandbuffer::CommandBuffer) overload

Source

fn end(self, cmd: impl Into<CommandBuffer>)

End(crate::unity_engine::rendering::commandbuffer::CommandBuffer) overload

Source

fn is_valid(self) -> bool

IsValid() overload

Source

fn get_sampler(self) -> CustomSampler

get_sampler() overload

Source

fn set_sampler(self, value: impl Into<CustomSampler>)

set_sampler(crate::unity_engine::profiling::customsampler::CustomSampler) overload

Source

fn get_inline_sampler(self) -> CustomSampler

get_inlineSampler() overload

Source

fn set_inline_sampler(self, value: impl Into<CustomSampler>)

set_inlineSampler(crate::unity_engine::profiling::customsampler::CustomSampler) overload

Source

fn get_name(self) -> Il2CppString

get_name() overload

Source

fn set_name(self, value: impl Into<Il2CppString>)

set_name(::unity::Il2CppString) overload

Source

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

set_enableRecording(bool) overload

Source

fn get_gpu_elapsed_time(self) -> f32

get_gpuElapsedTime() overload

Source

fn get_gpu_sample_count(self) -> i32

get_gpuSampleCount() overload

Source

fn get_cpu_elapsed_time(self) -> f32

get_cpuElapsedTime() overload

Source

fn get_cpu_sample_count(self) -> i32

get_cpuSampleCount() overload

Source

fn get_inline_cpu_elapsed_time(self) -> f32

get_inlineCpuElapsedTime() overload

Source

fn get_inline_cpu_sample_count(self) -> i32

get_inlineCpuSampleCount() overload

Source

fn ctor_2(self)

.ctor() 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: IProfilingSampler> IProfilingSamplerMethods for __T

Available on crate feature unity_engine-rendering-profilingsampler only.