#[non_exhaustive]pub struct WebGpuBorrowedTextureDescriptor {
pub extent: RenderTargetExtent,
pub physical_width: u32,
pub physical_height: u32,
pub context: WebGpuContextDescriptor,
pub texture: NativePointer,
pub texture_view: NativePointer,
pub format: u32,
}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.extent: RenderTargetExtent§physical_width: u32Physical texture size in device pixels. The texture is sized by its
owner, so this is stated rather than derived from extent.
physical_height: u32§context: WebGpuContextDescriptor§texture: NativePointer§texture_view: NativePointer§format: u32Backend-native WGPUTextureFormat value.
Implementations§
Source§impl WebGpuBorrowedTextureDescriptor
impl WebGpuBorrowedTextureDescriptor
pub fn new( extent: RenderTargetExtent, physical_width: u32, physical_height: u32, context: WebGpuContextDescriptor, texture: NativePointer, texture_view: NativePointer, format: u32, ) -> Self
Trait Implementations§
Source§impl Clone for WebGpuBorrowedTextureDescriptor
impl Clone for WebGpuBorrowedTextureDescriptor
Source§fn clone(&self) -> WebGpuBorrowedTextureDescriptor
fn clone(&self) -> WebGpuBorrowedTextureDescriptor
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 PartialEq for WebGpuBorrowedTextureDescriptor
impl PartialEq for WebGpuBorrowedTextureDescriptor
Source§fn eq(&self, other: &WebGpuBorrowedTextureDescriptor) -> bool
fn eq(&self, other: &WebGpuBorrowedTextureDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WebGpuBorrowedTextureDescriptor
Auto Trait Implementations§
impl Freeze for WebGpuBorrowedTextureDescriptor
impl RefUnwindSafe for WebGpuBorrowedTextureDescriptor
impl !Send for WebGpuBorrowedTextureDescriptor
impl !Sync for WebGpuBorrowedTextureDescriptor
impl Unpin for WebGpuBorrowedTextureDescriptor
impl UnsafeUnpin for WebGpuBorrowedTextureDescriptor
impl UnwindSafe for WebGpuBorrowedTextureDescriptor
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