#[non_exhaustive]pub struct TestDeviceRequest { /* private fields */ }Available on crate features
testing only.Expand description
Limits and features to request for a test device.
Implementations§
Source§impl TestDeviceRequest
impl TestDeviceRequest
Sourcepub fn baseline() -> Self
pub fn baseline() -> Self
Returns a request for wgpu::Limits::default(), the WebGPU baseline a browser offers.
Sourcepub fn raised(needs: GpuNeeds) -> Self
pub fn raised(needs: GpuNeeds) -> Self
Returns a request for the baseline raised by henad_compute::gpu::limits::raise for needs, as a host’s
device is raised.
Note that a browser without those limits rejects a model that needs them.
Sourcepub fn features(self, features: Features) -> Self
pub fn features(self, features: Features) -> Self
Requests features as well. headless_test_device returns None for this request on an adapter without them.
A caller can name the type of features as henad_compute::gpu::wgpu::Features, without a direct wgpu
dependency.
Trait Implementations§
Source§impl Clone for TestDeviceRequest
impl Clone for TestDeviceRequest
Auto Trait Implementations§
impl Freeze for TestDeviceRequest
impl RefUnwindSafe for TestDeviceRequest
impl Send for TestDeviceRequest
impl Sync for TestDeviceRequest
impl Unpin for TestDeviceRequest
impl UnsafeUnpin for TestDeviceRequest
impl UnwindSafe for TestDeviceRequest
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<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