pub struct CapabilityReport {
pub schema: &'static str,
pub version: u32,
pub runtime: Runtime,
pub gpu: GpuReport,
pub color: ColorReport,
pub playback: PlaybackReport,
pub decode: Value,
pub encode: Value,
pub features: BTreeMap<String, Feature>,
pub adapters: Value,
pub memory: Value,
}Expand description
What a runtime can do.
Fields§
§schema: &'static str§version: u32§runtime: RuntimeWhere the engine runs.
gpu: GpuReportThe GPU it renders with.
color: ColorReportHow it handles color.
playback: PlaybackReportHow its real-time playback behaves.
decode: ValueHost-specific video decode description, or null when the browser page decodes.
encode: ValueContainers, codecs and encoders; null when only known at export.
features: BTreeMap<String, Feature>Named features, each available or not, with why not.
adapters: ValueHost-specific adapter choice under ALPHA2_GPU_ADAPTER and what each candidate supports;
null where no choice was made (browser, CPU renderer).
memory: ValueHost-specific machine and process memory; null where not read (browser).
Implementations§
Source§impl CapabilityReport
impl CapabilityReport
Sourcepub fn new(runtime: Runtime, renderer: &Renderer) -> Self
pub fn new(runtime: Runtime, renderer: &Renderer) -> Self
The report of renderer on runtime, with decode, encode and features left to the host.
Sourcepub fn cpu(runtime: Runtime, renderer: &CpuRenderer) -> Self
pub fn cpu(runtime: Runtime, renderer: &CpuRenderer) -> Self
The report for the CPU renderer on runtime: tier A with a half-float intermediate.
Sourcepub fn with_feature(self, name: &str, feature: Feature) -> Self
pub fn with_feature(self, name: &str, feature: Feature) -> Self
Records a feature.
Trait Implementations§
Source§impl Clone for CapabilityReport
impl Clone for CapabilityReport
Source§impl Debug for CapabilityReport
impl Debug for CapabilityReport
Source§impl PartialEq for CapabilityReport
impl PartialEq for CapabilityReport
Source§impl Serialize for CapabilityReport
impl Serialize for CapabilityReport
impl StructuralPartialEq for CapabilityReport
Auto Trait Implementations§
impl Freeze for CapabilityReport
impl RefUnwindSafe for CapabilityReport
impl Send for CapabilityReport
impl Sync for CapabilityReport
impl Unpin for CapabilityReport
impl UnsafeUnpin for CapabilityReport
impl UnwindSafe for CapabilityReport
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> 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> ⓘ
Converts
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> ⓘ
Converts
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