Struct GraphicsCapabilitySnapshot
pub struct GraphicsCapabilitySnapshot {
pub probe_complete: bool,
pub tier_hint: Option<QualityTier>,
pub max_texture_dimension_2d: Option<u32>,
pub gpu_memory_budget_bytes: Option<u64>,
pub confirmed_features: u32,
pub acceptance: CapabilityAcceptance,
}Expand description
A normalized probe result. None means the value was not measured or exposed by the runtime.
confirmed_features is deliberately explicit: absence means unsupported or not verified.
Fields§
§probe_complete: bool§tier_hint: Option<QualityTier>§max_texture_dimension_2d: Option<u32>§gpu_memory_budget_bytes: Option<u64>Available GPU allocation budget after the runtime’s own safety margin, when reported.
confirmed_features: u32§acceptance: CapabilityAcceptanceMeasured runtime evidence for cross-platform acceptance gates. The default is entirely unknown; callers must populate evidence instead of relying on a platform assumption.
Implementations§
§impl GraphicsCapabilitySnapshot
impl GraphicsCapabilitySnapshot
pub const fn quality_tier_gate(self) -> CapabilityEvidence
pub const fn quality_tier_gate(self) -> CapabilityEvidence
Gate for admitting the requested tier. Conservative is always a valid presentation baseline; every higher tier requires measured performance evidence.
pub const fn temporal_gate(self) -> CapabilityEvidence
pub const fn temporal_gate(self) -> CapabilityEvidence
GraphicsCapabilitySnapshot::temporal_gate.
pub const fn environment_probe_gate(self) -> CapabilityEvidence
pub const fn environment_probe_gate(self) -> CapabilityEvidence
GraphicsCapabilitySnapshot::environment_probe_gate.
pub const fn browser_webgpu_gate(self) -> CapabilityEvidence
pub const fn browser_webgpu_gate(self) -> CapabilityEvidence
GraphicsCapabilitySnapshot::browser_webgpu_gate.
pub const fn pixel_readback_gate(self) -> CapabilityEvidence
pub const fn pixel_readback_gate(self) -> CapabilityEvidence
GraphicsCapabilitySnapshot::pixel_readback_gate.
Trait Implementations§
§impl Clone for GraphicsCapabilitySnapshot
impl Clone for GraphicsCapabilitySnapshot
§fn clone(&self) -> GraphicsCapabilitySnapshot
fn clone(&self) -> GraphicsCapabilitySnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for GraphicsCapabilitySnapshot
§impl Debug for GraphicsCapabilitySnapshot
impl Debug for GraphicsCapabilitySnapshot
§impl Default for GraphicsCapabilitySnapshot
impl Default for GraphicsCapabilitySnapshot
§fn default() -> GraphicsCapabilitySnapshot
fn default() -> GraphicsCapabilitySnapshot
impl Eq for GraphicsCapabilitySnapshot
§impl PartialEq for GraphicsCapabilitySnapshot
impl PartialEq for GraphicsCapabilitySnapshot
impl StructuralPartialEq for GraphicsCapabilitySnapshot
Auto Trait Implementations§
impl Freeze for GraphicsCapabilitySnapshot
impl RefUnwindSafe for GraphicsCapabilitySnapshot
impl Send for GraphicsCapabilitySnapshot
impl Sync for GraphicsCapabilitySnapshot
impl Unpin for GraphicsCapabilitySnapshot
impl UnsafeUnpin for GraphicsCapabilitySnapshot
impl UnwindSafe for GraphicsCapabilitySnapshot
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
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
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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