pub struct WgpuScene {
pub primitives: Vec<GpuPrimitive>,
pub quad_count: usize,
pub shadow_count: usize,
pub text_run_count: usize,
pub sprite_count: usize,
pub arc_count: usize,
}Expand description
轻量 CPU 侧 wgpu 场景图元记录(用于无头驱动统计与测试断言,无需初始化 GPU 上下文)。
Fields§
§primitives: Vec<GpuPrimitive>§quad_count: usize§shadow_count: usize§text_run_count: usize§sprite_count: usize§arc_count: usizeImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for WgpuScene
impl Freeze for WgpuScene
impl Move for WgpuScene
impl RefUnwindSafe for WgpuScene
impl Send for WgpuScene
impl Sync for WgpuScene
impl Unpin for WgpuScene
impl UnsafeUnpin for WgpuScene
impl UnwindSafe for WgpuScene
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。