pub struct Surface { /* private fields */ }Implementations§
Source§impl Surface
impl Surface
pub fn as_raw(&self) -> *mut WGPUSurfaceImpl
pub fn configure(&self, config: &SurfaceConfiguration)
pub fn get_capabilities( &self, adapter: Adapter, capabilities: &mut SurfaceCapabilities, ) -> Status
pub fn get_current_texture(&self, surface_texture: &mut SurfaceTexture)
pub fn present(&self) -> Status
pub fn unconfigure(&self)
pub fn set_label(&self, label: String)
Trait Implementations§
impl Send for Surface
Auto Trait Implementations§
impl Freeze for Surface
impl !RefUnwindSafe for Surface
impl !Sync for Surface
impl Unpin for Surface
impl UnsafeUnpin for Surface
impl UnwindSafe for Surface
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