pub struct WebGpuTextureFrame {
pub width: u32,
pub height: u32,
pub scale_factor: f64,
pub slot: u32,
pub texture: *mut c_void,
pub texture_view: *mut c_void,
pub device: *mut c_void,
pub format: u32,
}Expand description
The WebGPU texture of an acquired frame.
See mln_web_gpu_texture_frame in the
C API reference.
Fields§
§width: u32§height: u32§scale_factor: f64§slot: u32The texture’s index in the descriptor’s textures.
texture: *mut c_voidThe WGPUTexture.
texture_view: *mut c_voidThe WGPUTextureView.
device: *mut c_voidThe texture’s WGPUDevice.
format: u32The texture’s WGPUTextureFormat.
Trait Implementations§
Source§impl Clone for WebGpuTextureFrame
impl Clone for WebGpuTextureFrame
Source§fn clone(&self) -> WebGpuTextureFrame
fn clone(&self) -> WebGpuTextureFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WebGpuTextureFrame
Source§impl Debug for WebGpuTextureFrame
impl Debug for WebGpuTextureFrame
Source§impl Default for WebGpuTextureFrame
impl Default for WebGpuTextureFrame
Source§fn default() -> WebGpuTextureFrame
fn default() -> WebGpuTextureFrame
Returns the “default value” for a type. Read more
Source§impl PartialEq for WebGpuTextureFrame
impl PartialEq for WebGpuTextureFrame
impl StructuralPartialEq for WebGpuTextureFrame
Auto Trait Implementations§
impl !Send for WebGpuTextureFrame
impl !Sync for WebGpuTextureFrame
impl Freeze for WebGpuTextureFrame
impl RefUnwindSafe for WebGpuTextureFrame
impl Unpin for WebGpuTextureFrame
impl UnsafeUnpin for WebGpuTextureFrame
impl UnwindSafe for WebGpuTextureFrame
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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