pub enum BackendKind {
D3d11,
Soft,
X11,
Web,
}Expand description
后端种类。
Variants§
D3d11
Win32 + D3D11(GPU)。
Soft
纯 CPU 软光栅(Win32 --force-soft)。
X11
X11(CPU 光栅 + XShm/PutImage)。
Web
浏览器 Canvas2D(CPU 光栅 + putImageData)。
Implementations§
Source§impl BackendKind
impl BackendKind
该后端声明为“不可测量“的阶段表。
Sourcepub fn not_applicable_table(self) -> &'static [(StageId, &'static str)]
pub fn not_applicable_table(self) -> &'static [(StageId, &'static str)]
该后端声明为“没有这个阶段“的表。
Sourcepub fn capability(self, id: StageId) -> Capability
pub fn capability(self, id: StageId) -> Capability
查询该后端对某阶段的能力。
默认 Measurable:只要没有显式声明“不可测/不存在“,就认为可以测
(本帧没走到时 stage() 会给 Unavailable("本帧未经过该阶段"))。
该后端永远无法测量的阶段表(供报告一次性列出)。
Sourcepub fn declared_not_applicable(self) -> Vec<(StageId, &'static str)>
pub fn declared_not_applicable(self) -> Vec<(StageId, &'static str)>
该后端不存在的阶段表。
Trait Implementations§
Source§impl Clone for BackendKind
impl Clone for BackendKind
impl Copy for BackendKind
Source§impl Debug for BackendKind
impl Debug for BackendKind
impl Eq for BackendKind
Source§impl PartialEq for BackendKind
impl PartialEq for BackendKind
impl StructuralPartialEq for BackendKind
Auto Trait Implementations§
impl Forget for BackendKind
impl Freeze for BackendKind
impl Move for BackendKind
impl RefUnwindSafe for BackendKind
impl Send for BackendKind
impl Sync for BackendKind
impl Unpin for BackendKind
impl UnsafeUnpin for BackendKind
impl UnwindSafe for BackendKind
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