#[non_exhaustive]pub struct WebGpuContextDescriptor {
pub instance: NativePointer,
pub device: NativePointer,
pub queue: NativePointer,
}Expand description
Browser WebGPU device a session renders with.
A browser host owns its WebGPU objects, so a session borrows these rather than creating any of them. They must stay valid until the session is detached or closed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.instance: NativePointerOptional for texture sessions.
device: NativePointer§queue: NativePointerOptional; null uses the device’s default queue. A non-null queue must
belong to device.
Implementations§
Source§impl WebGpuContextDescriptor
impl WebGpuContextDescriptor
pub fn new(device: NativePointer) -> Self
Trait Implementations§
Source§impl Clone for WebGpuContextDescriptor
impl Clone for WebGpuContextDescriptor
Source§fn clone(&self) -> WebGpuContextDescriptor
fn clone(&self) -> WebGpuContextDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebGpuContextDescriptor
impl Debug for WebGpuContextDescriptor
Source§impl Default for WebGpuContextDescriptor
impl Default for WebGpuContextDescriptor
Source§impl PartialEq for WebGpuContextDescriptor
impl PartialEq for WebGpuContextDescriptor
impl StructuralPartialEq for WebGpuContextDescriptor
Auto Trait Implementations§
impl Freeze for WebGpuContextDescriptor
impl RefUnwindSafe for WebGpuContextDescriptor
impl !Send for WebGpuContextDescriptor
impl !Sync for WebGpuContextDescriptor
impl Unpin for WebGpuContextDescriptor
impl UnsafeUnpin for WebGpuContextDescriptor
impl UnwindSafe for WebGpuContextDescriptor
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