pub struct WasdkSurface { /* private fields */ }Expand description
The surface behind a wgpu::Surface on a view: surface.as_custom::<WasdkSurface>().
Trait Implementations§
Source§impl Debug for WasdkSurface
impl Debug for WasdkSurface
Source§impl SurfaceInterface for WasdkSurface
impl SurfaceInterface for WasdkSurface
Source§fn configure(&self, device: &DispatchDevice, config: &SurfaceConfiguration)
fn configure(&self, device: &DispatchDevice, config: &SurfaceConfiguration)
Sets the view’s canvas to width by height, then configures its canvas context as
WebGPU’s canvas is configured; the present mode and the frame latency have no counterpart,
a view presenting at its frames.
Source§fn get_current_texture(
&self,
) -> (Option<DispatchTexture>, SurfaceStatus, DispatchSurfaceOutputDetail)
fn get_current_texture( &self, ) -> (Option<DispatchTexture>, SurfaceStatus, DispatchSurfaceOutputDetail)
The canvas’s texture for this frame, of the size configured. A lost device hands out an invalid texture, which the canvas cannot tell from a good one, so it is handed out as good: the program hears of the loss through the device.
fn get_capabilities(&self, _adapter: &DispatchAdapter) -> SurfaceCapabilities
Source§fn display_hdr_info(&self, adapter: &DispatchAdapter) -> DisplayHdrInfo
fn display_hdr_info(&self, adapter: &DispatchAdapter) -> DisplayHdrInfo
The backing display’s current HDR / luminance characteristics. Read more
Auto Trait Implementations§
impl !Freeze for WasdkSurface
impl Forget for WasdkSurface
impl Move for WasdkSurface
impl RefUnwindSafe for WasdkSurface
impl Send for WasdkSurface
impl Sync for WasdkSurface
impl Unpin for WasdkSurface
impl UnsafeUnpin for WasdkSurface
impl UnwindSafe for WasdkSurface
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