pub enum ShowcaseWebPresentationPath {
GpuDirect,
GpuUpload,
Canvas2d,
}Expand description
Strict Web showcase presentation mode separating true GPU direct draw, WebGL2 CPU upload, and Canvas 2D fallback.
Variants§
GpuDirect
WebGL2 direct GPU primitive/uber-shader rendering (cpu_mirror_active = false).
GpuUpload
WebGL2 uploading CPU-rasterized dirty rects (precision highp float + texelFetch, cpu_mirror_active = true).
Canvas2d
Canvas 2D putImageData software fallback (cpu_mirror_active = true).
Implementations§
Source§impl ShowcaseWebPresentationPath
Context-family and CPU-mirror helpers for ShowcaseWebPresentationPath.
impl ShowcaseWebPresentationPath
Context-family and CPU-mirror helpers for ShowcaseWebPresentationPath.
Sourcepub fn context_family(self) -> ShowcaseWebCanvasContextFamily
pub fn context_family(self) -> ShowcaseWebCanvasContextFamily
Returns the locked HTML5 <canvas> context family required by this presentation path.
§Returns
ShowcaseWebCanvasContextFamily-WebGl2forGpuDirect/GpuUpload, orCanvas2dforCanvas2d.
Sourcepub fn uses_cpu_mirror(self) -> bool
pub fn uses_cpu_mirror(self) -> bool
Returns whether this presentation path maintains a CPU software framebuffer mirror.
§Returns
bool-falseforGpuDirect;trueforGpuUploadandCanvas2d.
Trait Implementations§
Source§impl Clone for ShowcaseWebPresentationPath
impl Clone for ShowcaseWebPresentationPath
impl Copy for ShowcaseWebPresentationPath
Source§impl Debug for ShowcaseWebPresentationPath
impl Debug for ShowcaseWebPresentationPath
impl Eq for ShowcaseWebPresentationPath
Source§impl Hash for ShowcaseWebPresentationPath
impl Hash for ShowcaseWebPresentationPath
Source§impl Ord for ShowcaseWebPresentationPath
impl Ord for ShowcaseWebPresentationPath
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ShowcaseWebPresentationPath
impl PartialOrd for ShowcaseWebPresentationPath
impl StructuralPartialEq for ShowcaseWebPresentationPath
Auto Trait Implementations§
impl Forget for ShowcaseWebPresentationPath
impl Freeze for ShowcaseWebPresentationPath
impl Move for ShowcaseWebPresentationPath
impl RefUnwindSafe for ShowcaseWebPresentationPath
impl Send for ShowcaseWebPresentationPath
impl Sync for ShowcaseWebPresentationPath
impl Unpin for ShowcaseWebPresentationPath
impl UnsafeUnpin for ShowcaseWebPresentationPath
impl UnwindSafe for ShowcaseWebPresentationPath
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.