Struct webrender::device::query_gl::GpuFrameProfile
source · pub struct GpuFrameProfile {
gl: Rc<dyn Gl>,
timers: QuerySet<GpuTimer>,
samplers: QuerySet<GpuSampler>,
frame_id: GpuFrameId,
inside_frame: bool,
debug_method: GpuDebugMethod,
}
Fields§
§gl: Rc<dyn Gl>
§timers: QuerySet<GpuTimer>
§samplers: QuerySet<GpuSampler>
§frame_id: GpuFrameId
§inside_frame: bool
§debug_method: GpuDebugMethod
Implementations§
source§impl GpuFrameProfile
impl GpuFrameProfile
fn new(gl: Rc<dyn Gl>, debug_method: GpuDebugMethod) -> Self
fn enable_timers(&mut self, count: i32)
fn disable_timers(&mut self)
fn enable_samplers(&mut self, count: i32)
fn disable_samplers(&mut self)
fn begin_frame(&mut self, frame_id: GpuFrameId)
fn end_frame(&mut self)
fn finish_timer(&mut self)
fn finish_sampler(&mut self)
fn start_timer(&mut self, tag: GpuProfileTag) -> GpuTimeQuery
fn start_sampler(&mut self, tag: GpuProfileTag) -> GpuSampleQuery
fn build_samples(&mut self) -> (GpuFrameId, Vec<GpuTimer>, Vec<GpuSampler>)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GpuFrameProfile
impl !Send for GpuFrameProfile
impl !Sync for GpuFrameProfile
impl Unpin for GpuFrameProfile
impl !UnwindSafe for GpuFrameProfile
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>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
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