pub struct PreparedScreenScene { /* private fields */ }Expand description
Immutable prepared geometry whose positions are logical screen pixels.
This distinct wrapper prevents a world camera from being supplied to fixed
UI geometry. It is created by WgpuRenderer::prepare_screen_scene.
Implementations§
Source§impl PreparedScreenScene
impl PreparedScreenScene
Sourcepub fn command_count(&self) -> usize
pub fn command_count(&self) -> usize
Returns the number of accepted source screen commands.
Sourcepub fn vertex_count(&self) -> usize
pub fn vertex_count(&self) -> usize
Returns the retained triangle-list vertex count.
Sourcepub fn draw_batch_count(&self) -> usize
pub fn draw_batch_count(&self) -> usize
Returns the number of clip-compatible draw batches.
Sourcepub fn recovery_memory_bytes(&self) -> usize
pub fn recovery_memory_bytes(&self) -> usize
Returns retained CPU bytes available for device-loss recovery.
Sourcepub fn tessellation_stats(&self) -> TessellationStats
pub fn tessellation_stats(&self) -> TessellationStats
Returns preparation-time tessellation statistics.
Auto Trait Implementations§
impl !Freeze for PreparedScreenScene
impl !RefUnwindSafe for PreparedScreenScene
impl !UnwindSafe for PreparedScreenScene
impl Send for PreparedScreenScene
impl Sync for PreparedScreenScene
impl Unpin for PreparedScreenScene
impl UnsafeUnpin for PreparedScreenScene
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