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: GpuDebugMethodImplementations§
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 Freeze for GpuFrameProfile
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>
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