#[non_exhaustive]pub struct WebGpuOwnedTextureFrame {
pub generation: u64,
pub width: u32,
pub height: u32,
pub scale_factor: f64,
pub frame_id: u64,
pub format: u32,
}Expand description
Copied metadata for an acquired WebGPU session-owned texture frame.
Backend pointers are exposed by WebGpuOwnedTextureFrameHandle so their
lifetime stays tied to the open frame handle.
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.generation: u64§width: u32§height: u32§scale_factor: f64§frame_id: u64§format: u32Trait Implementations§
Source§impl Clone for WebGpuOwnedTextureFrame
impl Clone for WebGpuOwnedTextureFrame
Source§fn clone(&self) -> WebGpuOwnedTextureFrame
fn clone(&self) -> WebGpuOwnedTextureFrame
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 WebGpuOwnedTextureFrame
impl Debug for WebGpuOwnedTextureFrame
Source§impl PartialEq for WebGpuOwnedTextureFrame
impl PartialEq for WebGpuOwnedTextureFrame
impl Copy for WebGpuOwnedTextureFrame
impl StructuralPartialEq for WebGpuOwnedTextureFrame
Auto Trait Implementations§
impl Freeze for WebGpuOwnedTextureFrame
impl RefUnwindSafe for WebGpuOwnedTextureFrame
impl Send for WebGpuOwnedTextureFrame
impl Sync for WebGpuOwnedTextureFrame
impl Unpin for WebGpuOwnedTextureFrame
impl UnsafeUnpin for WebGpuOwnedTextureFrame
impl UnwindSafe for WebGpuOwnedTextureFrame
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