Struct webrender::device::query_gl::GpuProfiler
source · pub struct GpuProfiler {
gl: Rc<dyn Gl>,
frames: [GpuFrameProfile; 4],
next_frame: usize,
debug_method: GpuDebugMethod,
}
Fields§
§gl: Rc<dyn Gl>
§frames: [GpuFrameProfile; 4]
§next_frame: usize
§debug_method: GpuDebugMethod
Implementations§
source§impl GpuProfiler
impl GpuProfiler
pub fn new(gl: Rc<dyn Gl>, debug_method: GpuDebugMethod) -> Self
pub fn enable_timers(&mut self)
pub fn disable_timers(&mut self)
pub fn enable_samplers(&mut self)
pub fn disable_samplers(&mut self)
pub fn build_samples(&mut self) -> (GpuFrameId, Vec<GpuTimer>, Vec<GpuSampler>)
pub fn begin_frame(&mut self, frame_id: GpuFrameId)
pub fn end_frame(&mut self)
pub fn start_timer(&mut self, tag: GpuProfileTag) -> GpuTimeQuery
pub fn start_sampler(&mut self, tag: GpuProfileTag) -> GpuSampleQuery
pub fn finish_sampler(&mut self, _sampler: GpuSampleQuery)
pub fn start_marker(&mut self, label: &str) -> GpuMarker
pub fn place_marker(&mut self, label: &str)
Auto Trait Implementations§
impl Freeze for GpuProfiler
impl !RefUnwindSafe for GpuProfiler
impl !Send for GpuProfiler
impl !Sync for GpuProfiler
impl Unpin for GpuProfiler
impl !UnwindSafe for GpuProfiler
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more